/third_party/rust/crates/rustix/tests/process/ |
H A D | id.rs | 53 assert_eq!(process::getppid(), process::getppid()); in test_getppid() 56 process::Pid::as_raw(process::getppid()) as libc::pid_t, in test_getppid() 57 libc::getppid() in test_getppid() 59 if let Some(ppid) = process::getppid() { in test_getppid() 60 assert_eq!(ppid.is_init(), libc::getppid() == 1); in test_getppid() 62 assert_eq!(libc::getppid(), 0); in test_getppid()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
H A D | 5-1.c | 50 kill(getppid(), SIGUSR1); in child_process() 56 kill(getppid(), SIGUSR1); in child_process() 63 kill(getppid(), SIGUSR1); in child_process()
|
/third_party/ltp/testcases/kernel/syscalls/kill/ |
H A D | kill10.c | 569 getppid()); in manager() 570 if (kill(getppid(), SIGUSR1) == -1) { in manager() 573 mypid, getppid(), errno, strerror(errno)); in manager() 593 mypid, getppid()); in manager() 594 if (kill(getppid(), SIGUSR2) == -1) { in manager() 597 mypid, getppid(), errno, in manager() 720 mypid, getppid()); in fork_procs() 721 if (kill(getppid(), SIGUSR2) == -1) { in fork_procs() 725 mypid, getppid(), errno, in fork_procs()
|
/third_party/ltp/testcases/kernel/syscalls/setpgid/ |
H A D | setpgid03.c | 47 TST_EXP_FAIL(setpgid(child_pid, getppid()), EPERM); in run() 60 TST_EXP_FAIL(setpgid(child_pid, getppid()), EACCES); in run()
|
H A D | setpgid02.c | 40 ppid = getppid(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/sched_setparam/ |
H A D | sched_setparam05.c | 31 TST_EXP_FAIL(tv->sched_setparam(getppid(), &p), EPERM, in run() 32 "sched_setparam(%d, 0)", getppid()); in run()
|
/third_party/ltp/testcases/kernel/syscalls/clone/ |
H A D | clone08.c | 96 parent_ppid = getppid(); in test_clone_parent() 105 if (parent_ppid == getppid()) { in child_clone_parent() 108 tst_res(TFAIL, "getppid != parent_ppid (%d != %d)", in child_clone_parent() 109 parent_ppid, getppid()); in child_clone_parent()
|
/third_party/musl/libc-test/src/regression/ |
H A D | daemon-failure.c | 53 if (getpid() != pid || getppid() == 1) in main() 55 getppid(), getpid(), pid); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/ |
H A D | 16-1.c | 102 kill(getppid(), SIGABRT); in main() 106 kill(getppid(), SIGABRT); in main()
|
H A D | 5-3.c | 92 kill(getppid(), SIGABRT); in main() 96 kill(getppid(), SIGABRT); in main()
|
/third_party/musl/src/unistd/ |
H A D | getppid.c | 4 pid_t getppid(void) in getppid() function
|
/third_party/rust/crates/rustix/src/process/ |
H A D | id.rs | 256 /// `getppid()`—Returns the parent process' ID. 262 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getppid.html 263 /// [Linux]: https://man7.org/linux/man-pages/man2/getppid.2.html 266 pub fn getppid() -> Option<Pid> { in getppid() functions 267 backend::process::syscalls::getppid() in getppid()
|
/third_party/rust/crates/rustix/examples/ |
H A D | process.rs | 12 println!("Parent Pid: {}", Pid::as_raw(getppid())); in main() 14 if let Some(ppid) = getppid() { in main()
|
/third_party/ltp/testcases/kernel/syscalls/getppid/ |
H A D | getppid01.c | 9 * Test whether parent process id that getppid() returns is out of range. 21 ppid = getppid(); 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()
|
H A D | getppid02.c | 9 * Check that getppid() in child returns the same pid as getpid() in parent. 25 pproc_id = getppid(); in verify_getppid() 31 tst_res(TPASS, "getppid() returned parent pid (%d)", proc_id); in verify_getppid()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | getppid.c | 30 pid_t child_ppid = getppid(); in getppid_0100()
|
/third_party/ltp/testcases/kernel/containers/pidns/ |
H A D | pidns06.c | 20 pid_t ppid = getppid(); in child_func()
|
H A D | pidns10.c | 20 pid_t ppid = getppid(); in child_func()
|
H A D | pidns01.c | 25 ppid = getppid(); in child_func()
|
H A D | pidns04.c | 21 pid_t ppid = getppid(); in child_func()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/ |
H A D | clock_getcpuclockid.c | 28 pid_t pid = getppid(); in clock_getcpuclockid_0100()
|
/third_party/ltp/testcases/kernel/sched/autogroup/ |
H A D | autogroup01.c | 39 SAFE_KILL(getppid(), SIGKILL); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/wait4/ |
H A D | wait401.c | 28 TST_PROCESS_STATE_WAIT(getppid(), 'S', 0); in run()
|
/third_party/ltp/testcases/kernel/syscalls/getpid/ |
H A D | getpid02.c | 12 * - getppid() in child returns the same pid as getpid() in parent 31 pproc_id = getppid(); in verify_getpid() 34 tst_res(TFAIL, "child getppid() (%d) != parent getpid() (%d)", in verify_getpid() 37 tst_res(TPASS, "child getppid() == parent getpid() (%d)", proc_id); in verify_getpid()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
H A D | 4-1.c | 65 if (ctl != getppid()) { in main()
|