Mail Archives: djgpp/1999/12/12/09:20:49
On Fri, 10 Dec 1999, Gisle Vanem wrote:
> I think there is a bug in ./src/libc/compat/time/select.c. The code
> assumes that select() is always called with a bitset equal to the size
> of 'fd_set'.
Of course, it is. But why are you calling this ``a bug''? What is
buggy about a function that expects to get the arguments exactly as
specified by its prototype?
> But I've seen code that supports bitset of arbitrary size (infact
> from 1 to unlimited size). Here the size of 'read' bitset is just
> large enough to hold the 'fds' of interest.
I think such code is buggy, and should be corrected. Doesn't GCC
complain when you compile such code?
- Raw text -