Subject: Re: kern/114: fifofs
To: None <mycroft@gnu.ai.mit.edu>
From: None <mw@eunet.ch>
List: netbsd-bugs
Date: 02/08/1994 23:00:09
> The first is not a bug; FIFOs are by definition unidirectional, and
Agreed.
> always have been. If you want a bidirectional pipe, you can use the
> pipe(2) system call or a Unix-domain socket.
Take care.. UX-domain sockets are bidirectional, pipe(2) is not.
Although it is -internally- implemented similarly, pipe intentionally
only connects the sockets in one direction, not in both, descriptor
permissions are set for FREAD and FWRITE respectively, not
FREAD|FWRITE in both. Contrast this to how socketpair() is
implemented (that one IS bidirectional).
-Markus
--
CHUUG/EUnet Switzerland Markus Wild
Zweierstrasse 35 Tel: +41 1 291 45 80 mw@eunet.ch
CH-8004 Zuerich Fax: +41 1 291 46 42 S=mw;P=EUnet;A=EUnet;C=CH
------------------------------------------------------------------------------