delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/17/08:23:18

Date: Mon, 17 Nov 1997 15:22:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Michael Mauch <michael DOT mauch AT gmx DOT de>
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: <Pine.SUN.3.91.971117152018.3222B-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019