Home
last modified time | relevance | path

Searched refs:pid1 (Results 1 - 23 of 23) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dgetprocpid.c32 pid_t pid1 = getprocpid(); in getprocpid_0100() local
33 EXPECT_EQ("getprocpid_0100", pid1 > 1, true); in getprocpid_0100()
35 EXPECT_EQ("getprocpid_0100", pid1, pid2); in getprocpid_0100()
36 EXPECT_EQ("getprocpid_0100", pid1, getpid()); in getprocpid_0100()
46 pid_t pid1 = getprocpid(); in getprocpid_0200() local
47 EXPECT_EQ("getprocpid_0200", pid1, getpid()); in getprocpid_0200()
86 pid_t pid1 = getprocpid(); in getprocpid_0300() local
87 EXPECT_EQ("getprocpid_0300", pid1, getpid()); in getprocpid_0300()
89 pid_t child = clone(child_func, NULL, CLONE_NEWPID | SIGCHLD, &pid1); in getprocpid_0300()
101 pid_t pid1 in pthread_func() local
119 pid_t pid1 = getproctid(); getproctid_0100() local
140 pid_t pid1 = getproctid(); getproctid_0200() local
181 pid_t pid1 = getproctid(); getproctid_0300() local
[all...]
/third_party/ltp/testcases/kernel/syscalls/kcmp/
H A Dkcmp02.c28 static int pid1; variable
37 int *pid1; member
44 {&pid1, &pid_unused, KCMP_FILE, &fd1, &fd2, ESRCH},
45 {&pid1, &pid1, KCMP_TYPES + 1, &fd1, &fd2, EINVAL},
46 {&pid1, &pid1, -1, &fd1, &fd2, EINVAL},
47 {&pid1, &pid1, INT_MIN, &fd1, &fd2, EINVAL},
48 {&pid1,
[all...]
H A Dkcmp01.c26 static int pid1; variable
30 int *pid1; member
37 {&pid1, &pid1, KCMP_FILE, &fd1, &fd1, 0},
39 {&pid1, &pid2, KCMP_FILE, &fd1, &fd1, 0},
40 {&pid1, &pid2, KCMP_FILE, &fd1, &fd2, 0},
41 {&pid1, &pid2, KCMP_FILE, &fd1, &fd3, 1},
68 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in do_child()
93 pid1 = getpid(); in verify_kcmp()
H A Dkcmp03.c28 static int pid1; variable
56 TEST(kcmp(pid1, pid2, *(int *)arg, 0, 0)); in do_child()
76 pid1 = getpid(); in verify_kcmp()
H A Dkcmp.h47 int kcmp(int pid1, int pid2, int type, int fd1, int fd2) in kcmp() argument
49 return tst_syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in kcmp()
/third_party/ltp/testcases/kernel/syscalls/fork/
H A Dfork03.c24 int pid1, pid2, status, i; in verify_fork() local
26 pid1 = SAFE_FORK(); in verify_fork()
27 if (!pid1) { in verify_fork()
37 exit(!!pid1); in verify_fork()
40 tst_res(TINFO, "process id in parent of child from fork: %d", pid1); in verify_fork()
43 if (pid1 != pid2) { in verify_fork()
44 tst_res(TFAIL, "pids don't match: %d vs %d", pid1, pid2); in verify_fork()
H A 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()
H A Dfork12.c58 int forks, pid1, fork_errno, waitstatus; in main() local
71 while ((pid1 = fork()) != -1) { in main()
72 if (pid1 == 0) { /* child */ in main()
/third_party/musl/libc-test/src/functionalext/unittest/
H A Dunit_test_assert_fail.c28 pid_t pid1; in main() local
32 pid1 = fork(); in main()
33 if (pid1 < 0) { in main()
37 } else if (pid1 == 0) { in main()
42 waitpid(pid1, &status, 0); in main()
H A Dunit_test_assert_fail_dialog.c112 pid_t pid1, pid2, pid3; in main() local
116 pid1 = fork(); in main()
117 if (pid1 < 0) { in main()
121 } else if (pid1 == 0) { in main()
152 waitpid(pid1, &status, 0); in main()
/third_party/ltp/testcases/kernel/syscalls/kill/
H A 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()
H A Dkill05.c46 pid_t pid1; in do_master_child() local
49 pid1 = SAFE_FORK(); in do_master_child()
50 if (pid1 == 0) { in do_master_child()
60 TEST(kill(pid1, SIGKILL)); in do_master_child()
63 SAFE_WAITPID(pid1, NULL, 0); in do_master_child()
H A Dkill02.c159 int pid1; /*Return value from 1st fork. Global so that it can be */ variable
234 if ((pid1 = FORK_OR_VFORK()) > 0) { in main()
240 if (kill(pid1, SIGKILL) == -1 in main()
255 if (kill(pid1, SIGKILL) == -1 && errno != ESRCH) { in main()
263 } else if (pid1 == 0) { in main()
817 if (kill(pid1, SIGUSR2) == -1 && errno != ESRCH) { in par_kill()
/third_party/ltp/testcases/kernel/controllers/memcg/regression/
H A Dmemcg_regression_test.sh144 pid1=$!
148 ROD echo $pid1 \> "$test_path"/tasks
150 # let pid1 'test_2' allocate memory
151 /bin/kill -SIGUSR1 $pid1
166 kill -9 $pid1 $pid2 > /dev/null 2>&1
167 wait $pid1 $pid2
181 kill -9 $pid1 $pid2 > /dev/null 2>&1
182 wait $pid1 $pid2 > /dev/null 2>&1
/third_party/ltp/testcases/kernel/fs/fs_inod/
H A Dfs_inod170 pid1=$!
180 wait $pid1
182 pid1=$!
186 wait $pid1
200 pid1=$!
/third_party/ltp/testcases/kernel/controllers/cgroup/
H A Dcgroup_regression_test.sh171 pid1=$!
176 kill -USR1 $pid1 $pid2
177 wait $pid1 2>/dev/null
230 local pid1=$!
235 kill -USR1 $pid1 $pid2
236 wait $pid1 2>/dev/null
257 local pid1=$!
262 kill -USR1 $pid1 $pid2
263 wait $pid1 2>/dev/null
/third_party/ltp/testcases/kernel/syscalls/vhangup/
H A Dvhangup02.c20 pid_t pid, pid1; in run() local
26 pid1 = setsid(); in run()
27 if (pid1 < 0) in run()
/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dpthread_cond_timedwait_sup.c56 pthread_t pid1, pid2; in pthread_cond_timedwait_0100() local
57 pthread_create(&pid1, NULL, threadfuncA, NULL); in pthread_cond_timedwait_0100()
59 pthread_join(pid1, NULL); in pthread_cond_timedwait_0100()
H A Dpthread_cond_wait.c23 pthread_t pid1; variable
52 pthread_create(&pid1, NULL, threadfunc1, NULL); in pthread_cond_wait_0100()
/third_party/ltp/testcases/kernel/mem/shmt/
H A 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()
123 "Error: wait_status = %d, pid1= %d", status, in main()
124 pid1); in main()
H A 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()
124 "Error: wait_status = %d, pid1= %d", status, in main()
125 pid1); in main()
/third_party/ltp/include/lapi/
H A Dkcmp.h34 static inline int kcmp(int pid1, int pid2, int type, int fd1, int fd2) in kcmp() argument
36 return tst_syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in kcmp()
/third_party/ltp/testcases/network/nfs/nfs_stress/
H A Dnfs03.sh55 pid1=$!
67 wait $pid1

Completed in 7 milliseconds