summaryrefslogtreecommitdiff
path: root/nss/getXXbyYY_r.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-11-20 17:27:07 +0000
committerUlrich Drepper <drepper@redhat.com>1998-11-20 17:27:07 +0000
commit5edb938769a98985e6d0d2ddc9ffcae7860f8b9e (patch)
tree503f665a70c89f2ff46a6cce5268dad33016643c /nss/getXXbyYY_r.c
parentbece5ca7c19138807a8ddb6d1a9c351b47fc5f99 (diff)
downloadglibc-5edb938769a98985e6d0d2ddc9ffcae7860f8b9e.tar.gz
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 'nss/getXXbyYY_r.c')
-rw-r--r--nss/getXXbyYY_r.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c
index 3befede20f..7e567a1325 100644
--- a/nss/getXXbyYY_r.c
+++ b/nss/getXXbyYY_r.c
@@ -22,6 +22,9 @@
#ifdef USE_NSCD
# include <nscd/nscd_proto.h>
#endif
+#ifdef NEED__RES_HCONF
+# include <resolv/res_hconf.h>
+#endif
/*******************************************************************\
|* Here we assume several symbols to be defined: *|
@@ -153,6 +156,10 @@ INTERNAL (REENTRANT_NAME) (ADD_PARAMS, LOOKUP_TYPE *resbuf, char *buffer,
return -1;
}
#endif /* need _res */
+#ifdef NEED__RES_HCONF
+ if (!_res_hconf.initialized)
+ _res_hconf_init ();
+#endif /* need _res_hconf */
}
}
else
@@ -186,6 +193,9 @@ INTERNAL (REENTRANT_NAME) (ADD_PARAMS, LOOKUP_TYPE *resbuf, char *buffer,
done:
#endif
*result = status == NSS_STATUS_SUCCESS ? resbuf : NULL;
+#ifdef POSTPROCESS
+ POSTPROCESS;
+#endif
return status == NSS_STATUS_SUCCESS ? 0 : -1;
}