From owner-freebsd-hackers Thu Feb 22 22:17:13 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA14405 for hackers-outgoing; Thu, 22 Feb 1996 22:17:13 -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 WAA14328 for ; Thu, 22 Feb 1996 22:15:45 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id QAA22002; Fri, 23 Feb 1996 16:41:01 +1030 From: Michael Smith Message-Id: <199602230611.QAA22002@genesis.atrad.adelaide.edu.au> Subject: Re: need help w/rpc stuff To: brantk@gatekeeper.atlas.com (Brant Katkansky) Date: Fri, 23 Feb 1996 16:41:01 +1030 (CST) Cc: msmith@atrad.adelaide.edu.au, bmk@dtr.com, brantk@gatekeeper.atlas.com, hackers@freebsd.org In-Reply-To: <9602230106.AA01360@billthecat.atlas.com.> from "Brant Katkansky" at Feb 22, 96 05:06:03 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org Precedence: bulk Brant Katkansky stands accused of saying: > > OK - keep in mind I'm working under an NDA here, so I can't post the > entire source. Here's a representative sample of what I'm up against: Understood... > cc -g -I../include -I/usr/include -DSYSV_IPC -Dfreebsd -c fe_xdr.c > fe_xdr.c: In function `xdr_fattr': > fe_xdr.c:78: dereferencing pointer to incomplete type ... > 73:xdr_fattr(xdrsp, fattrp) > 74:XDR *xdrsp; > 75:struct nfsfattr *fattrp; > 76:{ > 77: > 78: if (!xdr_enum(xdrsp, &fattrp->na_type)) > 79: return(0); > It looks to me like struct type nfsfattr is the culprit - in SunOS > it's defined in , but I can find no such user or kernel > stucture in FreeBSD. It's 'struct nfsv2_fattr' in . Note that the member names are different too; the 'na_' members are named 'fa_'. You must be working on some _uglee_ code to want to get at these 8) > Also, the SunOS specifies some other structs like nfswriteargs > and nfsreadargs, which I suspect are probably kernel structs in FreeBSD. Urr. The Guelph NFS code in FreeBSD isn't quite as simple as that 8) I'd be inclined to just steal the header from SunOS, or grab the NFS RPC and retcon it from there. > > > * Is userland NFS code from SunOS generally workable under BSD? > > > > "Generally" > > Playing it safe? :) Well, there's really no such thing as "userland NFS", so it depends on what exactly you have in mind 8) > > Sun invented most of the NFS stuff, so we should still be pretty compatible. > > Yeah, well, IBM invented the PC, too. :) Could have done worse, of course. Intel are great to bash, but there were plenty of far more frightening contenders... > Brant Katkansky (brantk@atlas.com) -- ]] 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 [[