From: Albert Dvornik Date: Thu, 27 May 2010 14:14:32 GMT Subject: Re: [msysGit] Re: [PATCH] compat: Add another rudimentary poll() emulation Message-ID: In-Reply-To: On Thu, May 27, 2010 at 9:46 AM, Erik Faye-Lund wrote: > On Thu, May 27, 2010 at 3:29 PM, Marko Kreen 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