about summary refs log tree commit diff
path: root/resolv/netdb.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-09-28 04:54:04 +0000
committerUlrich Drepper <drepper@redhat.com>1999-09-28 04:54:04 +0000
commit9133b79b4fae126bbcd95dad6f2cac68329c8ff3 (patch)
treeb6ee5429a23ee0aa6c4a6cb9af1999fe305cd13b /resolv/netdb.h
parent508d9ff8ac32ca869ed0f5b4139db1e9d877a462 (diff)
downloadglibc-9133b79b4fae126bbcd95dad6f2cac68329c8ff3.tar.gz
glibc-9133b79b4fae126bbcd95dad6f2cac68329c8ff3.tar.xz
glibc-9133b79b4fae126bbcd95dad6f2cac68329c8ff3.zip
Update.
1999-09-27  Andreas Jaeger  <aj@suse.de>

	* resolv/netdb.h: Remove declaration of getnodebyname.  It has
 	been renamed to getipnodebyname.  Move flags around.

1999-09-27  Andreas Schwab  <schwab@suse.de>

	* manual/message.texi (Locating gettext catalog): Fix typos.

1999-09-27  Andreas Jaeger  <aj@suse.de>

	* manual/socket.texi (Out-of-Band Data): Correct example program,
	rename some variables for clarity.
	Reported by James Antill <james@and.org>, close PR libc/1329.
Diffstat (limited to 'resolv/netdb.h')
-rw-r--r--resolv/netdb.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/resolv/netdb.h b/resolv/netdb.h
index fe04471afb..0dd5917a0e 100644
--- a/resolv/netdb.h
+++ b/resolv/netdb.h
@@ -132,13 +132,20 @@ extern struct hostent *getipnodebyaddr __P ((__const char *__addr,
 					     int *__error_num));
 
 /* Return entry from host data base for host with NAME and newly allocated
-   buffer.  */
+   buffer.  FLAGS is some combination of the following AI_* values.  */
 extern struct hostent *getipnodebyname __P ((__const char *__name, int __type,
 					     int __flags, int *__error_num));
 
+# define AI_V4MAPPED	1	/* IPv4-mapped addresses are acceptable.  */
+# define AI_ALL		2	/* Return both IPv4 and IPv6 addresses.  */
+# define AI_ADDRCONFIG	4	/* 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 __P ((struct hostent *__ptr));
+
 #endif
 
 #ifdef	__USE_MISC
@@ -173,19 +180,6 @@ extern int gethostbyname2_r __P ((__const char *__restrict __name, int __af,
 #endif	/* misc */
 
 
-/* Return entry from host data base for host with NAME.  AF must be
-   set to the desired address type (either `AF_INET' or `AF_INET6').
-   FLAGS is some combination of the following AI_* values.  */
-extern struct hostent *getnodebyname __P ((__const char *__name, int __af,
-					   int __flags));
-
-#define AI_V4MAPPED	1	/* IPv4-mapped addresses are acceptable.  */
-#define AI_ALL		2	/* Return both IPv4 and IPv6 addresses.  */
-#define AI_ADDRCONFIG	4	/* Use configuration of this host to choose
-				   returned address type.  */
-#define AI_DEFAULT	(AI_V4MAPPED | AI_ADDRCONFIG)
-
-
 /* Description of data base entry for a single network.  NOTE: here a
    poor assumption is made.  The network number is expected to fit
    into an unsigned long int variable.  */