Lines Matching refs:cleanup
63 static void cleanup(void);
100 cleanup(); in main()
108 tst_sig(FORK, DEF_HANDLER, cleanup); in setup()
112 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in setup()
114 SAFE_SYMLINK(cleanup, TEST_FILE, SFILE); in setup()
121 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in testfunc_append()
130 SAFE_WRITE(cleanup, 1, TEST_RETURN, STR, sizeof(STR) - 1); in testfunc_append()
132 file_offset = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in testfunc_append()
139 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_append()
166 tst_brkm(TBROK | TERRNO, cleanup, "fork() failed"); in testfunc_cloexec()
173 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_cloexec()
175 SAFE_WAIT(cleanup, &status); in testfunc_cloexec()
186 tst_brkm(TBROK, cleanup, "execlp() failed"); in testfunc_cloexec()
189 tst_brkm(TBROK, cleanup, in testfunc_cloexec()
199 fd = SAFE_OPEN(cleanup, LARGE_FILE, in testfunc_largefile()
204 tst_brkm(TBROK | TERRNO, cleanup, "lseek64 failed"); in testfunc_largefile()
206 SAFE_WRITE(cleanup, 1, fd, STR, sizeof(STR) - 1); in testfunc_largefile()
208 SAFE_CLOSE(cleanup, fd); in testfunc_largefile()
216 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_largefile()
233 ret = tst_path_has_mnt_flags(cleanup, NULL, flags); in testfunc_noatime()
241 SAFE_STAT(cleanup, TEST_FILE, &file_stat); in testfunc_noatime()
252 SAFE_READ(cleanup, 1, TEST_RETURN, &buf, 1); in testfunc_noatime()
254 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_noatime()
256 SAFE_STAT(cleanup, TEST_FILE, &file_newstat); in testfunc_noatime()
272 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_nofollow()
287 SAFE_FSTAT(cleanup, TEST_RETURN, &file_stat); in testfunc_trunc()
294 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_trunc()
297 void cleanup(void) in cleanup() function