/external/ltp/testcases/kernel/io/direct_io/ |
D | diotest_routines.c | 170 int i, cpid; in forkchldrn() local 178 if ((cpid = fork()) < 0) { in forkchldrn() 185 if (cpid == 0) in forkchldrn() 188 *(*pidlst + i) = cpid; in forkchldrn() 199 int i, cpid, errflag = 0; in killchldrn() local 202 cpid = *(*pidlst + i); in killchldrn() 203 if (cpid > 0) { in killchldrn() 204 if (kill(cpid, sig) < 0) { in killchldrn() 207 cpid, strerror(errno)); in killchldrn() 220 int i, cpid, ret, errflag = 0; in waitchldrn() local [all …]
|
/external/python/cpython2/Lib/test/ |
D | fork_wait.py | 49 def wait_impl(self, cpid): argument 53 spid, status = os.waitpid(cpid, os.WNOHANG) 54 if spid == cpid: 58 self.assertEqual(spid, cpid) 76 cpid = os.fork1() 78 cpid = os.fork() 80 if cpid == 0: 90 self.wait_impl(cpid)
|
D | test_wait4.py | 16 def wait_impl(self, cpid): argument 25 spid, status, rusage = os.wait4(cpid, option) 26 if spid == cpid: 29 self.assertEqual(spid, cpid)
|
D | test_fork1.py | 19 def wait_impl(self, cpid): argument 23 spid, status = os.waitpid(cpid, os.WNOHANG) 24 if spid == cpid: 28 self.assertEqual(spid, cpid)
|
/external/ltp/testcases/kernel/syscalls/pause/ |
D | pause03.c | 32 static pid_t cpid; variable 56 if ((cpid = FORK_OR_VFORK()) == -1) in main() 59 if (cpid == 0) { in main() 68 TST_PROCESS_STATE_WAIT(cleanup, cpid, 'S'); in main() 70 kill(cpid, SIGKILL); in main() 112 kill(cpid, SIGKILL); in cleanup()
|
D | pause02.c | 35 static pid_t cpid; variable 57 cpid = FORK_OR_VFORK(); in main() 58 switch (cpid) { in main() 77 TST_PROCESS_STATE_WAIT(cleanup, cpid, 'S'); in main() 83 kill(cpid, SIGINT); in main()
|
/external/linux-kselftest/tools/testing/selftests/safesetid/ |
D | safesetid-test.c | 176 pid_t cpid; in test_userns() local 182 cpid = syscall(SYS_clone, clone_flags, NULL); in test_userns() 183 if (cpid == -1) { in test_userns() 188 if (cpid == 0) { /* Code executed by child */ in test_userns() 193 if(snprintf(map_file_name, sz, "/proc/%d/uid_map", cpid) < 0) { in test_userns() 207 pid_t cpid, w; in test_setuid() local 210 cpid = fork(); in test_setuid() 211 if (cpid == -1) { in test_setuid() 215 if (cpid == 0) { /* Code executed by child */ in test_setuid() 224 w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED); in test_setuid()
|
/external/python/cpython3/Lib/test/ |
D | fork_wait.py | 46 def wait_impl(self, cpid, *, exitcode): argument 47 support.wait_process(cpid, exitcode=exitcode) 68 cpid = os.fork1() 70 cpid = os.fork() 72 if cpid == 0: 82 self.wait_impl(cpid, exitcode=0)
|
D | test_wait4.py | 17 def wait_impl(self, cpid, *, exitcode): argument 27 spid, status, rusage = os.wait4(cpid, option) 28 if spid == cpid: 31 self.assertEqual(spid, cpid)
|
/external/ltp/lib/ |
D | tst_sig_proc.c | 16 pid_t pid, cpid; in create_sig_proc() local 19 cpid = SAFE_FORK(); in create_sig_proc() 21 if (cpid == 0) { in create_sig_proc() 30 return cpid; in create_sig_proc()
|
/external/ltp/testcases/kernel/containers/pidns/ |
D | pidns16.c | 132 pid_t cpid; in main() local 136 cpid = ltp_clone_quick(CLONE_NEWPID | SIGCHLD, child_fn, NULL); in main() 138 if (cpid < 0) { in main() 143 if (kill(cpid, SIGUSR1) != 0) { in main() 147 if (waitpid(cpid, &status, 0) < 0) in main()
|
D | pidns12.c | 123 pid_t pid, cpid; in main() local 136 cpid = ltp_clone_quick(CLONE_NEWPID | SIGCHLD, child_fn, NULL); in main() 137 if (cpid < 0) { in main() 151 if (kill(cpid, SIGUSR1) == -1) { in main() 155 if (waitpid(cpid, &status, 0) < 0) in main()
|
D | pidns01.c | 72 pid_t cpid, ppid; in child_fn1() local 73 cpid = getpid(); in child_fn1() 77 if (cpid == CHILD_PID && ppid == PARENT_PID) { in child_fn1() 82 cpid, ppid); in child_fn1()
|
D | pidns06.c | 62 int cpid, ppid, *par_pid; in kill_pid_in_childfun() local 64 cpid = getpid(); in kill_pid_in_childfun() 69 if (cpid != CINIT_PID || ppid != PARENT_PID) { in kill_pid_in_childfun() 71 "pid=%d ppid=%d\n", cpid, ppid); in kill_pid_in_childfun()
|
D | pidns04.c | 77 pid_t cpid, ppid; in child_fn1() local 78 cpid = getpid(); in child_fn1() 85 if ((cpid == CHILD_PID) && (ppid == PARENT_PID)) { in child_fn1() 96 cpid, ppid); in child_fn1()
|
/external/ltp/testcases/kernel/syscalls/exit_group/ |
D | exit_group01.c | 37 pid_t cpid, w; in verify_exit_group() local 40 cpid = fork(); in verify_exit_group() 41 if (cpid == -1) in verify_exit_group() 44 if (cpid == 0) { in verify_exit_group()
|
/external/ltp/testcases/kernel/controllers/memcg/regression/ |
D | memcg_test_3.c | 42 pid_t cpid; in do_test() local 46 cpid = SAFE_FORK(); in do_test() 47 if (cpid == 0) in do_test() 56 SAFE_KILL(cpid, SIGKILL); in do_test()
|
/external/ltp/testcases/kernel/syscalls/nanosleep/ |
D | nanosleep02.c | 79 pid_t cpid; in run() local 81 cpid = SAFE_FORK(); in run() 82 if (cpid == 0) { in run() 87 SAFE_KILL(cpid, SIGINT); in run()
|
/external/ltp/pan/ |
D | ltp-pan.c | 116 static void mark_orphan(struct orphan_pgrp *orphans, pid_t cpid); 190 pid_t cpid; in main() local 547 cpid = in main() 550 if (cpid != -1) in main() 552 if ((cpid != -1 || sequential) && starts > 0) in main() 719 pid_t cpid; in check_pids() local 737 cpid = wait(&stat_loc); in check_pids() 744 if (cpid < 0) { in check_pids() 754 } else if (cpid > 0) { in check_pids() 762 cpid, w); in check_pids() [all …]
|
/external/ltp/testcases/kernel/syscalls/epoll_pwait/ |
D | epoll_pwait01.c | 155 pid_t cpid; in do_test() local 157 cpid = tst_fork(); in do_test() 158 if (cpid < 0) in do_test() 161 if (cpid == 0) in do_test() 171 tst_record_childstatus(cleanup, cpid); in do_test()
|
/external/ltp/testcases/kernel/syscalls/utils/ |
D | common_j_h.c | 121 pid_t pid, cpid; in create_sig_proc() local 124 WITH_SIGNALS_BLOCKED(if ((cpid = fork()) == 0) { in create_sig_proc() 128 switch (cpid) { in create_sig_proc() 139 return cpid; in create_sig_proc() 141 return cpid; in create_sig_proc()
|
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/ |
D | hlsl.hull.5.tesc.out | 53 0:39 'cpid' ( in uint) 79 0:? 'cpid' ( temp uint) 80 0:? 'cpid' ( in uint InvocationID) 85 0:? 'cpid' ( in uint InvocationID) 88 0:? 'cpid' ( temp uint) 93 0:? 'cpid' ( in uint InvocationID) 146 0:39 'cpid' ( in uint) 172 0:? 'cpid' ( temp uint) 173 0:? 'cpid' ( in uint InvocationID) 178 0:? 'cpid' ( in uint InvocationID) [all …]
|
/external/deqp-deps/glslang/Test/baseResults/ |
D | hlsl.hull.5.tesc.out | 53 0:39 'cpid' ( in uint) 79 0:? 'cpid' ( temp uint) 80 0:? 'cpid' ( in uint InvocationID) 85 0:? 'cpid' ( in uint InvocationID) 88 0:? 'cpid' ( temp uint) 93 0:? 'cpid' ( in uint InvocationID) 146 0:39 'cpid' ( in uint) 172 0:? 'cpid' ( temp uint) 173 0:? 'cpid' ( in uint InvocationID) 178 0:? 'cpid' ( in uint InvocationID) [all …]
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 143 pid_t cpid = -1; in do_test() local 152 cpid = SAFE_FORK(); in do_test() 153 if (cpid == 0) in do_test() 179 SAFE_KILL(cpid, SIGKILL); in do_test() 180 SAFE_WAITPID(cpid, &status, 0); in do_test() 194 SAFE_KILL(cpid, SIGKILL); in do_test() 195 SAFE_WAITPID(cpid, &status, 0); in do_test()
|
/external/ltp/testcases/kernel/syscalls/fork/ |
D | fork11.c | 54 int i, pid, cpid, status; in main() local 71 cpid = wait(&status); in main() 72 if (cpid != pid) in main()
|