Loop from 0 to FD_SETSIZE testing each bit with FD_ISSET. If it is set, print out a message. That will tell you which fd's are in the structure. Isn't that good enough? A portable program should not depending on the internal layout of the structure.
I am trying to use select() in a serial port application. I am using select() to signal when there is data available on the port. This seems simple enough to me but I am getting a basic error.
When I call FD_ZERO or FD_SET I get an error message:
errno 29: Illegal Seek
fd_set... (0 Replies)