mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 06:30:05 +00:00
Update.
2001-01-03 Jakub Jelinek <jakub@redhat.com> * resolv/resolv.h (struct __res_state): Add nsinit field. * resolv/res_send.c (res_nsend): Use it instead of nscount. * resolv/res_init.c (__res_vinit): Initialize it. (res_nclose): Clear it instead of nscount. * malloc/mtrace.pl: Fix matching of addresses. Patch by Aharon Robbins <arnold@skeeve.com>.
This commit is contained in:
parent
06a60d9c89
commit
03fbfeb508
10
ChangeLog
10
ChangeLog
@ -1,5 +1,15 @@
|
|||||||
|
2001-01-03 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* resolv/resolv.h (struct __res_state): Add nsinit field.
|
||||||
|
* resolv/res_send.c (res_nsend): Use it instead of nscount.
|
||||||
|
* resolv/res_init.c (__res_vinit): Initialize it.
|
||||||
|
(res_nclose): Clear it instead of nscount.
|
||||||
|
|
||||||
2001-01-04 Ulrich Drepper <drepper@redhat.com>
|
2001-01-04 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* malloc/mtrace.pl: Fix matching of addresses.
|
||||||
|
Patch by Aharon Robbins <arnold@skeeve.com>.
|
||||||
|
|
||||||
* Versions.def (ld): Add GLIBC_2.2.
|
* Versions.def (ld): Add GLIBC_2.2.
|
||||||
|
|
||||||
* catgets/gencat.c: Copyright 2001.
|
* catgets/gencat.c: Copyright 2001.
|
||||||
|
@ -177,6 +177,7 @@ __res_vinit(res_state statp, int preinit) {
|
|||||||
statp->_flags = 0;
|
statp->_flags = 0;
|
||||||
statp->qhook = NULL;
|
statp->qhook = NULL;
|
||||||
statp->rhook = NULL;
|
statp->rhook = NULL;
|
||||||
|
statp->_u._ext.nsinit = 0;
|
||||||
statp->_u._ext.nscount = 0;
|
statp->_u._ext.nscount = 0;
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
statp->_u._ext.nscount6 = 0;
|
statp->_u._ext.nscount6 = 0;
|
||||||
@ -544,5 +545,5 @@ res_nclose(res_state statp) {
|
|||||||
statp->_u._ext.nssocks[ns] = -1;
|
statp->_u._ext.nssocks[ns] = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
statp->_u._ext.nscount = 0;
|
statp->_u._ext.nsinit = 0;
|
||||||
}
|
}
|
||||||
|
@ -394,7 +394,7 @@ res_nsend(res_state statp,
|
|||||||
* If the ns_addr_list in the resolver context has changed, then
|
* If the ns_addr_list in the resolver context has changed, then
|
||||||
* invalidate our cached copy and the associated timing data.
|
* invalidate our cached copy and the associated timing data.
|
||||||
*/
|
*/
|
||||||
if (EXT(statp).nscount != 0) {
|
if (EXT(statp).nsinit) {
|
||||||
int needclose = 0;
|
int needclose = 0;
|
||||||
|
|
||||||
if (EXT(statp).nscount != statp->nscount)
|
if (EXT(statp).nscount != statp->nscount)
|
||||||
@ -420,7 +420,7 @@ res_nsend(res_state statp,
|
|||||||
/*
|
/*
|
||||||
* Maybe initialize our private copy of the ns_addr_list.
|
* Maybe initialize our private copy of the ns_addr_list.
|
||||||
*/
|
*/
|
||||||
if (EXT(statp).nscount == 0) {
|
if (EXT(statp).nsinit == 0) {
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
n = 0;
|
n = 0;
|
||||||
#endif
|
#endif
|
||||||
@ -454,6 +454,7 @@ res_nsend(res_state statp,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
EXT(statp).nscount = statp->nscount;
|
EXT(statp).nscount = statp->nscount;
|
||||||
|
EXT(statp).nsinit = 1;
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
/* If holes left, free memory and set to NULL */
|
/* If holes left, free memory and set to NULL */
|
||||||
while (n < MAXNS) {
|
while (n < MAXNS) {
|
||||||
|
@ -154,6 +154,7 @@ struct __res_state {
|
|||||||
u_int16_t nstimes[MAXNS]; /* ms. */
|
u_int16_t nstimes[MAXNS]; /* ms. */
|
||||||
int nssocks[MAXNS];
|
int nssocks[MAXNS];
|
||||||
u_int16_t nscount6;
|
u_int16_t nscount6;
|
||||||
|
u_int16_t nsinit;
|
||||||
struct sockaddr_in6 *nsaddrs[MAXNS];
|
struct sockaddr_in6 *nsaddrs[MAXNS];
|
||||||
} _ext;
|
} _ext;
|
||||||
} _u;
|
} _u;
|
||||||
|
Loading…
Reference in New Issue
Block a user