From owner-freebsd-current Wed Jun 26 09:46:02 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA19950 for current-outgoing; Wed, 26 Jun 1996 09:46:02 -0700 (PDT) Received: from trout.mt.sri.com (trout.sri.MT.net [204.182.243.12]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA19929 for ; Wed, 26 Jun 1996 09:45:55 -0700 (PDT) Received: (from nate@localhost) by trout.mt.sri.com (8.6.12/8.6.12) id KAA25194 for current@FreeBSD.org; Wed, 26 Jun 1996 10:45:51 -0600 Date: Wed, 26 Jun 1996 10:45:51 -0600 From: Nate Williams Message-Id: <199606261645.KAA25194@trout.mt.sri.com> To: current@FreeBSD.org Subject: socketpair bug? Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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.kiae.su!Gamma.RU!srcc!macsimum.gamma.ru!boris.macsimum.gamma.ru!user 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. Boris. ============================================= Boris Lavrinovich Macsimum, Ltd 119899 Moscow University Computer Center Vorobiovy Gory Moscow Russia Voice: (095) 939-2471 Fax: (095) 939-1022 Internet: boris@macsimum.gamma.ru