Re: Question about pipe implementation

Alan Cox (
Wed, 30 Oct 1996 22:57:12 +0000 (GMT)

> My initial reason for asking this is that one of my professors was saying
> that he had this program in FreeBSD that worked great(pipes "backwards"),
> and when he tried to port it to Linux it wouldn't work anymore.
> Therefore, he concluded, Linux does not have bi-directional pipes.

Correct. The fact most BSD boxes have bidirectional pipes is a side effect
of them using socketpair to generate pipes. Its not something thats
standards guaranteed or portable as an assumption.