Home | History | Annotate | Download | only in fchmod

Lines Matching refs:cleanup

67 static void cleanup(void);
107 cleanup();
116 tst_sig(FORK, DEF_HANDLER, cleanup);
125 device = tst_acquire_device(cleanup);
128 tst_brkm(TCONF, cleanup, "Failed to obtain block device");
130 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
132 SAFE_MKDIR(cleanup, "mntpoint", 0755);
134 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, 0, NULL);
138 SAFE_TOUCH(cleanup, "mntpoint/tfile_3", 0644, NULL);
140 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type,
143 fd3 = SAFE_OPEN(cleanup, "mntpoint/tfile_3", O_RDONLY);
145 fd1 = SAFE_OPEN(cleanup, "tfile_1", O_RDWR | O_CREAT, 0666);
147 fd2 = SAFE_OPEN(cleanup, "tfile_2", O_RDWR | O_CREAT, 0666);
149 SAFE_CLOSE(cleanup, fd2);
151 ltpuser = SAFE_GETPWNAM(cleanup, "nobody");
153 SAFE_SETEUID(cleanup, ltpuser->pw_uid);
156 static void cleanup(void)