summaryrefslogtreecommitdiff
path: root/usr.sbin/amd/rpcx/nfs_prot.ed
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/amd/rpcx/nfs_prot.ed')
-rw-r--r--usr.sbin/amd/rpcx/nfs_prot.ed34
1 files changed, 34 insertions, 0 deletions
diff --git a/usr.sbin/amd/rpcx/nfs_prot.ed b/usr.sbin/amd/rpcx/nfs_prot.ed
new file mode 100644
index 00000000000..0cc7b7e2f9a
--- /dev/null
+++ b/usr.sbin/amd/rpcx/nfs_prot.ed
@@ -0,0 +1,34 @@
+/^const NFS_FHSIZE/a
+const NFSX_V2FH = 32;
+const NFSX_V3FHMAX = 64;
+.
+/^enum nfsstat /i
+#ifdef RPC_HDR
+%typedef int nfsstat;
+%#define xdr_nfsstat xdr_int
+#define nfsstat int
+.
++1s/^enum nfsstat /enum /
+.,/^};/s/^/\%/
+a
+#elif RPC_XDR
+#define nfsstat int
+#else
+typedef int nfsstat;
+#endif
+.
+/^enum ftype /i
+#ifdef RPC_HDR
+%typedef int ftype;
+#define ftype int
+.
++1s/^enum ftype /enum /
+.,/^};/s/^/\%/
+a
+#elif RPC_XDR
+#define ftype int
+#else
+typedef int ftype;
+#endif
+.
+wq