Subject: Re: pipe(2)
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-help
Date: 08/29/2001 22:57:37
In article <20010829171922.A13110@neutralgood.org>,
Kevin P. Neal <kpneal@pobox.com> wrote:
>On Wed, Aug 29, 2001 at 09:18:28AM -0700, Louis wrote:
>>
>> Hi,
>>
>> A friend and I are working on a program (currently on
>> FreeBSD) that uses the FreeBSD bidirectional pipe(2).
>> We'd like to port it on NetBSD and OpenBSD but they
>> only have unidirectional pipes.
>> Is there any remplacement mechanism fot that ?
>
as kevin implied, use socketpair(2).
christos
>Um, can you use sockets somehow? Or a pair of pipes?
>
>I'm under the impression that pipes are defined as being unidirectional
>but some systems have extended them to bidirectional. So, if you
>rely on bidirectional pipes then you have architected yourself into
>an unportable corner.
>--
>Kevin P. Neal http://www.pobox.com/~kpn/
>
>"Nonbelievers found it difficult to defend their position in \
> the presense of a working computer." -- a DEC Jensen paper