In the last episode (Mar 12), Sean Hamilton said:
> What is the first parameter to select(2) for? Microsoft's select
> ignores it, and it does not appear to have any valid use since it
> only allows constraints on values which are assigned by the system.

I'd hate to have the kernel scan a 6000-element (or whatever maxfiles
is on your system) array every time I called select with nfds=10.

If MS ignores the nfds parameter, it risks accessing uninitialized
memory or selecting on fds that the user no longer wants to look at. 
I'd call it a bug.
 
> Purely historic?

Performance.

-- 
        Dan Nelson
        [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to