Home
last modified time | relevance | path

Searched refs:WaitStatus (Results 1 – 11 of 11) sorted by relevance

/third_party/rust/crates/nix/src/sys/
Dwait.rs88 pub enum WaitStatus { enum
133 impl WaitStatus { implementation
136 use self::WaitStatus::*; in pid()
194 impl WaitStatus { implementation
212 pub fn from_raw(pid: Pid, status: i32) -> Result<WaitStatus> { in from_raw() argument
214 WaitStatus::Exited(pid, exit_status(status)) in from_raw()
216 WaitStatus::Signaled(pid, term_signal(status)?, dumped_core(status)) in from_raw()
220 fn decode_stopped(pid: Pid, status: i32) -> Result<WaitStatus> { in from_raw()
223 WaitStatus::PtraceSyscall(pid) in from_raw()
225 WaitStatus::Stopped(pid, stop_signal(status)?) in from_raw()
[all …]
/third_party/rust/crates/nix/test/sys/
Dtest_wait.rs23 Ok(WaitStatus::Signaled(child, SIGKILL, false)) in test_wait_signal()
50 Ok(WaitStatus::Signaled(child, SIGKILL, false)), in test_waitid_signal()
66 assert_eq!(waitpid(child, None), Ok(WaitStatus::Exited(child, 12))); in test_wait_exit()
91 Ok(WaitStatus::Exited(child, 12)), in test_waitid_exit()
101 WaitStatus::from_raw(pid, 0x0002), in test_waitstatus_from_raw()
102 Ok(WaitStatus::Signaled(pid, Signal::SIGINT, false)) in test_waitstatus_from_raw()
105 WaitStatus::from_raw(pid, 0x0200), in test_waitstatus_from_raw()
106 Ok(WaitStatus::Exited(pid, 2)) in test_waitstatus_from_raw()
108 assert_eq!(WaitStatus::from_raw(pid, 0x7f7f), Err(Errno::EINVAL)); in test_waitstatus_from_raw()
167 Ok(WaitStatus::Stopped(child, SIGTRAP)) in ptrace_wait_parent()
[all …]
Dtest_ptrace.rs73 use nix::sys::wait::{waitpid, WaitPidFlag, WaitStatus}; in test_ptrace_cont()
104 Ok(WaitStatus::Stopped(child, Signal::SIGTRAP)) in test_ptrace_cont()
109 Ok(WaitStatus::Stopped(child, Signal::SIGTRAP)) in test_ptrace_cont()
113 Ok(WaitStatus::Signaled(pid, Signal::SIGKILL, _)) in test_ptrace_cont()
136 use nix::sys::wait::{waitpid, WaitPidFlag, WaitStatus}; in test_ptrace_interrupt()
156 Ok(WaitStatus::PtraceEvent(child, Signal::SIGTRAP, 128)) in test_ptrace_interrupt()
161 Ok(WaitStatus::PtraceSyscall(child)) in test_ptrace_interrupt()
165 Ok(WaitStatus::Signaled(pid, Signal::SIGKILL, _)) in test_ptrace_interrupt()
190 use nix::sys::wait::{waitpid, WaitStatus}; in test_ptrace_syscall()
214 Ok(WaitStatus::Stopped(child, Signal::SIGSTOP)) in test_ptrace_syscall()
[all …]
/third_party/rust/crates/rustix/src/process/
Dwait.rs19 pub struct WaitStatus(u32); struct
21 impl WaitStatus { implementation
106 pub fn waitpid(pid: Option<Pid>, waitopts: WaitOptions) -> io::Result<Option<WaitStatus>> { in waitpid() argument
127 pub fn wait(waitopts: WaitOptions) -> io::Result<Option<(Pid, WaitStatus)>> { in wait() argument
Dmod.rs81 pub use wait::{wait, waitpid, WaitOptions, WaitStatus};
/third_party/rust/crates/rustix/src/backend/libc/process/
Dsyscalls.rs38 crate::process::{Gid, Pid, RawNonZeroPid, RawPid, Signal, Uid, WaitOptions, WaitStatus},
366 pub(crate) fn wait(waitopts: WaitOptions) -> io::Result<Option<(Pid, WaitStatus)>> { in wait() argument
375 ) -> io::Result<Option<(Pid, WaitStatus)>> { in waitpid() argument
384 ) -> io::Result<Option<(Pid, WaitStatus)>> { in _waitpid() argument
391 WaitStatus::new(status as _), in _waitpid()
/third_party/rust/crates/rustix/src/backend/linux_raw/process/
Dsyscalls.rs20 Signal, Uid, WaitOptions, WaitStatus,
484 pub(crate) fn wait(waitopts: WaitOptions) -> io::Result<Option<(Pid, WaitStatus)>> { in wait() argument
492 ) -> io::Result<Option<(Pid, WaitStatus)>> { in waitpid() argument
500 ) -> io::Result<Option<(Pid, WaitStatus)>> { in _waitpid() argument
513 WaitStatus::new(status.assume_init()), in _waitpid()
/third_party/rust/crates/nix/test/
Dtest_unistd.rs55 Ok(WaitStatus::Exited(pid_t, _)) => assert_eq!(pid_t, child), in test_fork_and_waitpid()
81 assert_eq!(wait_status, Ok(WaitStatus::Exited(child, 0))); in test_wait()
370 assert_eq!(ws, Ok(WaitStatus::Exited(child, 0)));
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/
DProgram.inc404 DWORD WaitStatus = WaitForSingleObject(PI.Process, milliSecondsToWait);
405 if (WaitStatus == WAIT_TIMEOUT) {
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/Windows/
DProgram.inc429 DWORD WaitStatus = WaitForSingleObject(PI.ProcessHandle, milliSecondsToWait);
430 if (WaitStatus == WAIT_TIMEOUT) {
/third_party/rust/crates/nix/
DCHANGELOG.md1147 - Added the `pid()` method to `WaitStatus` for extracting the PID.
1178 - Added the `from_raw()` method to `WaitStatus` for converting raw status values
1179 to `WaitStatus` independent of syscalls.
1284 events from `wait` and `waitpid` using `WaitStatus::PtraceSyscall`
1358 - Added a new `WaitStatus::PtraceEvent` to support ptrace events on Linux