diff options
Diffstat (limited to 'libc/inet')
-rw-r--r-- | libc/inet/resolv.c | 11 | ||||
-rw-r--r-- | libc/inet/rpc/auth_unix.c | 3 | ||||
-rw-r--r-- | libc/inet/rpc/clnt_tcp.c | 1 | ||||
-rw-r--r-- | libc/inet/rpc/clnt_unix.c | 2 | ||||
-rw-r--r-- | libc/inet/rpc/rcmd.c | 1 | ||||
-rw-r--r-- | libc/inet/rpc/ruserpass.c | 2 | ||||
-rw-r--r-- | libc/inet/rpc/svc.c | 5 | ||||
-rw-r--r-- | libc/inet/rpc/svc_tcp.c | 3 | ||||
-rw-r--r-- | libc/inet/rpc/svc_udp.c | 2 | ||||
-rw-r--r-- | libc/inet/rpc/svc_unix.c | 4 | ||||
-rw-r--r-- | libc/inet/rpc/xdr_rec.c | 5 |
11 files changed, 33 insertions, 6 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 01ccdb819..0fee6a597 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -137,6 +137,7 @@ #define strnlen __strnlen #define strncat __strncat #define strstr __strstr +#define random __random #define __FORCE_GLIBC #include <features.h> @@ -279,6 +280,11 @@ extern int __libc_ns_name_unpack(const u_char *, const u_char *, const u_char *, u_char *, size_t) attribute_hidden; +extern int __gethostent_r (struct hostent *__restrict __result_buf, + char *__restrict __buf, size_t __buflen, + struct hostent **__restrict __result, + int *__restrict __h_errnop) attribute_hidden; + #ifdef L_encodeh int attribute_hidden __encode_header(struct resolv_header *h, unsigned char *dest, int maxlen) { @@ -1604,7 +1610,7 @@ void sethostent (int stay_open) UNLOCK; } -int gethostent_r(struct hostent *result_buf, char *buf, size_t buflen, +int attribute_hidden __gethostent_r(struct hostent *result_buf, char *buf, size_t buflen, struct hostent **result, int *h_errnop) { int ret; @@ -1627,6 +1633,7 @@ int gethostent_r(struct hostent *result_buf, char *buf, size_t buflen, UNLOCK; return(ret); } +strong_alias(__gethostent_r,gethostent_r) struct hostent *gethostent (void) { @@ -1642,7 +1649,7 @@ struct hostent *gethostent (void) struct hostent *host; LOCK; - gethostent_r(&h, buf, sizeof(buf), &host, &h_errno); + __gethostent_r(&h, buf, sizeof(buf), &host, &h_errno); UNLOCK; return(host); } diff --git a/libc/inet/rpc/auth_unix.c b/libc/inet/rpc/auth_unix.c index 4adb165cf..787e08b13 100644 --- a/libc/inet/rpc/auth_unix.c +++ b/libc/inet/rpc/auth_unix.c @@ -38,6 +38,9 @@ * for the credentials. */ +#define sysconf __sysconf +#define getegid __getegid + #define __FORCE_GLIBC #include <features.h> diff --git a/libc/inet/rpc/clnt_tcp.c b/libc/inet/rpc/clnt_tcp.c index 6ccd1ca53..62c95bbf0 100644 --- a/libc/inet/rpc/clnt_tcp.c +++ b/libc/inet/rpc/clnt_tcp.c @@ -51,6 +51,7 @@ static char sccsid[] = "@(#)clnt_tcp.c 1.37 87/10/05 Copyr 1984 Sun Micro"; */ #define authnone_create __authnone_create +#define xdrrec_create __xdrrec_create #define __FORCE_GLIBC #include <features.h> diff --git a/libc/inet/rpc/clnt_unix.c b/libc/inet/rpc/clnt_unix.c index cbdd0eba8..a6ac295ad 100644 --- a/libc/inet/rpc/clnt_unix.c +++ b/libc/inet/rpc/clnt_unix.c @@ -47,6 +47,8 @@ */ #define authnone_create __authnone_create +#define xdrrec_create __xdrrec_create +#define getegid __getegid #define __FORCE_GLIBC #include <features.h> diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c index f9f29285e..cb4866b7a 100644 --- a/libc/inet/rpc/rcmd.c +++ b/libc/inet/rpc/rcmd.c @@ -36,6 +36,7 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94"; #endif /* LIBC_SCCS and not lint */ #define bcopy __bcopy +#define sysconf __sysconf #define __FORCE_GLIBC #include <features.h> diff --git a/libc/inet/rpc/ruserpass.c b/libc/inet/rpc/ruserpass.c index 77a22240e..9963ac3e9 100644 --- a/libc/inet/rpc/ruserpass.c +++ b/libc/inet/rpc/ruserpass.c @@ -28,6 +28,8 @@ */ #define __fsetlocking __libc_fsetlocking +#define getgid __getgid +#define getegid __getegid #define __FORCE_GLIBC #include <features.h> diff --git a/libc/inet/rpc/svc.c b/libc/inet/rpc/svc.c index 08678ba79..a32c68bbc 100644 --- a/libc/inet/rpc/svc.c +++ b/libc/inet/rpc/svc.c @@ -85,8 +85,8 @@ static struct svc_callout *svc_head; /* *************** SVCXPRT related stuff **************** */ /* Activate a transport handle. */ -void -xprt_register (SVCXPRT *xprt) +void attribute_hidden +__xprt_register (SVCXPRT *xprt) { register int sock = xprt->xp_sock; register int i; @@ -125,6 +125,7 @@ xprt_register (SVCXPRT *xprt) POLLRDNORM | POLLRDBAND); } } +strong_alias(__xprt_register,xprt_register) /* De-activate a transport handle. */ void diff --git a/libc/inet/rpc/svc_tcp.c b/libc/inet/rpc/svc_tcp.c index e7ec083c8..05e1d2dbe 100644 --- a/libc/inet/rpc/svc_tcp.c +++ b/libc/inet/rpc/svc_tcp.c @@ -41,6 +41,9 @@ static char sccsid[] = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro"; * and a record/tcp stream. */ +#define xdrrec_create __xdrrec_create +#define xprt_register __xprt_register + #define __FORCE_GLIBC #define _GNU_SOURCE #include <features.h> diff --git a/libc/inet/rpc/svc_udp.c b/libc/inet/rpc/svc_udp.c index 5e5dee9a3..88fde6c0f 100644 --- a/libc/inet/rpc/svc_udp.c +++ b/libc/inet/rpc/svc_udp.c @@ -39,6 +39,8 @@ static char sccsid[] = "@(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro"; * Copyright (C) 1984, Sun Microsystems, Inc. */ +#define xprt_register __xprt_register + #define __FORCE_GLIBC #define _GNU_SOURCE #include <features.h> diff --git a/libc/inet/rpc/svc_unix.c b/libc/inet/rpc/svc_unix.c index 8e052d8a2..e3b3e8c11 100644 --- a/libc/inet/rpc/svc_unix.c +++ b/libc/inet/rpc/svc_unix.c @@ -37,6 +37,10 @@ * and a record/unix stream. */ +#define xdrrec_create __xdrrec_create +#define xprt_register __xprt_register +#define getegid __getegid + #define __FORCE_GLIBC #include <features.h> diff --git a/libc/inet/rpc/xdr_rec.c b/libc/inet/rpc/xdr_rec.c index 9c21f57f4..abe81bb58 100644 --- a/libc/inet/rpc/xdr_rec.c +++ b/libc/inet/rpc/xdr_rec.c @@ -142,8 +142,8 @@ 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. */ -void -xdrrec_create (XDR *xdrs, u_int sendsize, +void attribute_hidden +__xdrrec_create (XDR *xdrs, u_int sendsize, u_int recvsize, caddr_t tcp_handle, int (*readit) (char *, char *, int), int (*writeit) (char *, char *, int)) @@ -204,6 +204,7 @@ xdrrec_create (XDR *xdrs, u_int sendsize, rstrm->fbtbc = 0; rstrm->last_frag = TRUE; } +strong_alias(__xdrrec_create,xdrrec_create) /* |