summaryrefslogtreecommitdiffstats
path: root/lib/libc/xdr/xdr.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/xdr/xdr.3')
-rw-r--r--lib/libc/xdr/xdr.318
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/libc/xdr/xdr.3 b/lib/libc/xdr/xdr.3
index 19c7e57..69f2544 100644
--- a/lib/libc/xdr/xdr.3
+++ b/lib/libc/xdr/xdr.3
@@ -31,6 +31,7 @@
.Nm xdr_reference ,
.Nm xdr_setpos ,
.Nm xdr_short ,
+.Nm xdr_sizeof,
.Nm xdrstdio_create ,
.Nm xdr_string ,
.Nm xdr_u_char ,
@@ -561,6 +562,18 @@ A filter primitive that translates between C
integers and their external representations.
This routine returns one if it succeeds, zero otherwise.
.Pp
+.It Xo
+.Ft unsigned long
+.Xc
+.It Xo
+.Fn xdr_sizeof "xdrproc_t func" "void *data"
+.Xc
+.Pp
+This routine returns the amount of memory required to encode
+.Fa data
+using filter
+.Fa func .
+.Pp
.It Li "#ifdef _STDIO_H_"
.It Li "/* XDR using stdio library */"
.It Xo
@@ -827,3 +840,8 @@ Returns one if it succeeds, zero otherwise.
.%O RFC1014
.%Q "Sun Microsystems, Inc., USC\-ISI"
.Re
+.Sh HISTORY
+The
+.Nm xdr_sizeof
+function first appeared in
+.Fx 9.0 .
OpenPOWER on IntegriCloud