Date: Mon, 17 Nov 1997 15:22:11 +0200 (IST) From: Eli Zaretskii To: Michael Mauch cc: djgpp AT delorie DOT com Subject: Re: RHIDE -- author(s) please read this In-Reply-To: <346db13a.92135053@news.uni-duisburg.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.