Lines Matching refs:cleanup
62 static void cleanup(void);
99 cleanup();
107 tst_sig(FORK, DEF_HANDLER, cleanup);
111 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file");
113 SAFE_SYMLINK(cleanup, TEST_FILE, SFILE);
120 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file");
129 SAFE_WRITE(cleanup, SAFE_WRITE_ALL, TEST_RETURN, STR, sizeof(STR) - 1);
131 file_offset = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR);
138 SAFE_CLOSE(cleanup, TEST_RETURN);
159 tst_brkm(TBROK | TERRNO, cleanup, "fork() failed");
166 SAFE_CLOSE(cleanup, TEST_RETURN);
168 SAFE_WAIT(cleanup, &status);
179 tst_brkm(TBROK, cleanup, "execlp() failed");
182 tst_brkm(TBROK, cleanup,
192 fd = SAFE_OPEN(cleanup, LARGE_FILE,
197 tst_brkm(TBROK | TERRNO, cleanup, "lseek64 failed");
199 SAFE_WRITE(cleanup, SAFE_WRITE_ALL, fd, STR, sizeof(STR) - 1);
201 SAFE_CLOSE(cleanup, fd);
209 SAFE_CLOSE(cleanup, TEST_RETURN);
220 ret = tst_path_has_mnt_flags(cleanup, NULL, flags);
228 SAFE_STAT(cleanup, TEST_FILE, &file_stat);
239 SAFE_READ(cleanup, 1, TEST_RETURN, &buf, 1);
241 SAFE_CLOSE(cleanup, TEST_RETURN);
243 SAFE_STAT(cleanup, TEST_FILE, &file_newstat);
259 SAFE_CLOSE(cleanup, TEST_RETURN);
274 SAFE_FSTAT(cleanup, TEST_RETURN, &file_stat);
281 SAFE_CLOSE(cleanup, TEST_RETURN);
284 void cleanup(void)