Lines Matching refs:cleanup
88 void (*cleanup)(void); member
107 static void cleanup(void);
128 if (tc[i].cleanup) in main()
129 tc[i].cleanup(); in main()
149 cleanup(); in main()
155 SAFE_SETEUID(cleanup, 0); in set_root()
160 SAFE_SETEUID(cleanup, nobody_uid); in set_nobody()
168 tst_sig(FORK, DEF_HANDLER, cleanup); in setup()
184 device = tst_acquire_device(cleanup); in setup()
187 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); in setup()
189 SAFE_TOUCH(cleanup, TEST_FILE1, 0666, NULL); in setup()
190 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup()
191 SAFE_TOUCH(cleanup, TEST_FILE2, 0666, NULL); in setup()
192 SAFE_CHMOD(cleanup, DIR_TEMP, FILE_MODE); in setup()
193 SAFE_TOUCH(cleanup, "t_file", MODE_RWX, NULL); in setup()
195 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
197 SAFE_MKDIR(cleanup, MNT_POINT, DIR_MODE); in setup()
203 tst_brkm(TBROK | TERRNO, cleanup, in setup()
214 SAFE_SYMLINK(cleanup, "test_file4", "test_file5"); in setup()
215 SAFE_SYMLINK(cleanup, "test_file5", "test_file4"); in setup()
218 static void cleanup(void) in cleanup() function