Home
last modified time | relevance | path

Searched refs:pid1 (Results 1 – 25 of 32) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/kcmp/
Dkcmp_test.c22 static long sys_kcmp(int pid1, int pid2, int type, int fd1, int fd2) in sys_kcmp() argument
24 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in sys_kcmp()
30 int pid1, pid2; in main() local
35 pid1 = getpid(); in main()
62 pid1, pid2, in main()
63 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main()
64 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main()
65 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0), in main()
66 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0), in main()
67 sys_kcmp(pid1, pid2, KCMP_SIGHAND, 0, 0), in main()
[all …]
/external/ltp/testcases/kernel/syscalls/kcmp/
Dkcmp02.c41 static int pid1; variable
50 int *pid1; member
57 {&pid1, &pid_unused, KCMP_FILE, &fd1, &fd2, ESRCH},
58 {&pid1, &pid1, KCMP_TYPES + 1, &fd1, &fd2, EINVAL},
59 {&pid1, &pid1, -1, &fd1, &fd2, EINVAL},
60 {&pid1, &pid1, INT_MIN, &fd1, &fd2, EINVAL},
61 {&pid1, &pid1, INT_MAX, &fd1, &fd2, EINVAL},
62 {&pid1, &pid1, KCMP_FILE, &fd1, &fd_fake, EBADF}
67 pid1 = getpid(); in setup()
87 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in verify_kcmp()
Dkcmp01.c39 static int pid1; variable
43 int *pid1; member
50 {&pid1, &pid1, KCMP_FILE, &fd1, &fd1, 0},
52 {&pid1, &pid2, KCMP_FILE, &fd1, &fd1, 0},
53 {&pid1, &pid2, KCMP_FILE, &fd1, &fd2, 0},
54 {&pid1, &pid2, KCMP_FILE, &fd1, &fd3, 1},
81 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in do_child()
106 pid1 = getpid(); in verify_kcmp()
Dkcmp03.c41 static int pid1; variable
69 TEST(kcmp(pid1, pid2, *(int *)arg, 0, 0)); in do_child()
89 pid1 = getpid(); in verify_kcmp()
/external/ltp/testcases/kernel/syscalls/unshare/
Dunshare01.c157 pid_t pid1; in main() local
169 pid1 = fork(); //call to fork() in main()
170 if (pid1 == -1) { in main()
173 } else if (pid1 == 0) { in main()
207 pid1 = fork(); in main()
208 if (pid1 == -1) { in main()
211 } else if (pid1 == 0) { in main()
245 pid1 = fork(); in main()
246 if (pid1 == -1) { in main()
249 } else if (pid1 == 0) { in main()
Dunshare02.c122 pid_t pid1; in main() local
134 TEST(pid1 = fork()); //call to fork() in main()
175 TEST(pid1 = fork()); //call to fork() in main()
176 if (pid1 == -1) { in main()
/external/ltp/testcases/kernel/syscalls/fork/
Dfork03.c57 int pid1, pid2, status; in main() local
67 pid1 = fork(); in main()
68 if (pid1 == -1) in main()
71 if (pid1 == 0) { in main()
83 if (pid1 != 0) in main()
89 "fork : %d", pid1); in main()
92 if (pid1 != pid2) { in main()
94 pid1, pid2); in main()
Dfork02.c57 int pid1, pid2, status; in main() local
68 pid1 = fork(); in main()
69 if (pid1 == -1) in main()
72 if (pid1 == 0) { in main()
80 if (pid1 == pid2) in main()
Dfork08.c58 int status, count, forks, pid1; in main() local
90 pid1 = fork(); in main()
91 if (pid1 != 0) { in main()
94 if ((pid1 != (-1)) && (forks < 2)) in main()
96 else if (pid1 < 0) in main()
Dfork07.c73 int status, forks, pid1; in main() local
115 pid1 = fork(); in main()
116 if (pid1 == 0) { in main()
141 } else if (pid1 == -1) in main()
Dfork12.c57 int forks, pid1, fork_errno, waitstatus; in main() local
70 while ((pid1 = fork()) != -1) { in main()
71 if (pid1 == 0) { /* child */ in main()
/external/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_test.sh193 pid1=$!
198 /bin/kill -SIGUSR1 $pid1 $pid2
199 wait $pid1
319 pid1=$!
324 /bin/kill -SIGUSR1 $pid1
326 wait $pid1
474 pid1=$!
479 /bin/kill -SIGUSR1 $pid1 $pid2
480 wait $pid1
501 pid1=$!
[all …]
/external/ltp/testcases/kernel/controllers/memcg/regression/
Dmemcg_regression_test.sh128 pid1=$!
132 echo $pid1 > memcg/0/tasks
135 /bin/kill -SIGUSR1 $pid1
151 kill -9 $pid1 $pid2 > /dev/null 2>&1
152 wait $pid1 $pid2
166 kill -9 $pid1 $pid2 > /dev/null 2>&1
167 wait $pid1 $pid2 > /dev/null 2>&1
/external/ltp/testcases/kernel/syscalls/kill/
Dkill05.c144 pid_t pid1; in do_master_child() local
156 pid1 = FORK_OR_VFORK(); in do_master_child()
158 if (pid1 == -1) in do_master_child()
161 if (pid1 == 0) { in do_master_child()
186 TEST(kill(pid1, TEST_SIG)); in do_master_child()
191 if (waitpid(pid1, &status, 0) == -1) { in do_master_child()
Dkill08.c77 pid_t pid1, pid2; in main() local
98 pid1 = FORK_OR_VFORK(); in main()
99 if (pid1 < 0) { in main()
101 } else if (pid1 == 0) { in main()
124 waitpid(pid1, &status, 0); in main()
Dkill06.c77 pid_t pid1, pid2; in main() local
98 pid1 = FORK_OR_VFORK(); in main()
99 if (pid1 < 0) { in main()
101 } else if (pid1 == 0) { in main()
127 waitpid(pid1, &status, 0); in main()
/external/ltp/testcases/kernel/fs/fs_inod/
Dfs_inod170 pid1=$!
180 wait $pid1
182 pid1=$!
186 wait $pid1
200 pid1=$!
/external/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir04.c101 pid_t pid, pid1; in main() local
155 if ((pid1 = FORK_OR_VFORK()) < 0) { in main()
159 if (pid1 == 0) { /* second child */ in main()
181 waitpid(pid1, &status, 0); in main()
/external/ltp/testcases/kernel/mem/shmt/
Dshmt04.c69 int pid, pid1, shmid; in main() local
120 while ((pid1 = wait(&status)) < 0 && (errno == EINTR)) ; in main()
121 if (pid1 != pid) { in main()
125 pid1); in main()
Dshmt06.c68 int pid, pid1, shmid; in main() local
119 while ((pid1 = wait(&status)) < 0 && (errno == EINTR)) ; in main()
120 if (pid1 != pid) { in main()
124 pid1); in main()
/external/ltp/testcases/kernel/syscalls/vhangup/
Dvhangup02.c62 pid_t pid, pid1; in main() local
81 pid1 = setsid(); in main()
82 if (pid1 < 0) { in main()
/external/ltp/testcases/kernel/syscalls/rename/
Drename09.c100 pid_t pid, pid1; in main() local
156 if ((pid1 = FORK_OR_VFORK()) == -1) { in main()
160 if (pid1 == 0) { /* second child */ in main()
212 waitpid(pid1, &status, 0); in main()
/external/strace/tests-mx32/
Dkcmp.c44 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument
50 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp()
53 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()
/external/strace/tests/
Dkcmp.c44 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument
50 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp()
53 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()
/external/strace/tests-m32/
Dkcmp.c44 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument
50 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp()
53 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()

12