This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FD_SETSIZE and sizeof(fd_set)


On 6/22/2016 5:19 PM, Steven Bardwell wrote:

> I am running into a problem with the fd_set structure that someone may know the answer to. 
> 
> I would like to be able to call select() on more than 64 open files, so I have done the following:
> 
> 1)   the include section of the program has the code:
> 
> #undef FD_SETSIZE
> #define FD_SETSIZE 256
> #include <sys/types.h>

Wrong include file, use

#include <sys/select.h>

(which is the one that actually has the definition of fd_set, and uses
FD_SETSIZE).
-- 
René Berber


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]