Thread (39 messages) flat view 39 messages, 14 authors, 2016-06-15

Re: [msysGit] Re: [PATCH] compat: Add another rudimentary poll() emulation

From: Albert Dvornik <hidden>
Date: 2016-06-15 22:48:52

On Thu, May 27, 2010 at 9:46 AM, Erik Faye-Lund
[off-list ref] wrote:
On Thu, May 27, 2010 at 3:29 PM, Marko Kreen [off-list ref] wrote:
[...]
quoted
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. =)
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help