/third_party/ltp/testcases/kernel/containers/pidns/ |
H A D | pidns04.c | 21 pid_t ppid = getppid(); in child_func() local 24 TST_EXP_EQ_LI(ppid, 0); in child_func()
|
/third_party/libuv/test/ |
H A D | test-platform-output.c | 33 uv_pid_t ppid; in TEST_IMPL() local 188 ppid = uv_os_getppid(); in TEST_IMPL() 189 ASSERT_GT(ppid, 0); in TEST_IMPL() 190 printf("uv_os_getppid: %d\n", (int) ppid); in TEST_IMPL()
|
/third_party/ltp/utils/sctp/func_tests/ |
H A D | test_assoc_abort.c | 79 uint32_t ppid; in main() local 136 ppid = rand(); /* Choose an arbitrary value. */ in main() 138 sinfo->sinfo_ppid = ppid; in main() 180 MSG_EOR, stream, ppid); in main()
|
H A D | test_assoc_shutdown.c | 78 uint32_t ppid; in main() local 136 ppid = rand(); /* Choose an arbitrary value. */ in main() 138 sinfo->sinfo_ppid = ppid; in main() 180 MSG_EOR, stream, ppid); in main()
|
H A D | test_sockopt.c | 83 uint32_t ppid; in main() local 197 ppid = rand(); /* Choose an arbitrary value. */ in main() 199 sinfo->sinfo_ppid = ppid; in main() 236 MSG_EOR, stream, ppid); in main() 394 ppid = rand(); /* Choose an arbitrary value. */ in main() 396 sinfo->sinfo_ppid = ppid; in main()
|
/third_party/ltp/testcases/kernel/sched/cfs-scheduler/ |
H A D | starvation.c | 76 pid_t ppid = getppid(); in child() local 81 SAFE_KILL(ppid, SIGUSR1); in child()
|
/third_party/ltp/testcases/kernel/syscalls/prctl/ |
H A D | prctl03.c | 64 pid_t ppid = getpid(); in verify_prctl() local 89 if (getppid() != ppid) { in verify_prctl()
|
/third_party/ltp/utils/sctp/lib/ |
H A D | sendmsg.c | 33 socklen_t tolen, uint32_t ppid, uint32_t flags, in sctp_sendmsg() 61 sinfo->sinfo_ppid = ppid; in sctp_sendmsg() 32 sctp_sendmsg(int s, const void *msg, size_t len, struct sockaddr *to, socklen_t tolen, uint32_t ppid, uint32_t flags, uint16_t stream_no, uint32_t timetolive, uint32_t context) sctp_sendmsg() argument
|
/third_party/rust/crates/rustix/tests/process/ |
H A D | id.rs | 59 if let Some(ppid) = process::getppid() { in test_getppid() 60 assert_eq!(ppid.is_init(), libc::getppid() == 1); in test_getppid()
|
/third_party/rust/crates/rustix/examples/ |
H A D | process.rs | 14 if let Some(ppid) = getppid() { in main() 17 getpgid(Some(ppid)).unwrap().as_raw_nonzero() in main()
|
/test/xts/hats/kernel/syscalls/process/processid/ |
H A D | ProcessApiTest.cpp | 268 pid_t ppid = getppid(); in HWTEST_F() local 269 EXPECT_TRUE(ppid >= 0); in HWTEST_F()
|
/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
H A D | move_pages12.c | 118 pid_t ppid = getppid(); in do_child() local 136 TEST(numa_move_pages(ppid, test_pages, in do_child()
|
/third_party/elfutils/backends/ |
H A D | linux-core-note.c | 161 FIELD (identity, PID_T, ppid, 'd'), 196 FIELD (identity, PID_T, ppid, 'd'),
|
/third_party/ltp/utils/sctp/testlib/ |
H A D | sctputil.h | 305 uint32_t ppid, uint32_t flags, in test_sctp_sendmsg() 309 int error = sctp_sendmsg(s, msg, len, to, tolen, ppid, flags, stream_no, in test_sctp_sendmsg() 303 test_sctp_sendmsg(int s, const void *msg, size_t len, struct sockaddr *to, socklen_t tolen, uint32_t ppid, uint32_t flags, uint16_t stream_no, uint32_t timetolive, uint32_t context) test_sctp_sendmsg() argument
|
/third_party/mksh/ |
H A D | jobs.c | 98 pid_t ppid; /* pid of process that forked job */ member 293 if (j->ppid == procpid && in j_exit() 501 j->ppid = procpid; 732 if (j->ppid == procpid && j->state == PRUNNING) 743 if (j->ppid != procpid) { 927 if (j->ppid == procpid && j->state == PSTOPPED) 931 j->ppid == procpid && j->state == PRUNNING) 1349 if (j->ppid == procpid && !(j->flags & JF_STARTED)) { 1866 if ((j->flags & JF_ZOMBIE) && j->ppid == procpid)
|
/third_party/ltp/utils/sctp/include/netinet/ |
H A D | sctp.h | 846 socklen_t tolen, uint32_t ppid, uint32_t flags,
|
/third_party/rust/crates/nix/test/ |
H A D | test_unistd.rs | 209 let ppid: ::libc::pid_t = getppid().into(); in test_getpid() 211 assert!(ppid > 0); in test_getpid()
|
/third_party/libinput/test/ |
H A D | litest.c | 4753 int ppid = getppid(); in is_debugger_attached() local 4754 if (ptrace(PTRACE_ATTACH, ppid, NULL, 0) == 0) { in is_debugger_attached() 4755 waitpid(ppid, NULL, 0); in is_debugger_attached() 4756 ptrace(PTRACE_CONT, ppid, NULL, 0); in is_debugger_attached() 4757 ptrace(PTRACE_DETACH, ppid, NULL, 0); in is_debugger_attached()
|
/third_party/rust/crates/libc/src/unix/bsd/apple/ |
H A D | mod.rs | 5688 pub fn proc_listchildpids(ppid: ::pid_t, buffer: *mut ::c_void, buffersize: ::c_int) in proc_listchildpids()
|