Home
last modified time | relevance | path

Searched refs:ppid (Results 1 - 25 of 43) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/getppid/
H A Dgetppid01.c17 pid_t ppid, pid_max; in verify_getppid() local
21 ppid = getppid(); in verify_getppid()
22 if (ppid > pid_max) in verify_getppid()
23 tst_res(TFAIL, "getppid() returned %d, out of range!", ppid); in verify_getppid()
25 tst_res(TPASS, "getppid() returned %d", ppid); in verify_getppid()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
H A D1-1.c35 int ret, ppid; in main() local
56 ppid = getpid(); in main()
58 if (pid != ppid) { in main()
59 printf("Test FAILED: Pids are different %i != %i\n", pid, ppid); in main()
/third_party/ltp/testcases/kernel/controllers/cgroup_fj/
H A Dcgroup_fj_stress.sh65 local ppid="$3"
72 if [ -z "$ppid" ]; then
77 pid="$ppid"
88 attach_task "$new_path" $((cur_depth+1)) "$ppid"
91 if [ -n "$ppid" ]; then
/third_party/ltp/utils/sctp/func_tests/
H A Dtest_inaddr_any.c84 uint32_t ppid; in main() local
168 ppid = rand(); /* Choose an arbitrary value. */ in main()
170 sinfo->sinfo_ppid = ppid; in main()
202 MSG_EOR, stream, ppid); in main()
216 ppid++; in main()
218 sinfo->sinfo_ppid = ppid; in main()
232 MSG_EOR, stream, ppid); in main()
237 MSG_EOR, stream, ppid); in main()
H A Dtest_sctp_sendrecvmsg.c82 uint32_t ppid; in main() local
170 ppid = rand(); in main()
174 ppid, 0, stream, 0, 0); in main()
224 strlen(message) + 1, MSG_EOR, stream, ppid); in main()
244 ppid++; in main()
248 ppid, 0, stream, 0, 0); in main()
253 ppid, 0, stream, 2000, 0); in main()
260 ppid, 0, stream, 0, 0); in main()
269 ppid, 0, stream, 2000, 0); in main()
295 strlen(nottlmsg) + 1, MSG_EOR, stream, ppid); in main()
[all...]
H A Dtest_timetolive.c106 uint32_t ppid; in main() local
210 ppid = rand(); /* Choose an arbitrary value. */ in main()
212 sinfo->sinfo_ppid = ppid; in main()
259 MSG_EOR, stream, ppid); in main()
284 ppid++; in main()
286 sinfo->sinfo_ppid = ppid; in main()
300 sinfo->sinfo_ppid = ppid; in main()
313 sinfo->sinfo_ppid = ppid; in main()
326 sinfo->sinfo_ppid = ppid; in main()
354 MSG_EOR, stream, ppid); in main()
[all...]
H A Dtest_fragments.c91 uint32_t ppid; in main() local
160 ppid = rand(); /* Choose an arbitrary value. */ in main()
162 sinfo->sinfo_ppid = ppid; in main()
203 test_check_msg_data(&inmessage, error, msg_len, MSG_EOR, stream, ppid); in main()
265 MSG_EOR, stream, ppid); in main()
271 stream, ppid); in main()
279 MSG_EOR, stream, ppid); in main()
H A Dtest_peeloff.c77 uint32_t ppid; in main() local
149 ppid = rand(); /* Choose an arbitrary value. */ in main()
151 sinfo->sinfo_ppid = ppid; in main()
196 MSG_EOR, stream, ppid); in main()
237 MSG_EOR, stream, ppid); in main()
258 MSG_EOR, stream, ppid); in main()
277 MSG_EOR, stream, ppid); in main()
H A Dtest_1_to_1_events.c69 uint32_t ppid; in main() local
128 ppid = rand(); /* Choose an arbitrary value. */ in main()
131 sinfo->sinfo_ppid = ppid; in main()
177 MSG_EOR, stream, ppid); in main()
H A Dtest_basic.c84 uint32_t ppid; in main() local
185 ppid = rand(); /* Choose an arbitrary value. */ in main()
187 sinfo->sinfo_ppid = ppid; in main()
257 MSG_EOR, stream, ppid); in main()
300 ppid++; in main()
302 sinfo->sinfo_ppid = ppid; in main()
341 MSG_EOR, stream, ppid); in main()
346 MSG_EOR, stream, ppid); in main()
/third_party/ltp/testcases/kernel/containers/pidns/
H A Dpidns20.c33 pid_t cpid, ppid; in child_func() local
36 ppid = getppid(); in child_func()
38 if (cpid != 1 || ppid != 0) { in child_func()
39 tst_res(TFAIL, "Got unexpected result of cpid=%d ppid=%d", cpid, ppid); in child_func()
H A Dpidns01.c22 pid_t cpid, ppid; in child_func() local
25 ppid = getppid(); in child_func()
28 TST_EXP_EQ_LI(ppid, 0); in child_func()
H A Dpidns16.c31 pid_t cpid, ppid; in child_func() local
34 ppid = getppid(); in child_func()
37 TST_EXP_EQ_LI(ppid, 0); in child_func()
H A Dpidns17.c25 pid_t cpid, ppid; in child_func() local
28 ppid = getppid(); in child_func()
31 TST_EXP_EQ_LI(ppid, 0); in child_func()
H A Dpidns13.c54 pid_t pid, ppid; in child_fn() local
58 ppid = getppid(); in child_fn()
59 if (pid != CHILD_PID || ppid != PARENT_PID) in child_fn()
H A Dpidns30.c45 pid_t cpid, ppid; in child_func() local
51 ppid = getppid(); in child_func()
54 TST_EXP_EQ_LI(ppid, 0); in child_func()
H A Dpidns31.c45 pid_t cpid, ppid; in child_func() local
49 ppid = getppid(); in child_func()
52 TST_EXP_EQ_LI(ppid, 0); in child_func()
H A Dpidns05.c29 pid_t cpid, ppid; in child_func() local
32 ppid = getppid(); in child_func()
35 TST_EXP_EQ_LI(ppid, 0); in child_func()
H A Dpidns06.c20 pid_t ppid = getppid(); in child_func() local
23 TST_EXP_EQ_LI(ppid, 0); in child_func()
H A Dpidns10.c20 pid_t ppid = getppid(); in child_func() local
23 TST_EXP_EQ_LI(ppid, 0); in child_func()
/third_party/libevdev/test/
H A Dtest-main.c37 int ppid = getppid(); in is_debugger_attached() local
38 if (ptrace(PTRACE_ATTACH, ppid, NULL, NULL) == 0) { in is_debugger_attached()
39 waitpid(ppid, NULL, 0); in is_debugger_attached()
41 ptrace(PTRACE_DETACH, ppid, NULL, NULL); in is_debugger_attached()
/third_party/ltp/testcases/kernel/syscalls/setpgid/
H A Dsetpgid02.c24 static pid_t pgid, pid, ppid, inval_pgid; variable
33 {&ppid, &pgid, ESRCH},
40 ppid = getppid(); in setup()
/third_party/node/deps/openssl/openssl/
H A De_os.h359 int ppid; in nssgetpid() member
360 } ppid = { 0 }; in nssgetpid() local
362 PROCESSHANDLE_DECOMPOSE_(phandle, &ppid.cpu_pin.cpu, &ppid.cpu_pin.pin); in nssgetpid()
363 return ppid.ppid; in nssgetpid()
/third_party/openssl/
H A De_os.h359 int ppid; in nssgetpid() member
360 } ppid = { 0 }; in nssgetpid() local
362 PROCESSHANDLE_DECOMPOSE_(phandle, &ppid.cpu_pin.cpu, &ppid.cpu_pin.pin); in nssgetpid()
363 return ppid.ppid; in nssgetpid()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dgetppid.c27 pid_t ppid = getpid(); in getppid_0100() local
31 EXPECT_EQ("getppid_0100", child_ppid, ppid); in getppid_0100()

Completed in 8 milliseconds

12