xdr_getpos(3) CLIX xdr_getpos(3)
NAME
xdr_getpos, xdr_setpos - Library functions for external data
representation
LIBRARY
Berkeley Software Distribution Library (libbsd.a)
SYNOPSIS
#include <sys/xdr.h>
uint xdr_getpos(
XDR *xdrs );
xdr_setpos(
XDR *xdrs ,
uint pos );
PARAMETERS
xdrs Specifies the address of the XDR handle.
pos Specifies the value to which an XDR stream's position is set.
DESCRIPTION
The xdr_getpos() and xdr_setpos() functions allow C programmers to
describe arbitrary data structures in a machine-independent fashion. Data
for remote procedure calls are transmitted using these functions.
The xdr_getpos() macro invokes the get-position function associated with
the XDR stream, xdrs. The function returns an unsigned integer that
indicates the position of the XDR byte stream.
The xdr_setpos() macro invokes the set-position function associated with
the XDR stream xdrs. The pos parameter is a position value obtained from
xdr_getpos().
CAUTIONS
It is difficult to reposition some types of XDR streams, so xdr_setpos()
may fail with one type of stream and succeed with another.
RETURN VALUES
The xdr_getpos() function returns the position of the XDR bytes stream.
The xdr_setpos() function returns 1 if the XDR stream could be
repositioned, and 0 otherwise.
2/94 - Intergraph Corporation 1
xdr_getpos(3) CLIX xdr_getpos(3)
RELATED INFORMATION
Functions: xdr_bytes(3), xdr_getpos(3), xdr_pointer(3), xdrrec_create(3),
xdr_array(3), xdr_destroy(3), xdr_free(3), xdr_inline(3),
xdrmem_create(3), xdr_opaque(3), xdr_union(3), xdr_vector(3), xdr_void(3),
authunix_create(3), clnt_pcreateerror(3), clnt_perrno(3), clnt_perror(3),
clntraw_create(3), clnttcp_create(3), pmap_set(3), svc_getargs(3),
svc_getreqset(3), svc_register(3), svcerr_auth(3), svctcp_create(3),
xprt_register(3), clnt_broadcast(3), clnt_call(3), clnt_create(3),
clnt_control(3), clnt_destroy(3), clnt_freeres(3), clnt_geterr(3),
clnt_getmyaddr(3), registerrpc(3), svc_destroy(3), svc_getcaller(3),
svc_run(3), svc_sendreply(3), xdr_accepted_reply(3),
xdr_authunix_parms(3), xdr_callhdr(3), xdr_callmsg(3), xdr_opaque_auth(3),
xdr_pmap(3), xdr_pmaplist(3), xdr_rejected_reply(3), xdr_replymsg(3)
CLIX Programming Guide
XDR: External Data Representation Standard, RFC1014, Sun Microsystems,
Inc., USC-ISI
2 Intergraph Corporation - 2/94