aboutsummaryrefslogtreecommitdiff
path: root/sys/rpc
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2009-05-28 08:18:12 +0000
committerKip Macy <kmacy@FreeBSD.org>2009-05-28 08:18:12 +0000
commitc334d2d54431dbdd95bba4d4cc41e5115aa242c5 (patch)
tree9d663c09351ae6cfaccf0cce121db25c8862954d /sys/rpc
parent48369f7cc0d52704dafe5049e5fd9b5a96783ff9 (diff)
downloadsrc-c334d2d54431dbdd95bba4d4cc41e5115aa242c5.tar.gz
src-c334d2d54431dbdd95bba4d4cc41e5115aa242c5.zip
MFdevbranch 192944
- add FreeBSD implementation of xdrmem_control needed by zfs - have zfs define xdr_ops using FreeBSD's definition - remove solaris xdr files from zfs compile
Notes
Notes: svn path=/head/; revision=192971
Diffstat (limited to 'sys/rpc')
-rw-r--r--sys/rpc/xdr.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/rpc/xdr.h b/sys/rpc/xdr.h
index 947bf4f98131..9bc76b6db006 100644
--- a/sys/rpc/xdr.h
+++ b/sys/rpc/xdr.h
@@ -338,6 +338,22 @@ typedef struct netobj netobj;
extern bool_t xdr_netobj(XDR *, struct netobj *);
/*
+ * These are XDR control operators
+ */
+
+#define XDR_GET_BYTES_AVAIL 1
+#define XDR_PEEK 2
+#define XDR_SKIPBYTES 3
+
+struct xdr_bytesrec {
+ bool_t xc_is_last_record;
+ size_t xc_num_avail;
+};
+
+typedef struct xdr_bytesrec xdr_bytesrec;
+
+
+/*
* These are the public routines for the various implementations of
* xdr streams.
*/