-
- Downloads
Auto merge of #489 - zackw:add-waitid, r=alexcrichton
Add waitid and related constants and types. [`waitid`](http://pubs.opengroup.org/onlinepubs/9699919799/functions/waitid.html) is a variation on `waitpid` with a marginally more convenient way of reporting the status, and a couple of handy additional features, such as the ability to peek at an exit status without consuming it. It's in POSIX.1-2008 and should be available on all supported Unixes. Along with it come the type `idtype_t` and the constants `WEXITED`, `WSTOPPED`, `WCONTINUED`, and `WNOWAIT`. The constants were already defined for unix/notbsd platforms. The patch is currently incomplete: I'm pushing it to get CI to test platforms I don't have. Todo list is * [x] Add a definition of `siginfo_t` to all platforms that don't have it. * [x] Verify that the new constants are consistent for all \*BSD platforms. * [x] Verify that `idtype_t` is consistent across the board. * [x] Add `link_name` annotations for `waitid` if/as necessary.
Showing
- src/unix/bsd/apple/mod.rs 16 additions, 0 deletionssrc/unix/bsd/apple/mod.rs
- src/unix/bsd/freebsdlike/freebsd/mod.rs 15 additions, 0 deletionssrc/unix/bsd/freebsdlike/freebsd/mod.rs
- src/unix/bsd/netbsdlike/netbsd/mod.rs 10 additions, 0 deletionssrc/unix/bsd/netbsdlike/netbsd/mod.rs
- src/unix/haiku/mod.rs 15 additions, 0 deletionssrc/unix/haiku/mod.rs
- src/unix/notbsd/android/mod.rs 1 addition, 0 deletionssrc/unix/notbsd/android/mod.rs
- src/unix/notbsd/linux/mod.rs 1 addition, 0 deletionssrc/unix/notbsd/linux/mod.rs
- src/unix/notbsd/mod.rs 6 additions, 0 deletionssrc/unix/notbsd/mod.rs
- src/unix/solaris/mod.rs 16 additions, 0 deletionssrc/unix/solaris/mod.rs
Loading
Please register or sign in to comment