From owner-freebsd-current Wed Jun 26 12:11:28 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA28542 for current-outgoing; Wed, 26 Jun 1996 12:11:28 -0700 (PDT) Received: from shogun.tdktca.com ([206.26.1.21]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA28526 for ; Wed, 26 Jun 1996 12:11:24 -0700 (PDT) Received: from shogun.tdktca.com (daemon@localhost) by shogun.tdktca.com (8.7.2/8.7.2) with ESMTP id OAA14284 for ; Wed, 26 Jun 1996 14:12:31 -0500 (CDT) Received: from orion.fa.tdktca.com ([163.49.131.130]) by shogun.tdktca.com (8.7.2/8.7.2) with SMTP id OAA14277 for ; Wed, 26 Jun 1996 14:12:31 -0500 (CDT) Received: from orion (alex@localhost [127.0.0.1]) by orion.fa.tdktca.com (8.6.12/8.6.9) with SMTP id OAA04338; Wed, 26 Jun 1996 14:13:45 -0500 Message-ID: <31D18BE9.4BF61CB5@fa.tdktca.com> Date: Wed, 26 Jun 1996 14:13:45 -0500 From: Alex Nash Organization: TDK Factory Automation X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.13 i586) MIME-Version: 1.0 To: Nate Williams CC: current@FreeBSD.org Subject: Re: socketpair bug? References: <199606261645.KAA25194@trout.mt.sri.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Nate Williams wrote: > > Path: helena.MT.net!news.sprintlink.net!news-stk-11.sprintlink.net!guitar.sound.net!winternet.com!uunet!in2.uu.net!EU.net!news.eunet.fi!news.spb.su!satisfy.kia > From: boris@macsimum.gamma.ru (Boris Lavrinovich) > Newsgroups: comp.unix.bsd.freebsd.misc > Subject: Re: socketpair() in 2.2-960612-SNAP > Date: Wed, 26 Jun 1996 00:52:30 +0300 > Organization: Macsimum, Ltd > Lines: 37 > Message-ID: > NNTP-Posting-Host: boris.macsimum.gamma.ru > > In article <4qc13h$12i@helena.MT.net>, "Nate Williams" > wrote: > > > In article , > > Boris Lavrinovich wrote: > > >I installed 2.2-960612-SNAP and discovered that socketpair() system call > > >returns "File exists" error in my programs. I used Linux before and > > >suppose that there should be /dev/unix device but there is no such device. > > > > Why should there be a /dev/unix device? > > > > >Should I set any options in kernel to make it work? I did not find any. > > > > It should work fine now. What does your code look like? I suspect you > > are using some sort of non-portable Linuxism (is that a word?) that doesn't > > exist on FreeBSD. > > 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). > > So the code that tests return value not to be equal -1 will work, but code > that tests return value to be equal 0 won't. This is nor a big problem for > me, but I suppose it should be fixed. We also have a PR that covers this, 731. http://www.freebsd.org/cgi-bin/query-pr.cgi?pr=731 Alex