Date: Sat, 8 Mar 2003 19:33:41 -0500 Message-Id: <200303090033.h290XfN11047@envy.delorie.com> X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT delorie DOT com using -f From: DJ Delorie To: djgpp-workers AT delorie DOT com In-reply-to: (rich AT phekda DOT freeserve DOT co DOT uk) Subject: Re: New POSIX: pwrite, revision 2 [PATCH] References: 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 > + /* Is this a pipe? Disallow on pipes. */ > + if (flags & FILE_DESC_PIPE) { > + errno = ESPIPE; > + return(-1); > + } I still think this is the wrong test. FILE_DESC_PIPE is set by the pipe() call, but that call *always* uses regular files. We should be testing the "is a device" bit from int 21/44/00 (but not sure what to do about FSEXT).