/third_party/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 …]
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
D | clone.c | 37 int cpid = -1; in clone_0100() local 38 …cpid = clone((int (*)(void *))test, (char *)stack + STACK_SIZE, CLONE_VM | CLONE_FS | CLONE_FILES … in clone_0100() 40 EXPECT_NE("clone_0100", cpid, -1); in clone_0100() 51 int cpid = -1; in clone_0200() local 52 cpid = clone((int (*)(void *))test, (char *)stack + STACK_SIZE, 0, NULL); in clone_0200() 54 EXPECT_NE("clone_0200", cpid, -1); in clone_0200() 64 int cpid = -1; in clone_0300() local 65 cpid = clone((int (*)(void *))test, NULL, 0, NULL); in clone_0300() 67 EXPECT_NE("clone_0300", cpid, -1); in clone_0300()
|
/third_party/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()
|
/third_party/python/Lib/test/ |
D | fork_wait.py | 47 def wait_impl(self, cpid, *, exitcode): argument 48 support.wait_process(cpid, exitcode=exitcode) 69 cpid = os.fork1() 71 cpid = os.fork() 73 if cpid == 0: 83 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)
|
/third_party/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()
|
/third_party/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()
|
D | pidns20.c | 158 pid_t cpid; in main() local 167 cpid = ltp_clone_quick(CLONE_NEWPID | SIGCHLD, child_fn, NULL); in main() 168 if (cpid == -1) { in main() 183 SAFE_KILL(NULL, cpid, SIGUSR1); in main()
|
/third_party/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()
|
/third_party/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 …]
|
/third_party/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()
|
/third_party/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()
|
/third_party/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 …]
|
D | hlsl.hull.ctrlpt-1.tesc.out | 10 0:27 'cpid' ( in uint) 19 0:29 'cpid' ( in uint) 63 0:? 'cpid' ( temp uint) 64 0:? 'cpid' ( in uint InvocationID) 69 0:? 'cpid' ( in uint InvocationID) 73 0:? 'cpid' ( temp uint) 80 0:? 'cpid' ( in uint InvocationID) 232 0:? 'cpid' ( in uint InvocationID) 248 0:27 'cpid' ( in uint) 257 0:29 'cpid' ( in uint) [all …]
|
/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 154 pid_t cpid = -1; in do_test() local 163 cpid = SAFE_FORK(); in do_test() 164 if (cpid == 0) in do_test() 190 SAFE_KILL(cpid, SIGKILL); in do_test() 191 SAFE_WAITPID(cpid, &status, 0); in do_test() 205 SAFE_KILL(cpid, SIGKILL); in do_test() 206 SAFE_WAITPID(cpid, &status, 0); in do_test()
|
D | move_pages03.c | 130 pid_t cpid; in main() local 153 cpid = fork(); in main() 154 if (cpid == -1) { in main() 157 } else if (cpid == 0) { in main()
|
D | move_pages11.c | 131 pid_t cpid; in main() local 154 cpid = fork(); in main() 155 if (cpid == -1) { in main() 159 } else if (cpid == 0) { in main()
|
D | move_pages05.c | 131 pid_t cpid; in main() local 160 cpid = fork(); in main() 161 if (cpid == -1) { in main() 164 } else if (cpid == 0) { in main()
|
/third_party/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()
|
/third_party/ltp/testcases/kernel/containers/userns/ |
D | userns_helper.h | 43 LTP_ATTRIBUTE_UNUSED static int updatemap(int cpid, bool type, int idnum, in updatemap() argument 51 sprintf(path, "/proc/%d/uid_map", cpid); in updatemap() 53 sprintf(path, "/proc/%d/gid_map", cpid); in updatemap()
|