Lines Matching refs:cleanup
45 static void cleanup(void);
69 cleanup(); in main()
78 fd_out = SAFE_OPEN(cleanup, TESTFILE2, O_RDONLY); in check_file()
79 SAFE_READ(cleanup, 1, fd_out, teebuffer, TEST_BLOCK_SIZE); in check_file()
101 fd_in = SAFE_OPEN(cleanup, TESTFILE1, O_RDONLY); in tee_test()
102 fd_out = SAFE_OPEN(cleanup, TESTFILE2, O_WRONLY | O_CREAT | O_TRUNC, 0777); in tee_test()
104 SAFE_PIPE(cleanup, pipe1); in tee_test()
105 SAFE_PIPE(cleanup, pipe2); in tee_test()
109 tst_brkm(TBROK | TERRNO, cleanup, "splice(fd_in, pipe1) failed"); in tee_test()
113 tst_brkm(TBROK | TERRNO, cleanup, "tee() failed"); in tee_test()
117 tst_brkm(TBROK | TERRNO, cleanup, "splice(pipe2, fd_out) failed"); in tee_test()
137 tst_brkm(TCONF, cleanup, "This test can only run on kernels " in setup()
141 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup()
147 if (tst_fs_type(cleanup, ".") == TST_NFS_MAGIC) { in setup()
149 tst_brkm(TCONF, cleanup, "Cannot do tee on a file" in setup()
156 fd_in = SAFE_OPEN(cleanup, TESTFILE1, O_WRONLY | O_CREAT | O_TRUNC, 0777); in setup()
157 SAFE_WRITE(cleanup, 1, fd_in, buffer, TEST_BLOCK_SIZE); in setup()
158 SAFE_CLOSE(cleanup, fd_in); in setup()
162 static void cleanup(void) in cleanup() function