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() Message-ID: <19970514115947.IM26271@uriah.heep.sax.de> In-Reply-To: <Pine.LNX.3.95.970511150951.1638F-100000@phobos.illtel.denver.co.us>; from Alex Belits on May 11, 1997 15:21:08 -0700 References: <199705111800.NAA08334@dyson.iquest.net> <Pine.LNX.3.95.970511150951.1638F-100000@phobos.illtel.denver.co.us>
next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970514115947.IM26271>