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

r
rpc_svc_calls(3N) rpc_svc_calls(3N)
threads for servicing client requests.
bool_t svc_sendreply()
Called by an RPC service’s dispatch routine to send the results of a remote procedure call. The
parameter xprt is the request’s associated transport handle; outproc is the XDR routine which is
used to encode the results; and out is the address of the results. This routine returns
TRUE if it
succeeds,
FALSE otherwise.
This function macro is safe in MT applications utilizing the User MT modes.
MULTITHREAD USAGE
Thread Safe: See the NOTES section of this page.
Cancel Safe: See the NOTES section of this page.
Fork Safe: No
Async-cancel Safe: No
Async-signal Safe: No
In a multithreaded environment, these functions are not safe to be called by a child process after
fork()
and before exec(). These functions should not be called by a multithreaded application that support
asynchronous cancellation or asynchronous signals.
NOTES
svc_dg_enablecache()
and svc_getrpccaller() are Thread Safe and Cancel Safe in mul-
tithreaded applications.
svc_freeargs()
, svc_getargs(), and svc_sendreply()
are Thread
safe and Cancel Safe in multithreaded applications utilizing the User MT modes.
svc_getreq_common()
, svc_getreqset(), and svc_getreq_poll()
are unsafe in mul-
tithreaded applications and should be called only from the main thread.
SEE ALSO
rpcgen(1), poll(2), rpc(3N), rpc_control(3N), rpc_svc_create(3N), rpc_svc_err(3N), rpc_svc_reg(3N),
select(2).
Section 3920 Hewlett-Packard Company 3 HP-UX 11i Version 2: September 2004