Home
last modified time | relevance | path

Searched refs:waitid (Results 1 - 25 of 43) sorted by relevance

12

/third_party/rust/crates/nix/test/sys/
H A Dtest_wait.rs49 waitid(Id::Pid(child), WaitPidFlag::WEXITED), in test_waitid_signal()
90 waitid(Id::Pid(child), WaitPidFlag::WEXITED), in test_waitid_exit()
137 let status = waitid(Id::Pid(child), WaitPidFlag::WEXITED).unwrap(); in test_waitid_pid()
198 // Unlike waitpid(), waitid() can distinguish trap events from regular in ptrace_waitid_parent()
201 waitid(Id::Pid(child), WaitPidFlag::WEXITED), in ptrace_waitid_parent()
214 waitid(Id::Pid(child), WaitPidFlag::WEXITED), in ptrace_waitid_parent()
220 waitid(Id::Pid(child), WaitPidFlag::WEXITED), in ptrace_waitid_parent()
230 waitid(Id::Pid(child), WaitPidFlag::WEXITED), in ptrace_waitid_parent()
/third_party/ltp/testcases/kernel/syscalls/waitid/
H A Dwaitid05.c11 * Tests if waitid() filters children correctly by the group ID.
13 * - waitid() with GID + 1 returns ECHILD
14 * - waitid() with GID returns correct data
34 TST_EXP_FAIL(waitid(P_PGID, pid_group+1, infop, WEXITED), ECHILD); in run()
37 TST_EXP_PASS(waitid(P_PGID, pid_group, infop, WEXITED)); in run()
H A Dwaitid06.c11 * Tests if waitid() filters children correctly by the PID.
13 * - waitid() with PID + 1 returns ECHILD
14 * - waitid() with PID returns correct data
31 TST_EXP_FAIL(waitid(P_PID, pid_child+1, infop, WEXITED), ECHILD); in run()
34 TST_EXP_PASS(waitid(P_PID, pid_child, infop, WEXITED)); in run()
H A Dwaitid08.c11 * Test if waitid() filters children killed with SIGCONT.
33 TST_EXP_PASS(waitid(P_PID, pid_child, infop, WSTOPPED)); in run()
45 TST_EXP_PASS(waitid(P_PID, pid_child, infop, WCONTINUED)); in run()
H A Dwaitid03.c11 * Tests if waitid() syscall returns ECHILD when the calling process has no
22 TST_EXP_FAIL(waitid(P_ALL, 0, infop, WNOHANG | WEXITED), ECHILD); in run()
H A Dwaitid02.c11 * Tests if waitid() returns EINVAL when passed invalid options flag value.
21 TST_EXP_FAIL(waitid(P_ALL, 0, infop, WNOHANG), EINVAL); in run()
H A Dwaitid09.c11 * Test that waitid() fails with ECHILD with process that is not child of the
27 TST_EXP_FAIL(waitid(P_PID, 1, infop, WEXITED), ECHILD); in run()
H A Dwaitid04.c11 * This test if waitid() syscall leaves the si_pid set to 0 with WNOHANG flag
31 TST_EXP_PASS(waitid(P_ALL, pid_child, infop, WNOHANG | WEXITED)); in run()
H A Dwaitid01.c10 * This test is checking if waitid() syscall does wait for WEXITED and check for
28 TST_EXP_PASS(waitid(P_ALL, 0, infop, WEXITED)); in run()
H A Dwaitid07.c11 * Test if waitid() filters children killed with SIGSTOP.
31 TST_EXP_PASS(waitid(P_PID, pid_child, infop, WSTOPPED | WNOWAIT)); in run()
H A Dwaitid11.c10 * This test is checking if waitid() syscall recognizes a process that has been
33 TST_EXP_PASS(waitid(P_ALL, 0, infop, WEXITED)); in run()
H A Dwaitid10.c10 * This test is checking if waitid() syscall recognizes a process that ended
36 TST_EXP_PASS(waitid(P_ALL, 0, infop, WEXITED)); in run()
/third_party/ltp/testcases/kernel/syscalls/pidfd_open/
H A Dpidfd_open04.c11 * that waitid() with a non-blocking pidfd returns EAGAIN.
48 TST_EXP_FAIL(waitid(P_PIDFD, pidfd, &info, WEXITED), EAGAIN, in run()
49 "waitid(P_PIDFD,...,WEXITED)"); in run()
53 ret = TST_RETRY_FUNC(waitid(P_PIDFD, pidfd, &info, WEXITED), TST_RETVAL_EQ0); in run()
55 tst_res(TPASS, "waitid(P_PIDFD) succeeded after child process terminated"); in run()
57 tst_res(TFAIL, "waitid(P_PIDFD) failed after child process terminated"); in run()
/third_party/musl/src/process/
H A Dwaitid.c4 int waitid(idtype_t type, id_t id, siginfo_t *info, int options) in waitid() function
/third_party/musl/libc-test/src/functionalext/supplement/process/
H A Dwaitid.c23 * @tc.desc : Test waitid function for process control
30 t_error("%s waitid fork error\n", __func__); in waitid_0100()
35 int result = waitid(P_PID, pid, &si, WEXITED); in waitid_0100()
37 t_error("%s waitid error get result is %d are not want 0\n", __func__, result); in waitid_0100()
40 t_error("%s waitid error pid not = si.si_pid\n", __func__); in waitid_0100()
43 t_error("%s waitid error si.si_status not = 66\n", __func__); in waitid_0100()
46 t_error("%s waitid error si.si_code not = CLD_EXITED\n", __func__); in waitid_0100()
/third_party/mesa3d/src/freedreno/decode/
H A Dpager.c90 if (waitid(P_PID, pager_pid, &status, WEXITED) < 0) { in pager_close()
/third_party/musl/libc-test/src/api/
H A Dsys_wait.c29 {int(*p)(idtype_t,id_t,siginfo_t*,int) = waitid;} in f()
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dwait.h27 int waitid (idtype_t, id_t, siginfo_t *, int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dwait.h27 int waitid (idtype_t, id_t, siginfo_t *, int);
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dwait.h27 int waitid (idtype_t, id_t, siginfo_t *, int);
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dwait.h31 int waitid (idtype_t, id_t, siginfo_t *, int);
/third_party/musl/include/sys/
H A Dwait.h27 int waitid (idtype_t, id_t, siginfo_t *, int);
/third_party/rust/crates/nix/src/sys/
H A Dwait.rs244 /// Convert a `siginfo_t` as returned by `waitid` to a `WaitStatus`
339 /// The ID argument for `waitid`
363 /// See also [waitid(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/waitid.html)
370 pub fn waitid(id: Id, flags: WaitPidFlag) -> Result<WaitStatus> { in waitid() functions
383 Errno::result(libc::waitid(idtype, idval, &mut siginfo, flags.bits()))?; in waitid()
/third_party/ltp/testcases/kernel/mce-test/tsrc/
H A Dttranshuge.c408 if (waitid(P_PID, child, &sig, WEXITED) < 0) { in main()
/third_party/ltp/testcases/kernel/mce-test/hwpoison/
H A Dttranshuge.c408 if (waitid(P_PID, child, &sig, WEXITED) < 0) { in main()

Completed in 6 milliseconds

12