Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Feb 1996 16:41:01 +1030 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        brantk@gatekeeper.atlas.com (Brant Katkansky)
Cc:        msmith@atrad.adelaide.edu.au, bmk@dtr.com, brantk@gatekeeper.atlas.com, hackers@freebsd.org
Subject:   Re: need help w/rpc stuff
Message-ID:  <199602230611.QAA22002@genesis.atrad.adelaide.edu.au>
In-Reply-To: <9602230106.AA01360@billthecat.atlas.com.> from "Brant Katkansky" at Feb 22, 96 05:06:03 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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 <nfs/nfs.h>, but I can find no such user or kernel
> stucture in FreeBSD.

It's 'struct nfsv2_fattr' in <sys/nfs/nfsv2.h>.  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 <nfs/nfs.h> 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  [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602230611.QAA22002>