Re: [msysGit] Re: [PATCH] compat: Add another rudimentary poll() emulation
- From
- Albert Dvornik <dvornik@gmail.com>
- Date
- May 27, 2010, 14:14 UTC
- Message-ID
- <AANLkTimn3kxLajKI69E-aE8QInrPArBjEmFxVTWVFUKW@mail.gmail.com>
- In-Reply-To
- <AANLkTik2UAA51BZWIKadAcIg8t2xg1u980Gq_IOSyz6o@mail.gmail.com>
On Thu, May 27, 2010 at 9:46 AM, Erik Faye-Lund <kusmabite@googlemail.com> wrote:
> On Thu, May 27, 2010 at 3:29 PM, Marko Kreen <markokr@gmail.com> wrote:
[...]
>> Well, per your own FD_SET example, the FD_SETSIZE on windows >> means different thing than FD_SETSIZE on old-style bitmap-based >> select() implementation.
Yes, it sure does. Once again, Windows seems to be a special, unique snowflake. =)
>> On Unix, it's max fd number + 1, on windows it's max count. >> > > Are you sure this applies for all Unix, not just some given Unix-y system?
While I can't make statements about "all UNIX" since there are many obscure flavors, this is true on Linux, Solaris and various BSD derivatives. It's also what's specified by POSIX:
http://www.opengroup.org/onlinepubs/000095399/functions/select.html
--bert