Mail Archives: djgpp-workers/2003/03/08/17:47:08
> IIRC, they are always set both at once.
That would explain that bit of code then.
> > 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.
Er... sometimes. BBS software, for example. I'm thinking: why will
an application be calling isatty(), and what makes sense to tell it?
I guess at this point there's no point changing what we've always
done, since nobody's complained yet ;-)
> > 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.)
No, I was asking about a djgpp-specific call that we could use in
pwrite().
- Raw text -