Home
last modified time | relevance | path

Searched refs:getppid (Results 1 – 25 of 121) sorted by relevance

12345

/third_party/rust/crates/rustix/tests/process/
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/kernel/syscalls/kill/
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/open_posix_testsuite/conformance/interfaces/shm_open/
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/sched_setparam/
Dsched_setparam05.c31 TST_EXP_FAIL(tv->sched_setparam(getppid(), &p), EPERM, in run()
32 "sched_setparam(%d, 0)", getppid()); in run()
Dsched_setparam03.c31 TST_EXP_PASS_SILENT(tv->sched_setparam(getppid(), &p5)); in run()
/third_party/ltp/testcases/kernel/syscalls/clone/
Dclone08.c106 parent_ppid = getppid(); in test_clone_parent()
115 if (parent_ppid == getppid()) { in child_clone_parent()
119 parent_ppid, getppid()); in child_clone_parent()
/third_party/musl/libc-test/src/regression/
Ddaemon-failure.c53 if (getpid() != pid || getppid() == 1) in main()
55 getppid(), getpid(), pid); in main()
/third_party/ltp/testcases/kernel/syscalls/setpgid/
Dsetpgid03.c82 rval = setpgid(child_pid, getppid()); in main()
111 rval = setpgid(child_pid, getppid()); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/
D5-3.c92 kill(getppid(), SIGABRT); in main()
96 kill(getppid(), SIGABRT); in main()
D16-1.c102 kill(getppid(), SIGABRT); in main()
106 kill(getppid(), SIGABRT); in main()
/third_party/rust/crates/rustix/examples/
Dprocess.rs12 println!("Parent Pid: {}", Pid::as_raw(getppid())); in main()
14 if let Some(ppid) = getppid() { in main()
/third_party/rust/crates/rustix/src/process/
Did.rs266 pub fn getppid() -> Option<Pid> { in getppid() function
267 backend::process::syscalls::getppid() in getppid()
/third_party/musl/src/unistd/
Dgetppid.c4 pid_t getppid(void) in getppid() function
/third_party/ltp/testcases/kernel/syscalls/getppid/
Dgetppid01.c21 ppid = getppid(); in verify_getppid()
Dgetppid02.c25 pproc_id = getppid(); in verify_getppid()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dgetppid.c30 pid_t child_ppid = getppid(); in getppid_0100()
/third_party/musl/libc-test/src/functionalext/supplement/time/
Dclock_getcpuclockid.c28 pid_t pid = getppid(); in clock_getcpuclockid_0100()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D4-1.c65 if (ctl != getppid()) { in main()
/third_party/musl/libc-test/src/functionalext/supplement/signal/
Dkill.c49 kill(getppid(), SIGUSR1); in kill_0100()
/third_party/ltp/testcases/kernel/syscalls/wait4/
Dwait401.c28 TST_PROCESS_STATE_WAIT(getppid(), 'S', 0); in run()
/third_party/ltp/testcases/kernel/sched/autogroup/
Dautogroup01.c39 SAFE_KILL(getppid(), SIGKILL); in do_test()
/third_party/ltp/testcases/kernel/syscalls/getpid/
Dgetpid02.c30 pproc_id = getppid(); in verify_getpid()
/third_party/ltp/testcases/kernel/containers/pidns/
Dpidns10.c65 ppid = getppid(); in child_fn()
Dpidns01.c74 ppid = getppid(); in child_fn1()
/third_party/ltp/testcases/kernel/controllers/memcg/regression/
Dmemcg_test_3.c35 SAFE_KILL(getppid(), SIGUSR1); in do_child()

12345