getaddrinfo(), getnameinfo() and friends question
Andreas Jaeger
aj@suse.de
Mon Jul 31 09:29:00 GMT 2000
>>>>> Ulrich Drepper writes:
Uli> Stig Venaas <venaas@nvg.ntnu.no> writes:
>> I agree that it's better to use getaddrinfo, but I think getipnodebyname()
>> and friends should be included in order to be compliant.
Uli> They are obsolete and nobody should ever start using them.
>> As for the difference between rfc2553bis and other standards, I've been
>> told that XNS is supposed to be updated to follow 2553bis. I don't know
>> where that rumor stems from though.
Uli> XNS will be part of the Austin Group standard. We haven't made many
Uli> changes while bringing the body of XNS over to AG. Also, from what
Uli> the people participating in for XNS group say, the IETF proposals will
Uli> change quite a bit.
Here's a first patch to remove getipnodebyname etc. Ok, to commit?
Shall I send a patch to remove the functions completly?
Philip, can you enhance the FAQ entry, please?
Andreas
2000-07-31 Andreas Jaeger <aj@suse.de>
* inet/Versions: Remove getipnodebyaddr and friends from
GLIBC_2.2.
* resolv/netdb.h: Remove getipnodebyaddr and friends.
============================================================
Index: FAQ.in
--- FAQ.in 2000/07/07 00:43:50 1.103
+++ FAQ.in 2000/07/31 16:28:27
@@ -1425,8 +1425,7 @@
kernel for IPv6 is 2.1.129.
Also, as of the 2.1 release the IPv6 API provided by GNU libc is not
-100% complete. In particular the getipnodebyname and getipnodebyaddr
-functions are not implemented.
+100% complete.
??tzdb When I set the timezone by setting the TZ environment variable
to EST5EDT things go wrong since glibc computes the wrong time
============================================================
Index: resolv/netdb.h
--- resolv/netdb.h 2000/07/17 21:36:30 1.32
+++ resolv/netdb.h 2000/07/31 16:28:28
@@ -136,32 +136,7 @@
set to the address type which is `AF_INET' for IPv4 or `AF_INET6'
for IPv6. */
extern struct hostent *gethostbyname2 (__const char *__name, int __af) __THROW;
-#endif
-#ifdef __USE_UNIX98
-/* 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
-
-#ifdef __USE_MISC
/* Reentrant versions of the functions above. The additional
arguments specify a buffer of BUFLEN starting at BUF. The last
argument is a pointer to a variable which gets the value which
============================================================
Index: inet/Versions
--- inet/Versions 2000/06/03 08:08:21 1.6
+++ inet/Versions 2000/07/31 16:28:28
@@ -63,10 +63,6 @@
getservbyname_r;
}
GLIBC_2.2 {
- # f*
- freehostent;
- # g*
- getipnodebyaddr;
# i*
iruserok_af;
# r*
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-alpha
mailing list