Home
last modified time | relevance | path

Searched refs:getppid (Results 1 - 25 of 99) sorted by relevance

1234

/third_party/rust/crates/rustix/tests/process/
H A Did.rs53 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 D5-1.c50 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 Dkill10.c569 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 Dsetpgid03.c47 TST_EXP_FAIL(setpgid(child_pid, getppid()), EPERM); in run()
60 TST_EXP_FAIL(setpgid(child_pid, getppid()), EACCES); in run()
H A Dsetpgid02.c40 ppid = getppid(); in setup()
/third_party/ltp/testcases/kernel/syscalls/sched_setparam/
H A Dsched_setparam05.c31 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 Dclone08.c96 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 Ddaemon-failure.c53 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 D16-1.c102 kill(getppid(), SIGABRT); in main()
106 kill(getppid(), SIGABRT); in main()
H A D5-3.c92 kill(getppid(), SIGABRT); in main()
96 kill(getppid(), SIGABRT); in main()
/third_party/musl/src/unistd/
H A Dgetppid.c4 pid_t getppid(void) in getppid() function
/third_party/rust/crates/rustix/src/process/
H A Did.rs256 /// `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 Dprocess.rs12 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 Dgetppid01.c9 * 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 Dgetppid02.c9 * 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 Dgetppid.c30 pid_t child_ppid = getppid(); in getppid_0100()
/third_party/ltp/testcases/kernel/containers/pidns/
H A Dpidns06.c20 pid_t ppid = getppid(); in child_func()
H A Dpidns10.c20 pid_t ppid = getppid(); in child_func()
H A Dpidns01.c25 ppid = getppid(); in child_func()
H A Dpidns04.c21 pid_t ppid = getppid(); in child_func()
/third_party/musl/libc-test/src/functionalext/supplement/time/
H A Dclock_getcpuclockid.c28 pid_t pid = getppid(); in clock_getcpuclockid_0100()
/third_party/ltp/testcases/kernel/sched/autogroup/
H A Dautogroup01.c39 SAFE_KILL(getppid(), SIGKILL); in do_test()
/third_party/ltp/testcases/kernel/syscalls/wait4/
H A Dwait401.c28 TST_PROCESS_STATE_WAIT(getppid(), 'S', 0); in run()
/third_party/ltp/testcases/kernel/syscalls/getpid/
H A Dgetpid02.c12 * - 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 D4-1.c65 if (ctl != getppid()) { in main()

Completed in 6 milliseconds

1234