Home
last modified time | relevance | path

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

123

/external/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 …]
/external/python/cpython2/Lib/test/
Dfork_wait.py49 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)
Dtest_wait4.py16 def wait_impl(self, cpid): argument
25 spid, status, rusage = os.wait4(cpid, option)
26 if spid == cpid:
29 self.assertEqual(spid, cpid)
Dtest_fork1.py19 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/
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()
/external/linux-kselftest/tools/testing/selftests/safesetid/
Dsafesetid-test.c176 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/
Dfork_wait.py46 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)
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)
/external/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()
/external/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()
/external/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()
/external/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()
/external/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()
/external/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 …]
/external/ltp/testcases/kernel/syscalls/epoll_pwait/
Depoll_pwait01.c155 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/
Dcommon_j_h.c121 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/
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 …]
/external/deqp-deps/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 …]
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c143 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/
Dfork11.c54 int i, pid, cpid, status; in main() local
71 cpid = wait(&status); in main()
72 if (cpid != pid) in main()

123