77int __rpc_raise_fd(
int);
99 vers_high, nettype,
NULL));
111 const char *nettype,
const struct timeval *
tp)
129 *vers_out = vers_high;
133 unsigned int minvers, maxvers;
136 minvers = rpcerr.re_vers.
low;
137 maxvers = rpcerr.re_vers.
high;
138 if (maxvers < vers_high)
142 if (minvers > vers_low)
144 if (vers_low > vers_high) {
152 *vers_out = vers_high;
196 const char *netclass,
const struct timeval *
tp)
204 char *nettype = &nettype_array[0];
206 if (netclass ==
NULL)
210 if (
len >=
sizeof (nettype_array)) {
214 strcpy(nettype, netclass);
222 while (clnt ==
NULL) {
349 const uint sendsz,
const uint recvsz,
350 int (*callback_xdr)(
void *,
void *),
351 int (*callback_function)(
void *,
void *,
void **),
359 extern int __rpc_minfd;
373 if (
fd < __rpc_minfd)
374 fd = __rpc_raise_fd(
fd);
385 if (servtype == -1) {
399 callback_xdr, callback_function, callback_args);
409 callback_xdr, callback_function, callback_args);
452__rpc_raise_fd(
int fd)
456 if (
fd >= __rpc_minfd)
459 if ((nfd = fcntl(
fd, F_DUPFD, __rpc_minfd)) == -1)
462 if (fsync(nfd) == -1) {
470 "could not close() fd %d; mem & fd leak",
fd);
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
int bindresvport(SOCKET sd, struct sockaddr_in *sin)
#define clnt_call(rh, proc, xargs, argsp, xres, resp, secs)
#define CLNT_CONTROL(cl, rq, in)
#define clnt_geterr(rh, errp)
CLIENT * clnt_dg_create(SOCKET fd, const struct netbuf *svcaddr, rpcprog_t program, rpcvers_t version, u_int sendsz, u_int recvsz)
bool_t __rpc_is_local_host(const char *)
CLIENT * clnt_create_vers(const char *hostname, const rpcprog_t prog, rpcvers_t *vers_out, const rpcvers_t vers_low, const rpcvers_t vers_high, const char *nettype)
CLIENT * clnt_tli_create(const SOCKET fd_in, const struct netconfig *nconf, struct netbuf *svcaddr, const rpcprog_t prog, const rpcvers_t vers, const uint sendsz, const uint recvsz, int(*callback_xdr)(void *, void *), int(*callback_function)(void *, void *, void **), void *callback_args)
CLIENT * clnt_create_vers_timed(const char *hostname, const rpcprog_t prog, rpcvers_t *vers_out, const rpcvers_t vers_low_in, const rpcvers_t vers_high_in, const char *nettype, const struct timeval *tp)
CLIENT * clnt_tp_create(const char *hostname, const rpcprog_t prog, const rpcvers_t vers, const struct netconfig *nconf)
CLIENT * clnt_create(const char *hostname, const rpcprog_t prog, const rpcvers_t vers, const char *nettype)
CLIENT * clnt_tp_create_timed(const char *hostname, const rpcprog_t prog, const rpcvers_t vers, const struct netconfig *nconf, const struct timeval *tp)
CLIENT * clnt_create_timed(const char *hostname, const rpcprog_t prog, const rpcvers_t vers, const char *netclass, const struct timeval *tp)
CLIENT * clnt_vc_create(int fd, const struct netbuf *raddr, const rpcprog_t prog, const rpcvers_t vers, u_int sendsz, u_int recvsz, int *cb_xdr, int *cb_fn, void *cb_args)
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
void * __rpc_setconf(char *nettype) const
struct netconfig * __rpc_getconf(void *vhandle)
int __rpc_fd2sockinfo(SOCKET fd, struct __rpc_sockinfo *sip)
void __rpc_endconf(void *vhandle)
SOCKET __rpc_nconf2fd(const struct netconfig *nconf)
_Check_return_ _CRTIMP char *__cdecl strdup(_In_opt_z_ const char *_Src)
INT WSAAPI setsockopt(IN SOCKET s, IN INT level, IN INT optname, IN CONST CHAR FAR *optval, IN INT optlen)
struct netbuf * __rpcb_findaddr_timed(rpcprog_t, rpcvers_t, const struct netconfig *, const char *host, CLIENT **clpp, struct timeval *tp)
int __rpc_socktype2seman(int)
unsigned long nc_semantics
void syslog(int pri, char *fmt,...)
bool_t(* xdrproc_t)(XDR *,...)