summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/xdr_stdio.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2008-12-09 19:40:10 +0000
committerotto <otto@openbsd.org>2008-12-09 19:40:10 +0000
commitee1a9978f99ee19b52f0b884242639f6218ec721 (patch)
tree9d93105381eb4893a4d61744355e570823f98afc /lib/libc/rpc/xdr_stdio.c
parentfix inet_ntop(3) prototype; ok millert@ libc to be bumbed very soon (diff)
downloadwireguard-openbsd-ee1a9978f99ee19b52f0b884242639f6218ec721.tar.xz
wireguard-openbsd-ee1a9978f99ee19b52f0b884242639f6218ec721.zip
Commit requested by marco:
Add nonblock support for xdrrecs ok millert blambert & otto; from NetBSD. libc bump to follow soon.
Diffstat (limited to '')
-rw-r--r--lib/libc/rpc/xdr_stdio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/rpc/xdr_stdio.c b/lib/libc/rpc/xdr_stdio.c
index 130381d1377..3e100118e6d 100644
--- a/lib/libc/rpc/xdr_stdio.c
+++ b/lib/libc/rpc/xdr_stdio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr_stdio.c,v 1.11 2007/09/17 16:04:24 blambert Exp $ */
+/* $OpenBSD: xdr_stdio.c,v 1.12 2008/12/09 19:40:10 otto Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -38,8 +38,8 @@
* from the stream.
*/
-#include <rpc/types.h>
#include <stdio.h>
+#include <rpc/types.h>
#include <rpc/xdr.h>
static bool_t xdrstdio_getlong(XDR *, long *);
@@ -62,7 +62,8 @@ static struct xdr_ops xdrstdio_ops = {
xdrstdio_getpos, /* get offset in the stream */
xdrstdio_setpos, /* set offset in the stream */
xdrstdio_inline, /* prime stream for inline macros */
- xdrstdio_destroy /* destroy stream */
+ xdrstdio_destroy, /* destroy stream */
+ NULL, /* xdrstdio_control */
};
/*