nix/test/sys
Matthias Schiffer df417e295b
wait: implement waitid()
waitid() has a number of additional features that waitpid() is missing:

- WNOWAIT is only accepted for waitid() on Linux (and possibly other
  platforms)
- Support for waiting on PID file descriptors on Linux

For now support is added for all platforms with waitid() that have proper
siginfo_t support in libc. NetBSD support is currently a work in progress
[1].

Tests for the signal/exit code are currently skipped on MIPS platforms due
to bugs in qemu-user's translation of siginfo_t (fixed in [2] and [3]; the
second fix is not in a released qemu version yet).

[1] https://github.com/rust-lang/libc/pull/2476
[2] https://lists.nongnu.org/archive/html/qemu-devel/2021-01/msg04810.html
[3] https://lists.nongnu.org/archive/html/qemu-devel/2021-10/msg05433.html
2022-03-09 16:56:59 +01:00
..
mod.rs uclibc support 2022-01-24 10:06:35 -05:00
test_aio_drop.rs uclibc support 2022-01-24 10:06:35 -05:00
test_aio.rs Avoid lock poisoning by using parking_lot 2021-11-27 13:50:29 -06:00
test_epoll.rs Clippy cleanup 2021-09-19 07:58:15 -06:00
test_inotify.rs Clippy cleanup 2021-09-19 07:58:15 -06:00
test_ioctl.rs Collapse Error into Errno 2021-07-07 20:49:29 -06:00
test_lio_listio_resubmit.rs Collapse Error into Errno 2021-07-07 20:49:29 -06:00
test_mman.rs Correct MAP_FIXED documentation for NetBSD 2022-01-02 16:53:42 -06:00
test_pthread.rs Add pthread_kill 2021-07-24 22:45:46 +02:00
test_ptrace.rs Fix typos 2021-12-26 20:14:50 -06:00
test_select.rs Avoid lock poisoning by using parking_lot 2021-11-27 13:50:29 -06:00
test_signal.rs Avoid lock poisoning by using parking_lot 2021-11-27 13:50:29 -06:00
test_signalfd.rs Avoid lock poisoning by using parking_lot 2021-11-27 13:50:29 -06:00
test_socket.rs Change port used by test_txtime to avoid conflict 2022-01-10 21:57:55 -06:00
test_sockopt.rs Fix typos 2021-12-26 20:14:50 -06:00
test_sysinfo.rs Add a sysinfo wrapper 2018-07-04 21:42:12 +02:00
test_termios.rs Avoid lock poisoning by using parking_lot 2021-11-27 13:50:29 -06:00
test_timerfd.rs Adding an implementation and some basic tests for timerfd. 2020-07-07 14:29:11 +02:00
test_uio.rs uclibc support 2022-01-24 10:06:35 -05:00
test_wait.rs wait: implement waitid() 2022-03-09 16:56:59 +01:00