• Home
  • Raw
  • Download

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()
176 tst_brkm(TBROK | TERRNO, cleanup, "wait() failed"); in testfunc_cloexec()
187 tst_brkm(TBROK, cleanup, "execlp() failed"); in testfunc_cloexec()
190 tst_brkm(TBROK, cleanup, in testfunc_cloexec()
200 fd = SAFE_OPEN(cleanup, LARGE_FILE, in testfunc_largefile()
205 tst_brkm(TBROK | TERRNO, cleanup, "lseek64 failed"); in testfunc_largefile()
207 SAFE_WRITE(cleanup, 1, fd, STR, sizeof(STR) - 1); in testfunc_largefile()
209 SAFE_CLOSE(cleanup, fd); in testfunc_largefile()
217 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_largefile()
234 ret = tst_path_has_mnt_flags(cleanup, NULL, flags); in testfunc_noatime()
242 SAFE_STAT(cleanup, TEST_FILE, &file_stat); in testfunc_noatime()
253 SAFE_READ(cleanup, 1, TEST_RETURN, &buf, 1); in testfunc_noatime()
255 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_noatime()
257 SAFE_STAT(cleanup, TEST_FILE, &file_newstat); in testfunc_noatime()
273 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_nofollow()
288 SAFE_FSTAT(cleanup, TEST_RETURN, &file_stat); in testfunc_trunc()
295 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_trunc()
298 void cleanup(void) in cleanup() function