[FEEDBACK] Issue with fd_set, FD_ZERO, FD_SET, FD_SETSIZE : Cygwin

Eliot Moss moss@cs.umass.edu
Mon Feb 6 20:31:51 GMT 2023


On 2/7/2023 7:25 AM, Yeo Kai Wei via Cygwin wrote:
> Hi,
> 
> I would like to report an issue with Cygwin 3.4.2 on Windows.
> 
> It doesn't seem to be able to work with  fd_set, FD_ZERO, FD_SET, FD_SETSIZE macros.
> 
> The code is in italics. The filename was selectStdIn.c. The terminal command used was "gcc -o 
> selectStdIn selectStdIn.c"
> 
> Thank you.

My guess is that those fd set things aren't POSIX, and cygwin tries to model POSIX.

Comments at the top of /usr/include/sys/select.h suggest that.

-- Eliot Moss


More information about the Cygwin mailing list