From: H.J. Lu (hlu@luke.eecs.wsu.edu)
Date: 01/08/93


From: hlu@luke.eecs.wsu.edu (H.J. Lu)
Subject: Re: Library 4.1 bug/feature?  fopen("fifo","a") fails
Date: Fri, 8 Jan 1993 07:16:03 GMT

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.