> This is a non-issue; they are two different ways of saying > the same thing. > The AIX description is the same one all Unix systems with > select() have used > since... 4.2BSD. I don't recall if 4.1 had select() or not. > > Think about it. The fdset is a bit field. The nfds parameter > tells select how > far into the field it needs to look. Each bit corresponds to > one fd. If you > have fd#0, that corresponds to bit #1. This is why the number > of fds is > *always* the highest numbered fd +1.
They are *not* the same thing. I may have only one fd with a value of 100. IBM's select asks that nfdsmsgs (the first parameter) be set to 1. (kind like poll) Linux/BSD requires it be set to 101. Not all implementations of fd_set's and hence select() use bit arrays (win32 does not either but it ignores the first parameter of select). And the behaviour of select() is not consistant across implementations either. Linux has a different behaviour from the "standard" BSD/UNIX/win32. Just ask anyone who's tried to code select for a non-blocking socket connect.... -lee ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]