Module Name: src
Committed By: manu
Date: Mon Jul 4 08:19:51 UTC 2011
Modified Files:
src/lib/libc/rpc: xdr.3
Log Message:
Document newly imported xdr_sizeof()
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/rpc/xdr.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/rpc/xdr.3
diff -u src/lib/libc/rpc/xdr.3:1.12 src/lib/libc/rpc/xdr.3:1.13
--- src/lib/libc/rpc/xdr.3:1.12 Tue Oct 13 21:39:55 2009
+++ src/lib/libc/rpc/xdr.3 Mon Jul 4 08:19:51 2011
@@ -1,5 +1,5 @@
.\" @(#)xdr.3n 2.2 88/08/03 4.0 RPCSRC; from 1.16 88/03/14 SMI
-.\" $NetBSD: xdr.3,v 1.12 2009/10/13 21:39:55 joerg Exp $
+.\" $NetBSD: xdr.3,v 1.13 2011/07/04 08:19:51 manu Exp $
.\"
.Dd April 17, 2003
.Dt 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 ,
@@ -99,6 +100,8 @@
.Fn xdr_setpos "XDR *xdrs" "u_int pos"
.Ft int
.Fn xdr_short "XDR *xdrs" "short *sp"
+.Ft nsigned long
+.Fn xdr_sizeof "xdrproc_t func" "void *data"
.Ft void
.Fn xdrstdio_create "XDR *xdrs" "FILE *file" "enum xdr_op op"
.Ft int
@@ -378,6 +381,11 @@
A filter primitive that translates between C short integers
and their external representations.
This routine returns one if it succeeds, zero otherwise.
+.It Fn xdr_sizeof
+This routine returns the amount of memory required to encode
+.Fa data
+using filter
+.Fa func .
.It Fn xdrstdio_create
This routine initializes the XDR stream object pointed to by
.Fa xdrs .