home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23186 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.4 KB

  1. Xref: sparky comp.os.linux:23186 comp.std.c:3341
  2. Newsgroups: comp.os.linux,comp.std.c
  3. 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
  4. From: hlu@luke.eecs.wsu.edu (H.J. Lu)
  5. Subject: Re: Library 4.1 bug/feature?  fopen("fifo","a") fails
  6. Message-ID: <1993Jan8.071603.20564@serval.net.wsu.edu>
  7. Sender: news@serval.net.wsu.edu (USENET News System)
  8. Organization: Washington State University!
  9. References: <1993Jan7.232805.16555@serval.net.wsu.edu> <1993Jan8.020515.7341@ods.com>
  10. Date: Fri, 8 Jan 93 07:16:03 GMT
  11. Lines: 23
  12.  
  13. In article <1993Jan8.020515.7341@ods.com> david@ods.com (David Engel) writes:
  14. >H.J. Lu (hlu@eecs.wsu.edu) wrote:
  15. >: Have you tried my test code? Some Unices just ignore lseek (). FIFO is just
  16. >: one type of file, on which lseek cannot be done. We have char devices and
  17. >: sockets. I prefer stdio should not know so much details about the kernel.
  18. >
  19. >I tried it under SVR4 and it also reports an error in lseek when run
  20. >on a fifo.
  21. >
  22. >David
  23. >-- 
  24. >David Engel                        Optical Data Systems, Inc.
  25. >david@ods.com                      1101 E. Arapaho Road
  26. >(214) 234-6400                     Richardson, TX  75081
  27.  
  28.  
  29. I can fix stdio to handle fopen(fifo, "a") since lseek returns with
  30. errno == ESPIPE on fifo and pipe. But how about tty and socket? I
  31. prefer all of them return with errno == ESPIPE.
  32.  
  33. That is a known `featuree/bug' in stdio.
  34.  
  35. H.J.
  36.