diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-04-16 21:59:36 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-04-16 21:59:36 -0400 |
commit | 7b57bfe5988e476ea40934457dfd1c8a231e2391 (patch) | |
tree | 33dbec2b9a1a8fd8472a214945090f31d5372a8e /sunrpc/pm_getport.c | |
parent | e6c61494125126d2ba77e5d99f83887a2ed49783 (diff) | |
download | glibc-7b57bfe5988e476ea40934457dfd1c8a231e2391.zip glibc-7b57bfe5988e476ea40934457dfd1c8a231e2391.tar.gz glibc-7b57bfe5988e476ea40934457dfd1c8a231e2391.tar.bz2 |
Obsolete RPC implementation in libc.
Diffstat (limited to 'sunrpc/pm_getport.c')
-rw-r--r-- | sunrpc/pm_getport.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/sunrpc/pm_getport.c b/sunrpc/pm_getport.c index da34776..58974a5 100644 --- a/sunrpc/pm_getport.c +++ b/sunrpc/pm_getport.c @@ -107,13 +107,12 @@ __libc_rpc_getport (address, program, version, protocol, timeout_sec, socket = __get_socket(address); if (socket != -1) closeit = true; - client = INTUSE(clnttcp_create) (address, PMAPPROG, PMAPVERS, &socket, - RPCSMALLMSGSIZE, RPCSMALLMSGSIZE); + client = clnttcp_create (address, PMAPPROG, PMAPVERS, &socket, + RPCSMALLMSGSIZE, RPCSMALLMSGSIZE); } else - client = INTUSE(clntudp_bufcreate) (address, PMAPPROG, PMAPVERS, timeout, - &socket, RPCSMALLMSGSIZE, - RPCSMALLMSGSIZE); + client = clntudp_bufcreate (address, PMAPPROG, PMAPVERS, timeout, + &socket, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE); if (client != (CLIENT *) NULL) { struct rpc_createerr *ce = &get_rpc_createerr (); @@ -121,8 +120,8 @@ __libc_rpc_getport (address, program, version, protocol, timeout_sec, parms.pm_vers = version; parms.pm_prot = protocol; parms.pm_port = 0; /* not needed or used */ - if (CLNT_CALL (client, PMAPPROC_GETPORT, (xdrproc_t)INTUSE(xdr_pmap), - (caddr_t)&parms, (xdrproc_t)INTUSE(xdr_u_short), + if (CLNT_CALL (client, PMAPPROC_GETPORT, (xdrproc_t)xdr_pmap, + (caddr_t)&parms, (xdrproc_t)xdr_u_short, (caddr_t)&port, tottimeout) != RPC_SUCCESS) { ce->cf_stat = RPC_PMAPFAILURE; @@ -140,7 +139,11 @@ __libc_rpc_getport (address, program, version, protocol, timeout_sec, address->sin_port = 0; return port; } +#ifdef EXPORT_RPC_SYMBOLS libc_hidden_def (__libc_rpc_getport) +#else +libc_hidden_nolink (__libc_rpc_getport, GLIBC_PRIVATE) +#endif /* @@ -157,4 +160,4 @@ pmap_getport (address, program, version, protocol) { return __libc_rpc_getport (address, program, version, protocol, 5, 60); } -libc_hidden_def (pmap_getport) +libc_hidden_nolink (pmap_getport, GLIBC_2_0) |