From owner-freebsd-hackers Wed May 14 03:21:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id DAA08801 for hackers-outgoing; Wed, 14 May 1997 03:21:09 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id DAA08784 for ; Wed, 14 May 1997 03:20:51 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id MAA07529 for freebsd-hackers@FreeBSD.ORG; Wed, 14 May 1997 12:20:47 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id LAA14205; Wed, 14 May 1997 11:59:48 +0200 (MET DST) Message-ID: <19970514115947.IM26271@uriah.heep.sax.de> Date: Wed, 14 May 1997 11:59:47 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@FreeBSD.ORG Subject: Re: socketpair() References: <199705111800.NAA08334@dyson.iquest.net> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from Alex Belits on May 11, 1997 15:21:08 -0700 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Alex Belits wrote: > As I understand, bidirectional pipes in SVR4 are only a side effect of > STREAMS,... ...as were the 4.4BSD anonymous pipes (they were using the socket layers anyway). They have been artificially forced to become unidirectional, by making one of the descriptors read-only and one write-only. I also see portability as the biggest problem: if you don't read the man page carefully, and now accidentally use the `wrong' pipe direction, the code will work on FreeBSD and SVR4, but will fail (with an EBADF?) on quite a number of other systems. Perhaps we should also make it a sysctl variable, so one can test his code for being correct? -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)