Lines Matching refs:cleanup
57 static void cleanup(void);
100 cleanup();
143 tst_sig(NOFORK, DEF_HANDLER, cleanup);
148 device = tst_acquire_device(cleanup);
151 tst_brkm(TCONF, cleanup, "Failed to acquire device");
155 ltpuser = SAFE_GETPWNAM(cleanup, "nobody");
157 SAFE_TOUCH(cleanup, TEST_FILE, 0644, NULL);
161 SAFE_TOUCH(cleanup, TEST_EXIST, 0644, NULL);
163 SAFE_SYMLINK(cleanup, TEST_ELOOP, "test_file_eloop2");
164 SAFE_SYMLINK(cleanup, "test_file_eloop2", TEST_ELOOP);
166 SAFE_MKDIR(cleanup, "./tmp", DIR_MODE);
167 SAFE_TOUCH(cleanup, TEST_EACCES, 0666, NULL);
169 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
170 SAFE_MKDIR(cleanup, "mntpoint", DIR_MODE);
172 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, 0, NULL);
175 max_hardlinks = tst_fs_fill_hardlinks(cleanup, "emlink_dir");
180 SAFE_SETEUID(cleanup, ltpuser->pw_uid);
185 SAFE_SETEUID(cleanup, 0);
190 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type,
195 static void cleanup(void)