diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-10-20 02:33:43 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-10-20 02:33:43 +0000 |
commit | 57c2b536cabf433040761694c1e824e5cc80f7b9 (patch) | |
tree | 7076ac495beb2946a47727bd9b6aac119809e0d1 /usr.sbin/amd/rpcx/nfs_prot.h | |
parent | 1689a30680d2082efd2f568af17662ed9001b6fb (diff) |
unifdef -DHAS_REGEXP -DHAS_PASSWD_MAPS -DHAS_FILE_MAPS \
-DHAS_NIS_MAPS -DHAS_NIS_RELOAD -DRPC_4 -DHAS_UNION_MAPS \
-DHAS_TCP_NFS -DOS_HAS_NDBM -DNFS_PROTOCOL_VERSION=3 \
-DNFS_ARGS_NEEDS_PATH -DPRECISE_SYMLINKS -DHAS_EMPTY_AUTOMOUNTS \
-DNEED_MNTOPT_PARSER -DSHORT_MOUNT_NAME -DHAS_NFS_QUALIFIED_NAMES \
-UUPDATE_MTAB -UFIXUP_MNTENT -UMNTENT_HDR -UMNTINFO_DEV \
-UMNTOPT_COMPRESS -UMNTOPT_NQNFS -UINFORM_MOUNTD \
-USUNOS4_WORKAROUND -UULTRIX_HACK
ok deraadt@
Diffstat (limited to 'usr.sbin/amd/rpcx/nfs_prot.h')
-rw-r--r-- | usr.sbin/amd/rpcx/nfs_prot.h | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/usr.sbin/amd/rpcx/nfs_prot.h b/usr.sbin/amd/rpcx/nfs_prot.h index 8315d67c4d4..377706828c7 100644 --- a/usr.sbin/amd/rpcx/nfs_prot.h +++ b/usr.sbin/amd/rpcx/nfs_prot.h @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_prot.h,v 1.4 2003/06/02 23:36:52 millert Exp $ */ +/* $OpenBSD: nfs_prot.h,v 1.5 2014/10/20 02:33:42 guenther Exp $ */ /* * Copyright (c) 1990 Jan-Simon Pendry @@ -36,9 +36,7 @@ * from: @(#)nfs_prot.h 8.1 (Berkeley) 6/6/93 */ -#if NFS_PROTOCOL_VERSION >= 3 #include <nfs/nfsproto.h> -#endif #define xdr_nfsstat xdr_enum #define xdr_ftype xdr_enum @@ -61,51 +59,12 @@ #define NFSMODE_SOCK 0140000 #define NFSMODE_FIFO 0010000 -#if NFS_PROTOCOL_VERSION < 3 -enum nfsstat { - NFS_OK = 0, - NFSERR_PERM = 1, - NFSERR_NOENT = 2, - NFSERR_IO = 5, - NFSERR_NXIO = 6, - NFSERR_ACCES = 13, - NFSERR_EXIST = 17, - NFSERR_NODEV = 19, - NFSERR_NOTDIR = 20, - NFSERR_ISDIR = 21, - NFSERR_FBIG = 27, - NFSERR_NOSPC = 28, - NFSERR_ROFS = 30, - NFSERR_NAMETOOLONG = 63, - NFSERR_NOTEMPTY = 66, - NFSERR_DQUOT = 69, - NFSERR_STALE = 70, - NFSERR_WFLUSH = 99 -}; -typedef enum nfsstat nfsstat; -#else typedef int nfsstat; -#endif bool_t xdr_nfsstat(); -#if NFS_PROTOCOL_VERSION < 3 -enum ftype { - NFNON = 0, - NFREG = 1, - NFDIR = 2, - NFBLK = 3, - NFCHR = 4, - NFLNK = 5, - NFSOCK = 6, - NFBAD = 7, - NFFIFO = 8 -}; -typedef enum ftype ftype; -#else typedef int ftype; -#endif /* static bool_t xdr_ftype(); */ |