summaryrefslogtreecommitdiff
path: root/src/sys/wait.rs
AgeCommit message (Collapse)Author
2018-12-08Replace try! with ?Alan Somers
try! is not available in Rust 2018
2018-01-28Fail to compile for any unused codeBryant Mairs
2017-12-20Merge redundant match armsBryant Mairs
2017-12-09Merge #741bors[bot]
741: Expose `decode` on `WaitStatus` and make it return a `Result` r=Susurrus a=rocallahan Closes #740.
2017-12-05Expose `from_raw` on `WaitStatus` and make it return a `Result`Robert O'Callahan
2017-12-04Stop reexporting `Errno` and its variantsJonas Schievink
cc #664 (unsure if this is everything needed)
2017-11-11Formatting with rustfmtWilliam Orr
2017-11-11Omit invalid waitpid flags on OpenBSDWilliam Orr
OpenBSD doesn't have `WEXITED`, `WSTOPPED`, or `WNOWAIT`, so omit those from that platform.
2017-08-21Use libc definitions for wait moduleBryant Mairs
2017-08-16Match libc_bitflags! syntax to upstream bitflags!Bryant Mairs
2017-08-08Add a convenience method .pid() to WaitStatus.Marcin Mielniczuk
2017-07-21Document WaitStatus and its variantsGeoffrey Thomas
2017-07-21Add WaitStatus::PtraceSyscall for use with PTRACE_O_TRACESYSGOODGeoffrey Thomas
The recommended way to trace syscalls with ptrace is to set the PTRACE_O_TRACESYSGOOD option, to distinguish syscall stops from receiving an actual SIGTRAP. In C, this would cause WSTOPSIG to return SIGTRAP | 0x80, but nix wants to parse that as an actual signal. Add another wait status type for syscall stops (in the language of the ptrace(2) manpage, "PTRACE_EVENT stops" and "Syscall-stops" are different things), and mask out bit 0x80 from signals before trying to parse it. Closes #550
2017-07-02Newtypes for uid_t, gid_t and pid_t.Martin Habovštiak
2017-02-19Fix the style for bitflags!Mathias Svensson
Prefer libc_bitflags! over bitflags!. Prefer libc::CONSTANTS over writing the constant manually.
2017-02-16Update bitflags to 0.7Simon Sapin
2016-11-05Use cfg_if to branch code in WaitStatus decodeDavid Hou
2016-10-16Attempt to fix build for non-{android,linux} platformsDavid Hou
2016-10-16wait: Support ptrace events for LinuxDavid Hou
2016-07-01Auto merge of #379 - nikklassen:wait-flags, r=fiveopHomu
Add missing wait flag WUNTRACED for non-Linux systems My understanding is that this flag is required by POSIX, so all systems should allow for it
2016-06-29Replace wait constants with libc constantsNik Klassen
2016-06-26Convert signal constants to enumeration.Philipp Matthias Schaefer
2016-06-10Add missing wait flag WUNTRACED for non-Linux systemsNik Klassen
2016-01-28Move errno::Result back to crate rootarcnmx
2016-01-28Errno::result()arcnmx
2015-12-03support more flags to waitpid and wait on linuxDavid Roundy
2015-11-20netbsd supportJeremy Fitzhardinge
2015-07-13Add status to WaitStatusJoseph Kain
* Extend the enums in WaitStatus to include all process states (signaled, stopped, exited, continued). * Decode status from waitpid * Return appropate WaitStatus * Update tests to use the new WaitStatus * Add new tests for specific status values
2015-06-08added wait system call and unit testMarkus Jais
2015-04-03'derive(Copy)' needs Clone nowFlorian Hartwig
2015-03-24NixResult -> nix::Result; NixError -> nix::ErrorCarl Lerche
2015-02-10Add `NixPath`, `NixError`, and `NixResult`.Utkarsh Kukreti
2015-02-01Changed options parameter for waitpid to Option<WaitPidFlag>Markus Jais
2015-01-03Update to rust masterValerii Hiora
- cstr fallout - deriving -> derive - lib stabilization warnings removal
2014-12-18Add all now needed ';' after macro invocations.Victor Berger
2014-12-15bitflags! derives Copy for you now, so remove our derivings.Jonathan Reem
2014-12-10Fallout of Copy becoming opt-in.Victor Berger
2014-11-19Use namespaced enum variants.Roma Sokolov
As per this pull request https://github.com/rust-lang/rust/pull/18973, enum variants require fully qualified path to access them. This commit introduces boring changes to make nix-rust compiles againts new rust.
2014-10-10Update static->constTilde Engineering
2014-10-07Add wait bindingsTilde Engineering