From owner-freebsd-current Fri Jun 28 00:32:29 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA14547 for current-outgoing; Fri, 28 Jun 1996 00:32:29 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA14473 for ; Fri, 28 Jun 1996 00:30:54 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id UAA21335 for ; Thu, 27 Jun 1996 20:24:10 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id UAA14506 for freebsd-current@FreeBSD.org; Thu, 27 Jun 1996 20:24:10 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id UAA02652 for freebsd-current@FreeBSD.org; Thu, 27 Jun 1996 20:13:03 +0200 (MET DST) From: J Wunsch Message-Id: <199606271813.UAA02652@uriah.heep.sax.de> Subject: Re: socketpair bug? To: freebsd-current@freebsd.org (FreeBSD-current users) Date: Thu, 27 Jun 1996 20:13:03 +0200 (MET DST) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <31D18BE9.4BF61CB5@fa.tdktca.com> from Alex Nash at "Jun 26, 96 02:13:45 pm" 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 X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Alex Nash wrote: > > Oh, I have found where the problem is. socketpair() actually succeeded but > > returned the value of first descriptor in pair instead of 0. This is > > strange because it does not conform to man page (I am not sure wheither it > > comforms to POSIX too). > We also have a PR that covers this, 731. See also my Usenet reply: socketpair() basically needs a similar libc syscall wrapper like pipe(). Right now, it uses the generic syscall wrapper which is wrong. (The XXX??'s can be removed again then. :) -- 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. ;-)