2 ms·
From PSELECT(2): STANDARDS The pselect() function conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
by antfarm 10y ago
From PSELECT(2):
STANDARDS
The pselect() function conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
- wahern 10y agoSee my reply to RJIb8RBYxzAMX9u, elsethread. It's misleading. The interface conforms, but the implementation is not compliant At least for all the version of macOS I've tested (I haven't tested 10.12, yet) the very problem pselect was created to address exists. When I said that the manual page admits it's non-compliant, I was referring to the section that said pselect was implemented as a wrapper around select; but you can't correctly implement pselect as a simple wrapper around select. But see my link in the other reply to a correct implementation I wrote that relies on kqueue. I even submitted it to Apple years ago along with the bug report.