HP-UX Reference (11i v2 07/12) - 3 Library Functions N-Z (vol 7)

r
rpc(3N) rpc(3N)
};
/*
* This is the number of bytes per unit of external data.
*/
#define BYTES_PER_XDR_UNIT (4)
#define RNDUP(x) ((((x) + BYTES_PER_XDR_UNIT - 1) /
BYTES_PER_XDR_UNIT) \ * BYTES_PER_XDR_UNIT)
/*
* A xdrproc_t exists for each data type which is to be encoded or
* decoded. The second argument to the xdrproc_t is a pointer to
* an opaque pointer. The opaque pointer generally points to a
* structure of the data type to be decoded. If this points to 0,
* then the type routines should allocate dynamic storage of the
* appropriate size and return it.
* bool_t (*xdrproc_t)(XDR *, caddr_t *);
*/
typedef bool_t (*xdrproc_t)( );
/*
* The XDR handle.
* Contains operation which is being applied to the stream,
* an operations vector for the particular implementation
*/
typedef struct {
enum xdr_op x_op; /* operation; fast additional param */
struct xdr_ops {
bool_t (*x_getlong)(); /* get a long from underlying stream */
bool_t (*x_putlong)(); /* put a long to underlying stream */
bool_t (*x_getbytes)(); /* get bytes from underlying stream */
bool_t (*x_putbytes)(); /* put bytes to underlying stream */
u_int (*x_getpostn)(); /* returns bytes off from beginning */
bool_t (*x_setpostn)(); /* lets you reposition the stream */
long * (*x_inline)(); /* buf quick ptr to buffered data */
void (*x_destroy)(); /* free privates of this xdr_stream */
} *x_ops;
caddr_t x_public; /* users’ data */
caddr_t x_private; /* pointer to private data */
caddr_t x_base; /* private used for position info */
int x_handy; /* extra private word */
} XDR;
Index to Routines
The following table lists RPC routines and the manual reference pages on which they are described:
RPC Routine Manual Reference Page
auth_destroy rpc_clnt_auth(3N)
authdes_create rpc_soc(3N)
authdes_getucred secure_rpc(3N)
authdes_seccreate secure_rpc(3N)
authnone_create rpc_clnt_auth(3N)
authsys_create rpc_clnt_auth(3N)
authsys_create_default rpc_clnt_auth(3N)
authunix_create rpc_soc(3N)
authunix_create_default rpc_soc(3N)
callrpc rpc_soc(3N)
clnt_broadcast rpc_soc(3N)
clnt_call rpc_clnt_calls(3N)
clnt_control rpc_clnt_create(3N)
clnt_create rpc_clnt_create(3N)
clnt_destroy rpc_clnt_create(3N)
clnt_dg_create rpc_clnt_create(3N)
330 Hewlett-Packard Company − 4 − HP-UX 11i Version 2: December 2007 Update