mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
update copyright notice
This commit is contained in:
parent
bbf31e6b62
commit
fcd7c22fdf
@ -81,7 +81,7 @@ cleandir(char *path) {
|
|||||||
if (remove(fullname))
|
if (remove(fullname))
|
||||||
t_info("remove(%s) failed %d\n", fullname,
|
t_info("remove(%s) failed %d\n", fullname,
|
||||||
errno);
|
errno);
|
||||||
} else
|
} else
|
||||||
t_info("unable to remove '%s/%s': path too long\n",
|
t_info("unable to remove '%s/%s': path too long\n",
|
||||||
path, pe->d_name);
|
path, pe->d_name);
|
||||||
|
|
||||||
|
@ -2426,20 +2426,20 @@ renderctx(isc__mem_t *ctx, summarystat_t *summary, xmlTextWriterPtr writer) {
|
|||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "total"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "total"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer,
|
TRY0(xmlTextWriterWriteFormatString(writer,
|
||||||
"%" ISC_PRINT_QUADFORMAT "u",
|
"%" ISC_PRINT_QUADFORMAT "u",
|
||||||
(isc_uint64_t)ctx->total));
|
(isc_uint64_t)ctx->total));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* total */
|
TRY0(xmlTextWriterEndElement(writer)); /* total */
|
||||||
|
|
||||||
summary->inuse += ctx->inuse;
|
summary->inuse += ctx->inuse;
|
||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "inuse"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "inuse"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer,
|
TRY0(xmlTextWriterWriteFormatString(writer,
|
||||||
"%" ISC_PRINT_QUADFORMAT "u",
|
"%" ISC_PRINT_QUADFORMAT "u",
|
||||||
(isc_uint64_t)ctx->inuse));
|
(isc_uint64_t)ctx->inuse));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* inuse */
|
TRY0(xmlTextWriterEndElement(writer)); /* inuse */
|
||||||
|
|
||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "maxinuse"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "maxinuse"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer,
|
TRY0(xmlTextWriterWriteFormatString(writer,
|
||||||
"%" ISC_PRINT_QUADFORMAT "u",
|
"%" ISC_PRINT_QUADFORMAT "u",
|
||||||
(isc_uint64_t)ctx->maxinuse));
|
(isc_uint64_t)ctx->maxinuse));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* maxinuse */
|
TRY0(xmlTextWriterEndElement(writer)); /* maxinuse */
|
||||||
|
|
||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "blocksize"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "blocksize"));
|
||||||
@ -2464,13 +2464,13 @@ renderctx(isc__mem_t *ctx, summarystat_t *summary, xmlTextWriterPtr writer) {
|
|||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "hiwater"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "hiwater"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer,
|
TRY0(xmlTextWriterWriteFormatString(writer,
|
||||||
"%" ISC_PRINT_QUADFORMAT "u",
|
"%" ISC_PRINT_QUADFORMAT "u",
|
||||||
(isc_uint64_t)ctx->hi_water));
|
(isc_uint64_t)ctx->hi_water));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* hiwater */
|
TRY0(xmlTextWriterEndElement(writer)); /* hiwater */
|
||||||
|
|
||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "lowater"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "lowater"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer,
|
TRY0(xmlTextWriterWriteFormatString(writer,
|
||||||
"%" ISC_PRINT_QUADFORMAT "u",
|
"%" ISC_PRINT_QUADFORMAT "u",
|
||||||
(isc_uint64_t)ctx->lo_water));
|
(isc_uint64_t)ctx->lo_water));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* lowater */
|
TRY0(xmlTextWriterEndElement(writer)); /* lowater */
|
||||||
|
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* context */
|
TRY0(xmlTextWriterEndElement(writer)); /* context */
|
||||||
@ -2514,31 +2514,31 @@ isc_mem_renderxml(xmlTextWriterPtr writer) {
|
|||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "TotalUse"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "TotalUse"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer,
|
TRY0(xmlTextWriterWriteFormatString(writer,
|
||||||
"%" ISC_PRINT_QUADFORMAT "u",
|
"%" ISC_PRINT_QUADFORMAT "u",
|
||||||
summary.total));
|
summary.total));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* TotalUse */
|
TRY0(xmlTextWriterEndElement(writer)); /* TotalUse */
|
||||||
|
|
||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "InUse"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "InUse"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer,
|
TRY0(xmlTextWriterWriteFormatString(writer,
|
||||||
"%" ISC_PRINT_QUADFORMAT "u",
|
"%" ISC_PRINT_QUADFORMAT "u",
|
||||||
summary.inuse));
|
summary.inuse));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* InUse */
|
TRY0(xmlTextWriterEndElement(writer)); /* InUse */
|
||||||
|
|
||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "BlockSize"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "BlockSize"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer,
|
TRY0(xmlTextWriterWriteFormatString(writer,
|
||||||
"%" ISC_PRINT_QUADFORMAT "u",
|
"%" ISC_PRINT_QUADFORMAT "u",
|
||||||
summary.blocksize));
|
summary.blocksize));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* BlockSize */
|
TRY0(xmlTextWriterEndElement(writer)); /* BlockSize */
|
||||||
|
|
||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "ContextSize"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "ContextSize"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer,
|
TRY0(xmlTextWriterWriteFormatString(writer,
|
||||||
"%" ISC_PRINT_QUADFORMAT "u",
|
"%" ISC_PRINT_QUADFORMAT "u",
|
||||||
summary.contextsize));
|
summary.contextsize));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* ContextSize */
|
TRY0(xmlTextWriterEndElement(writer)); /* ContextSize */
|
||||||
|
|
||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "Lost"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "Lost"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer,
|
TRY0(xmlTextWriterWriteFormatString(writer,
|
||||||
"%" ISC_PRINT_QUADFORMAT "u",
|
"%" ISC_PRINT_QUADFORMAT "u",
|
||||||
lost));
|
lost));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* Lost */
|
TRY0(xmlTextWriterEndElement(writer)); /* Lost */
|
||||||
|
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* summary */
|
TRY0(xmlTextWriterEndElement(writer)); /* summary */
|
||||||
|
@ -2269,7 +2269,7 @@ use_min_mtu(isc__socket_t *sock) {
|
|||||||
if (sock->pf == AF_INET6) {
|
if (sock->pf == AF_INET6) {
|
||||||
int on = 1;
|
int on = 1;
|
||||||
(void)setsockopt(sock->fd, IPPROTO_IPV6, IPV6_USE_MIN_MTU,
|
(void)setsockopt(sock->fd, IPPROTO_IPV6, IPV6_USE_MIN_MTU,
|
||||||
(void *)&on, sizeof(on));
|
(void *)&on, sizeof(on));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(IPV6_MTU)
|
#if defined(IPV6_MTU)
|
||||||
@ -5991,7 +5991,7 @@ isc_socketmgr_renderxml(isc_socketmgr_t *mgr0, xmlTextWriterPtr writer) {
|
|||||||
TRY0(xmlTextWriterStartElement(writer,
|
TRY0(xmlTextWriterStartElement(writer,
|
||||||
ISC_XMLCHAR "name"));
|
ISC_XMLCHAR "name"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer, "%s",
|
TRY0(xmlTextWriterWriteFormatString(writer, "%s",
|
||||||
sock->name));
|
sock->name));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* name */
|
TRY0(xmlTextWriterEndElement(writer)); /* name */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6023,7 +6023,7 @@ isc_socketmgr_renderxml(isc_socketmgr_t *mgr0, xmlTextWriterPtr writer) {
|
|||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "states"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "states"));
|
||||||
if (sock->pending_recv)
|
if (sock->pending_recv)
|
||||||
TRY0(xmlTextWriterWriteElement(writer,
|
TRY0(xmlTextWriterWriteElement(writer,
|
||||||
ISC_XMLCHAR "state",
|
ISC_XMLCHAR "state",
|
||||||
ISC_XMLCHAR "pending-receive"));
|
ISC_XMLCHAR "pending-receive"));
|
||||||
if (sock->pending_send)
|
if (sock->pending_send)
|
||||||
TRY0(xmlTextWriterWriteElement(writer,
|
TRY0(xmlTextWriterWriteElement(writer,
|
||||||
|
@ -1438,7 +1438,7 @@ use_min_mtu(isc__socket_t *sock) {
|
|||||||
if (sock->pf == AF_INET6) {
|
if (sock->pf == AF_INET6) {
|
||||||
int on = 1;
|
int on = 1;
|
||||||
(void)setsockopt(sock->fd, IPPROTO_IPV6, IPV6_USE_MIN_MTU,
|
(void)setsockopt(sock->fd, IPPROTO_IPV6, IPV6_USE_MIN_MTU,
|
||||||
(void *)&on, sizeof(on));
|
(void *)&on, sizeof(on));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -3919,14 +3919,14 @@ isc_socketmgr_renderxml(isc_socketmgr_t *mgr, xmlTextWriterPtr writer)
|
|||||||
TRY0(xmlTextWriterStartElement(writer,
|
TRY0(xmlTextWriterStartElement(writer,
|
||||||
ISC_XMLCHAR "name"));
|
ISC_XMLCHAR "name"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer, "%s",
|
TRY0(xmlTextWriterWriteFormatString(writer, "%s",
|
||||||
sock->name));
|
sock->name));
|
||||||
TRY0(xmlTextWriterEndElement(writer)); /* name */
|
TRY0(xmlTextWriterEndElement(writer)); /* name */
|
||||||
}
|
}
|
||||||
|
|
||||||
TRY0(xmlTextWriterStartElement(writer,
|
TRY0(xmlTextWriterStartElement(writer,
|
||||||
ISC_XMLCHAR "references"));
|
ISC_XMLCHAR "references"));
|
||||||
TRY0(xmlTextWriterWriteFormatString(writer, "%d",
|
TRY0(xmlTextWriterWriteFormatString(writer, "%d",
|
||||||
sock->references));
|
sock->references));
|
||||||
TRY0(xmlTextWriterEndElement(writer));
|
TRY0(xmlTextWriterEndElement(writer));
|
||||||
|
|
||||||
TRY0(xmlTextWriterWriteElement(writer, ISC_XMLCHAR "type",
|
TRY0(xmlTextWriterWriteElement(writer, ISC_XMLCHAR "type",
|
||||||
@ -3951,7 +3951,7 @@ isc_socketmgr_renderxml(isc_socketmgr_t *mgr, xmlTextWriterPtr writer)
|
|||||||
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "states"));
|
TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "states"));
|
||||||
if (sock->pending_recv)
|
if (sock->pending_recv)
|
||||||
TRY0(xmlTextWriterWriteElement(writer,
|
TRY0(xmlTextWriterWriteElement(writer,
|
||||||
ISC_XMLCHAR "state",
|
ISC_XMLCHAR "state",
|
||||||
ISC_XMLCHAR "pending-receive"));
|
ISC_XMLCHAR "pending-receive"));
|
||||||
if (sock->pending_send)
|
if (sock->pending_send)
|
||||||
TRY0(xmlTextWriterWriteElement(writer,
|
TRY0(xmlTextWriterWriteElement(writer,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user