Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

xdr(3C)

NAME

xdr∗() − library routines for external data representation

DESCRIPTION

These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion.  Data for remote procedure calls are transmitted using these routines. 

Functions

xdr_array() Translate arrays to/from external representation. 

xdr_bool() Translate Booleans to/from external representation. 

xdr_bytes() Translate counted byte strings to/from external representation. 

xdr_char() Translate characters to/from external representation. 

xdr_destroy() Destroy XDR stream and free associated memory. 

xdr_double() Translate double precision to/from external representation. 

xdr_enum() Translate enumerations to/from external representation. 

xdr_float() Translate floating point to/from external representation. 

xdr_getpos() Return current position in XDR stream. 

xdr_free() Free the memory allocated to create XDR data structures. 

xdr_inline() Invoke the in-line routines associated with XDR stream. 

xdr_int() Translate integers to/from external representation. 

xdr_long() Translate long integers to/from external representation. 

xdr_opaque() Translate fixed-size opaque data to/from external representation. 

xdr_pointer() Similar to xdr_reference() except it is able to follow recursive data structures such as a binary tree. 

xdr_reference() Chase pointers within structures. 

xdr_setpos() Change current position in XDR stream. 

xdr_short() Translate short integers to/from external representation. 

xdr_string() Translate null-terminated strings to/from external representation. 

xdr_u_char() Translate unsigned characters to/from external representation. 

xdr_u_int() Translate unsigned integers to/from external representation. 

xdr_u_long() Translate unsigned long integers to/from external representation. 

xdr_u_short() Translate unsigned short integers to/from external representation. 

xdr_union() Translate descriminated unions to/from external representation. 

xdr_vector() Translate fixed-length arrays to/from external representation. 

xdr_void() Always return one (1). 

xdr_wrapstring() Package RPC routine for XDR routine, or vice-versa. 

xdrmem_create() Initialize an XDR stream. 

xdrrec_create() Initialize an XDR stream with record boundaries. 

xdrrec_endofrecord() Mark XDR record stream with an end-of-record. 

xdrrec_eof() Mark XDR record stream with an end-of-file. 

xdrrec_skiprecord() Skip remaining record in XDR record stream. 

xdrstdio_create() Initialize an XDR stream as standard I/O FILE stream. 

AUTHOR

xdr*() was developed by Sun Microsystems, Inc. 

SEE ALSO

Programming and Protocols for NFS Services.

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026