This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: FD_SETSIZE and sizeof(fd_set)
- From: Renà Berber <rene dot berber at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 22 Jun 2016 18:19:18 -0500
- Subject: Re: FD_SETSIZE and sizeof(fd_set)
- Authentication-results: sourceware.org; auth=none
- References: <DM3PR18MB084148FC4EFA327DA33DB267DB2C0 at DM3PR18MB0841 dot namprd18 dot prod dot outlook dot com>
- Reply-to: Do not reply <rene dot berber at gmail dot com>
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