Lines Matching refs:cleanup
47 static void cleanup(void);
73 fd = SAFE_OPEN(cleanup, file1, O_RDWR | O_CREAT, 0777); in main()
85 SAFE_WRITE(cleanup, 1, fd, buf, bytes_to_write); in main()
90 addr = SAFE_MMAP(cleanup, 0, sizeof(buf), PROT_READ, in main()
94 tst_brkm(TBROK | TERRNO, cleanup, "fork #1 failed"); in main()
102 tst_brkm(TBROK | TERRNO, cleanup, "waitpid failed"); in main()
104 tst_brkm(TBROK, cleanup, "child exited abnormally " in main()
108 tst_brkm(TBROK, cleanup, in main()
114 tst_brkm(TBROK, cleanup, "got unexpected signal: %d", in main()
124 tst_brkm(TBROK | TERRNO, cleanup, in main()
133 tst_brkm(TBROK | TERRNO, cleanup, in main()
140 tst_brkm(TBROK, cleanup, in main()
147 SAFE_MUNMAP(cleanup, addr, sizeof(buf)); in main()
150 SAFE_CLOSE(cleanup, fd); in main()
152 SAFE_UNLINK(cleanup, file1); in main()
156 cleanup(); in main()
167 tst_sig(FORK, sighandler, cleanup); in setup()
176 static void cleanup(void) in cleanup() function