123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819 |
- /*
- * This file is part of the UCB release of Plan 9. It is subject to the license
- * terms in the LICENSE file found in the top-level directory of this
- * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
- * part of the UCB release of Plan 9, including this file, may be copied,
- * modified, propagated, or distributed except according to the terms contained
- * in the LICENSE file.
- */
- /*
- * NFS mounter V3; see RFC 1813
- */
- enum {
- NfsMount1HandleSize = 32,
- NfsMount3MaxPathSize = 1024,
- NfsMount3MaxNameSize = 255,
- NfsMount3MaxHandleSize = 64,
- NfsMount3Program = 100005,
- NfsMount3Version = 3,
- NfsMount1Program = 100005,
- NfsMount1Version = 1
- };
- typedef struct NfsMount3TNull NfsMount3TNull;
- typedef struct NfsMount3RNull NfsMount3RNull;
- typedef struct NfsMount3TMnt NfsMount3TMnt;
- typedef struct NfsMount3RMnt NfsMount3RMnt;
- typedef struct NfsMount3TDump NfsMount3TDump;
- typedef struct NfsMount3Entry NfsMount3Entry;
- typedef struct NfsMount3RDump NfsMount3RDump;
- typedef struct NfsMount3TUmnt NfsMount3TUmnt;
- typedef struct NfsMount3RUmnt NfsMount3RUmnt;
- typedef struct NfsMount3Export NfsMount3Export;
- typedef struct NfsMount3TUmntall NfsMount3TUmntall;
- typedef struct NfsMount3RUmntall NfsMount3RUmntall;
- typedef struct NfsMount3TExport NfsMount3TExport;
- typedef struct NfsMount3RExport NfsMount3RExport;
- typedef enum
- {
- NfsMount3CallTNull,
- NfsMount3CallRNull,
- NfsMount3CallTMnt,
- NfsMount3CallRMnt,
- NfsMount3CallTDump,
- NfsMount3CallRDump,
- NfsMount3CallTUmnt,
- NfsMount3CallRUmnt,
- NfsMount3CallTUmntall,
- NfsMount3CallRUmntall,
- NfsMount3CallTExport,
- NfsMount3CallRExport
- } NfsMount3CallType;
- typedef struct NfsMount3Call NfsMount3Call;
- struct NfsMount3Call {
- SunRpc rpc;
- NfsMount3CallType type;
- };
- struct NfsMount3TNull {
- NfsMount3Call call;
- };
- struct NfsMount3RNull {
- NfsMount3Call call;
- };
- struct NfsMount3TMnt {
- NfsMount3Call call;
- char *path;
- };
- struct NfsMount3RMnt {
- NfsMount3Call call;
- uint status;
- uint8_t *handle;
- uint len;
- uint32_t *auth;
- uint32_t nauth;
- };
- struct NfsMount3TDump {
- NfsMount3Call call;
- };
- struct NfsMount3Entry {
- char *host;
- char *path;
- };
- struct NfsMount3RDump {
- NfsMount3Call call;
- uint8_t *data;
- uint32_t count;
- };
- struct NfsMount3TUmnt {
- NfsMount3Call call;
- char *path;
- };
- struct NfsMount3RUmnt {
- NfsMount3Call call;
- };
- struct NfsMount3Export {
- char *path;
- char **g;
- uint32_t ng;
- };
- struct NfsMount3TUmntall {
- NfsMount3Call call;
- };
- struct NfsMount3RUmntall {
- NfsMount3Call call;
- };
- struct NfsMount3TExport {
- NfsMount3Call call;
- };
- struct NfsMount3RExport {
- NfsMount3Call call;
- uint8_t *data;
- uint32_t count;
- };
- uint nfsMount3ExportGroupSize(uint8_t*);
- uint nfsMount3ExportSize(NfsMount3Export*);
- int nfsMount3ExportPack(uint8_t*, uint8_t*, uint8_t**, NfsMount3Export*);
- int nfsMount3ExportUnpack(uint8_t*, uint8_t*, uint8_t**, char**, char***,
- NfsMount3Export*);
- int nfsMount3EntryPack(uint8_t*, uint8_t*, uint8_t**, NfsMount3Entry*);
- int nfsMount3EntryUnpack(uint8_t*, uint8_t*, uint8_t**, NfsMount3Entry*);
- uint nfsMount3EntrySize(NfsMount3Entry*);
- extern SunProg nfsMount3Prog;
- /*
- * NFS V3; see RFC 1813
- */
- enum {
- Nfs3MaxHandleSize = 64,
- Nfs3CookieVerfSize = 8,
- Nfs3CreateVerfSize = 8,
- Nfs3WriteVerfSize = 8,
- Nfs3AccessRead = 1,
- Nfs3AccessLookup = 2,
- Nfs3AccessModify = 4,
- Nfs3AccessExtend = 8,
- Nfs3AccessDelete = 16,
- Nfs3AccessExecute = 32,
- Nfs3FsHasLinks = 1,
- Nfs3FsHasSymlinks = 2,
- Nfs3FsHomogeneous = 8,
- Nfs3FsCanSetTime = 16,
- Nfs3Version = 3,
- Nfs3Program = 100003,
- };
- typedef enum
- {
- Nfs3Ok = 0,
- Nfs3ErrNotOwner = 1,
- Nfs3ErrNoEnt = 2,
- Nfs3ErrIo = 5,
- Nfs3ErrNxio = 6,
- Nfs3ErrNoMem = 12,
- Nfs3ErrAcces = 13,
- Nfs3ErrExist = 17,
- Nfs3ErrXDev = 18,
- Nfs3ErrNoDev = 19,
- Nfs3ErrNotDir = 20,
- Nfs3ErrIsDir = 21,
- Nfs3ErrInval = 22,
- Nfs3ErrFbig = 27,
- Nfs3ErrNoSpc = 28,
- Nfs3ErrRoFs = 30,
- Nfs3ErrMLink = 31,
- Nfs3ErrNameTooLong = 63,
- Nfs3ErrNotEmpty = 66,
- Nfs3ErrDQuot = 69,
- Nfs3ErrStale = 70,
- Nfs3ErrRemote = 71,
- Nfs3ErrBadHandle = 10001,
- Nfs3ErrNotSync = 10002,
- Nfs3ErrBadCookie = 10003,
- Nfs3ErrNotSupp = 10004,
- Nfs3ErrTooSmall = 10005,
- Nfs3ErrServerFault = 10006,
- Nfs3ErrBadType = 10007,
- Nfs3ErrJukebox = 10008,
- Nfs3ErrFprintNotFound = 10009,
- Nfs3ErrAborted = 10010,
- } Nfs3Status;
- void nfs3Errstr(Nfs3Status);
- typedef enum
- {
- Nfs3FileReg = 1,
- Nfs3FileDir = 2,
- Nfs3FileBlock = 3,
- Nfs3FileChar = 4,
- Nfs3FileSymlink = 5,
- Nfs3FileSocket = 6,
- Nfs3FileFifo = 7,
- } Nfs3FileType;
- enum
- {
- Nfs3ModeSetUid = 0x800,
- Nfs3ModeSetGid = 0x400,
- Nfs3ModeSticky = 0x200,
- };
- typedef enum
- {
- Nfs3CallTNull,
- Nfs3CallRNull,
- Nfs3CallTGetattr,
- Nfs3CallRGetattr,
- Nfs3CallTSetattr,
- Nfs3CallRSetattr,
- Nfs3CallTLookup,
- Nfs3CallRLookup,
- Nfs3CallTAccess,
- Nfs3CallRAccess,
- Nfs3CallTReadlink,
- Nfs3CallRReadlink,
- Nfs3CallTRead,
- Nfs3CallRRead,
- Nfs3CallTWrite,
- Nfs3CallRWrite,
- Nfs3CallTCreate,
- Nfs3CallRCreate,
- Nfs3CallTMkdir,
- Nfs3CallRMkdir,
- Nfs3CallTSymlink,
- Nfs3CallRSymlink,
- Nfs3CallTMknod,
- Nfs3CallRMknod,
- Nfs3CallTRemove,
- Nfs3CallRRemove,
- Nfs3CallTRmdir,
- Nfs3CallRRmdir,
- Nfs3CallTRename,
- Nfs3CallRRename,
- Nfs3CallTLink,
- Nfs3CallRLink,
- Nfs3CallTReadDir,
- Nfs3CallRReadDir,
- Nfs3CallTReadDirPlus,
- Nfs3CallRReadDirPlus,
- Nfs3CallTFsStat,
- Nfs3CallRFsStat,
- Nfs3CallTFsInfo,
- Nfs3CallRFsInfo,
- Nfs3CallTPathconf,
- Nfs3CallRPathconf,
- Nfs3CallTCommit,
- Nfs3CallRCommit,
- } Nfs3CallType;
- typedef struct Nfs3Call Nfs3Call;
- typedef struct Nfs3Handle Nfs3Handle;
- typedef struct Nfs3Time Nfs3Time;
- typedef struct Nfs3Attr Nfs3Attr;
- typedef struct Nfs3WccAttr Nfs3WccAttr;
- typedef struct Nfs3Wcc Nfs3Wcc;
- typedef enum
- {
- Nfs3SetTimeDont = 0,
- Nfs3SetTimeServer = 1,
- Nfs3SetTimeClient = 2,
- } Nfs3SetTime;
- typedef struct Nfs3SetAttr Nfs3SetAttr;
- typedef struct Nfs3TNull Nfs3TNull;
- typedef struct Nfs3RNull Nfs3RNull;
- typedef struct Nfs3TGetattr Nfs3TGetattr;
- typedef struct Nfs3RGetattr Nfs3RGetattr;
- typedef struct Nfs3TSetattr Nfs3TSetattr;
- typedef struct Nfs3RSetattr Nfs3RSetattr;
- typedef struct Nfs3TLookup Nfs3TLookup;
- typedef struct Nfs3RLookup Nfs3RLookup;
- typedef struct Nfs3TAccess Nfs3TAccess;
- typedef struct Nfs3RAccess Nfs3RAccess;
- typedef struct Nfs3TReadlink Nfs3TReadlink;
- typedef struct Nfs3RReadlink Nfs3RReadlink;
- typedef struct Nfs3TRead Nfs3TRead;
- typedef struct Nfs3RRead Nfs3RRead;
- typedef enum
- {
- Nfs3SyncNone = 0,
- Nfs3SyncData = 1,
- Nfs3SyncFile = 2,
- } Nfs3Sync;
- typedef struct Nfs3TWrite Nfs3TWrite;
- typedef struct Nfs3RWrite Nfs3RWrite;
- typedef enum
- {
- Nfs3CreateUnchecked = 0,
- Nfs3CreateGuarded = 1,
- Nfs3CreateExclusive = 2,
- } Nfs3Create;
- typedef struct Nfs3TCreate Nfs3TCreate;
- typedef struct Nfs3RCreate Nfs3RCreate;
- typedef struct Nfs3TMkdir Nfs3TMkdir;
- typedef struct Nfs3RMkdir Nfs3RMkdir;
- typedef struct Nfs3TSymlink Nfs3TSymlink;
- typedef struct Nfs3RSymlink Nfs3RSymlink;
- typedef struct Nfs3TMknod Nfs3TMknod;
- typedef struct Nfs3RMknod Nfs3RMknod;
- typedef struct Nfs3TRemove Nfs3TRemove;
- typedef struct Nfs3RRemove Nfs3RRemove;
- typedef struct Nfs3TRmdir Nfs3TRmdir;
- typedef struct Nfs3RRmdir Nfs3RRmdir;
- typedef struct Nfs3TRename Nfs3TRename;
- typedef struct Nfs3RRename Nfs3RRename;
- typedef struct Nfs3TLink Nfs3TLink;
- typedef struct Nfs3RLink Nfs3RLink;
- typedef struct Nfs3TReadDir Nfs3TReadDir;
- typedef struct Nfs3Entry Nfs3Entry;
- typedef struct Nfs3RReadDir Nfs3RReadDir;
- typedef struct Nfs3TReadDirPlus Nfs3TReadDirPlus;
- typedef struct Nfs3EntryPlus Nfs3EntryPlus;
- typedef struct Nfs3RReadDirPlus Nfs3RReadDirPlus;
- typedef struct Nfs3TFsStat Nfs3TFsStat;
- typedef struct Nfs3RFsStat Nfs3RFsStat;
- typedef struct Nfs3TFsInfo Nfs3TFsInfo;
- typedef struct Nfs3RFsInfo Nfs3RFsInfo;
- typedef struct Nfs3TPathconf Nfs3TPathconf;
- typedef struct Nfs3RPathconf Nfs3RPathconf;
- typedef struct Nfs3TCommit Nfs3TCommit;
- typedef struct Nfs3RCommit Nfs3RCommit;
- struct Nfs3Call {
- SunRpc rpc;
- Nfs3CallType type;
- };
- struct Nfs3Handle {
- uint8_t h[Nfs3MaxHandleSize];
- uint32_t len;
- };
- struct Nfs3Time {
- uint32_t sec;
- uint32_t nsec;
- };
- struct Nfs3Attr {
- Nfs3FileType type;
- uint32_t mode;
- uint32_t nlink;
- uint32_t uid;
- uint32_t gid;
- uint64_t size;
- uint64_t used;
- uint32_t major;
- uint32_t minor;
- uint64_t fsid;
- uint64_t fileid;
- Nfs3Time atime;
- Nfs3Time mtime;
- Nfs3Time ctime;
- };
- struct Nfs3WccAttr {
- uint64_t size;
- Nfs3Time mtime;
- Nfs3Time ctime;
- };
- struct Nfs3Wcc {
- u1int haveWccAttr;
- Nfs3WccAttr wccAttr;
- u1int haveAttr;
- Nfs3Attr attr;
- };
- struct Nfs3SetAttr {
- u1int setMode;
- uint32_t mode;
- u1int setUid;
- uint32_t uid;
- u1int setGid;
- uint32_t gid;
- u1int setSize;
- uint64_t size;
- Nfs3SetTime setAtime;
- Nfs3Time atime;
- Nfs3SetTime setMtime;
- Nfs3Time mtime;
- };
- struct Nfs3TNull {
- Nfs3Call call;
- };
- struct Nfs3RNull {
- Nfs3Call call;
- };
- struct Nfs3TGetattr {
- Nfs3Call call;
- Nfs3Handle handle;
- };
- struct Nfs3RGetattr {
- Nfs3Call call;
- Nfs3Status status;
- Nfs3Attr attr;
- };
- struct Nfs3TSetattr {
- Nfs3Call call;
- Nfs3Handle handle;
- Nfs3SetAttr attr;
- u1int checkCtime;
- Nfs3Time ctime;
- };
- struct Nfs3RSetattr {
- Nfs3Call call;
- Nfs3Status status;
- Nfs3Wcc wcc;
- };
- struct Nfs3TLookup {
- Nfs3Call call;
- Nfs3Handle handle;
- char *name;
- };
- struct Nfs3RLookup {
- Nfs3Call call;
- Nfs3Status status;
- Nfs3Handle handle;
- u1int haveAttr;
- Nfs3Attr attr;
- u1int haveDirAttr;
- Nfs3Attr dirAttr;
- };
- struct Nfs3TAccess {
- Nfs3Call call;
- Nfs3Handle handle;
- uint32_t access;
- };
- struct Nfs3RAccess {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveAttr;
- Nfs3Attr attr;
- uint32_t access;
- };
- struct Nfs3TReadlink {
- Nfs3Call call;
- Nfs3Handle handle;
- };
- struct Nfs3RReadlink {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveAttr;
- Nfs3Attr attr;
- char *data;
- };
- struct Nfs3TRead {
- Nfs3Call call;
- Nfs3Handle handle;
- uint64_t offset;
- uint32_t count;
- };
- struct Nfs3RRead {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveAttr;
- Nfs3Attr attr;
- uint32_t count;
- u1int eof;
- uint8_t *data;
- uint32_t ndata;
- };
- struct Nfs3TWrite {
- Nfs3Call call;
- Nfs3Handle handle;
- uint64_t offset;
- uint32_t count;
- Nfs3Sync stable;
- uint8_t *data;
- uint32_t ndata;
- };
- struct Nfs3RWrite {
- Nfs3Call call;
- Nfs3Status status;
- Nfs3Wcc wcc;
- uint32_t count;
- Nfs3Sync committed;
- uint8_t verf[Nfs3WriteVerfSize];
- };
- struct Nfs3TCreate {
- Nfs3Call call;
- Nfs3Handle handle;
- char *name;
- Nfs3Create mode;
- Nfs3SetAttr attr;
- uint8_t verf[Nfs3CreateVerfSize];
- };
- struct Nfs3RCreate {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveHandle;
- Nfs3Handle handle;
- u1int haveAttr;
- Nfs3Attr attr;
- Nfs3Wcc dirWcc;
- };
- struct Nfs3TMkdir {
- Nfs3Call call;
- Nfs3Handle handle;
- char *name;
- Nfs3SetAttr attr;
- };
- struct Nfs3RMkdir {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveHandle;
- Nfs3Handle handle;
- u1int haveAttr;
- Nfs3Attr attr;
- Nfs3Wcc dirWcc;
- };
- struct Nfs3TSymlink {
- Nfs3Call call;
- Nfs3Handle handle;
- char *name;
- Nfs3SetAttr attr;
- char *data;
- };
- struct Nfs3RSymlink {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveHandle;
- Nfs3Handle handle;
- u1int haveAttr;
- Nfs3Attr attr;
- Nfs3Wcc dirWcc;
- };
- struct Nfs3TMknod {
- Nfs3Call call;
- Nfs3Handle handle;
- char *name;
- Nfs3FileType type;
- Nfs3SetAttr attr;
- uint32_t major;
- uint32_t minor;
- };
- struct Nfs3RMknod {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveHandle;
- Nfs3Handle handle;
- u1int haveAttr;
- Nfs3Attr attr;
- Nfs3Wcc dirWcc;
- };
- struct Nfs3TRemove {
- Nfs3Call call;
- Nfs3Handle handle;
- char *name;
- };
- struct Nfs3RRemove {
- Nfs3Call call;
- Nfs3Status status;
- Nfs3Wcc wcc;
- };
- struct Nfs3TRmdir {
- Nfs3Call call;
- Nfs3Handle handle;
- char *name;
- };
- struct Nfs3RRmdir {
- Nfs3Call call;
- Nfs3Status status;
- Nfs3Wcc wcc;
- };
- struct Nfs3TRename {
- Nfs3Call call;
- struct {
- Nfs3Handle handle;
- char *name;
- } from;
- struct {
- Nfs3Handle handle;
- char *name;
- } to;
- };
- struct Nfs3RRename {
- Nfs3Call call;
- Nfs3Status status;
- Nfs3Wcc fromWcc;
- Nfs3Wcc toWcc;
- };
- struct Nfs3TLink {
- Nfs3Call call;
- Nfs3Handle handle;
- struct {
- Nfs3Handle handle;
- char *name;
- } link;
- };
- struct Nfs3RLink {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveAttr;
- Nfs3Attr attr;
- Nfs3Wcc dirWcc;
- };
- struct Nfs3TReadDir {
- Nfs3Call call;
- Nfs3Handle handle;
- uint64_t cookie;
- uint8_t verf[Nfs3CookieVerfSize];
- uint32_t count;
- };
- struct Nfs3RReadDir {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveAttr;
- Nfs3Attr attr;
- uint8_t verf[Nfs3CookieVerfSize];
- uint8_t *data;
- uint32_t count;
- u1int eof;
- };
- struct Nfs3TReadDirPlus {
- Nfs3Call call;
- Nfs3Handle handle;
- uint64_t cookie;
- uint8_t verf[Nfs3CookieVerfSize];
- uint32_t dirCount;
- uint32_t maxCount;
- };
- struct Nfs3Entry {
- uint64_t fileid;
- char *name;
- uint64_t cookie;
- u1int haveAttr;
- Nfs3Attr attr;
- u1int haveHandle;
- Nfs3Handle handle;
- };
- struct Nfs3RReadDirPlus {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveAttr;
- Nfs3Attr attr;
- uint8_t verf[Nfs3CookieVerfSize];
- uint8_t *data;
- uint32_t count;
- u1int eof;
- };
- struct Nfs3TFsStat {
- Nfs3Call call;
- Nfs3Handle handle;
- };
- struct Nfs3RFsStat {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveAttr;
- Nfs3Attr attr;
- uint64_t totalBytes;
- uint64_t freeBytes;
- uint64_t availBytes;
- uint64_t totalFiles;
- uint64_t freeFiles;
- uint64_t availFiles;
- uint32_t invarSec;
- };
- struct Nfs3TFsInfo {
- Nfs3Call call;
- Nfs3Handle handle;
- };
- struct Nfs3RFsInfo {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveAttr;
- Nfs3Attr attr;
- uint32_t readMax;
- uint32_t readPref;
- uint32_t readMult;
- uint32_t writeMax;
- uint32_t writePref;
- uint32_t writeMult;
- uint32_t readDirPref;
- uint64_t maxFileSize;
- Nfs3Time timePrec;
- uint32_t flags;
- };
- struct Nfs3TPathconf {
- Nfs3Call call;
- Nfs3Handle handle;
- };
- struct Nfs3RPathconf {
- Nfs3Call call;
- Nfs3Status status;
- u1int haveAttr;
- Nfs3Attr attr;
- uint32_t maxLink;
- uint32_t maxName;
- u1int noTrunc;
- u1int chownRestricted;
- u1int caseInsensitive;
- u1int casePreserving;
- };
- struct Nfs3TCommit {
- Nfs3Call call;
- Nfs3Handle handle;
- uint64_t offset;
- uint32_t count;
- };
- struct Nfs3RCommit {
- Nfs3Call call;
- Nfs3Status status;
- Nfs3Wcc wcc;
- uint8_t verf[Nfs3WriteVerfSize];
- };
- char *nfs3StatusStr(Nfs3Status);
- char *nfs3TypeStr(Nfs3CallType);
- char *nfs3SetTimeStr(Nfs3SetTime);
- char *nfs3SyncStr(Nfs3Sync);
- void nfs3HandlePrint(Fmt*, Nfs3Handle*);
- uint32_t nfs3HandleSize(Nfs3Handle*);
- int nfs3HandlePack(uint8_t*, uint8_t*, uint8_t**, Nfs3Handle*);
- int nfs3HandleUnpack(uint8_t*, uint8_t*, uint8_t**, Nfs3Handle*);
- void nfs3TimePrint(Fmt*, Nfs3Time*);
- uint32_t nfs3TimeSize(Nfs3Time*);
- int nfs3TimePack(uint8_t*, uint8_t*, uint8_t**, Nfs3Time*);
- int nfs3TimeUnpack(uint8_t*, uint8_t*, uint8_t**, Nfs3Time*);
- void nfs3AttrPrint(Fmt*, Nfs3Attr*);
- uint32_t nfs3AttrSize(Nfs3Attr*);
- int nfs3AttrPack(uint8_t*, uint8_t*, uint8_t**, Nfs3Attr*);
- int nfs3AttrUnpack(uint8_t*, uint8_t*, uint8_t**, Nfs3Attr*);
- void nfs3WccAttrPrint(Fmt*, Nfs3WccAttr*);
- uint32_t nfs3WccAttrSize(Nfs3WccAttr*);
- int nfs3WccAttrPack(uint8_t*, uint8_t*, uint8_t**, Nfs3WccAttr*);
- int nfs3WccAttrUnpack(uint8_t*, uint8_t*, uint8_t**, Nfs3WccAttr*);
- void nfs3WccPrint(Fmt*, Nfs3Wcc*);
- uint32_t nfs3WccSize(Nfs3Wcc*);
- int nfs3WccPack(uint8_t*, uint8_t*, uint8_t**, Nfs3Wcc*);
- int nfs3WccUnpack(uint8_t*, uint8_t*, uint8_t**, Nfs3Wcc*);
- void nfs3SetAttrPrint(Fmt*, Nfs3SetAttr*);
- uint32_t nfs3SetAttrSize(Nfs3SetAttr*);
- int nfs3SetAttrPack(uint8_t*, uint8_t*, uint8_t**, Nfs3SetAttr*);
- int nfs3SetAttrUnpack(uint8_t*, uint8_t*, uint8_t**, Nfs3SetAttr*);
- extern SunProg nfs3Prog;
- void nfs3EntryPrint(Fmt*, Nfs3Entry*);
- uint32_t nfs3EntrySize(Nfs3Entry*);
- int nfs3EntryPack(uint8_t*, uint8_t*, uint8_t**, Nfs3Entry*);
- int nfs3EntryUnpack(uint8_t*, uint8_t*, uint8_t**, Nfs3Entry*);
- void nfs3EntryPlusPrint(Fmt*, Nfs3Entry*);
- uint32_t nfs3EntryPlusSize(Nfs3Entry*);
- int nfs3EntryPlusPack(uint8_t*, uint8_t*, uint8_t**, Nfs3Entry*);
- int nfs3EntryPlusUnpack(uint8_t*, uint8_t*, uint8_t**, Nfs3Entry*);
|