[Feature Request]Ignore negative fd in poll(2)
Requested by nix-rust/nix#2254, I would like to have poll(2)
ignore the pollfd
s that have a negative file descriptor
This is not specified in the POSIX spec, but almost all the OSes have this feature implemented:
OS | Supported |
---|---|
darwin | Yes |
linux | Yes |
android | Probably yes |
freebsd | Yes |
dragonfly | Yes |
netbsd | Yes |
openbsd | Yes |
illumos | Yes |
solaris | Yes |
haiku | Yes |
redox | No |