HomeSort by relevance Sort by last modified time
    Searched refs:cleanup (Results 51 - 75 of 3021) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/ltp/testcases/kernel/syscalls/fchown/
fchown03.c 58 static void cleanup(void);
75 GID16_CHECK((group_id = getegid()), "fchown", cleanup)
77 TEST(FCHOWN(cleanup, fildes, -1, group_id));
85 SAFE_FSTAT(cleanup, fildes, &stat_buf);
105 cleanup();
111 tst_sig(FORK, DEF_HANDLER, cleanup);
115 ltpuser = SAFE_GETPWNAM(cleanup, nobody_uid);
122 fildes = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE);
124 SAFE_SETEUID(cleanup, 0);
126 SAFE_FCHOWN(cleanup, fildes, -1, 0)
133 static void cleanup(void) function
    [all...]
fchown04.c 72 static void cleanup(void);
91 cleanup();
107 device = tst_acquire_device(cleanup);
110 tst_brkm(TCONF, cleanup, "Failed to acquire device");
112 tst_sig(NOFORK, DEF_HANDLER, cleanup);
114 fd1 = SAFE_OPEN(cleanup, "tfile_1", O_RDWR | O_CREAT, 0666);
116 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
117 SAFE_MKDIR(cleanup, "mntpoint", DIR_MODE);
118 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, 0, NULL);
120 SAFE_TOUCH(cleanup, "mntpoint/tfile_3", 0644, NULL)
150 static void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/swapoff/
swapoff02.c 38 static void cleanup(void);
53 void (*cleanup)(void); member in struct:test_case_t
79 if (testcase[i].cleanup)
80 testcase[i].cleanup();
101 tst_brkm(TBROK, cleanup,
110 cleanup();
116 SAFE_SETEUID(cleanup, nobody_uid);
122 SAFE_SETEUID(cleanup, 0);
130 tst_sig(FORK, DEF_HANDLER, cleanup);
141 switch ((type = tst_fs_type(cleanup, ".")))
159 static void cleanup(void) function
    [all...]
swapoff01.c 30 static void cleanup(void);
51 cleanup();
59 tst_brkm(TCONF, cleanup,
81 tst_sig(FORK, DEF_HANDLER, cleanup);
89 switch ((fs_type = tst_fs_type(cleanup, "."))) {
92 tst_brkm(TCONF, cleanup,
99 tst_brkm(TBROK, cleanup,
104 tst_brkm(TBROK, cleanup, "Failed to create file for swap");
107 tst_brkm(TBROK, cleanup, "Failed to make swapfile");
110 static void cleanup(void function
    [all...]
  /external/ltp/testcases/kernel/containers/userns/
userns06.c 93 static void cleanup(void) function
103 TST_RESOURCE_COPY(cleanup, "userns06_capcheck", NULL);
128 tst_brkm(TBROK | TERRNO, cleanup,
134 tst_brkm(TBROK | TERRNO, cleanup,
139 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644);
140 SAFE_WRITE(cleanup, 1, fd, "deny", 4);
141 SAFE_CLOSE(cleanup, fd);
144 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644);
145 SAFE_WRITE(cleanup, 1, fd, "deny", 4);
146 SAFE_CLOSE(cleanup, fd)
    [all...]
  /external/ltp/testcases/kernel/syscalls/rename/
rename11.c 60 static void cleanup(void);
85 cleanup();
93 tst_sig(NOFORK, DEF_HANDLER, cleanup);
102 device = tst_acquire_device(cleanup);
105 tst_brkm(TCONF, cleanup, "Failed to obtain block device");
107 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
109 SAFE_MKDIR(cleanup, MNTPOINT, 0755);
110 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL);
112 SAFE_TOUCH(cleanup, TEST_EROFS, 0644, NULL);
114 SAFE_MKDIR(cleanup, TEST_EMLINK, 0755)
178 static void cleanup(void) function
    [all...]
rename06.c 40 * Cleanup:
69 void cleanup();
118 cleanup();
129 tst_sig(NOFORK, DEF_HANDLER, cleanup);
141 tst_brkm(TBROK, cleanup, "tmp directory %s found!", fdir);
143 SAFE_MKDIR(cleanup, fdir, 00770);
144 SAFE_STAT(cleanup, fdir, &buf1);
151 tst_brkm(TBROK, cleanup, "tmp directory %s found!", mdir);
153 SAFE_MKDIR(cleanup, mdir, 00770);
155 SAFE_STAT(cleanup, mdir, &buf2)
166 void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/mprotect/
mprotect02.c 47 static void cleanup(void);
74 fd = SAFE_OPEN(cleanup, file1, O_RDWR | O_CREAT, 0777);
83 SAFE_WRITE(cleanup, 1, fd, buf, bytes_to_write);
88 addr = SAFE_MMAP(cleanup, 0, sizeof(buf), PROT_READ,
92 tst_brkm(TBROK | TERRNO, cleanup, "fork #1 failed");
99 SAFE_WAITPID(cleanup, pid, &status, 0);
101 tst_brkm(TBROK, cleanup, "child exited abnormally "
105 tst_brkm(TBROK, cleanup,
111 tst_brkm(TBROK, cleanup, "got unexpected signal: %d",
121 tst_brkm(TBROK | TERRNO, cleanup,
171 static void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/device-drivers/pci/tpci_user/
tpci.c 44 static void cleanup(void) function
59 tst_sig(FORK, DEF_HANDLER, cleanup);
70 SAFE_FILE_PRINTF(cleanup, dev_tcase, "%d", i);
71 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res);
80 tst_module_load(cleanup, module_name, NULL);
89 fd = SAFE_OPEN(cleanup, dev_busslot, O_WRONLY);
94 SAFE_CLOSE(cleanup, fd);
97 tst_brkm(TBROK | TERRNO, cleanup,
100 SAFE_CLOSE(cleanup, fd);
114 cleanup();
    [all...]
  /external/ltp/testcases/kernel/syscalls/clone/
clone03.c 48 static void cleanup(void);
71 tst_brkm(TBROK, cleanup, "Cannot allocate stack for child");
77 tst_brkm(TBROK | TERRNO, cleanup, "pipe failed");
83 tst_brkm(TFAIL | TTERRNO, cleanup, "clone() failed");
87 tst_brkm(TBROK | TERRNO, cleanup,
92 tst_brkm(TBROK | TERRNO, cleanup,
108 tst_brkm(TBROK | TERRNO, cleanup,
114 cleanup();
120 tst_sig(FORK, DEF_HANDLER, cleanup);
124 static void cleanup(void function
    [all...]
clone01.c 37 static void cleanup(void);
54 tst_brkm(TBROK, cleanup, "Cannot allocate stack for child");
62 child_pid = SAFE_WAIT(cleanup, &status);
72 cleanup();
79 tst_sig(FORK, DEF_HANDLER, cleanup);
83 static void cleanup(void) function
  /external/ltp/testcases/kernel/syscalls/fchdir/
fchdir01.c 40 * call cleanup
66 void cleanup(void);
93 tst_brkm(TBROK, cleanup, "getcwd failed");
100 tst_brkm(TBROK, cleanup, "mkdir failed");
103 tst_brkm(TBROK, cleanup, "open of directory failed");
108 tst_brkm(TFAIL | TTERRNO, cleanup,
136 cleanup();
146 tst_brkm(TBROK, cleanup, "getcwd failed");
150 tst_brkm(TBROK, cleanup, "basename failed");
161 tst_sig(NOFORK, DEF_HANDLER, cleanup);
168 void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/fcntl/
fcntl30.c 42 static void cleanup(void);
58 SAFE_PIPE(cleanup, pipe_fds);
63 tst_brkm(TFAIL | TTERRNO, cleanup,
71 tst_brkm(TFAIL | TTERRNO, cleanup,
77 tst_brkm(TFAIL | TTERRNO, cleanup,
89 SAFE_CLOSE(cleanup, pipe_fds[0]);
90 SAFE_CLOSE(cleanup, pipe_fds[1]);
93 cleanup();
104 tst_sig(NOFORK, DEF_HANDLER, cleanup);
109 static void cleanup(void function
    [all...]
  /external/ltp/testcases/kernel/syscalls/ipc/msgrcv/
msgrcv05.c 36 * child exits, parent calls cleanup
67 void cleanup(void);
102 tst_brkm(TBROK, cleanup, "could not fork");
112 tst_brkm(TBROK, cleanup, "could not self_exec");
117 TST_PROCESS_STATE_WAIT(cleanup, c_pid, 'S');
120 SAFE_KILL(cleanup, c_pid, SIGHUP);
126 cleanup();
165 tst_sig(FORK, sighandler, cleanup);
177 tst_sig(FORK, sighandler, cleanup);
192 tst_brkm(TBROK, cleanup, "Can't create message queue")
199 void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/link/
link07.c 49 static void cleanup(void);
83 cleanup();
91 tst_sig(NOFORK, DEF_HANDLER, cleanup);
100 SAFE_CHMOD(cleanup, ".", MODE_TO);
102 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX);
103 SAFE_TOUCH(cleanup, TEST_FILE2, 0666, NULL);
106 SAFE_CHMOD(cleanup, DIR_TEMP, MODE_TE);
108 nobody_pwd = SAFE_GETPWNAM(cleanup, "nobody");
109 SAFE_SETEUID(cleanup, nobody_pwd->pw_uid);
112 static void cleanup(void function
    [all...]
  /external/ltp/testcases/kernel/syscalls/setegid/
setegid01.c 39 static void cleanup(void);
56 cleanup();
66 tst_sig(NOFORK, DEF_HANDLER, cleanup);
70 nobody = SAFE_GETPWNAM(cleanup, "nobody");
80 SAFE_GETRESGID(cleanup, &orig_rgid, &orig_egid, &orig_sgid);
85 SAFE_SETEGID(cleanup, nobody_gid);
87 SAFE_GETRESGID(cleanup, &cur_rgid, &cur_egid, &cur_sgid);
110 SAFE_SETEGID(cleanup, orig_egid);
112 SAFE_GETRESGID(cleanup, &cur_rgid, &cur_egid, &orig_sgid);
122 static void cleanup(void function
    [all...]
  /external/ltp/testcases/kernel/containers/mountns/
mountns01.c 82 tst_brkm(TBROK | TERRNO, cleanup, "unshare failed");
84 SAFE_MOUNT(cleanup, "none", "/", "none", MS_REC|MS_PRIVATE, NULL);
87 SAFE_MOUNT(cleanup, DIRA, DIRA, "none", MS_BIND, NULL);
90 SAFE_MOUNT(cleanup, "none", DIRA, "none", MS_SHARED, NULL);
93 tst_brkm(TBROK | TERRNO, cleanup, "clone failed");
97 SAFE_MOUNT(cleanup, DIRB, DIRA, "none", MS_BIND, NULL);
99 TST_SAFE_CHECKPOINT_WAKE_AND_WAIT(cleanup, 0);
101 SAFE_UMOUNT(cleanup, DIRA);
103 TST_SAFE_CHECKPOINT_WAKE_AND_WAIT(cleanup, 0);
110 TST_SAFE_CHECKPOINT_WAKE(cleanup, 0)
    [all...]
mountns02.c 82 tst_brkm(TBROK | TERRNO, cleanup, "unshare failed");
84 SAFE_MOUNT(cleanup, "none", "/", "none", MS_REC|MS_PRIVATE, NULL);
87 SAFE_MOUNT(cleanup, DIRA, DIRA, "none", MS_BIND, NULL);
90 SAFE_MOUNT(cleanup, "none", DIRA, "none", MS_PRIVATE, NULL);
93 tst_brkm(TBROK | TERRNO, cleanup, "clone failed");
97 SAFE_MOUNT(cleanup, DIRB, DIRA, "none", MS_BIND, NULL);
99 TST_SAFE_CHECKPOINT_WAKE_AND_WAIT(cleanup, 0);
101 SAFE_UMOUNT(cleanup, DIRA);
103 TST_SAFE_CHECKPOINT_WAKE_AND_WAIT(cleanup, 0);
110 TST_SAFE_CHECKPOINT_WAKE(cleanup, 0)
    [all...]
  /external/ltp/testcases/kernel/syscalls/dup2/
dup203.c 55 void cleanup(void);
85 tst_brkm(TBROK, cleanup, "cannot create first file");
87 tst_brkm(TBROK, cleanup, "filename0: write(2) failed");
90 tst_brkm(TBROK, cleanup, "Cannot create second file");
92 tst_brkm(TBROK, cleanup, "filename1: write(2) failed");
94 SAFE_CLOSE(cleanup, fd0);
96 tst_brkm(TBROK, cleanup, "open(2) on filename0 failed");
98 SAFE_CLOSE(cleanup, fd1);
100 tst_brkm(TBROK, cleanup, "open(2) on filename1 failed");
114 tst_brkm(TBROK, cleanup, "read(2) failed")
205 void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/fchmod/
fchmod06.c 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
156 static void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/mkdirat/
mkdirat02.c 36 static void cleanup(void);
80 cleanup();
91 tst_sig(NOFORK, DEF_HANDLER, cleanup);
98 device = tst_acquire_device(cleanup);
101 tst_brkm(TCONF, cleanup, "Failed to acquire device");
103 SAFE_MKDIR(cleanup, "test_dir", DIR_MODE);
104 dir_fd = SAFE_OPEN(cleanup, "test_dir", O_DIRECTORY);
106 SAFE_MKDIR(cleanup, "test_eloop", DIR_MODE);
107 SAFE_SYMLINK(cleanup, "../test_eloop", "test_eloop/test_eloop");
109 SAFE_MKDIR(cleanup, "test_dir/test_eloop", DIR_MODE)
150 static void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/rmdir/
rmdir02.c 97 static void cleanup(void);
117 cleanup();
128 tst_sig(NOFORK, DEF_HANDLER, cleanup);
135 device = tst_acquire_device(cleanup);
138 tst_brkm(TCONF, cleanup, "Failed to acquire device");
140 tst_mkfs(cleanup, device, fs_type, NULL, NULL);
141 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE);
142 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL);
143 SAFE_MKDIR(cleanup, TESTDIR5, DIR_MODE);
144 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_REMOUNT | MS_RDONLY
191 static void cleanup(void) function
    [all...]
  /external/ltp/testcases/kernel/syscalls/unlink/
unlink08.c 106 * Cleanup:
123 void cleanup(void);
231 cleanup();
243 tst_sig(NOFORK, DEF_HANDLER, cleanup);
262 * cleanup() - performs all ONE TIME cleanup for this test at
265 void cleanup(void) function
282 SAFE_MKDIR(cleanup, "unwrite_dir", 0777);
285 tst_brkm(TBROK, cleanup,
291 SAFE_CHMOD(cleanup, "unwrite_dir", 0555)
    [all...]
  /external/ltp/testcases/kernel/syscalls/chroot/
chroot01.c 67 void cleanup(void);
90 cleanup();
103 tst_brkm(TBROK | TERRNO, cleanup,
106 SAFE_SETEUID(cleanup, ltpuser->pw_uid);
108 tst_sig(NOFORK, DEF_HANDLER, cleanup);
113 void cleanup(void) function
  /external/ltp/testcases/kernel/syscalls/close/
close08.c 106 * Cleanup:
121 void cleanup();
142 tst_brkm(TBROK | TTERRNO, cleanup,
154 SAFE_UNLINK(cleanup, fname);
157 cleanup();
164 tst_sig(NOFORK, DEF_HANDLER, cleanup);
173 void cleanup(void) function

Completed in 300 milliseconds

1 23 4 5 6 7 8 91011>>