posix: Remove posix waitid
commit6437fecca30deb88e5901ab03168cb7b40c7e0a7
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 19 Nov 2019 21:34:19 +0000 (19 18:34 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 27 Feb 2020 19:16:17 +0000 (27 16:16 -0300)
tree3cdf566c8cabde2cc299a85c7d0fbd6746f25418
parentb3b6a40ab9ad374a85f347adf1725760f1238eb5
posix: Remove posix waitid

The POSIX waitid implementation is problematic in some ways:

  - It emulates using waitpid, which default implementation calls
    wait4 and wait4 returns ENOSYS as default.

  - Also by using waitpid it does not allod support the WNOWAIT,
    WEXITED, WSTOPPED, or WCONTINUED flag.  With current POSIX
    specification the flags are no longer marked as optional.

Also due BZ#23091 Hurd still uses the implementation, so it is moved
to as a Hurd arch-specific folder (with some minor cleanups).

Checked against a i686-gnu (run-built-tests=no)
sysdeps/mach/hurd/waitid.c [moved from sysdeps/posix/waitid.c with 65% similarity]