home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3909 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.3 KB

  1. Xref: sparky comp.unix.programmer:3909 comp.unix.questions:9420
  2. Path: sparky!uunet!dtix!mimsy!nmrdc1!frmug!cpio1!bernard
  3. From: bernard@cpio1.UUCP (Bernard Fouche)
  4. Newsgroups: comp.unix.programmer,comp.unix.questions
  5. Subject: Re: Bidirectional Pipes
  6. Keywords: pipes
  7. Message-ID: <1992Jul24.101257.12697@cpio1.UUCP>
  8. Date: 24 Jul 92 10:12:57 GMT
  9. References: <1992Jul13.175933.26213@dragon.acadiau.ca> <1992Jul14.061826.11689@Unibase.SK.CA>
  10. Sender: bernard@cpio1.UUCP (Bernard Fouche)
  11. Organization: CPIO S.A.
  12. Lines: 18
  13.  
  14.  
  15. In article <1992Jul14.061826.11689@Unibase.SK.CA>, roe@Unibase.SK.CA (Roe Peterson) writes:
  16. > 890025d@dragon.acadiau.ca (Andy DeWolfe) writes:
  17. > Sorry, but there is no such beastie as a bi-directional pipe.  The
  18. > pipe(2) system call will return two file descriptors, one open for
  19. > write, and one open for read.  Have the reader close the write end, and
  20. > the writer close the read end.
  21. > You can't use pipe to communicate in both direction over one file
  22. > descriptor.
  23.  
  24. Yes you can, since System V Release 4.0 at least. Get the man page of
  25. pipe(2) for this release...
  26. -- 
  27. -----------------------------------------------------------------------------
  28. Bernard Fouche  VOX   : +(33) (1) 48.04.56.30  FAX :  (33) (1) 48.04.98.95|
  29. Email : bernard@cpio1.UUCP or cpio1!bernard@gna.org (try both!)
  30. Postal Mail : CPIO S.A., 13-15 Rue de la Verrerie, 75004 Paris, France
  31.