From owner-freebsd-hackers Sat Mar 6 19: 0:48 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (Postfix) with ESMTP id 160AA14BFF for ; Sat, 6 Mar 1999 19:00:44 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.2/8.8.8) with ESMTP id CAA60978 for ; Sun, 7 Mar 1999 02:34:54 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA12643 for ; Sun, 7 Mar 1999 02:34:23 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199903070234.CAA12643@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: freebsd-hackers@FreeBSD.org Subject: pipe(2) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 07 Mar 1999 02:34:23 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Should pipe(2) be a bit stronger about what's ``conventional'' and mention that two uni-directional descriptors are returned by most operating systems ? I've been stung twice recently because I've assumed that the descriptors are bidirectional :-( If there are no objections, I'll update the man page: Index: pipe.2 =================================================================== RCS file: /home/ncvs/src/lib/libc/sys/pipe.2,v retrieving revision 1.7 diff -u -r1.7 pipe.2 --- pipe.2 1997/01/20 23:18:01 1.7 +++ pipe.2 1999/03/07 02:32:11 @@ -111,6 +111,9 @@ .Xr read 2 , .Xr socketpair 2 , .Xr write 2 +.Sh STANDARDS +POSIX does not require that each descriptor is bidirectional. For +portability reasons, unidirectional descriptors should be assumed. .Sh HISTORY A .Fn pipe -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message