diff options
Diffstat (limited to 'libc')
115 files changed, 393 insertions, 217 deletions
diff --git a/libc/inet/getaddrinfo.c b/libc/inet/getaddrinfo.c index d2d0e151e..c467fed69 100644 --- a/libc/inet/getaddrinfo.c +++ b/libc/inet/getaddrinfo.c @@ -44,8 +44,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /* This software is Copyright 1996 by Craig Metz, All Rights Reserved. */ -/* strdupa is using these */ +#define getservbyname_r __getservbyname_r #if 0 +#define stpcpy __stpcpy +/* strdupa is using these */ #define memcpy __memcpy #define strlen __strlen #endif @@ -246,7 +248,7 @@ gaih_local (const char *name, const struct gaih_service *service, sizeof (sunp->sun_path)) return GAIH_OKIFUNSPEC | -EAI_SERVICE; - __stpcpy (__stpcpy (sunp->sun_path, P_tmpdir "/"), service->name); + stpcpy (stpcpy (sunp->sun_path, P_tmpdir "/"), service->name); } } else diff --git a/libc/inet/getnetbyad.c b/libc/inet/getnetbyad.c index 0776ed7cf..a257a1bd7 100644 --- a/libc/inet/getnetbyad.c +++ b/libc/inet/getnetbyad.c @@ -15,6 +15,10 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +#define setnetent __setnetent +#define getnetent __getnetent +#define endnetent __endnetent + #define __FORCE_GLIBC #include <features.h> #include <netdb.h> diff --git a/libc/inet/getnetbynm.c b/libc/inet/getnetbynm.c index 5479c654b..f4e9b817e 100644 --- a/libc/inet/getnetbynm.c +++ b/libc/inet/getnetbynm.c @@ -15,6 +15,10 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +#define setnetent __setnetent +#define getnetent __getnetent +#define endnetent __endnetent + #define __FORCE_GLIBC #include <features.h> #include <netdb.h> diff --git a/libc/inet/getnetent.c b/libc/inet/getnetent.c index 181c5adfe..fc21dfa03 100644 --- a/libc/inet/getnetent.c +++ b/libc/inet/getnetent.c @@ -44,7 +44,7 @@ static char *net_aliases[MAXALIASES]; int _net_stayopen; -void setnetent(int f) +void attribute_hidden __setnetent(int f) { LOCK; if (netf == NULL) |