From owner-freebsd-questions Sun Mar 17 21:34:58 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA00410 for questions-outgoing; Sun, 17 Mar 1996 21:34:58 -0800 (PST) Received: from ovid.icis.qut.edu.au (root@ovid.icis.qut.edu.au [131.181.70.41]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id VAA00377 for ; Sun, 17 Mar 1996 21:34:46 -0800 (PST) Received: from russell.icis.qut.edu.au (steve@russell.icis.qut.edu.au [131.181.70.49]) by ovid.icis.qut.edu.au (8.7.1/8.7.1) with ESMTP id PAA15032; Mon, 18 Mar 1996 15:33:10 GMT Received: (from steve@localhost) by russell.icis.qut.edu.au (8.7.1/8.7.1) id PAA11183; Mon, 18 Mar 1996 15:34:15 +1000 (EST) Date: Mon, 18 Mar 1996 15:34:15 +1000 (EST) From: Steve Milliner Message-Id: <199603180534.PAA11183@russell.icis.qut.edu.au> To: msmith@atrad.adelaide.edu.au Subject: Re: Domain sockets / passing fd Cc: questions@FreeBSD.org X-Sun-Charset: US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > 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. > Exactly, but the code in Steven's (well the version I have anyway) uses the older BSD style (ie. "msg_accrights" and "msg_accrightslen") -- so when you said you got Steven's code to work 'out of the box' didn't you have to change it to incorporate 'msg_control' and 'msg_controllen' to get it to compile on FreeBsd ? if so, this is exactly what I'm after! because I've included msg_control and msg_controllen to get the program to compile (which it does) - but I can't get the dam thing to run ie. the "invalid parameter" error at run time. If this is not the case I could bring in my coding attempts tomorrow? Thanks very much for all this feed back, its greatly appreciated! > 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? > yep, that'd be nice :> Regs Stephen Milliner