diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-20 22:11:44 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-20 22:11:44 +0000 |
commit | cb97aadebfeba7f5e8f1b85beee5ab10e88c2990 (patch) | |
tree | f5f56f2ef0f3048325419857d0b538135524ff8c /libc/inet/rpc | |
parent | b133fe1cac9f99b63ea56daf92caa1423b1289d0 (diff) |
Last portion of libc_hidden_proto removal.
Appears to build fine (several .configs tried)
Diffstat (limited to 'libc/inet/rpc')
43 files changed, 300 insertions, 300 deletions
diff --git a/libc/inet/rpc/auth_none.c b/libc/inet/rpc/auth_none.c index 30649f91c..478315b8f 100644 --- a/libc/inet/rpc/auth_none.c +++ b/libc/inet/rpc/auth_none.c @@ -40,7 +40,7 @@ #include "rpc_private.h" /* libc_hidden_proto(xdrmem_create) */ -libc_hidden_proto(xdr_opaque_auth) +/* libc_hidden_proto(xdr_opaque_auth) */ #define MAX_MARSHAL_SIZE 20 @@ -74,7 +74,7 @@ struct authnone_private_s { static struct authnone_private_s *authnone_private; #endif -libc_hidden_proto(authnone_create) +/* libc_hidden_proto(authnone_create) */ AUTH * authnone_create (void) { diff --git a/libc/inet/rpc/auth_unix.c b/libc/inet/rpc/auth_unix.c index 2364aff68..9f5d8b4d7 100644 --- a/libc/inet/rpc/auth_unix.c +++ b/libc/inet/rpc/auth_unix.c @@ -57,14 +57,14 @@ #endif /* Experimentally off - libc_hidden_proto(memcpy) */ -libc_hidden_proto(sysconf) -libc_hidden_proto(getegid) -libc_hidden_proto(geteuid) -libc_hidden_proto(getgroups) -libc_hidden_proto(gethostname) +/* libc_hidden_proto(sysconf) */ +/* libc_hidden_proto(getegid) */ +/* libc_hidden_proto(geteuid) */ +/* libc_hidden_proto(getgroups) */ +/* libc_hidden_proto(gethostname) */ /* libc_hidden_proto(xdrmem_create) */ -libc_hidden_proto(xdr_authunix_parms) -libc_hidden_proto(xdr_opaque_auth) +/* libc_hidden_proto(xdr_authunix_parms) */ +/* libc_hidden_proto(xdr_opaque_auth) */ /* libc_hidden_proto(gettimeofday) */ /* libc_hidden_proto(fputs) */ /* libc_hidden_proto(perror) */ @@ -109,7 +109,7 @@ static bool_t marshal_new_auth (AUTH *) internal_function; * Create a unix style authenticator. * Returns an auth handle with the given stuff in it. */ -libc_hidden_proto(authunix_create) +/* libc_hidden_proto(authunix_create) */ AUTH * authunix_create (char *machname, uid_t uid, gid_t gid, int len, gid_t *aup_gids) @@ -182,7 +182,7 @@ libc_hidden_def(authunix_create) * Returns an auth handle with parameters determined by doing lots of * syscalls. */ -libc_hidden_proto(authunix_create_default) +/* libc_hidden_proto(authunix_create_default) */ AUTH * authunix_create_default (void) { diff --git a/libc/inet/rpc/authunix_prot.c b/libc/inet/rpc/authunix_prot.c index 62d1cb724..2739e7658 100644 --- a/libc/inet/rpc/authunix_prot.c +++ b/libc/inet/rpc/authunix_prot.c @@ -39,17 +39,17 @@ #include <rpc/auth.h> #include <rpc/auth_unix.h> -libc_hidden_proto(xdr_string) -libc_hidden_proto(xdr_u_int) -libc_hidden_proto(xdr_array) -libc_hidden_proto(xdr_u_long) -libc_hidden_proto(xdr_u_short) +/* libc_hidden_proto(xdr_string) */ +/* libc_hidden_proto(xdr_u_int) */ +/* libc_hidden_proto(xdr_array) */ +/* libc_hidden_proto(xdr_u_long) */ +/* libc_hidden_proto(xdr_u_short) */ /* * XDR for unix authentication parameters. * Unfortunately, none of these can be declared const. */ -libc_hidden_proto(xdr_authunix_parms) +/* libc_hidden_proto(xdr_authunix_parms) */ bool_t xdr_authunix_parms (XDR * xdrs, struct authunix_parms *p) { diff --git a/libc/inet/rpc/bindresvport.c b/libc/inet/rpc/bindresvport.c index 457f1f97f..b9e77f3cd 100644 --- a/libc/inet/rpc/bindresvport.c +++ b/libc/inet/rpc/bindresvport.c @@ -41,13 +41,13 @@ #include <netinet/in.h> /* Experimentally off - libc_hidden_proto(memset) */ -libc_hidden_proto(bind) +/* libc_hidden_proto(bind) */ /* libc_hidden_proto(getpid) */ /* * Bind a socket to a privileged IP port */ -libc_hidden_proto(bindresvport) +/* libc_hidden_proto(bindresvport) */ int bindresvport (int sd, struct sockaddr_in *sin) { diff --git a/libc/inet/rpc/clnt_generic.c b/libc/inet/rpc/clnt_generic.c index 54bd0e914..165f42aeb 100644 --- a/libc/inet/rpc/clnt_generic.c +++ b/libc/inet/rpc/clnt_generic.c @@ -44,12 +44,12 @@ /* Experimentally off - libc_hidden_proto(memset) */ /* Experimentally off - libc_hidden_proto(strcmp) */ /* Experimentally off - libc_hidden_proto(strcpy) */ -libc_hidden_proto(clnttcp_create) -libc_hidden_proto(clntudp_create) -libc_hidden_proto(clntunix_create) -libc_hidden_proto(getprotobyname_r) -libc_hidden_proto(gethostbyname_r) -libc_hidden_proto(__rpc_thread_createerr) +/* libc_hidden_proto(clnttcp_create) */ +/* libc_hidden_proto(clntudp_create) */ +/* libc_hidden_proto(clntunix_create) */ +/* libc_hidden_proto(getprotobyname_r) */ +/* libc_hidden_proto(gethostbyname_r) */ +/* libc_hidden_proto(__rpc_thread_createerr) */ /* * Generic client creation: takes (hostname, program-number, protocol) and diff --git a/libc/inet/rpc/clnt_perror.c b/libc/inet/rpc/clnt_perror.c index e700e4137..201a3a353 100644 --- a/libc/inet/rpc/clnt_perror.c +++ b/libc/inet/rpc/clnt_perror.c @@ -54,7 +54,7 @@ static char sccsid[] = "@(#)clnt_perror.c 1.15 87/10/07 Copyr 1984 Sun Micro"; /* Experimentally off - libc_hidden_proto(strcpy) */ /* Experimentally off - libc_hidden_proto(strlen) */ /* libc_hidden_proto(sprintf) */ -libc_hidden_proto(__glibc_strerror_r) +/* libc_hidden_proto(__glibc_strerror_r) */ /* libc_hidden_proto(fputs) */ #ifdef USE_IN_LIBIO /* libc_hidden_proto(fwprintf) */ @@ -186,7 +186,7 @@ static const struct rpc_errtab rpc_errlist[] = /* * This interface for use by clntrpc */ -libc_hidden_proto(clnt_sperrno) +/* libc_hidden_proto(clnt_sperrno) */ char * clnt_sperrno (enum clnt_stat stat) { @@ -217,7 +217,7 @@ clnt_perrno (enum clnt_stat num) /* * Print reply error info */ -libc_hidden_proto(clnt_sperror) +/* libc_hidden_proto(clnt_sperror) */ char * clnt_sperror (CLIENT * rpch, const char *msg) { @@ -303,7 +303,7 @@ clnt_sperror (CLIENT * rpch, const char *msg) } libc_hidden_def(clnt_sperror) -libc_hidden_proto(clnt_perror) +/* libc_hidden_proto(clnt_perror) */ void clnt_perror (CLIENT * rpch, const char *msg) { @@ -316,7 +316,7 @@ clnt_perror (CLIENT * rpch, const char *msg) } libc_hidden_def(clnt_perror) -libc_hidden_proto(clnt_spcreateerror) +/* libc_hidden_proto(clnt_spcreateerror) */ char * clnt_spcreateerror (const char *msg) { diff --git a/libc/inet/rpc/clnt_raw.c b/libc/inet/rpc/clnt_raw.c index 9941e0894..91340d85a 100644 --- a/libc/inet/rpc/clnt_raw.c +++ b/libc/inet/rpc/clnt_raw.c @@ -49,13 +49,13 @@ static char sccsid[] = "@(#)clnt_raw.c 1.22 87/08/11 Copyr 1984 Sun Micro"; #include <rpc/xdr.h> /* libc_hidden_proto(perror) */ -libc_hidden_proto(authnone_create) +/* libc_hidden_proto(authnone_create) */ /* libc_hidden_proto(xdrmem_create) */ -libc_hidden_proto(xdr_callhdr) +/* libc_hidden_proto(xdr_callhdr) */ /* libc_hidden_proto(xdr_replymsg) */ -libc_hidden_proto(xdr_opaque_auth) -libc_hidden_proto(svc_getreq) -libc_hidden_proto(_seterr_reply) +/* libc_hidden_proto(xdr_opaque_auth) */ +/* libc_hidden_proto(svc_getreq) */ +/* libc_hidden_proto(_seterr_reply) */ #define MCALL_MSG_SIZE 24 diff --git a/libc/inet/rpc/clnt_simple.c b/libc/inet/rpc/clnt_simple.c index 52fb756a0..938a4d621 100644 --- a/libc/inet/rpc/clnt_simple.c +++ b/libc/inet/rpc/clnt_simple.c @@ -54,8 +54,8 @@ static char sccsid[] = "@(#)clnt_simple.c 1.35 87/08/11 Copyr 1984 Sun Micro"; /* Experimentally off - libc_hidden_proto(strcmp) */ /* Experimentally off - libc_hidden_proto(strncpy) */ /* libc_hidden_proto(close) */ -libc_hidden_proto(clntudp_create) -libc_hidden_proto(gethostbyname_r) +/* libc_hidden_proto(clntudp_create) */ +/* libc_hidden_proto(gethostbyname_r) */ struct callrpc_private_s { diff --git a/libc/inet/rpc/clnt_tcp.c b/libc/inet/rpc/clnt_tcp.c index 553b11bef..622d44552 100644 --- a/libc/inet/rpc/clnt_tcp.c +++ b/libc/inet/rpc/clnt_tcp.c @@ -69,22 +69,22 @@ static char sccsid[] = "@(#)clnt_tcp.c 1.37 87/10/05 Copyr 1984 Sun Micro"; /* libc_hidden_proto(read) */ /* libc_hidden_proto(write) */ /* libc_hidden_proto(close) */ -libc_hidden_proto(authnone_create) -libc_hidden_proto(xdrrec_create) -libc_hidden_proto(xdrrec_endofrecord) -libc_hidden_proto(xdrrec_skiprecord) -libc_hidden_proto(xdr_callhdr) +/* libc_hidden_proto(authnone_create) */ +/* libc_hidden_proto(xdrrec_create) */ +/* libc_hidden_proto(xdrrec_endofrecord) */ +/* libc_hidden_proto(xdrrec_skiprecord) */ +/* libc_hidden_proto(xdr_callhdr) */ /* libc_hidden_proto(xdr_replymsg) */ -libc_hidden_proto(xdr_opaque_auth) +/* libc_hidden_proto(xdr_opaque_auth) */ /* libc_hidden_proto(xdrmem_create) */ -libc_hidden_proto(xdr_void) -libc_hidden_proto(pmap_getport) -libc_hidden_proto(_seterr_reply) -libc_hidden_proto(connect) -libc_hidden_proto(bindresvport) +/* libc_hidden_proto(xdr_void) */ +/* libc_hidden_proto(pmap_getport) */ +/* libc_hidden_proto(_seterr_reply) */ +/* libc_hidden_proto(connect) */ +/* libc_hidden_proto(bindresvport) */ /* libc_hidden_proto(poll) */ /* libc_hidden_proto(fputs) */ -libc_hidden_proto(__rpc_thread_createerr) +/* libc_hidden_proto(__rpc_thread_createerr) */ #ifdef USE_IN_LIBIO /* libc_hidden_proto(fwprintf) */ #endif @@ -141,7 +141,7 @@ static struct clnt_ops tcp_ops = * NB: The rpch->cl_auth is set null authentication. Caller may wish to set this * something more useful. */ -libc_hidden_proto(clnttcp_create) +/* libc_hidden_proto(clnttcp_create) */ CLIENT * clnttcp_create (struct sockaddr_in *raddr, u_long prog, u_long vers, int *sockp, u_int sendsz, u_int recvsz) diff --git a/libc/inet/rpc/clnt_udp.c b/libc/inet/rpc/clnt_udp.c index 3763db680..84eb5ed10 100644 --- a/libc/inet/rpc/clnt_udp.c +++ b/libc/inet/rpc/clnt_udp.c @@ -67,23 +67,23 @@ static char sccsid[] = "@(#)clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro"; /* libc_hidden_proto(socket) */ /* libc_hidden_proto(close) */ /* CMSG_NXTHDR is using it */ -libc_hidden_proto(__cmsg_nxthdr) +/* libc_hidden_proto(__cmsg_nxthdr) */ -libc_hidden_proto(authnone_create) +/* libc_hidden_proto(authnone_create) */ /* libc_hidden_proto(xdrmem_create) */ -libc_hidden_proto(xdr_callhdr) +/* libc_hidden_proto(xdr_callhdr) */ /* libc_hidden_proto(xdr_replymsg) */ -libc_hidden_proto(xdr_opaque_auth) -libc_hidden_proto(pmap_getport) -libc_hidden_proto(_seterr_reply) -libc_hidden_proto(setsockopt) -libc_hidden_proto(bindresvport) -libc_hidden_proto(recvfrom) -libc_hidden_proto(sendto) -libc_hidden_proto(recvmsg) +/* libc_hidden_proto(xdr_opaque_auth) */ +/* libc_hidden_proto(pmap_getport) */ +/* libc_hidden_proto(_seterr_reply) */ +/* libc_hidden_proto(setsockopt) */ +/* libc_hidden_proto(bindresvport) */ +/* libc_hidden_proto(recvfrom) */ +/* libc_hidden_proto(sendto) */ +/* libc_hidden_proto(recvmsg) */ /* libc_hidden_proto(poll) */ /* libc_hidden_proto(fputs) */ -libc_hidden_proto(__rpc_thread_createerr) +/* libc_hidden_proto(__rpc_thread_createerr) */ extern u_long _create_xid (void) attribute_hidden; @@ -144,7 +144,7 @@ struct cu_data * sendsz and recvsz are the maximum allowable packet sizes that can be * sent and received. */ -libc_hidden_proto(clntudp_bufcreate) +/* libc_hidden_proto(clntudp_bufcreate) */ CLIENT * clntudp_bufcreate (struct sockaddr_in *raddr, u_long program, u_long version, struct timeval wait, int *sockp, u_int sendsz, @@ -245,7 +245,7 @@ fooy: } libc_hidden_def(clntudp_bufcreate) -libc_hidden_proto(clntudp_create) +/* libc_hidden_proto(clntudp_create) */ CLIENT * clntudp_create (struct sockaddr_in *raddr, u_long program, u_long version, struct timeval wait, int *sockp) { diff --git a/libc/inet/rpc/clnt_unix.c b/libc/inet/rpc/clnt_unix.c index 6de4e63b1..b412ccb7d 100644 --- a/libc/inet/rpc/clnt_unix.c +++ b/libc/inet/rpc/clnt_unix.c @@ -68,25 +68,25 @@ /* libc_hidden_proto(socket) */ /* libc_hidden_proto(close) */ /* libc_hidden_proto(getpid) */ -libc_hidden_proto(authnone_create) -libc_hidden_proto(xdrrec_create) -libc_hidden_proto(xdrrec_endofrecord) -libc_hidden_proto(xdrrec_skiprecord) -libc_hidden_proto(xdr_callhdr) +/* libc_hidden_proto(authnone_create) */ +/* libc_hidden_proto(xdrrec_create) */ +/* libc_hidden_proto(xdrrec_endofrecord) */ +/* libc_hidden_proto(xdrrec_skiprecord) */ +/* libc_hidden_proto(xdr_callhdr) */ /* libc_hidden_proto(xdr_replymsg) */ -libc_hidden_proto(xdr_opaque_auth) +/* libc_hidden_proto(xdr_opaque_auth) */ /* libc_hidden_proto(xdrmem_create) */ -libc_hidden_proto(xdr_void) -libc_hidden_proto(getegid) -libc_hidden_proto(geteuid) -libc_hidden_proto(_seterr_reply) -libc_hidden_proto(setsockopt) -libc_hidden_proto(connect) -libc_hidden_proto(recvmsg) -libc_hidden_proto(sendmsg) +/* libc_hidden_proto(xdr_void) */ +/* libc_hidden_proto(getegid) */ +/* libc_hidden_proto(geteuid) */ +/* libc_hidden_proto(_seterr_reply) */ +/* libc_hidden_proto(setsockopt) */ +/* libc_hidden_proto(connect) */ +/* libc_hidden_proto(recvmsg) */ +/* libc_hidden_proto(sendmsg) */ /* libc_hidden_proto(poll) */ /* libc_hidden_proto(fputs) */ -libc_hidden_proto(__rpc_thread_createerr) +/* libc_hidden_proto(__rpc_thread_createerr) */ extern u_long _create_xid (void) attribute_hidden; @@ -140,7 +140,7 @@ static struct clnt_ops unix_ops = * NB: The rpch->cl_auth is set null authentication. Caller may wish to set this * something more useful. */ -libc_hidden_proto(clntunix_create) +/* libc_hidden_proto(clntunix_create) */ CLIENT * clntunix_create (struct sockaddr_un *raddr, u_long prog, u_long vers, int *sockp, u_int sendsz, u_int recvsz) diff --git a/libc/inet/rpc/create_xid.c b/libc/inet/rpc/create_xid.c index b46062657..be24d660c 100644 --- a/libc/inet/rpc/create_xid.c +++ b/libc/inet/rpc/create_xid.c @@ -25,8 +25,8 @@ #include <sys/time.h> #include <rpc/rpc.h> -libc_hidden_proto(lrand48_r) -libc_hidden_proto(srand48_r) +/* libc_hidden_proto(lrand48_r) */ +/* libc_hidden_proto(srand48_r) */ /* libc_hidden_proto(gettimeofday) */ /* The RPC code is not threadsafe, but new code should be threadsafe. */ diff --git a/libc/inet/rpc/getrpcent.c b/libc/inet/rpc/getrpcent.c index 2730a644a..2a98544f1 100644 --- a/libc/inet/rpc/getrpcent.c +++ b/libc/inet/rpc/getrpcent.c @@ -51,8 +51,8 @@ /* Experimentally off - libc_hidden_proto(strlen) */ /* libc_hidden_proto(fopen) */ /* libc_hidden_proto(fclose) */ -libc_hidden_proto(atoi) -libc_hidden_proto(rewind) +/* libc_hidden_proto(atoi) */ +/* libc_hidden_proto(rewind) */ /* libc_hidden_proto(fgets) */ /* @@ -84,7 +84,7 @@ static struct rpcdata *_rpcdata(void) return d; } -libc_hidden_proto(endrpcent) +/* libc_hidden_proto(endrpcent) */ void endrpcent(void) { register struct rpcdata *d = _rpcdata(); @@ -102,7 +102,7 @@ void endrpcent(void) } libc_hidden_def(endrpcent) -libc_hidden_proto(setrpcent) +/* libc_hidden_proto(setrpcent) */ void setrpcent(int f) { register struct rpcdata *d = _rpcdata(); @@ -128,7 +128,7 @@ static struct rpcent *__get_next_rpcent(struct rpcdata *d) return interpret(d); } -libc_hidden_proto(getrpcent) +/* libc_hidden_proto(getrpcent) */ struct rpcent *getrpcent(void) { register struct rpcdata *d = _rpcdata(); @@ -141,7 +141,7 @@ struct rpcent *getrpcent(void) } libc_hidden_def(getrpcent) -libc_hidden_proto(getrpcbynumber) +/* libc_hidden_proto(getrpcbynumber) */ struct rpcent *getrpcbynumber(register int number) { register struct rpcdata *d = _rpcdata(); @@ -159,7 +159,7 @@ struct rpcent *getrpcbynumber(register int number) } libc_hidden_def(getrpcbynumber) -libc_hidden_proto(getrpcbyname) +/* libc_hidden_proto(getrpcbyname) */ struct rpcent *getrpcbyname(const char *name) { struct rpcent *rpc; diff --git a/libc/inet/rpc/getrpcport.c b/libc/inet/rpc/getrpcport.c index 0a57d1da9..d831e6719 100644 --- a/libc/inet/rpc/getrpcport.c +++ b/libc/inet/rpc/getrpcport.c @@ -49,8 +49,8 @@ static char sccsid[] = "@(#)getrpcport.c 1.3 87/08/11 SMI"; #include <sys/socket.h> /* Experimentally off - libc_hidden_proto(memcpy) */ -libc_hidden_proto(pmap_getport) -libc_hidden_proto(gethostbyname_r) +/* libc_hidden_proto(pmap_getport) */ +/* libc_hidden_proto(gethostbyname_r) */ int getrpcport (const char *host, u_long prognum, u_long versnum, u_int proto) diff --git a/libc/inet/rpc/pm_getmaps.c b/libc/inet/rpc/pm_getmaps.c index 1760adf37..bcdbbf4e0 100644 --- a/libc/inet/rpc/pm_getmaps.c +++ b/libc/inet/rpc/pm_getmaps.c @@ -48,11 +48,11 @@ static char sccsid[] = "@(#)pmap_getmaps.c 1.10 87/08/11 Copyr 1984 Sun Micro"; #include <errno.h> #include <unistd.h> -libc_hidden_proto(clnt_perror) -libc_hidden_proto(clnttcp_create) -libc_hidden_proto(xdr_pmap) -libc_hidden_proto(xdr_pmaplist) -libc_hidden_proto(xdr_void) +/* libc_hidden_proto(clnt_perror) */ +/* libc_hidden_proto(clnttcp_create) */ +/* libc_hidden_proto(xdr_pmap) */ +/* libc_hidden_proto(xdr_pmaplist) */ +/* libc_hidden_proto(xdr_void) */ /* * Get a copy of the current port maps. diff --git a/libc/inet/rpc/pm_getport.c b/libc/inet/rpc/pm_getport.c index 327fb9101..fa9780c22 100644 --- a/libc/inet/rpc/pm_getport.c +++ b/libc/inet/rpc/pm_getport.c @@ -44,10 +44,10 @@ static char sccsid[] = "@(#)pmap_getport.c 1.9 87/08/11 Copyr 1984 Sun Micro"; #include <rpc/pmap_prot.h> #include <rpc/pmap_clnt.h> -libc_hidden_proto(clntudp_bufcreate) -libc_hidden_proto(__rpc_thread_createerr) -libc_hidden_proto(xdr_u_short) -libc_hidden_proto(xdr_pmap) +/* libc_hidden_proto(clntudp_bufcreate) */ +/* libc_hidden_proto(__rpc_thread_createerr) */ +/* libc_hidden_proto(xdr_u_short) */ +/* libc_hidden_proto(xdr_pmap) */ static const struct timeval timeout = {5, 0}; @@ -59,7 +59,7 @@ static const struct timeval tottimeout = * Calls the pmap service remotely to do the lookup. * Returns 0 if no map exists. */ -libc_hidden_proto(pmap_getport) +/* libc_hidden_proto(pmap_getport) */ u_short pmap_getport (address, program, version, protocol) struct sockaddr_in *address; diff --git a/libc/inet/rpc/pmap_clnt.c b/libc/inet/rpc/pmap_clnt.c index d71378068..948d9dc2e 100644 --- a/libc/inet/rpc/pmap_clnt.c +++ b/libc/inet/rpc/pmap_clnt.c @@ -53,10 +53,10 @@ /* libc_hidden_proto(close) */ /* libc_hidden_proto(perror) */ /* libc_hidden_proto(exit) */ -libc_hidden_proto(clnt_perror) -libc_hidden_proto(clntudp_bufcreate) -libc_hidden_proto(xdr_bool) -libc_hidden_proto(xdr_pmap) +/* libc_hidden_proto(clnt_perror) */ +/* libc_hidden_proto(clntudp_bufcreate) */ +/* libc_hidden_proto(xdr_bool) */ +/* libc_hidden_proto(xdr_pmap) */ /* * Same as get_myaddress, but we try to use the loopback @@ -122,7 +122,7 @@ static const struct timeval tottimeout = {60, 0}; * Set a mapping between program,version and port. * Calls the pmap service remotely to do the mapping. */ -libc_hidden_proto(pmap_set) +/* libc_hidden_proto(pmap_set) */ bool_t pmap_set (u_long program, u_long version, int protocol, u_short port) { @@ -159,7 +159,7 @@ libc_hidden_def (pmap_set) * Remove the mapping between program,version and port. * Calls the pmap service remotely to do the un-mapping. */ -libc_hidden_proto(pmap_unset) +/* libc_hidden_proto(pmap_unset) */ bool_t pmap_unset (u_long program, u_long version) { diff --git a/libc/inet/rpc/pmap_prot.c b/libc/inet/rpc/pmap_prot.c index 0ae2c88f3..a5c4d166b 100644 --- a/libc/inet/rpc/pmap_prot.c +++ b/libc/inet/rpc/pmap_prot.c @@ -42,9 +42,9 @@ static char sccsid[] = "@(#)pmap_prot.c 1.17 87/08/11 Copyr 1984 Sun Micro"; #include <rpc/xdr.h> #include <rpc/pmap_prot.h> -libc_hidden_proto(xdr_u_long) +/* libc_hidden_proto(xdr_u_long) */ -libc_hidden_proto(xdr_pmap) +/* libc_hidden_proto(xdr_pmap) */ bool_t xdr_pmap (xdrs, regs) XDR *xdrs; diff --git a/libc/inet/rpc/pmap_prot2.c b/libc/inet/rpc/pmap_prot2.c index 5adc4ee2e..21def3c4f 100644 --- a/libc/inet/rpc/pmap_prot2.c +++ b/libc/inet/rpc/pmap_prot2.c @@ -42,9 +42,9 @@ static char sccsid[] = "@(#)pmap_prot2.c 1.3 87/08/11 Copyr 1984 Sun Micro"; #include <rpc/xdr.h> #include <rpc/pmap_prot.h> -libc_hidden_proto(xdr_bool) -libc_hidden_proto(xdr_reference) -libc_hidden_proto(xdr_pmap) +/* libc_hidden_proto(xdr_bool) */ +/* libc_hidden_proto(xdr_reference) */ +/* libc_hidden_proto(xdr_pmap) */ /* * What is going on with linked lists? (!) @@ -84,7 +84,7 @@ libc_hidden_proto(xdr_pmap) * the net, yet is the data that the pointer points to which is interesting; * this sounds like a job for xdr_reference! */ -libc_hidden_proto(xdr_pmaplist) +/* libc_hidden_proto(xdr_pmaplist) */ bool_t xdr_pmaplist (xdrs, rp) XDR *xdrs; diff --git a/libc/inet/rpc/pmap_rmt.c b/libc/inet/rpc/pmap_rmt.c index 037b3ede0..a1f8f71a8 100644 --- a/libc/inet/rpc/pmap_rmt.c +++ b/libc/inet/rpc/pmap_rmt.c @@ -64,21 +64,21 @@ static char sccsid[] = "@(#)pmap_rmt.c 1.21 87/08/27 Copyr 1984 Sun Micro"; /* libc_hidden_proto(perror) */ /* libc_hidden_proto(socket) */ /* libc_hidden_proto(close) */ -libc_hidden_proto(authunix_create_default) +/* libc_hidden_proto(authunix_create_default) */ /* libc_hidden_proto(xdrmem_create) */ -libc_hidden_proto(xdr_callmsg) +/* libc_hidden_proto(xdr_callmsg) */ /* libc_hidden_proto(xdr_replymsg) */ -libc_hidden_proto(xdr_reference) -libc_hidden_proto(xdr_u_long) -libc_hidden_proto(xdr_void) -libc_hidden_proto(xdr_rmtcallres) -libc_hidden_proto(xdr_rmtcall_args) -libc_hidden_proto(inet_makeaddr) -libc_hidden_proto(inet_netof) -libc_hidden_proto(clntudp_create) -libc_hidden_proto(setsockopt) -libc_hidden_proto(recvfrom) -libc_hidden_proto(sendto) +/* libc_hidden_proto(xdr_reference) */ +/* libc_hidden_proto(xdr_u_long) */ +/* libc_hidden_proto(xdr_void) */ +/* libc_hidden_proto(xdr_rmtcallres) */ +/* libc_hidden_proto(xdr_rmtcall_args) */ +/* libc_hidden_proto(inet_makeaddr) */ +/* libc_hidden_proto(inet_netof) */ +/* libc_hidden_proto(clntudp_create) */ +/* libc_hidden_proto(setsockopt) */ +/* libc_hidden_proto(recvfrom) */ +/* libc_hidden_proto(sendto) */ /* libc_hidden_proto(poll) */ /* libc_hidden_proto(fprintf) */ diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c index b8e54b61e..17af69ee5 100644 --- a/libc/inet/rpc/rcmd.c +++ b/libc/inet/rpc/rcmd.c @@ -105,32 +105,32 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94"; /* libc_hidden_proto(lstat) */ /* libc_hidden_proto(fstat) */ /* libc_hidden_proto(tolower) */ -libc_hidden_proto(sysconf) -libc_hidden_proto(getline) -libc_hidden_proto(geteuid) -libc_hidden_proto(seteuid) -libc_hidden_proto(getpwnam_r) -libc_hidden_proto(gethostbyname) -libc_hidden_proto(gethostbyname_r) -libc_hidden_proto(fileno) -libc_hidden_proto(sleep) -libc_hidden_proto(inet_addr) -libc_hidden_proto(inet_ntoa) -libc_hidden_proto(herror) -libc_hidden_proto(bind) -libc_hidden_proto(connect) -libc_hidden_proto(sigblock) -libc_hidden_proto(snprintf) +/* libc_hidden_proto(sysconf) */ +/* libc_hidden_proto(getline) */ +/* libc_hidden_proto(geteuid) */ +/* libc_hidden_proto(seteuid) */ +/* libc_hidden_proto(getpwnam_r) */ +/* libc_hidden_proto(gethostbyname) */ +/* libc_hidden_proto(gethostbyname_r) */ +/* libc_hidden_proto(fileno) */ +/* libc_hidden_proto(sleep) */ +/* libc_hidden_proto(inet_addr) */ +/* libc_hidden_proto(inet_ntoa) */ +/* libc_hidden_proto(herror) */ +/* libc_hidden_proto(bind) */ +/* libc_hidden_proto(connect) */ +/* libc_hidden_proto(sigblock) */ +/* libc_hidden_proto(snprintf) */ /* libc_hidden_proto(poll) */ -libc_hidden_proto(accept) -libc_hidden_proto(listen) -libc_hidden_proto(sigsetmask) -libc_hidden_proto(getc_unlocked) -libc_hidden_proto(__fgetc_unlocked) +/* libc_hidden_proto(accept) */ +/* libc_hidden_proto(listen) */ +/* libc_hidden_proto(sigsetmask) */ +/* libc_hidden_proto(getc_unlocked) */ +/* libc_hidden_proto(__fgetc_unlocked) */ /* libc_hidden_proto(fopen) */ /* libc_hidden_proto(fclose) */ /* libc_hidden_proto(fprintf) */ -libc_hidden_proto(__h_errno_location) +/* libc_hidden_proto(__h_errno_location) */ #ifdef __UCLIBC_HAS_XLOCALE__ /* libc_hidden_proto(__ctype_b_loc) */ /* libc_hidden_proto(__ctype_tolower_loc) */ @@ -139,7 +139,7 @@ libc_hidden_proto(__h_errno_location) /* libc_hidden_proto(__ctype_tolower) */ #endif -libc_hidden_proto(rresvport) +/* libc_hidden_proto(rresvport) */ /* some forward declarations */ static int __ivaliduser2(FILE *hostf, u_int32_t raddr, diff --git a/libc/inet/rpc/rexec.c b/libc/inet/rpc/rexec.c index 4a3141b6b..12df3ab8f 100644 --- a/libc/inet/rpc/rexec.c +++ b/libc/inet/rpc/rexec.c @@ -51,17 +51,17 @@ /* libc_hidden_proto(socket) */ /* libc_hidden_proto(perror) */ /* libc_hidden_proto(sprintf) */ -libc_hidden_proto(snprintf) -libc_hidden_proto(getsockname) -libc_hidden_proto(getnameinfo) -libc_hidden_proto(getaddrinfo) -libc_hidden_proto(freeaddrinfo) -libc_hidden_proto(sleep) -libc_hidden_proto(atoi) -libc_hidden_proto(connect) -libc_hidden_proto(accept) -libc_hidden_proto(listen) -libc_hidden_proto(ruserpass) +/* libc_hidden_proto(snprintf) */ +/* libc_hidden_proto(getsockname) */ +/* libc_hidden_proto(getnameinfo) */ +/* libc_hidden_proto(getaddrinfo) */ +/* libc_hidden_proto(freeaddrinfo) */ +/* libc_hidden_proto(sleep) */ +/* libc_hidden_proto(atoi) */ +/* libc_hidden_proto(connect) */ +/* libc_hidden_proto(accept) */ +/* libc_hidden_proto(listen) */ +/* libc_hidden_proto(ruserpass) */ #define SA_LEN(_x) __libc_sa_len((_x)->sa_family) extern int __libc_sa_len (sa_family_t __af) __THROW attribute_hidden; @@ -69,7 +69,7 @@ extern int __libc_sa_len (sa_family_t __af) __THROW attribute_hidden; int rexecoptions; char ahostbuf[NI_MAXHOST] attribute_hidden; -libc_hidden_proto(rexec_af) +/* libc_hidden_proto(rexec_af) */ int rexec_af(char **ahost, int rport, const char *name, const char *pass, const char *cmd, int *fd2p, sa_family_t af) { diff --git a/libc/inet/rpc/rpc_cmsg.c b/libc/inet/rpc/rpc_cmsg.c index 3206aae55..0d8aac627 100644 --- a/libc/inet/rpc/rpc_cmsg.c +++ b/libc/inet/rpc/rpc_cmsg.c @@ -46,16 +46,16 @@ static char sccsid[] = "@(#)rpc_callmsg.c 1.4 87/08/11 Copyr 1984 Sun Micro"; #include <rpc/rpc.h> /* Experimentally off - libc_hidden_proto(memcpy) */ -libc_hidden_proto(xdr_enum) -libc_hidden_proto(xdr_opaque) -libc_hidden_proto(xdr_u_int) -libc_hidden_proto(xdr_u_long) -libc_hidden_proto(xdr_opaque_auth) +/* libc_hidden_proto(xdr_enum) */ +/* libc_hidden_proto(xdr_opaque) */ +/* libc_hidden_proto(xdr_u_int) */ +/* libc_hidden_proto(xdr_u_long) */ +/* libc_hidden_proto(xdr_opaque_auth) */ /* * XDR a call message */ -libc_hidden_proto(xdr_callmsg) +/* libc_hidden_proto(xdr_callmsg) */ bool_t xdr_callmsg (XDR *xdrs, struct rpc_msg *cmsg) { diff --git a/libc/inet/rpc/rpc_dtablesize.c b/libc/inet/rpc/rpc_dtablesize.c index 11a7ad457..fe3d4a39f 100644 --- a/libc/inet/rpc/rpc_dtablesize.c +++ b/libc/inet/rpc/rpc_dtablesize.c @@ -38,13 +38,13 @@ static char sccsid[] = "@(#)rpc_dtablesize.c 1.2 87/08/11 Copyr 1987 Sun Micro"; #include <unistd.h> #include <rpc/clnt.h> -libc_hidden_proto(getdtablesize) +/* libc_hidden_proto(getdtablesize) */ /* * Cache the result of getdtablesize(), so we don't have to do an * expensive system call every time. */ -libc_hidden_proto(_rpc_dtablesize) +/* libc_hidden_proto(_rpc_dtablesize) */ int _rpc_dtablesize(void) { diff --git a/libc/inet/rpc/rpc_private.h b/libc/inet/rpc/rpc_private.h index 15250059a..24112a468 100644 --- a/libc/inet/rpc/rpc_private.h +++ b/libc/inet/rpc/rpc_private.h @@ -4,7 +4,7 @@ /* Now define the internal interfaces. */ extern u_long _create_xid (void) attribute_hidden; -libc_hidden_proto(__rpc_thread_createerr) +/* libc_hidden_proto(__rpc_thread_createerr) */ /* * Multi-threaded support diff --git a/libc/inet/rpc/rpc_prot.c b/libc/inet/rpc/rpc_prot.c index 418aae900..ddfabe035 100644 --- a/libc/inet/rpc/rpc_prot.c +++ b/libc/inet/rpc/rpc_prot.c @@ -51,11 +51,11 @@ static char sccsid[] = "@(#)rpc_prot.c 1.36 87/08/11 Copyr 1984 Sun Micro"; #include <rpc/rpc.h> -libc_hidden_proto(xdr_bytes) -libc_hidden_proto(xdr_union) -libc_hidden_proto(xdr_enum) -libc_hidden_proto(xdr_opaque) -libc_hidden_proto(xdr_u_long) +/* libc_hidden_proto(xdr_bytes) */ +/* libc_hidden_proto(xdr_union) */ +/* libc_hidden_proto(xdr_enum) */ +/* libc_hidden_proto(xdr_opaque) */ +/* libc_hidden_proto(xdr_u_long) */ /* * * * * * * * * * * * * * XDR Authentication * * * * * * * * * * * */ @@ -63,7 +63,7 @@ libc_hidden_proto(xdr_u_long) * XDR an opaque authentication struct * (see auth.h) */ -libc_hidden_proto(xdr_opaque_auth) +/* libc_hidden_proto(xdr_opaque_auth) */ bool_t xdr_opaque_auth (XDR *xdrs, struct opaque_auth *ap) { @@ -89,7 +89,7 @@ xdr_des_block (XDR *xdrs, des_block *blkp) /* * XDR the MSG_ACCEPTED part of a reply message union */ -libc_hidden_proto(xdr_accepted_reply) +/* libc_hidden_proto(xdr_accepted_reply) */ bool_t xdr_accepted_reply (XDR *xdrs, struct accepted_reply *ar) { @@ -116,7 +116,7 @@ libc_hidden_def(xdr_accepted_reply) /* * XDR the MSG_DENIED part of a reply message union */ -libc_hidden_proto(xdr_rejected_reply) +/* libc_hidden_proto(xdr_rejected_reply) */ bool_t xdr_rejected_reply (XDR *xdrs, struct rejected_reply *rr) { @@ -166,7 +166,7 @@ libc_hidden_def(xdr_replymsg) * The fields include: rm_xid, rm_direction, rpcvers, prog, and vers. * The rm_xid is not really static, but the user can easily munge on the fly. */ -libc_hidden_proto(xdr_callhdr) +/* libc_hidden_proto(xdr_callhdr) */ bool_t xdr_callhdr (XDR *xdrs, struct rpc_msg *cmsg) { @@ -247,7 +247,7 @@ rejected (enum reject_stat rjct_stat, /* * given a reply message, fills in the error */ -libc_hidden_proto(_seterr_reply) +/* libc_hidden_proto(_seterr_reply) */ void _seterr_reply (struct rpc_msg *msg, struct rpc_err *error) diff --git a/libc/inet/rpc/rpc_thread.c b/libc/inet/rpc/rpc_thread.c index 43d2fc547..0e0078c2c 100644 --- a/libc/inet/rpc/rpc_thread.c +++ b/libc/inet/rpc/rpc_thread.c @@ -10,10 +10,10 @@ #include <assert.h> #include "rpc_private.h" -libc_hidden_proto(__rpc_thread_svc_fdset) -libc_hidden_proto(__rpc_thread_createerr) -libc_hidden_proto(__rpc_thread_svc_pollfd) -libc_hidden_proto(__rpc_thread_svc_max_pollfd) +/* libc_hidden_proto(__rpc_thread_svc_fdset) */ +/* libc_hidden_proto(__rpc_thread_createerr) */ +/* libc_hidden_proto(__rpc_thread_svc_pollfd) */ +/* libc_hidden_proto(__rpc_thread_svc_max_pollfd) */ #ifdef __UCLIBC_HAS_THREADS__ diff --git a/libc/inet/rpc/rtime.c b/libc/inet/rpc/rtime.c index 80962a2b7..08bdf9396 100644 --- a/libc/inet/rpc/rtime.c +++ b/libc/inet/rpc/rtime.c @@ -61,11 +61,11 @@ static char sccsid[] = "@(#)rtime.c 2.2 88/08/10 4.0 RPCSRC; from 1.8 88/02/08 S /* libc_hidden_proto(read) */ /* libc_hidden_proto(socket) */ /* libc_hidden_proto(close) */ -libc_hidden_proto(connect) -libc_hidden_proto(recvfrom) -libc_hidden_proto(sendto) +/* libc_hidden_proto(connect) */ +/* libc_hidden_proto(recvfrom) */ +/* libc_hidden_proto(sendto) */ /* libc_hidden_proto(poll) */ -libc_hidden_proto(rtime) +/* libc_hidden_proto(rtime) */ #define NYEARS (u_long)(1970 - 1900) #define TOFFSET (u_long)(60*60*24*(365*NYEARS + (NYEARS/4))) diff --git a/libc/inet/rpc/ruserpass.c b/libc/inet/rpc/ruserpass.c index 0586516aa..3b0dc924a 100644 --- a/libc/inet/rpc/ruserpass.c +++ b/libc/inet/rpc/ruserpass.c @@ -52,17 +52,17 @@ /* libc_hidden_proto(getenv) */ /* libc_hidden_proto(printf) */ /* libc_hidden_proto(fstat) */ -libc_hidden_proto(__fsetlocking) -libc_hidden_proto(getgid) -libc_hidden_proto(getuid) -libc_hidden_proto(getegid) -libc_hidden_proto(geteuid) -libc_hidden_proto(gethostname) -libc_hidden_proto(fileno) +/* libc_hidden_proto(__fsetlocking) */ +/* libc_hidden_proto(getgid) */ +/* libc_hidden_proto(getuid) */ +/* libc_hidden_proto(getegid) */ +/* libc_hidden_proto(geteuid) */ +/* libc_hidden_proto(gethostname) */ +/* libc_hidden_proto(fileno) */ /* libc_hidden_proto(fopen) */ /* libc_hidden_proto(fclose) */ -libc_hidden_proto(getc_unlocked) -libc_hidden_proto(__fgetc_unlocked) +/* libc_hidden_proto(getc_unlocked) */ +/* libc_hidden_proto(__fgetc_unlocked) */ #define _(X) (X) /* #include "ftp_var.h" */ @@ -114,7 +114,7 @@ static const struct toktab { /* ruserpass - remote password check. This function also exists in glibc but is undocumented */ -libc_hidden_proto(ruserpass) +/* libc_hidden_proto(ruserpass) */ int ruserpass(const char *host, const char **aname, const char **apass) { char *hdir, *buf, *tmp; diff --git a/libc/inet/rpc/svc.c b/libc/inet/rpc/svc.c index 253c06379..38811f5b7 100644 --- a/libc/inet/rpc/svc.c +++ b/libc/inet/rpc/svc.c @@ -47,15 +47,15 @@ #include <sys/poll.h> /* Experimentally off - libc_hidden_proto(ffs) */ -libc_hidden_proto(pmap_set) -libc_hidden_proto(pmap_unset) -libc_hidden_proto(_authenticate) -libc_hidden_proto(_rpc_dtablesize) +/* libc_hidden_proto(pmap_set) */ +/* libc_hidden_proto(pmap_unset) */ +/* libc_hidden_proto(_authenticate) */ +/* libc_hidden_proto(_rpc_dtablesize) */ /* used by svc_[max_]pollfd */ -libc_hidden_proto(__rpc_thread_svc_pollfd) -libc_hidden_proto(__rpc_thread_svc_max_pollfd) +/* libc_hidden_proto(__rpc_thread_svc_pollfd) */ +/* libc_hidden_proto(__rpc_thread_svc_max_pollfd) */ /* used by svc_fdset */ -libc_hidden_proto(__rpc_thread_svc_fdset) +/* libc_hidden_proto(__rpc_thread_svc_fdset) */ #ifdef __UCLIBC_HAS_THREADS__ #define xports (*(SVCXPRT ***)&RPC_THREAD_VARIABLE(svc_xports_s)) @@ -85,7 +85,7 @@ static struct svc_callout *svc_head; /* *************** SVCXPRT related stuff **************** */ /* Activate a transport handle. */ -libc_hidden_proto(xprt_register) +/* libc_hidden_proto(xprt_register) */ void xprt_register (SVCXPRT *xprt) { @@ -129,7 +129,7 @@ xprt_register (SVCXPRT *xprt) libc_hidden_def(xprt_register) /* De-activate a transport handle. */ -libc_hidden_proto(xprt_unregister) +/* libc_hidden_proto(xprt_unregister) */ void xprt_unregister (SVCXPRT *xprt) { @@ -175,7 +175,7 @@ done: /* Add a service program to the callout list. The dispatch routine will be called when a rpc request for this program number comes in. */ -libc_hidden_proto(svc_register) +/* libc_hidden_proto(svc_register) */ bool_t svc_register (SVCXPRT * xprt, rpcprog_t prog, rpcvers_t vers, void (*dispatch) (struct svc_req *, SVCXPRT *), @@ -210,7 +210,7 @@ pmap_it: libc_hidden_def(svc_register) /* Remove a service program from the callout list. */ -libc_hidden_proto(svc_unregister) +/* libc_hidden_proto(svc_unregister) */ void svc_unregister (rpcprog_t prog, rpcvers_t vers) { @@ -235,7 +235,7 @@ libc_hidden_def(svc_unregister) /* ******************* REPLY GENERATION ROUTINES ************ */ /* Send a reply to an rpc request */ -libc_hidden_proto(svc_sendreply) +/* libc_hidden_proto(svc_sendreply) */ bool_t svc_sendreply (register SVCXPRT *xprt, xdrproc_t xdr_results, caddr_t xdr_location) @@ -266,7 +266,7 @@ svcerr_noproc (register SVCXPRT *xprt) } /* Can't decode args error reply */ -libc_hidden_proto(svcerr_decode) +/* libc_hidden_proto(svcerr_decode) */ void svcerr_decode (register SVCXPRT *xprt) { @@ -294,7 +294,7 @@ svcerr_systemerr (register SVCXPRT *xprt) } /* Authentication error reply */ -libc_hidden_proto(svcerr_auth) +/* libc_hidden_proto(svcerr_auth) */ void svcerr_auth (SVCXPRT *xprt, enum auth_stat why) { @@ -316,7 +316,7 @@ svcerr_weakauth (SVCXPRT *xprt) } /* Program unavailable error reply */ -libc_hidden_proto(svcerr_noprog) +/* libc_hidden_proto(svcerr_noprog) */ void svcerr_noprog (register SVCXPRT *xprt) { @@ -331,7 +331,7 @@ svcerr_noprog (register SVCXPRT *xprt) libc_hidden_def(svcerr_noprog) /* Program version mismatch error reply */ -libc_hidden_proto(svcerr_progvers) +/* libc_hidden_proto(svcerr_progvers) */ void svcerr_progvers (register SVCXPRT *xprt, rpcvers_t low_vers, rpcvers_t high_vers) @@ -366,7 +366,7 @@ libc_hidden_def(svcerr_progvers) * is mallocated in kernel land. */ -libc_hidden_proto(svc_getreq_common) +/* libc_hidden_proto(svc_getreq_common) */ void svc_getreq_common (const int fd) { @@ -458,7 +458,7 @@ svc_getreq_common (const int fd) } libc_hidden_def(svc_getreq_common) -libc_hidden_proto(svc_getreqset) +/* libc_hidden_proto(svc_getreqset) */ void svc_getreqset (fd_set *readfds) { @@ -476,7 +476,7 @@ svc_getreqset (fd_set *readfds) } libc_hidden_def(svc_getreqset) -libc_hidden_proto(svc_getreq) +/* libc_hidden_proto(svc_getreq) */ void svc_getreq (int rdfds) { @@ -488,7 +488,7 @@ svc_getreq (int rdfds) } libc_hidden_def(svc_getreq) -libc_hidden_proto(svc_getreq_poll) +/* libc_hidden_proto(svc_getreq_poll) */ void svc_getreq_poll (struct pollfd *pfdp, int pollretval) { diff --git a/libc/inet/rpc/svc_auth.c b/libc/inet/rpc/svc_auth.c index 1a5dcf0ca..52208c1ee 100644 --- a/libc/inet/rpc/svc_auth.c +++ b/libc/inet/rpc/svc_auth.c @@ -101,7 +101,7 @@ svcauthsw[] = * There is an assumption that any flavour less than AUTH_NULL is * invalid. */ -libc_hidden_proto(_authenticate) +/* libc_hidden_proto(_authenticate) */ enum auth_stat _authenticate (register struct svc_req *rqst, struct rpc_msg *msg) { diff --git a/libc/inet/rpc/svc_authux.c b/libc/inet/rpc/svc_authux.c index 9f2271ad2..556cdde30 100644 --- a/libc/inet/rpc/svc_authux.c +++ b/libc/inet/rpc/svc_authux.c @@ -49,7 +49,7 @@ /* Experimentally off - libc_hidden_proto(memcpy) */ /* libc_hidden_proto(printf) */ /* libc_hidden_proto(xdrmem_create) */ -libc_hidden_proto(xdr_authunix_parms) +/* libc_hidden_proto(xdr_authunix_parms) */ /* * Unix longhand authenticator diff --git a/libc/inet/rpc/svc_raw.c b/libc/inet/rpc/svc_raw.c index 7f3f55bc6..075fbad95 100644 --- a/libc/inet/rpc/svc_raw.c +++ b/libc/inet/rpc/svc_raw.c @@ -46,7 +46,7 @@ static char sccsid[] = "@(#)svc_raw.c 1.15 87/08/11 Copyr 1984 Sun Micro"; #include <rpc/svc.h> /* libc_hidden_proto(xdrmem_create) */ -libc_hidden_proto(xdr_callmsg) +/* libc_hidden_proto(xdr_callmsg) */ /* libc_hidden_proto(xdr_replymsg) */ /* diff --git a/libc/inet/rpc/svc_run.c b/libc/inet/rpc/svc_run.c index 7ffff0772..49d52d01b 100644 --- a/libc/inet/rpc/svc_run.c +++ b/libc/inet/rpc/svc_run.c @@ -40,11 +40,11 @@ #include <rpc/rpc.h> /* libc_hidden_proto(perror) */ -libc_hidden_proto(svc_getreq_poll) +/* libc_hidden_proto(svc_getreq_poll) */ /* libc_hidden_proto(poll) */ /* used by svc_[max_]pollfd */ -libc_hidden_proto(__rpc_thread_svc_pollfd) -libc_hidden_proto(__rpc_thread_svc_max_pollfd) +/* libc_hidden_proto(__rpc_thread_svc_pollfd) */ +/* libc_hidden_proto(__rpc_thread_svc_max_pollfd) */ /* This function can be used as a signal handler to terminate the server loop. */ diff --git a/libc/inet/rpc/svc_simple.c b/libc/inet/rpc/svc_simple.c index 9373c8b65..d50f014a8 100644 --- a/libc/inet/rpc/svc_simple.c +++ b/libc/inet/rpc/svc_simple.c @@ -57,16 +57,16 @@ static char sccsid[] = "@(#)svc_simple.c 1.18 87/08/11 Copyr 1984 Sun Micro"; /* Experimentally off - libc_hidden_proto(strdup) */ /* Experimentally off - libc_hidden_proto(memset) */ -libc_hidden_proto(asprintf) +/* libc_hidden_proto(asprintf) */ /* libc_hidden_proto(fputs) */ /* libc_hidden_proto(write) */ /* libc_hidden_proto(exit) */ -libc_hidden_proto(svc_sendreply) -libc_hidden_proto(svc_register) -libc_hidden_proto(svcerr_decode) -libc_hidden_proto(svcudp_create) -libc_hidden_proto(pmap_unset) -libc_hidden_proto(xdr_void) +/* libc_hidden_proto(svc_sendreply) */ +/* libc_hidden_proto(svc_register) */ +/* libc_hidden_proto(svcerr_decode) */ +/* libc_hidden_proto(svcudp_create) */ +/* libc_hidden_proto(pmap_unset) */ +/* libc_hidden_proto(xdr_void) */ struct proglst_ { diff --git a/libc/inet/rpc/svc_tcp.c b/libc/inet/rpc/svc_tcp.c index e04c28f63..0e5c5c727 100644 --- a/libc/inet/rpc/svc_tcp.c +++ b/libc/inet/rpc/svc_tcp.c @@ -66,20 +66,20 @@ static char sccsid[] = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro"; /* libc_hidden_proto(read) */ /* libc_hidden_proto(write) */ /* libc_hidden_proto(perror) */ -libc_hidden_proto(xdrrec_create) -libc_hidden_proto(xdrrec_endofrecord) -libc_hidden_proto(xdrrec_skiprecord) -libc_hidden_proto(xdrrec_eof) -libc_hidden_proto(xdr_callmsg) +/* libc_hidden_proto(xdrrec_create) */ +/* libc_hidden_proto(xdrrec_endofrecord) */ +/* libc_hidden_proto(xdrrec_skiprecord) */ +/* libc_hidden_proto(xdrrec_eof) */ +/* libc_hidden_proto(xdr_callmsg) */ /* libc_hidden_proto(xdr_replymsg) */ -libc_hidden_proto(xprt_register) -libc_hidden_proto(xprt_unregister) -libc_hidden_proto(getsockname) -libc_hidden_proto(bind) -libc_hidden_proto(bindresvport) +/* libc_hidden_proto(xprt_register) */ +/* libc_hidden_proto(xprt_unregister) */ +/* libc_hidden_proto(getsockname) */ +/* libc_hidden_proto(bind) */ +/* libc_hidden_proto(bindresvport) */ /* libc_hidden_proto(poll) */ -libc_hidden_proto(accept) -libc_hidden_proto(listen) +/* libc_hidden_proto(accept) */ +/* libc_hidden_proto(listen) */ /* libc_hidden_proto(fputs) */ /* libc_hidden_proto(fclose) */ /* libc_hidden_proto(abort) */ diff --git a/libc/inet/rpc/svc_udp.c b/libc/inet/rpc/svc_udp.c index 733ec3f33..866e5275a 100644 --- a/libc/inet/rpc/svc_udp.c +++ b/libc/inet/rpc/svc_udp.c @@ -66,19 +66,19 @@ static char sccsid[] = "@(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro"; /* libc_hidden_proto(perror) */ /* libc_hidden_proto(socket) */ /* libc_hidden_proto(close) */ -libc_hidden_proto(xprt_register) -libc_hidden_proto(xprt_unregister) +/* libc_hidden_proto(xprt_register) */ +/* libc_hidden_proto(xprt_unregister) */ /* libc_hidden_proto(xdrmem_create) */ -libc_hidden_proto(xdr_callmsg) +/* libc_hidden_proto(xdr_callmsg) */ /* libc_hidden_proto(xdr_replymsg) */ -libc_hidden_proto(getsockname) -libc_hidden_proto(setsockopt) -libc_hidden_proto(bind) -libc_hidden_proto(bindresvport) -libc_hidden_proto(recvfrom) -libc_hidden_proto(sendto) -libc_hidden_proto(recvmsg) -libc_hidden_proto(sendmsg) +/* libc_hidden_proto(getsockname) */ +/* libc_hidden_proto(setsockopt) */ +/* libc_hidden_proto(bind) */ +/* libc_hidden_proto(bindresvport) */ +/* libc_hidden_proto(recvfrom) */ +/* libc_hidden_proto(sendto) */ +/* libc_hidden_proto(recvmsg) */ +/* libc_hidden_proto(sendmsg) */ /* libc_hidden_proto(fputs) */ /* libc_hidden_proto(fprintf) */ @@ -134,7 +134,7 @@ struct svcudp_data * see (svc.h, xprt_register). * The routines returns NULL if a problem occurred. */ -libc_hidden_proto(svcudp_bufcreate) +/* libc_hidden_proto(svcudp_bufcreate) */ SVCXPRT * svcudp_bufcreate (int sock, u_int sendsz, u_int recvsz) { @@ -226,7 +226,7 @@ svcudp_bufcreate (int sock, u_int sendsz, u_int recvsz) } libc_hidden_def(svcudp_bufcreate) -libc_hidden_proto(svcudp_create) +/* libc_hidden_proto(svcudp_create) */ SVCXPRT * svcudp_create (int sock) { diff --git a/libc/inet/rpc/svc_unix.c b/libc/inet/rpc/svc_unix.c index 03c4336d1..3670bb1ec 100644 --- a/libc/inet/rpc/svc_unix.c +++ b/libc/inet/rpc/svc_unix.c @@ -62,24 +62,24 @@ /* libc_hidden_proto(close) */ /* libc_hidden_proto(perror) */ /* libc_hidden_proto(getpid) */ -libc_hidden_proto(xdrrec_create) -libc_hidden_proto(xdrrec_endofrecord) -libc_hidden_proto(xdrrec_skiprecord) -libc_hidden_proto(xdrrec_eof) -libc_hidden_proto(xdr_callmsg) +/* libc_hidden_proto(xdrrec_create) */ +/* libc_hidden_proto(xdrrec_endofrecord) */ +/* libc_hidden_proto(xdrrec_skiprecord) */ +/* libc_hidden_proto(xdrrec_eof) */ +/* libc_hidden_proto(xdr_callmsg) */ /* libc_hidden_proto(xdr_replymsg) */ -libc_hidden_proto(xprt_register) -libc_hidden_proto(xprt_unregister) -libc_hidden_proto(getegid) -libc_hidden_proto(geteuid) -libc_hidden_proto(getsockname) -libc_hidden_proto(setsockopt) -libc_hidden_proto(bind) -libc_hidden_proto(recvmsg) -libc_hidden_proto(sendmsg) +/* libc_hidden_proto(xprt_register) */ +/* libc_hidden_proto(xprt_unregister) */ +/* libc_hidden_proto(getegid) */ +/* libc_hidden_proto(geteuid) */ +/* libc_hidden_proto(getsockname) */ +/* libc_hidden_proto(setsockopt) */ +/* libc_hidden_proto(bind) */ +/* libc_hidden_proto(recvmsg) */ +/* libc_hidden_proto(sendmsg) */ /* libc_hidden_proto(poll) */ -libc_hidden_proto(accept) -libc_hidden_proto(listen) +/* libc_hidden_proto(accept) */ +/* libc_hidden_proto(listen) */ /* libc_hidden_proto(fputs) */ /* libc_hidden_proto(abort) */ diff --git a/libc/inet/rpc/xdr.c b/libc/inet/rpc/xdr.c index 335702c0f..11e52136d 100644 --- a/libc/inet/rpc/xdr.c +++ b/libc/inet/rpc/xdr.c @@ -87,7 +87,7 @@ xdr_free (xdrproc_t proc, char *objp) /* * XDR nothing */ -libc_hidden_proto(xdr_void) +/* libc_hidden_proto(xdr_void) */ bool_t xdr_void (void) { @@ -100,7 +100,7 @@ libc_hidden_def(xdr_void) * The definition of xdr_long() is kept for backward * compatibility. Instead xdr_int() should be used. */ -libc_hidden_proto(xdr_long) +/* libc_hidden_proto(xdr_long) */ bool_t xdr_long (XDR *xdrs, long *lp) { @@ -123,7 +123,7 @@ libc_hidden_def(xdr_long) /* * XDR short integers */ -libc_hidden_proto(xdr_short) +/* libc_hidden_proto(xdr_short) */ bool_t xdr_short (XDR *xdrs, short *sp) { @@ -153,7 +153,7 @@ libc_hidden_def(xdr_short) /* * XDR integers */ -libc_hidden_proto(xdr_int) +/* libc_hidden_proto(xdr_int) */ bool_t xdr_int (XDR *xdrs, int *ip) { @@ -192,7 +192,7 @@ libc_hidden_def(xdr_int) * The definition of xdr_u_long() is kept for backward * compatibility. Instead xdr_u_int() should be used. */ -libc_hidden_proto(xdr_u_long) +/* libc_hidden_proto(xdr_u_long) */ bool_t xdr_u_long (XDR *xdrs, u_long *ulp) { @@ -226,7 +226,7 @@ libc_hidden_def(xdr_u_long) /* * XDR unsigned integers */ -libc_hidden_proto(xdr_u_int) +/* libc_hidden_proto(xdr_u_int) */ bool_t xdr_u_int (XDR *xdrs, u_int *up) { @@ -263,7 +263,7 @@ libc_hidden_def(xdr_u_int) * XDR hyper integers * same as xdr_u_hyper - open coded to save a proc call! */ -libc_hidden_proto(xdr_hyper) +/* libc_hidden_proto(xdr_hyper) */ bool_t xdr_hyper (XDR *xdrs, quad_t *llp) { @@ -298,7 +298,7 @@ libc_hidden_def(xdr_hyper) * XDR hyper integers * same as xdr_hyper - open coded to save a proc call! */ -libc_hidden_proto(xdr_u_hyper) +/* libc_hidden_proto(xdr_u_hyper) */ bool_t xdr_u_hyper (XDR *xdrs, u_quad_t *ullp) { @@ -343,7 +343,7 @@ xdr_u_longlong_t (XDR *xdrs, u_quad_t *ullp) /* * XDR unsigned short integers */ -libc_hidden_proto(xdr_u_short) +/* libc_hidden_proto(xdr_u_short) */ bool_t xdr_u_short (XDR *xdrs, u_short *usp) { @@ -408,7 +408,7 @@ xdr_u_char (XDR *xdrs, u_char *cp) /* * XDR booleans */ -libc_hidden_proto(xdr_bool) +/* libc_hidden_proto(xdr_bool) */ bool_t xdr_bool (XDR *xdrs, bool_t *bp) { @@ -438,7 +438,7 @@ libc_hidden_def(xdr_bool) /* * XDR enumerations */ -libc_hidden_proto(xdr_enum) +/* libc_hidden_proto(xdr_enum) */ bool_t xdr_enum (XDR *xdrs, enum_t *ep) { @@ -492,7 +492,7 @@ libc_hidden_def(xdr_enum) * Allows the specification of a fixed size sequence of opaque bytes. * cp points to the opaque object and cnt gives the byte length. */ -libc_hidden_proto(xdr_opaque) +/* libc_hidden_proto(xdr_opaque) */ bool_t xdr_opaque (XDR *xdrs, caddr_t cp, u_int cnt) { @@ -544,7 +544,7 @@ libc_hidden_def(xdr_opaque) * *cpp is a pointer to the bytes, *sizep is the count. * If *cpp is NULL maxsize bytes are allocated */ -libc_hidden_proto(xdr_bytes) +/* libc_hidden_proto(xdr_bytes) */ bool_t xdr_bytes (XDR *xdrs, char **cpp, u_int *sizep, u_int maxsize) { @@ -628,7 +628,7 @@ xdr_netobj (xdrs, np) * routine may be called. * If there is no specific or default routine an error is returned. */ -libc_hidden_proto(xdr_union) +/* libc_hidden_proto(xdr_union) */ bool_t xdr_union (XDR *xdrs, enum_t *dscmp, char *unp, const struct xdr_discrim *choices, xdrproc_t dfault) { @@ -675,7 +675,7 @@ libc_hidden_def(xdr_union) * storage is allocated. The last parameter is the max allowed length * of the string as specified by a protocol. */ -libc_hidden_proto(xdr_string) +/* libc_hidden_proto(xdr_string) */ bool_t xdr_string (XDR *xdrs, char **cpp, u_int maxsize) { diff --git a/libc/inet/rpc/xdr_array.c b/libc/inet/rpc/xdr_array.c index f8f8a1f86..ec5c0b367 100644 --- a/libc/inet/rpc/xdr_array.c +++ b/libc/inet/rpc/xdr_array.c @@ -56,7 +56,7 @@ static char sccsid[] = "@(#)xdr_array.c 1.10 87/08/11 Copyr 1984 Sun Micro"; /* Experimentally off - libc_hidden_proto(memset) */ /* libc_hidden_proto(fputs) */ -libc_hidden_proto(xdr_u_int) +/* libc_hidden_proto(xdr_u_int) */ #define LASTUNSIGNED ((u_int)0-1) @@ -68,7 +68,7 @@ libc_hidden_proto(xdr_u_int) * elsize is the size (in bytes) of each element, and elproc is the * xdr procedure to call to handle each element of the array. */ -libc_hidden_proto(xdr_array) +/* libc_hidden_proto(xdr_array) */ bool_t xdr_array (XDR *xdrs, caddr_t *addrp, u_int *sizep, u_int maxsize, u_int elsize, xdrproc_t elproc) { diff --git a/libc/inet/rpc/xdr_rec.c b/libc/inet/rpc/xdr_rec.c index 38349f4ad..af5eb5217 100644 --- a/libc/inet/rpc/xdr_rec.c +++ b/libc/inet/rpc/xdr_rec.c @@ -146,7 +146,7 @@ static bool_t get_input_bytes (RECSTREAM *, caddr_t, int) internal_function; * write respectively. They are like the system * calls expect that they take an opaque handle rather than an fd. */ -libc_hidden_proto(xdrrec_create) +/* libc_hidden_proto(xdrrec_create) */ void xdrrec_create (XDR *xdrs, u_int sendsize, u_int recvsize, caddr_t tcp_handle, @@ -481,7 +481,7 @@ xdrrec_putint32 (XDR *xdrs, const int32_t *ip) * Before reading (deserializing from the stream, one should always call * this procedure to guarantee proper record alignment. */ -libc_hidden_proto(xdrrec_skiprecord) +/* libc_hidden_proto(xdrrec_skiprecord) */ bool_t xdrrec_skiprecord (XDR *xdrs) { @@ -505,7 +505,7 @@ libc_hidden_def(xdrrec_skiprecord) * Returns TRUE iff there is no more input in the buffer * after consuming the rest of the current record. */ -libc_hidden_proto(xdrrec_eof) +/* libc_hidden_proto(xdrrec_eof) */ bool_t xdrrec_eof (XDR *xdrs) { @@ -531,7 +531,7 @@ libc_hidden_def(xdrrec_eof) * (output) tcp stream. (This lets the package support batched or * pipelined procedure calls.) TRUE => immediate flush to tcp connection. */ -libc_hidden_proto(xdrrec_endofrecord) +/* libc_hidden_proto(xdrrec_endofrecord) */ bool_t xdrrec_endofrecord (XDR *xdrs, bool_t sendnow) { diff --git a/libc/inet/rpc/xdr_reference.c b/libc/inet/rpc/xdr_reference.c index dd8c063ba..9cdeed129 100644 --- a/libc/inet/rpc/xdr_reference.c +++ b/libc/inet/rpc/xdr_reference.c @@ -56,7 +56,7 @@ static char sccsid[] = "@(#)xdr_reference.c 1.11 87/08/11 SMI"; #endif /* Experimentally off - libc_hidden_proto(memset) */ -libc_hidden_proto(xdr_bool) +/* libc_hidden_proto(xdr_bool) */ /* libc_hidden_proto(fputs) */ #define LASTUNSIGNED ((u_int)0-1) @@ -70,7 +70,7 @@ libc_hidden_proto(xdr_bool) * size is the size of the referneced structure. * proc is the routine to handle the referenced structure. */ -libc_hidden_proto(xdr_reference) +/* libc_hidden_proto(xdr_reference) */ bool_t xdr_reference (XDR *xdrs, caddr_t *pp, u_int size, xdrproc_t proc) { diff --git a/libc/inet/rpc/xdr_stdio.c b/libc/inet/rpc/xdr_stdio.c index 32689e132..91ce8b828 100644 --- a/libc/inet/rpc/xdr_stdio.c +++ b/libc/inet/rpc/xdr_stdio.c @@ -49,11 +49,11 @@ # define fwrite(p, m, n, s) _IO_fwrite (p, m, n, s) #endif -libc_hidden_proto(fread) -libc_hidden_proto(fwrite) -libc_hidden_proto(fseek) -libc_hidden_proto(fflush) -libc_hidden_proto(ftell) +/* libc_hidden_proto(fread) */ +/* libc_hidden_proto(fwrite) */ +/* libc_hidden_proto(fseek) */ +/* libc_hidden_proto(fflush) */ +/* libc_hidden_proto(ftell) */ static bool_t xdrstdio_getlong (XDR *, long *); static bool_t xdrstdio_putlong (XDR *, const long *); |