diff options
author | kmacy <kmacy@FreeBSD.org> | 2009-05-28 08:18:12 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2009-05-28 08:18:12 +0000 |
commit | 189b8f192fbe705da700330d0c86ff968666a5da (patch) | |
tree | 9d663c09351ae6cfaccf0cce121db25c8862954d /sys/rpc | |
parent | 7bbd040b3612cb24994e3ecf59cdc5e64dbccec4 (diff) | |
download | FreeBSD-src-189b8f192fbe705da700330d0c86ff968666a5da.zip FreeBSD-src-189b8f192fbe705da700330d0c86ff968666a5da.tar.gz |
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
Diffstat (limited to 'sys/rpc')
-rw-r--r-- | sys/rpc/xdr.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/rpc/xdr.h b/sys/rpc/xdr.h index 947bf4f..9bc76b6 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. */ |