Date: Sat, 8 Mar 2003 17:47:06 -0500 Message-Id: <200303082247.h28Ml6f09541@envy.delorie.com> X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT delorie DOT com using -f From: DJ Delorie To: eliz AT elta DOT co DOT il CC: djgpp-workers AT delorie DOT com In-reply-to: <557-Sun09Mar2003003910+0200-eliz@elta.co.il> Subject: Re: New POSIX: pwrite [PATCH] References: <200303071845 DOT h27Ij5d18334 AT envy DOT delorie DOT com> <3E6938EC DOT D9BFE2E4 AT phekda DOT freeserve DOT co DOT uk> <200303080038 DOT h280crk23683 AT envy DOT delorie DOT com> <3E69434C DOT B420FA9D AT phekda DOT freeserve DOT co DOT uk> <200303080130 DOT h281UMb24534 AT envy DOT delorie DOT com> <8361-Sat08Mar2003114656+0200-eliz AT elta DOT co DOT il> <200303081703 DOT h28H3Yl05143 AT envy DOT delorie DOT com> <557-Sun09Mar2003003910+0200-eliz AT elta DOT co DOT il> Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > 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().