diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-07 16:09:49 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-07 16:09:49 +0000 |
commit | 53b5f21c9c453ff74c9aabdecd166a5e6ddb202b (patch) | |
tree | 7e94f2193471512a521b3675b28a27b829a43707 /libc/inet/getaddrinfo.c | |
parent | 746d0019f275acc0d3752b54e8ae1930a2f5fa3c (diff) |
Hide more
Diffstat (limited to 'libc/inet/getaddrinfo.c')
-rw-r--r-- | libc/inet/getaddrinfo.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libc/inet/getaddrinfo.c b/libc/inet/getaddrinfo.c index c467fed69..e896e3449 100644 --- a/libc/inet/getaddrinfo.c +++ b/libc/inet/getaddrinfo.c @@ -45,7 +45,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /* This software is Copyright 1996 by Craig Metz, All Rights Reserved. */ #define getservbyname_r __getservbyname_r +#define gethostbyname_r __gethostbyname_r +#define gethostbyname2_r __gethostbyname2_r +#define gethostbyaddr_r __gethostbyaddr_r #if 0 +#define uname __uname #define stpcpy __stpcpy /* strdupa is using these */ #define memcpy __memcpy @@ -767,8 +771,8 @@ static struct gaih gaih[] = { PF_UNSPEC, NULL } }; -int -getaddrinfo (const char *name, const char *service, +int attribute_hidden +__getaddrinfo (const char *name, const char *service, const struct addrinfo *hints, struct addrinfo **pai) { int i = 0, j = 0, last_i = 0; @@ -866,6 +870,7 @@ getaddrinfo (const char *name, const char *service, return last_i ? -(last_i & GAIH_EAI) : EAI_NONAME; } +strong_alias(__getaddrinfo,getaddrinfo) void freeaddrinfo (struct addrinfo *ai) |