delorie.com/archives/browse.cgi | search |
> Date: Sat, 8 Mar 2003 12:03:34 -0500 > From: DJ Delorie <dj AT delorie DOT com> > > > I think there are bits there that tell this. These are those two > > bits which `isatty' currently uses. > > > > Why do you think these bits are not enough? > > The two bits are defined as "is stdin" and "is stdout". At the very > least, we should be checking for *either* of those bits, not *both* of > them. IIRC, they are always set both at once. > And there are no bits for the AUX device, which should be considered a > terminal. But DOS terminals are never connected to AUX, are they? Unix terminals are connected to a serial port, but not DOS terminals. > Do we have any other call that looks at just the "is a device" bit > in that dos call? `stat'/`fstat' return a character-device bit set for devices. (I assume you were asking about Posix way of getting at that.)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |