Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/rpc Document newly imported xdr_sizeof()
details: https://anonhg.NetBSD.org/src/rev/0e938cda078e
branches: trunk
changeset: 766923:0e938cda078e
user: manu <manu%NetBSD.org@localhost>
date: Mon Jul 04 08:19:51 2011 +0000
description:
Document newly imported xdr_sizeof()
diffstat:
lib/libc/rpc/xdr.3 | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (39 lines):
diff -r 340b5d8dd158 -r 0e938cda078e lib/libc/rpc/xdr.3
--- a/lib/libc/rpc/xdr.3 Mon Jul 04 08:09:11 2011 +0000
+++ b/lib/libc/rpc/xdr.3 Mon Jul 04 08:19:51 2011 +0000
@@ -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 .
Home |
Main Index |
Thread Index |
Old Index