• Home
  • Raw
  • Download

Lines Matching refs:cleanup

62 static void cleanup(void);
99 cleanup(); in main()
107 tst_sig(FORK, DEF_HANDLER, cleanup); in setup()
111 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in setup()
113 SAFE_SYMLINK(cleanup, TEST_FILE, SFILE); in setup()
120 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in testfunc_append()
129 SAFE_WRITE(cleanup, 1, TEST_RETURN, STR, sizeof(STR) - 1); in testfunc_append()
131 file_offset = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in testfunc_append()
138 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_append()
165 tst_brkm(TBROK | TERRNO, cleanup, "fork() failed"); in testfunc_cloexec()
172 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_cloexec()
174 SAFE_WAIT(cleanup, &status); in testfunc_cloexec()
185 tst_brkm(TBROK, cleanup, "execlp() failed"); in testfunc_cloexec()
188 tst_brkm(TBROK, cleanup, in testfunc_cloexec()
198 fd = SAFE_OPEN(cleanup, LARGE_FILE, in testfunc_largefile()
203 tst_brkm(TBROK | TERRNO, cleanup, "lseek64 failed"); in testfunc_largefile()
205 SAFE_WRITE(cleanup, 1, fd, STR, sizeof(STR) - 1); in testfunc_largefile()
207 SAFE_CLOSE(cleanup, fd); in testfunc_largefile()
215 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_largefile()
232 ret = tst_path_has_mnt_flags(cleanup, NULL, flags); in testfunc_noatime()
240 SAFE_STAT(cleanup, TEST_FILE, &file_stat); in testfunc_noatime()
251 SAFE_READ(cleanup, 1, TEST_RETURN, &buf, 1); in testfunc_noatime()
253 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_noatime()
255 SAFE_STAT(cleanup, TEST_FILE, &file_newstat); in testfunc_noatime()
271 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_nofollow()
286 SAFE_FSTAT(cleanup, TEST_RETURN, &file_stat); in testfunc_trunc()
293 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_trunc()
296 void cleanup(void) in cleanup() function