home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.linux:23186 comp.std.c:3341
- Newsgroups: comp.os.linux,comp.std.c
- Path: sparky!uunet!usc!sdd.hp.com!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!serval!luke.eecs.wsu.edu!hlu
- From: hlu@luke.eecs.wsu.edu (H.J. Lu)
- Subject: Re: Library 4.1 bug/feature? fopen("fifo","a") fails
- Message-ID: <1993Jan8.071603.20564@serval.net.wsu.edu>
- Sender: news@serval.net.wsu.edu (USENET News System)
- Organization: Washington State University!
- References: <1993Jan7.232805.16555@serval.net.wsu.edu> <1993Jan8.020515.7341@ods.com>
- Date: Fri, 8 Jan 93 07:16:03 GMT
- Lines: 23
-
- In article <1993Jan8.020515.7341@ods.com> david@ods.com (David Engel) writes:
- >H.J. Lu (hlu@eecs.wsu.edu) wrote:
- >: Have you tried my test code? Some Unices just ignore lseek (). FIFO is just
- >: one type of file, on which lseek cannot be done. We have char devices and
- >: sockets. I prefer stdio should not know so much details about the kernel.
- >
- >I tried it under SVR4 and it also reports an error in lseek when run
- >on a fifo.
- >
- >David
- >--
- >David Engel Optical Data Systems, Inc.
- >david@ods.com 1101 E. Arapaho Road
- >(214) 234-6400 Richardson, TX 75081
-
-
- I can fix stdio to handle fopen(fifo, "a") since lseek returns with
- errno == ESPIPE on fifo and pipe. But how about tty and socket? I
- prefer all of them return with errno == ESPIPE.
-
- That is a known `featuree/bug' in stdio.
-
- H.J.
-