Home
last modified time | relevance | path

Searched refs:cpid (Results 1 – 25 of 46) sorted by relevance

12

/third_party/ltp/testcases/kernel/io/direct_io/
Ddiotest_routines.c170 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/
Dclone.c37 int cpid = -1; in clone_0100() local
38cpid = 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/
Dpause03.c32 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()
Dpause02.c35 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/
Dfork_wait.py47 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)
Dtest_wait4.py17 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/
Dtst_sig_proc.c16 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/
Dpidns16.c132 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()
Dpidns12.c123 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()
Dpidns01.c72 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()
Dpidns06.c62 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()
Dpidns04.c77 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()
Dpidns20.c158 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/
Dexit_group01.c37 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/
Dltp-pan.c116 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/
Dmemcg_test_3.c42 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/
Dnanosleep02.c79 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/
Dhlsl.hull.5.tesc.out53 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 …]
Dhlsl.hull.ctrlpt-1.tesc.out10 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/
Dmove_pages12.c154 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()
Dmove_pages03.c130 pid_t cpid; in main() local
153 cpid = fork(); in main()
154 if (cpid == -1) { in main()
157 } else if (cpid == 0) { in main()
Dmove_pages11.c131 pid_t cpid; in main() local
154 cpid = fork(); in main()
155 if (cpid == -1) { in main()
159 } else if (cpid == 0) { in main()
Dmove_pages05.c131 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/
Dfork11.c54 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/
Duserns_helper.h43 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()

12