* Client interface to pmap rpc service.
* contains pmap_getmaps, which is only tcp service involved
*
- * Copyright (C) 1984, Sun Microsystems, Inc.
+ * Copyright (c) 2010, Oracle America, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
- * * Neither the name of Sun Microsystems, Inc. nor the names of its
+ * * Neither the name of the "Oracle America, Inc." nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
#include <errno.h>
#include <libintl.h>
#include <unistd.h>
+#include <not-cancel.h>
/*
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"));
}
/* 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_sunrpc (pmap_getmaps, GLIBC_2_0)