diff options
author | kevlo <kevlo@FreeBSD.org> | 2011-07-09 07:43:56 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2011-07-09 07:43:56 +0000 |
commit | 6f8c220e0e43c7b456458ffc2e43cb9d4ba57a83 (patch) | |
tree | 64581e8087eb90c6fc59f796e640f68468722595 /lib/libc/xdr/xdr.3 | |
parent | d825d95c9f901b258aba68040422df5daa0aeea0 (diff) | |
download | FreeBSD-src-6f8c220e0e43c7b456458ffc2e43cb9d4ba57a83.zip FreeBSD-src-6f8c220e0e43c7b456458ffc2e43cb9d4ba57a83.tar.gz |
- Add xdr_sizeof(3) to libc
- Document xdr_sizeof(3); from NetBSD
Discussed with: kib
Diffstat (limited to 'lib/libc/xdr/xdr.3')
-rw-r--r-- | lib/libc/xdr/xdr.3 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libc/xdr/xdr.3 b/lib/libc/xdr/xdr.3 index 19c7e57..8998d06 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 |