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_getmaps.c | |
parent | e6c61494125126d2ba77e5d99f83887a2ed49783 (diff) | |
download | glibc-7b57bfe5988e476ea40934457dfd1c8a231e2391.tar.gz |
Obsolete RPC implementation in libc.
Diffstat (limited to 'sunrpc/pm_getmaps.c')
-rw-r--r-- | sunrpc/pm_getmaps.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sunrpc/pm_getmaps.c b/sunrpc/pm_getmaps.c index a62b3c73b2..6b61d324f9 100644 --- a/sunrpc/pm_getmaps.c +++ b/sunrpc/pm_getmaps.c @@ -43,6 +43,7 @@ #include <errno.h> #include <libintl.h> #include <unistd.h> +#include <not-cancel.h> /* @@ -66,12 +67,11 @@ pmap_getmaps (struct sockaddr_in *address) if (socket != -1) closeit = true; - client = INTUSE(clnttcp_create) (address, PMAPPROG, - PMAPVERS, &socket, 50, 500); + client = clnttcp_create (address, PMAPPROG, PMAPVERS, &socket, 50, 500); if (client != (CLIENT *) NULL) { - if (CLNT_CALL (client, PMAPPROC_DUMP, (xdrproc_t)INTUSE(xdr_void), NULL, - (xdrproc_t)INTUSE(xdr_pmaplist), (caddr_t)&head, + if (CLNT_CALL (client, PMAPPROC_DUMP, (xdrproc_t)xdr_void, NULL, + (xdrproc_t)xdr_pmaplist, (caddr_t)&head, minutetimeout) != RPC_SUCCESS) { clnt_perror (client, _("pmap_getmaps.c: rpc problem")); @@ -80,7 +80,8 @@ pmap_getmaps (struct sockaddr_in *address) } /* We only need to close the socket here if we opened it. */ if (closeit) - (void) __close (socket); + close_not_cancel (socket); address->sin_port = 0; return head; } +libc_hidden_nolink (pmap_getmaps, GLIBC_2_0) |