Mail Archives: djgpp/1997/11/17/08:23:18
On Sat, 15 Nov 1997, Michael Mauch wrote:
> > I'm interested in knowing why you expect stdout (a write-only stream) to
> > be flagged by select() as ready for input.
>
> Yes, I don't know this as well - but it is done in the
> djgpp\src\libc\compat\time\select.c if you compile it with -D TEST.
`select' does this because you can redirect stdout to a device (e.g. the
null device) which is ready both for input and for output. `select' is a
general-purpose function, it does not (and should not, IMHO) decide for
the application whether to test a stream for certain functionality or
not.
- Raw text -