HP-UX Reference (11i v2 04/09) - 3 Library Functions N-Z (vol 7)
r
rpc_svc_reg(3N) rpc_svc_reg(3N)
The svc_auth_reg()
routine returns 0 if the registration is successful, 1 if cred_flavor already
has an authentication handler registered for it, and
-1 otherwise.
void xprt_register()
After RPC service transport handle xprt is created, it is registered with the RPC service package.
This routine modifies the global variable
svc_fdset (see rpc_svc_calls(3N)). Service implemen-
tors usually do not need this routine.
void xprt_unregister()
Before an RPC service transport handle xprt is destroyed, it unregisters itself with the RPC service
package. This routine modifies the global variable
svc_fdset (see rpc_svc_calls(3N)). Service
implementors usually do not need this routine.
MULTITHREAD USAGE
Thread Safe: Yes
Cancel Safe: Yes
Fork Safe: No
Async-cancel Safe: No
Async-signal Safe: No
These functions can be called safely in a multithreaded environment. They may be cancellation points in
that they call functions that are cancel points.
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.
SEE ALSO
inetd(1M), rpcbind(1M), rpc(3N), rpc_svc_calls(3N), rpc_svc_create(3N), rpc_svc_err(3N), rpcbind(3N),
select(2).
HP-UX 11i Version 2: September 2004 − 2 − Hewlett-Packard Company Section 3−−927