mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
update copyright notice
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Copyright (C) 2004, 2006, 2007 Internet Systems Consortium, Inc. ("ISC")
|
# Copyright (C) 2004, 2006-2008 Internet Systems Consortium, Inc. ("ISC")
|
||||||
# Copyright (C) 2000-2002 Internet Software Consortium.
|
# Copyright (C) 2000-2002 Internet Software Consortium.
|
||||||
#
|
#
|
||||||
# Permission to use, copy, modify, and/or distribute this software for any
|
# Permission to use, copy, modify, and/or distribute this software for any
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
# PERFORMANCE OF THIS SOFTWARE.
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
# $Id: Makefile.in,v 1.28 2008/08/29 03:16:14 marka Exp $
|
# $Id: Makefile.in,v 1.29 2008/08/29 23:47:22 tbox Exp $
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2004, 2006, 2007 Internet Systems Consortium, Inc. ("ISC")
|
* Copyright (C) 2004, 2006-2008 Internet Systems Consortium, Inc. ("ISC")
|
||||||
* Copyright (C) 1998-2001, 2003 Internet Software Consortium.
|
* Copyright (C) 1998-2001, 2003 Internet Software Consortium.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: time.c,v 1.44 2008/08/29 03:57:38 marka Exp $ */
|
/* $Id: time.c,v 1.45 2008/08/29 23:47:22 tbox Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -235,9 +235,9 @@ isc_time_formattimestamp(const isc_time_t *t, char *buf, unsigned int len) {
|
|||||||
SYSTEMTIME st;
|
SYSTEMTIME st;
|
||||||
char DateBuf[50];
|
char DateBuf[50];
|
||||||
char TimeBuf[50];
|
char TimeBuf[50];
|
||||||
|
|
||||||
static const char badtime[] = "99-Bad-9999 99:99:99.999";
|
static const char badtime[] = "99-Bad-9999 99:99:99.999";
|
||||||
|
|
||||||
REQUIRE(len > 0);
|
REQUIRE(len > 0);
|
||||||
if (FileTimeToLocalFileTime(&t->absolute, &localft) &&
|
if (FileTimeToLocalFileTime(&t->absolute, &localft) &&
|
||||||
FileTimeToSystemTime(&localft, &st)) {
|
FileTimeToSystemTime(&localft, &st)) {
|
||||||
@@ -245,10 +245,10 @@ isc_time_formattimestamp(const isc_time_t *t, char *buf, unsigned int len) {
|
|||||||
DateBuf, 50);
|
DateBuf, 50);
|
||||||
GetTimeFormat(LOCALE_USER_DEFAULT, TIME_NOTIMEMARKER|
|
GetTimeFormat(LOCALE_USER_DEFAULT, TIME_NOTIMEMARKER|
|
||||||
TIME_FORCE24HOURFORMAT, &st, NULL, TimeBuf, 50);
|
TIME_FORCE24HOURFORMAT, &st, NULL, TimeBuf, 50);
|
||||||
|
|
||||||
snprintf(buf, len, "%s %s.%03u", DateBuf, TimeBuf,
|
snprintf(buf, len, "%s %s.%03u", DateBuf, TimeBuf,
|
||||||
st.wMilliseconds);
|
st.wMilliseconds);
|
||||||
|
|
||||||
} else
|
} else
|
||||||
snprintf(buf, len, badtime);
|
snprintf(buf, len, badtime);
|
||||||
}
|
}
|
||||||
@@ -258,7 +258,7 @@ isc_time_formathttptimestamp(const isc_time_t *t, char *buf, unsigned int len) {
|
|||||||
SYSTEMTIME st;
|
SYSTEMTIME st;
|
||||||
char DateBuf[50];
|
char DateBuf[50];
|
||||||
char TimeBuf[50];
|
char TimeBuf[50];
|
||||||
|
|
||||||
REQUIRE(len > 0);
|
REQUIRE(len > 0);
|
||||||
if (FileTimeToSystemTime(&t->absolute, &st)) {
|
if (FileTimeToSystemTime(&t->absolute, &st)) {
|
||||||
GetDateFormat(LOCALE_USER_DEFAULT, 0, &st, "ddd',', dd-MMM-yyyy",
|
GetDateFormat(LOCALE_USER_DEFAULT, 0, &st, "ddd',', dd-MMM-yyyy",
|
||||||
@@ -266,7 +266,7 @@ isc_time_formathttptimestamp(const isc_time_t *t, char *buf, unsigned int len) {
|
|||||||
GetTimeFormat(LOCALE_USER_DEFAULT,
|
GetTimeFormat(LOCALE_USER_DEFAULT,
|
||||||
TIME_NOTIMEMARKER | TIME_FORCE24HOURFORMAT,
|
TIME_NOTIMEMARKER | TIME_FORCE24HOURFORMAT,
|
||||||
&st, "hh':'mm':'ss", TimeBuf, 50);
|
&st, "hh':'mm':'ss", TimeBuf, 50);
|
||||||
|
|
||||||
snprintf(buf, len, "%s %s GMT", DateBuf, TimeBuf);
|
snprintf(buf, len, "%s %s GMT", DateBuf, TimeBuf);
|
||||||
} else {
|
} else {
|
||||||
buf[0] = 0;
|
buf[0] = 0;
|
||||||
|
Reference in New Issue
Block a user