aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-06-25 10:52:53 +0000
committerRoland McGrath <roland@gnu.org>1996-06-25 10:52:53 +0000
commit282d87435cfb3d95386355be0fffc3bbb9aafde3 (patch)
tree3813e0fb628e18489a2cc2d0dd234d41861a9a83
parentc66273aae5213e7e4460631e6b823dc2bf8a79d1 (diff)
downloadglibc-282d87435cfb3d95386355be0fffc3bbb9aafde3.tar
glibc-282d87435cfb3d95386355be0fffc3bbb9aafde3.tar.gz
glibc-282d87435cfb3d95386355be0fffc3bbb9aafde3.tar.bz2
glibc-282d87435cfb3d95386355be0fffc3bbb9aafde3.zip
* resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
and mapv4v6hostent.h. (routines): Move res* and gethnamaddr into libresolv-routines. (libresolv-routines): New variable, put them there. (extra-libs): New variable, list libresolv. (CPPFLAGS): Add -D for get*by* to res_get*by*.
-rw-r--r--ChangeLog7
-rw-r--r--NEWS6
-rw-r--r--resolv/Makefile18
3 files changed, 24 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 7630460e46..f60346a42c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -113,6 +113,13 @@ Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
+ * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
+ and mapv4v6hostent.h.
+ (routines): Move res* and gethnamaddr into libresolv-routines.
+ (libresolv-routines): New variable, put them there.
+ (extra-libs): New variable, list libresolv.
+ (CPPFLAGS): Add -D for get*by* to res_get*by*.
+
* resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
* inet/herrno.c: New file.
diff --git a/NEWS b/NEWS
index b82baa683d..ec195fcf5e 100644
--- a/NEWS
+++ b/NEWS
@@ -107,8 +107,10 @@ Version 2.0
* The resolver code has been updated from the BIND 4.9.4-T3B release.
* The new function `malloc_find_object_address' finds the starting address
- of a malloc'd block, given any address within the block. This can be
- useful for debugging.
+ of a malloc'd block, given any address within the block;
+ `malloc_object_allocated_size' returns the size of an allocated block;
+ and `malloc_walk' lets you walk through all allocated blocks. These can
+ be useful for debugging; see <malloc.h> for the interfaces.
* There is a new malloc debugging hook `__memalign_hook'.
diff --git a/resolv/Makefile b/resolv/Makefile
index 58f32821fe..a09f87db60 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -22,13 +22,21 @@
subdir := resolv
headers := resolv.h netdb.h arpa/nameser.h sys/bitypes.h
-distribute := ../conf/portability.h res_hconf.h
+distribute := ../conf/portability.h mapv4v6addr.h mapv4v6hostent.h
-routines := gethnamaddr getnetbyaddr getnetbyname getnetent getnetnamadr \
- herror nsap_addr res_comp res_debug res_data res_init res_mkquery \
- res_query res_send sethostent inet_addr inet_ntop inet_pton \
- res_hconf
+routines := herror inet_addr inet_ntop inet_pton nsap_addr res_init
+
+extra-libs := libresolv
+libresolv-routines := gethnamaddr res_comp res_debug res_data res_mkquery \
+ res_query res_send
include ../Rules
+CPPFLAGS += -Dgethostbyname=res_gethostbyname \
+ -Dgethostbyname2=res_gethostbyname2 \
+ -Dgethostbyaddr=res_gethostbyaddr \
+ -Dgetnetbyname=res_getnetbyname \
+ -Dgetnetbyaddr=res_getnetbyaddr
+
+# The BIND code elicits some harmless warnings.
+cflags += -Wno-strict-prototypes -Wno-comment -Wno-write-strings