diff options
Diffstat (limited to 'inet')
-rw-r--r-- | inet/gethstbyad_r.c | 7 | ||||
-rw-r--r-- | inet/gethstbynm2_r.c | 5 | ||||
-rw-r--r-- | inet/gethstbynm_r.c | 5 | ||||
-rw-r--r-- | inet/gethstent_r.c | 5 | ||||
-rw-r--r-- | inet/in6_addr.c | 3 |
5 files changed, 19 insertions, 6 deletions
diff --git a/inet/gethstbyad_r.c b/inet/gethstbyad_r.c index b481d96f84..5de022fd8a 100644 --- a/inet/gethstbyad_r.c +++ b/inet/gethstbyad_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1996,1997,1998,1999,2000,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. @@ -33,7 +33,7 @@ be performed. */ #define PREPROCESS \ if (len == sizeof (struct in6_addr) \ - && __builtin_expect (memcmp (&in6addr_any, addr, \ + && __builtin_expect (memcmp (&INTUSE(in6addr_any), addr, \ sizeof (struct in6_addr)), 1) == 0) \ { \ *h_errnop = HOST_NOT_FOUND; \ @@ -47,4 +47,7 @@ _res_hconf_trim_domains (resbuf); \ } +/* Special name for the lookup function. */ +#define DB_LOOKUP_FCT INTUSE(__nss_hosts_lookup) + #include "../nss/getXXbyYY_r.c" diff --git a/inet/gethstbynm2_r.c b/inet/gethstbynm2_r.c index f32c8f20e5..f927c77d99 100644 --- a/inet/gethstbynm2_r.c +++ b/inet/gethstbynm2_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. @@ -40,4 +40,7 @@ #define HAVE_LOOKUP_BUFFER 1 #define HAVE_AF 1 +/* Special name for the lookup function. */ +#define DB_LOOKUP_FCT INTUSE(__nss_hosts_lookup) + #include "../nss/getXXbyYY_r.c" diff --git a/inet/gethstbynm_r.c b/inet/gethstbynm_r.c index 0ee8af37c3..9968c67017 100644 --- a/inet/gethstbynm_r.c +++ b/inet/gethstbynm_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. @@ -39,4 +39,7 @@ #define HANDLE_DIGITS_DOTS 1 #define HAVE_LOOKUP_BUFFER 1 +/* Special name for the lookup function. */ +#define DB_LOOKUP_FCT INTUSE(__nss_hosts_lookup) + #include "../nss/getXXbyYY_r.c" diff --git a/inet/gethstent_r.c b/inet/gethstent_r.c index 1a4d380f6e..9122487b2c 100644 --- a/inet/gethstent_r.c +++ b/inet/gethstent_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996 Free Software Foundation, Inc. +/* Copyright (C) 1996, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -29,4 +29,7 @@ #define NEED_H_ERRNO 1 #define NEED__RES 1 +/* Special name for the lookup function. */ +#define DB_LOOKUP_FCT INTUSE(__nss_hosts_lookup) + #include "../nss/getXXent_r.c" diff --git a/inet/in6_addr.c b/inet/in6_addr.c index ad69c87070..5f004fbf97 100644 --- a/inet/in6_addr.c +++ b/inet/in6_addr.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Philip Blundell <pjb27@cam.ac.uk>, 1997. @@ -21,5 +21,6 @@ const struct in6_addr in6addr_any = { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }; +INTDEF(in6addr_any) const struct in6_addr in6addr_loopback = { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }; |