On Mon, 23 Nov 2026 09:46:57 -0500, Bud Frede wrote:
> WolfFan <akwo…@zoho.com> writes: >
>> On Nov 13, 2026, Richard Kettlewell wrote >> (in article <wwv5…@LkoBDZeT.terraraq.uk>): >>
>>> Lawrence D’Oliveiro <l…@nz.invalid> writes:
>>>> >>>> Really?? The macOS kernel does *not* provide a native poll() >>>> call, it has to emulate it via select()?
>>> >>> Why would you post that without checking?
>> >> because he’s a know-nothing troll.
>>> > That is so sad ...
>>> >>> Well, something is sad, but I don’t think it’s macOS, in this instance.
>> >> Anti-Apple trolls have been posting falsehoods for decades. He’s >> not even original.
> > They're not building good trolls anymore. They're all just retreads. > :-)
So of course I had to check the source code. Didn’t anybody else do that? Here’s the immediate context of the line in question: int poll(struct proc *p, struct poll_args *uap, int32_t *retval) { __pthread_testcancel(1); return poll_nocancel(p, (struct poll_nocancel_args *)uap, retval); } And just below that is the poll_nocancel routine, which contains this: /* * This is kinda bogus. We have fd limits, but that is not * really related to the size of the pollfd array. Make sure * we let the process use at least FD_SETSIZE entries and at * least enough for the current limits. We want to be reasonably * safe, but not overly restrictive. */ if (nfds > OPEN_MAX || (nfds > nofile && (proc_suser(p) || nfds > FD_SETSIZE))) { return EINVAL; } What’s OPEN_MAX? It’s a hard-coded limit on the number of files a single process can have open. A hard-coded limit which doesn’t exist on Linux <https://bugzilla.redhat.com/show_bug.cgi?id=21346>. And what’s FD_SETSIZE? It’s the size of the fixed-length array that that the select(2) call takes. Further down, another sad little comment: /* JMM - all this P_SELECT stuff is bogus */ So yes, on macOS, the poll(2) call is effectively being emulated by select(2), complete with hard-coded limits on the number of file descriptors you can pass!