diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-06-13 23:39:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-06-13 23:39:27 +0000 |
commit | c875a4b58fa19459b4297a6340b708ee996fdf8c (patch) | |
tree | da98b01966796f52c176759fa21d547c71afb01a /lib/libc | |
parent | 02e1859a95f3f8266712522f1eb4eab40c801356 (diff) |
document xdr_{u_}int64_t() functions
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/rpc/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libc/rpc/xdr.3 | 22 |
2 files changed, 23 insertions, 3 deletions
diff --git a/lib/libc/rpc/Makefile.inc b/lib/libc/rpc/Makefile.inc index ad272841ab5..95e1c9e28c6 100644 --- a/lib/libc/rpc/Makefile.inc +++ b/lib/libc/rpc/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.13 2006/11/10 17:29:31 grunk Exp $ +# $OpenBSD: Makefile.inc,v 1.14 2008/06/13 23:39:26 deraadt Exp $ # librpc sources .PATH: ${LIBCSRCDIR}/arch/${MACHINE}/rpc ${LIBCSRCDIR}/rpc @@ -101,6 +101,8 @@ MLINKS+= bindresvport.3 bindresvport_sa.3 \ xdr.3 xdr_inline.3 \ xdr.3 xdr_int.3 \ xdr.3 xdr_long.3 \ + xdr.3 xdr_int64_t.3 \ + xdr.3 xdr_u_int64_t.3 \ xdr.3 xdrmem_create.3 \ xdr.3 xdr_opaque.3 \ xdr.3 xdr_pointer.3 \ diff --git a/lib/libc/rpc/xdr.3 b/lib/libc/rpc/xdr.3 index 8a63d71f7ea..0a2da033a72 100644 --- a/lib/libc/rpc/xdr.3 +++ b/lib/libc/rpc/xdr.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: xdr.3,v 1.18 2007/05/31 19:19:30 jmc Exp $ +.\" $OpenBSD: xdr.3,v 1.19 2008/06/13 23:39:26 deraadt Exp $ .\" Mostly converted to mandoc by Theo de Raadt, Tue Feb 24 04:04:46 MST 1998 .\" .\" Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -28,7 +28,7 @@ .\" 2550 Garcia Avenue .\" Mountain View, California 94043 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 13 2008 $ .Dt XDR 3 .Os .Sh NAME @@ -45,6 +45,7 @@ .Nm xdr_inline , .Nm xdr_int , .Nm xdr_long , +.Nm xdr_int64_t , .Nm xdrmem_create , .Nm xdr_opaque , .Nm xdr_pointer , @@ -60,6 +61,7 @@ .Nm xdr_u_char , .Nm xdr_u_int , .Nm xdr_u_long , +.Nm xdr_u_int64_t , .Nm xdr_u_short , .Nm xdr_union , .Nm xdr_vector , @@ -95,6 +97,8 @@ .Fn xdr_int "XDR *xdrs" "int *ip" .Ft int .Fn xdr_long "XDR *xdrs" "long *lp" +.Ft int +.Fn xdr_int64_t "XDR *xdrs" "int64_t *lp" .Ft void .Fn xdrmem_create "XDR *xdrs" "char *addr" "u_int size" "enum xdr_op op" .Ft int @@ -126,6 +130,8 @@ .Ft int .Fn xdr_u_long "XDR *xdrs" "unsigned long *ulp" .Ft int +.Fn xdr_u_int64_t "XDR *xdrs" "u_int64_t *ullp" +.Ft int .Fn xdr_u_short "XDR *xdrs" "unsigned short *usp" .Ft int .Fn xdr_union "XDR *xdrs" "int *dscmp" "char *unp" "struct xdr_discrim *choices" "bool_t (*defaultarm)()" @@ -280,6 +286,12 @@ is a filter primitive that translates between C integers and their external representations. This routine returns one if it succeeds, zero otherwise. .Pp +.Fn xdr_int64_t +is a filter primitive that translates between C +.Li int64_t +integers and their external representations. +This routine returns one if it succeeds, zero otherwise. +.Pp .Fn xdrmem_create is a routine which initializes the .Tn XDR @@ -494,6 +506,12 @@ is a filter primitive that translates between C integers and their external representations. This routine returns one if it succeeds, zero otherwise. .Pp +.Fn xdr_u_int64_t +is a filter primitive that translates between C +.Li u_int64_t +integers and their external representations. +This routine returns one if it succeeds, zero otherwise. +.Pp .Fn xdr_u_short is a filter primitive that translates between C .Li unsigned short |