Subject: Re: sys_select() EBADF bug
To: <>
From: None <itojun@iijlab.net>
List: tech-kern
Date: 11/16/2002 04:25:17
>> ...
>> EINVAL
>> The nfds argument is less than 0, or greater than or
>> equal to FD_SETSIZE.
>
>This agrees with POSIX which states that select() "shall fail" with EINVAL
>if nfds > FD_SETSIZE. This means that succeeding under such circumstances
>is forbidden. Of course, this need only apply when the application doesn't
>override FD_SETSIZE, since doing so puts them out of POSIX-defined
>behaviour.
but,
- we can have file descriptor larger than FD_SETSIZE.
- we can pass fd_set bitmap larger than FD_SETSIZE okay.
(see usr.sbin/traceroute6/traceroute6.c for instance)
so i don't see the need for returning error when nfds > FD_SETSIZE.
itojun