From owner-freebsd-questions Sun Mar 17 21:09:58 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA29101 for questions-outgoing; Sun, 17 Mar 1996 21:09:58 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id VAA29092 for ; Sun, 17 Mar 1996 21:09:49 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id PAA23731; Mon, 18 Mar 1996 15:50:16 +1030 From: Michael Smith Message-Id: <199603180520.PAA23731@genesis.atrad.adelaide.edu.au> Subject: Re: Domain sockets / passing fd To: steve@icis.qut.edu.au (Steve Milliner) Date: Mon, 18 Mar 1996 15:50:16 +1030 (CST) Cc: msmith@atrad.adelaide.edu.au, questions@FreeBSD.org In-Reply-To: <199603180453.OAA11077@russell.icis.qut.edu.au> from "Steve Milliner" at Mar 18, 96 02:53:07 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Steve Milliner stands accused of saying: > Hmmmmm -- now I'm confused, because althouh the Stevens code works > fine on the Sparc and HP machines (always has), it does not even > compile on my FreeBsd machine -- basically becasue the struct msghdr > has been changed in the socket.h header, and doesn't have the > "msg_accrights" and "msg_accrightslen" fields any more ... so how > did you get the Stevens example to work They're called 'msg_control' and 'msg_controllen', see recv(2). I don't know why they have different names to the SunOS versions; I suspect it has a lot to do with SunOS being based on 4.2/4.3BSD, wheras the version in FreeBSD is from 4.4. I don't have a copy of 4.4lite to check with though. Anyone care to comment on the renaming? Could we perhaps have some compatability macros for cases like this? > REgs Stephen Milliner -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[