about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-01 04:04:09 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-01 04:04:09 +0000
commit6eace24c70e61ac158656073ba51815044ba58c9 (patch)
treee68049cd42bd042581eced6cb2c360f33e2b5190
parented80b9ee77e1b453abd44ac9ed0eaead0ba24941 (diff)
downloadglibc-6eace24c70e61ac158656073ba51815044ba58c9.tar.gz
glibc-6eace24c70e61ac158656073ba51815044ba58c9.tar.xz
glibc-6eace24c70e61ac158656073ba51815044ba58c9.zip
Update.
2000-07-31  Ulrich Drepper  <drepper@redhat.com>

	* include/netdb.h: Add stuff removed from resolv/netdb.h here for
	now.
-rw-r--r--ChangeLog5
-rw-r--r--include/netdb.h25
2 files changed, 30 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 656a99b27e..99fd0cee69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-31  Ulrich Drepper  <drepper@redhat.com>
+
+	* include/netdb.h: Add stuff removed from resolv/netdb.h here for
+	now.
+
 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
 
 	* sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
diff --git a/include/netdb.h b/include/netdb.h
index 26b8cf5850..8994056bb7 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -80,4 +80,29 @@ extern int __getnetgrent_r (char **__restrict __hostp,
 
 extern int ruserpass (const char *host, const char **aname,
 		      const char **apass);
+
+
+/* The following declarations and definitions have been removed from
+   the public header since we don't want people to use them.  */
+
+/* Return entry from host data base which address match ADDR with
+   length LEN and type TYPE in newly allocated buffer.  */
+extern struct hostent *getipnodebyaddr (__const void *__addr, socklen_t __len,
+					int __type, int *__error_num) __THROW;
+
+/* Return entry from host data base for host with NAME and newly allocated
+   buffer.  FLAGS is some combination of the following AI_* values.  */
+extern struct hostent *getipnodebyname (__const char *__name, int __type,
+					int __flags, int *__error_num) __THROW;
+
+#define AI_V4MAPPED	0x0008  /* IPv4-mapped addresses are acceptable.  */
+#define AI_ALL		0x0010  /* Return both IPv4 and IPv6 addresses.  */
+#define AI_ADDRCONFIG	0x0020  /* Use configuration of this host to choose
+                                  returned address type.  */
+#define AI_DEFAULT    (AI_V4MAPPED | AI_ADDRCONFIG)
+
+/* Free structure returned by previous `getipnodebyaddr' or `getipnodebyname'
+   call.  */
+extern void freehostent (struct hostent *__ptr) __THROW;
+
 #endif /* !_NETDB_H */