| www.delorie.com/archives/browse.cgi | search |
| 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 <dj AT delorie DOT com> |
| To: | djgpp-workers AT delorie DOT com |
| In-reply-to: | <E18roPd-0000Rn-00@phekda.freeserve.co.uk> |
| (rich AT phekda DOT freeserve DOT co DOT uk) | |
| Subject: | Re: New POSIX: pwrite, revision 2 [PATCH] |
| References: | <E18roPd-0000Rn-00 AT phekda DOT freeserve DOT co DOT uk> |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp-workers AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> + /* 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).
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |