get_rpc_createerr(3rpc)


get_rpc_createerr, set_rpc_createerr -- get/set rpc_createerr value

Synopsis

cc [options] file -lnsl
#include <rpc/rpc.h>

rpc_createerr_t get_rpc_createerr(void);

int set_rpc_createerr(rpc_createerr_t);

Description

The get_rpc_createerr and set_rpc_createerr functions are used in rpc applications to set and return the value in rpc_createerr. rpc_createerr is defined as a structure that contains the following members:
   enum clnt_stat cf_stat;
   struct rpc_err cf_error;
These functions are required by applications compiled with the -Kthread option if the user needs to set the thread-specific version of rpc_createerr.

Files


/usr/lib/libnsl.so
Network Services Library (shared object)

Usage

While get_rpc_createerr and set_rpc_createerr are designed for use in multi-threaded applications, they are available for use in non-reentrant code and may be incorporated if a need is anticipated to convert to reentrant code later on.

References

intro(2), rpc(3rpc)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004