* Copyright (c) 1990 Jan-Simon Pendry
* Copyright (c) 1990 Imperial College of Science, Technology & Medicine
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
* This code is derived from software contributed to Berkeley by
* Jan-Simon Pendry at Imperial College, London.
* %sccs.include.redist.c%
* @(#)nfs_prot.h 8.1 (Berkeley) %G%
* $Id: nfs_prot.h,v 5.2.2.1 1992/02/09 15:09:29 jsp beta $
#define xdr_nfsstat xdr_enum
#define xdr_ftype xdr_enum
#define NFS_MAXPATHLEN 1024
#define NFS_MAXNAMLEN 255
#define NFSMODE_FMT 0170000
#define NFSMODE_DIR 0040000
#define NFSMODE_CHR 0020000
#define NFSMODE_BLK 0060000
#define NFSMODE_REG 0100000
#define NFSMODE_LNK 0120000
#define NFSMODE_SOCK 0140000
#define NFSMODE_FIFO 0010000
typedef enum nfsstat nfsstat
;
typedef enum ftype ftype
;
/* static bool_t xdr_ftype(); */
typedef struct nfs_fh nfs_fh
;
typedef struct nfstime nfstime
;
/* static bool_t xdr_nfstime(); */
typedef struct fattr fattr
;
/* static bool_t xdr_fattr(); */
typedef struct sattr sattr
;
/* static bool_t xdr_sattr(); */
/* static bool_t xdr_filename(); */
typedef struct attrstat attrstat
;
typedef struct sattrargs sattrargs
;
typedef struct diropargs diropargs
;
typedef struct diropokres diropokres
;
typedef struct diropres diropres
;
typedef struct readlinkres readlinkres
;
bool_t
xdr_readlinkres();
typedef struct readargs readargs
;
typedef struct readokres readokres
;
typedef struct readres readres
;
typedef struct writeargs writeargs
;
typedef struct createargs createargs
;
typedef struct renameargs renameargs
;
typedef struct linkargs linkargs
;
typedef struct symlinkargs symlinkargs
;
bool_t
xdr_symlinkargs();
typedef char nfscookie
[NFS_COOKIESIZE
];
/* static bool_t xdr_nfscookie(); */
typedef struct readdirargs readdirargs
;
bool_t
xdr_readdirargs();
typedef struct entry entry
;
/* static bool_t xdr_entry(); */
typedef struct dirlist dirlist
;
/* static bool_t xdr_dirlist(); */
typedef struct readdirres readdirres
;
typedef struct statfsokres statfsokres
;
bool_t
xdr_statfsokres();
typedef struct statfsres statfsres
;
#define NFS_PROGRAM ((u_long)100003)
#define NFS_VERSION ((u_long)2)
#define NFSPROC_NULL ((u_long)0)
extern voidp
nfsproc_null_2();
#define NFSPROC_GETATTR ((u_long)1)
extern attrstat
*nfsproc_getattr_2();
#define NFSPROC_SETATTR ((u_long)2)
extern attrstat
*nfsproc_setattr_2();
#define NFSPROC_ROOT ((u_long)3)
extern voidp
nfsproc_root_2();
#define NFSPROC_LOOKUP ((u_long)4)
extern diropres
*nfsproc_lookup_2();
#define NFSPROC_READLINK ((u_long)5)
extern readlinkres
*nfsproc_readlink_2();
#define NFSPROC_READ ((u_long)6)
extern readres
*nfsproc_read_2();
#define NFSPROC_WRITECACHE ((u_long)7)
extern voidp
nfsproc_writecache_2();
#define NFSPROC_WRITE ((u_long)8)
extern attrstat
*nfsproc_write_2();
#define NFSPROC_CREATE ((u_long)9)
extern diropres
*nfsproc_create_2();
#define NFSPROC_REMOVE ((u_long)10)
extern nfsstat
*nfsproc_remove_2();
#define NFSPROC_RENAME ((u_long)11)
extern nfsstat
*nfsproc_rename_2();
#define NFSPROC_LINK ((u_long)12)
extern nfsstat
*nfsproc_link_2();
#define NFSPROC_SYMLINK ((u_long)13)
extern nfsstat
*nfsproc_symlink_2();
#define NFSPROC_MKDIR ((u_long)14)
extern diropres
*nfsproc_mkdir_2();
#define NFSPROC_RMDIR ((u_long)15)
extern nfsstat
*nfsproc_rmdir_2();
#define NFSPROC_READDIR ((u_long)16)
extern readdirres
*nfsproc_readdir_2();
#define NFSPROC_STATFS ((u_long)17)
extern statfsres
*nfsproc_statfs_2();