Home
last modified time | relevance | path

Searched refs:ppid (Results 26 - 44 of 44) sorted by relevance

12

/third_party/ltp/testcases/kernel/containers/pidns/
H A Dpidns04.c21 pid_t ppid = getppid(); in child_func() local
24 TST_EXP_EQ_LI(ppid, 0); in child_func()
/third_party/libuv/test/
H A Dtest-platform-output.c33 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 Dtest_assoc_abort.c79 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 Dtest_assoc_shutdown.c78 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 Dtest_sockopt.c83 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 Dstarvation.c76 pid_t ppid = getppid(); in child() local
81 SAFE_KILL(ppid, SIGUSR1); in child()
/third_party/ltp/testcases/kernel/syscalls/prctl/
H A Dprctl03.c64 pid_t ppid = getpid(); in verify_prctl() local
89 if (getppid() != ppid) { in verify_prctl()
/third_party/ltp/utils/sctp/lib/
H A Dsendmsg.c33 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 Did.rs59 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 Dprocess.rs14 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 DProcessApiTest.cpp268 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 Dmove_pages12.c118 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 Dlinux-core-note.c161 FIELD (identity, PID_T, ppid, 'd'),
196 FIELD (identity, PID_T, ppid, 'd'),
/third_party/ltp/utils/sctp/testlib/
H A Dsctputil.h305 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 Djobs.c98 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 Dsctp.h846 socklen_t tolen, uint32_t ppid, uint32_t flags,
/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs209 let ppid: ::libc::pid_t = getppid().into(); in test_getpid()
211 assert!(ppid > 0); in test_getpid()
/third_party/libinput/test/
H A Dlitest.c4753 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 Dmod.rs5688 pub fn proc_listchildpids(ppid: ::pid_t, buffer: *mut ::c_void, buffersize: ::c_int) in proc_listchildpids()

Completed in 30 milliseconds

12