Lines Matching refs:cleanup
72 static void cleanup(void);
91 cleanup(); in main()
107 device = tst_acquire_device(cleanup); in setup()
110 tst_brkm(TCONF, cleanup, "Failed to acquire device"); in setup()
112 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup()
114 fd1 = SAFE_OPEN(cleanup, "tfile_1", O_RDWR | O_CREAT, 0666); in setup()
116 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
117 SAFE_MKDIR(cleanup, "mntpoint", DIR_MODE); in setup()
119 tst_brkm(TBROK | TERRNO, cleanup, in setup()
123 SAFE_TOUCH(cleanup, "mntpoint/tfile_3", 0644, NULL); in setup()
126 tst_brkm(TBROK | TERRNO, cleanup, in setup()
129 fd3 = SAFE_OPEN(cleanup, "mntpoint/tfile_3", O_RDONLY); in setup()
131 ltpuser = SAFE_GETPWNAM(cleanup, "nobody"); in setup()
132 SAFE_SETEUID(cleanup, ltpuser->pw_uid); in setup()
137 UID16_CHECK(geteuid(), "fchown", cleanup) in fchown_verify()
138 GID16_CHECK(getegid(), "fchown", cleanup) in fchown_verify()
140 TEST(FCHOWN(cleanup, *test_cases[i].fd, geteuid(), getegid())); in fchown_verify()
156 static void cleanup(void) in cleanup() function