diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-08-05 23:32:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-08-05 23:32:24 +0000 |
commit | 87bb6b6c6bb6d5ff5e5b2a719fa32c77e9898459 (patch) | |
tree | 62536f4dd4680dc660ad8293e9a47ed7249ce4d3 /include | |
parent | a79d752f3da1085b4f00ef1a817d8beadcc3014a (diff) | |
download | glibc-87bb6b6c6bb6d5ff5e5b2a719fa32c77e9898459.zip glibc-87bb6b6c6bb6d5ff5e5b2a719fa32c77e9898459.tar.gz glibc-87bb6b6c6bb6d5ff5e5b2a719fa32c77e9898459.tar.bz2 |
Update.
2004-08-04 Jakub Jelinek <jakub@redhat.com>
* hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
memset.
(__hesiod_res_set): Free nsaddrs.
* include/resolv.h (__res_maybe_init): Add prototype.
* resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
* resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
* resolv/res_libc.c (__res_initstamp, lock): New variables.
(res_init): Increase __res_initstamp.
(__res_maybe_init): New function.
* resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
* hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
* sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
_nss_dns_gethostbyaddr_r): Likewise.
* resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
_nss_dns_getnetbyaddr_r): Likewise.
* resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
gethostbyaddr): Likewise.
* resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
res_isourserver, res_sendsigned, res_update, res_search,
res_querydomain): Likewise.
* nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
* nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
* nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
Likewise.
* sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
V4-mapped IPv6 addresses and req->ai_family==AF_INET.
Reported by A. Guru <a.guru@sympatico.ca>.
* po/pl.po: Likewise.
characters than necessary.
Diffstat (limited to 'include')
-rw-r--r-- | include/resolv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/resolv.h b/include/resolv.h index 0437753..d62a8ff 100644 --- a/include/resolv.h +++ b/include/resolv.h @@ -31,6 +31,7 @@ extern struct __res_state _res; /* Now define the internal interfaces. */ extern int __res_vinit (res_state, int); +extern int __res_maybe_init (res_state, int); extern void _sethtent (int); extern void _endhtent (void); extern struct hostent *_gethtent (void); @@ -46,6 +47,7 @@ extern void res_send_setrhook (res_send_rhook __hook); extern int res_ourserver_p (const res_state __statp, const struct sockaddr_in6 *__inp); libc_hidden_proto (__res_ninit) +libc_hidden_proto (__res_maybe_init) libc_hidden_proto (__res_nclose) libc_hidden_proto (__res_randomid) libc_hidden_proto (__res_state) |