2002-08-05 Roland McGrath <roland@redhat.com>

* include/rpc/svc.h: Use libc_hidden_proto for xprt_register,
	xprt_unregister.
	* sunrpc/svc.c: Add libc_hidden_def.
	* include/rpc/pmap_clnt.h: Use libc_hidden_proto for pmap_getport,
	pmap_set, pmap_unset.
	* sunrpc/pmap_clnt.c: Add libc_hidden_def.
	* sunrpc/pm_getport.c: Likewise.
	* include/rpc/auth_des.h: Use libc_hidden_proto for getpublickey.
	* sunrpc/publickey.c: Add libc_hidden_def.
This commit is contained in:
Roland McGrath 2002-08-06 01:23:20 +00:00
parent f884de5be9
commit cd4c174b68
7 changed files with 19 additions and 1 deletions

View File

@ -2,6 +2,8 @@
#include <sunrpc/rpc/auth_des.h>
libc_hidden_proto (getpublickey)
extern bool_t xdr_authdes_cred (XDR *xdrs, struct authdes_cred *cred);
extern bool_t xdr_authdes_verf (register XDR *xdrs,
register struct authdes_verf *verf);

View File

@ -1 +1,8 @@
#include <sunrpc/rpc/pmap_clnt.h>
#ifndef _RPC_PMAP_CLNT_H
# include <sunrpc/rpc/pmap_clnt.h>
libc_hidden_proto (pmap_getport)
libc_hidden_proto (pmap_set)
libc_hidden_proto (pmap_unset)
#endif

View File

@ -1,6 +1,9 @@
#ifndef _RPC_SVC_H
#include <sunrpc/rpc/svc.h>
libc_hidden_proto (xprt_register)
libc_hidden_proto (xprt_unregister)
/* Now define the internal interfaces. */
extern int registerrpc (u_long prognum, u_long versnum, u_long procnum,
char *(*progname) (char *), xdrproc_t inproc,

View File

@ -93,3 +93,4 @@ pmap_getport (address, program, version, protocol)
address->sin_port = 0;
return port;
}
libc_hidden_def (pmap_getport)

View File

@ -141,6 +141,7 @@ pmap_set (u_long program, u_long version, int protocol, u_short port)
/* (void)close(socket); CLNT_DESTROY closes it */
return rslt;
}
libc_hidden_def (pmap_set)
/*
* Remove the mapping between program,version and port.
@ -172,3 +173,4 @@ pmap_unset (u_long program, u_long version)
/* (void)close(socket); CLNT_DESTROY already closed it */
return rslt;
}
libc_hidden_def (pmap_unset)

View File

@ -72,6 +72,7 @@ getpublickey (const char *name, char *key)
return status == NSS_STATUS_SUCCESS;
}
libc_hidden_def (getpublickey)
int

View File

@ -115,6 +115,7 @@ xprt_register (SVCXPRT *xprt)
POLLRDNORM | POLLRDBAND);
}
}
libc_hidden_def (xprt_register)
/* De-activate a transport handle. */
void
@ -135,6 +136,7 @@ xprt_unregister (SVCXPRT *xprt)
svc_pollfd[i].fd = -1;
}
}
libc_hidden_def (xprt_unregister)
/* ********************** CALLOUT list related stuff ************* */