diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-11-20 17:27:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-11-20 17:27:07 +0000 |
commit | 5edb938769a98985e6d0d2ddc9ffcae7860f8b9e (patch) | |
tree | 503f665a70c89f2ff46a6cce5268dad33016643c /inet | |
parent | bece5ca7c19138807a8ddb6d1a9c351b47fc5f99 (diff) | |
download | glibc-5edb938769a98985e6d0d2ddc9ffcae7860f8b9e.tar glibc-5edb938769a98985e6d0d2ddc9ffcae7860f8b9e.tar.gz glibc-5edb938769a98985e6d0d2ddc9ffcae7860f8b9e.tar.bz2 glibc-5edb938769a98985e6d0d2ddc9ffcae7860f8b9e.zip |
Update.
1998-11-20 Ulrich Drepper <drepper@cygnus.com>
* aclocal.m4 (LIBC_PROG_BINUTILS): Also add AR and RANLIB using the
same method.
* configure.in: Don't define AR and RANLIB here.
* inet/gethstbyad_r.c: Define NEED__RES_HCONV and POSTPROCESS for
host name res_hconf code.
* inet/gethstbynm_r.c: Likewise.
* nss/getXXbyYY_r.c: Include resolv/res_hconf.h if NEED__RES_HCONF
is defined. Call res_hconf_init if necessary. If POSTPROCESS is
defined execute the code.
* resolv/Makefile (routines): Add res_hconf.
(headers): Add res_hconf.h.
* resolv/res_hconf.c: Pretty print.
* resolv/res_hconf.h: Likewise.
1998-11-20 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/generic/bits/byteswap.h: Fix typos in non-GCC
definitions. Reported by Scott Bambrough <scottb@corelcomputer.com>.
1998-11-20 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* math/libm-test.c: Raise some epsilons a bit.
1998-11-20 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* Makeconfig ($(common-objpfx)sysd-sorted): Fix portability problems.
1998-11-20 Ulrich Drepper <drepper@cygnus.com>
* Makefile (distribute): Add scripts/gen-sorted.awk.
Diffstat (limited to 'inet')
-rw-r--r-- | inet/gethstbyad_r.c | 9 | ||||
-rw-r--r-- | inet/gethstbynm_r.c | 6 |
2 files changed, 13 insertions, 2 deletions
diff --git a/inet/gethstbyad_r.c b/inet/gethstbyad_r.c index 33b6c7c71f..175253d9ab 100644 --- a/inet/gethstbyad_r.c +++ b/inet/gethstbyad_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. @@ -27,5 +27,12 @@ #define ADD_VARIABLES addr, len, type #define NEED_H_ERRNO 1 #define NEED__RES 1 +#define NEED__RES_HCONF 1 +#define POSTPROCESS \ + if (status == NSS_STATUS_SUCCESS) \ + { \ + _res_hconf_reorder_addrs (resbuf); \ + _res_hconf_trim_domains (resbuf); \ + } #include "../nss/getXXbyYY_r.c" diff --git a/inet/gethstbynm_r.c b/inet/gethstbynm_r.c index dbc063cc97..c9262a7bb0 100644 --- a/inet/gethstbynm_r.c +++ b/inet/gethstbynm_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. @@ -32,6 +32,10 @@ #define ADD_VARIABLES name #define NEED_H_ERRNO 1 #define NEED__RES 1 +#define NEED__RES_HCONF 1 +#define POSTPROCESS \ + if (status == NSS_STATUS_SUCCESS) \ + _res_hconf_reorder_addrs (resbuf); #define HANDLE_DIGITS_DOTS 1 #define HAVE_LOOKUP_BUFFER 1 |