RE: FD_SETSIZE and sizeof(fd_set) - thanks for a simple solution

2016-06-23 Thread Steven Bardwell
> > > > > > Here is a "program" that shows the issue I am worried about. It is > > > > > > so > simple > > > > > that I must be overlooking something really obvious: > > > > > > > > > > > > #include > > > > > > #undef FD_SETSIZE > > > > > > #define FD_SETSIZE 256 > > > > > > #include > > > > >

Re: FD_SETSIZE and sizeof(fd_set)

2016-06-23 Thread Corinna Vinschen
On Jun 23 14:01, Corinna Vinschen wrote: > On Jun 23 13:55, Corinna Vinschen wrote: > > On Jun 23 13:52, Corinna Vinschen wrote: > > > On Jun 23 11:36, Steven Bardwell wrote: > > > > > > > > > > > > Here is a "program" that shows the issue I am worried about. It is > > > > > > so simple > > > > >

Re: FD_SETSIZE and sizeof(fd_set)

2016-06-23 Thread Corinna Vinschen
On Jun 23 13:55, Corinna Vinschen wrote: > On Jun 23 13:52, Corinna Vinschen wrote: > > On Jun 23 11:36, Steven Bardwell wrote: > > > > > > > > > > Here is a "program" that shows the issue I am worried about. It is so > > > > > simple > > > > that I must be overlooking something really obvious: >

Re: FD_SETSIZE and sizeof(fd_set)

2016-06-23 Thread Corinna Vinschen
On Jun 23 13:52, Corinna Vinschen wrote: > On Jun 23 11:36, Steven Bardwell wrote: > > > > > > > > Here is a "program" that shows the issue I am worried about. It is so > > > > simple > > > that I must be overlooking something really obvious: > > > > > > > > #include > > > > #undef FD_SETSIZE >

Re: FD_SETSIZE and sizeof(fd_set)

2016-06-23 Thread Corinna Vinschen
On Jun 23 11:36, Steven Bardwell wrote: > > > > > > Here is a "program" that shows the issue I am worried about. It is so > > > simple > > that I must be overlooking something really obvious: > > > > > > #include > > > #undef FD_SETSIZE > > > #define FD_SETSIZE 256 > > > #include > > > #include

RE: FD_SETSIZE and sizeof(fd_set)

2016-06-23 Thread Steven Bardwell
> > > > Here is a "program" that shows the issue I am worried about. It is so simple > that I must be overlooking something really obvious: > > > > #include > > #undef FD_SETSIZE > > #define FD_SETSIZE 256 > > #include > > #include > > > > main() > > { > > fd_set rfds; > >

Re: FD_SETSIZE and sizeof(fd_set)

2016-06-23 Thread Lee Dilkie
On 6/23/2016 6:54 AM, Steven Bardwell wrote: Here is a "program" that shows the issue I am worried about. It is so simple that I must be overlooking something really obvious: #include #undef FD_SETSIZE #define FD_SETSIZE 256 #include #include main() { fd_set rfds;

RE: FD_SETSIZE and sizeof(fd_set)

2016-06-23 Thread Steven Bardwell
> > > > There are (of course) a lot of other included files, and > > is one of them. In my code it comes AFTER the > > redefinition of FD_SETSIZE and . I don't think this > > could be the issue. > > It is if you are mixing Windows API and Cygwin. > > Just look at sys/select.h and you'll

Re: FD_SETSIZE and sizeof(fd_set)

2016-06-22 Thread René Berber
Back to the list, and please keep replies there. > > There are (of course) a lot of other included files, and > is one of them. In my code it comes AFTER the > redefinition of FD_SETSIZE and . I don't think this > could be the issue. It is if you are mixing Windows API and Cygwin. Just

Re: FD_SETSIZE and sizeof(fd_set)

2016-06-22 Thread René Berber
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