summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-12-21 05:07:11 +0000
committerimp <imp@FreeBSD.org>2014-12-21 05:07:11 +0000
commit256101c95beb534bebcd6e6be40aa02dc76f787b (patch)
tree95bfcb7649ec76f5c2f98c98320e1f38438d8bca
parent4f57c7deeef01e026d41c393c03246ff33100c87 (diff)
downloadFreeBSD-src-256101c95beb534bebcd6e6be40aa02dc76f787b.zip
FreeBSD-src-256101c95beb534bebcd6e6be40aa02dc76f787b.tar.gz
Where appropriate, use the modern terms for the one true time base
(UTC) rather than the archaic (GMT) in comments. Except where the comments are making fun of people doing this (and pedants who insist on the new terms).
-rw-r--r--sys/i386/xen/clock.c2
-rw-r--r--sys/kern/subr_fattime.c2
-rw-r--r--sys/netinet/in_systm.h7
-rw-r--r--sys/netinet/ip_icmp.c2
-rw-r--r--sys/netinet/ip_icmp.h2
-rw-r--r--sys/sys/sem.h4
-rw-r--r--sys/sys/time.h2
7 files changed, 12 insertions, 9 deletions
diff --git a/sys/i386/xen/clock.c b/sys/i386/xen/clock.c
index 0f5b0e5..26fafee 100644
--- a/sys/i386/xen/clock.c
+++ b/sys/i386/xen/clock.c
@@ -118,7 +118,7 @@ struct mtx clock_lock;
#define RTC_UNLOCK mtx_unlock_spin(&clock_lock)
#define NS_PER_TICK (1000000000ULL/hz)
-int adjkerntz; /* local offset from GMT in seconds */
+int adjkerntz; /* local offset from UTC in seconds */
int clkintr_pending;
int pscnt = 1;
int psdiv = 1;
diff --git a/sys/kern/subr_fattime.c b/sys/kern/subr_fattime.c
index e2a2195..099479c 100644
--- a/sys/kern/subr_fattime.c
+++ b/sys/kern/subr_fattime.c
@@ -45,7 +45,7 @@
* Later on again, in Windows NT, timestamps were defined relative to GMT.
*
* Purists will point out that UTC replaced GMT for such uses around
- * a century ago, already then. Ironically "NT" was an abbreviation of
+ * half a century ago, already then. Ironically "NT" was an abbreviation of
* "New Technology". Anyway...
*
* The 'utc' argument determines if the resulting FATTIME timestamp
diff --git a/sys/netinet/in_systm.h b/sys/netinet/in_systm.h
index 4b34aa0..acd2e62 100644
--- a/sys/netinet/in_systm.h
+++ b/sys/netinet/in_systm.h
@@ -44,12 +44,15 @@
* Internally the system keeps counters in the headers with the bytes
* swapped so that VAX instructions will work on them. It reverses
* the bytes before transmission at each protocol level. The n_ types
- * represent the types with the bytes in ``high-ender'' order.
+ * represent the types with the bytes in ``high-ender'' order. Network
+ * byte order is usually referered to as big-endian these days rather
+ * than high-ender, which sadly invokes an Orson Scott Card novel, or
+ * worse, the movie.
*/
typedef u_int16_t n_short; /* short as received from the net */
typedef u_int32_t n_long; /* long as received from the net */
-typedef u_int32_t n_time; /* ms since 00:00 GMT, byte rev */
+typedef u_int32_t n_time; /* ms since 00:00 UTC, byte rev */
#ifdef _KERNEL
uint32_t iptime(void);
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
index d134a2e..b6b967f 100644
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -861,7 +861,7 @@ icmp_send(struct mbuf *m, struct mbuf *opts)
}
/*
- * Return milliseconds since 00:00 GMT in network format.
+ * Return milliseconds since 00:00 UTC in network format.
*/
uint32_t
iptime(void)
diff --git a/sys/netinet/ip_icmp.h b/sys/netinet/ip_icmp.h
index ca1e963..38d44d7 100644
--- a/sys/netinet/ip_icmp.h
+++ b/sys/netinet/ip_icmp.h
@@ -99,7 +99,7 @@ struct icmp {
struct id_ts { /* ICMP Timestamp */
/*
* The next 3 fields are in network format,
- * milliseconds since 00:00 GMT
+ * milliseconds since 00:00 UTC
*/
uint32_t its_otime; /* Originate */
uint32_t its_rtime; /* Receive */
diff --git a/sys/sys/sem.h b/sys/sys/sem.h
index f52bc0c..0ea259b 100644
--- a/sys/sys/sem.h
+++ b/sys/sys/sem.h
@@ -37,7 +37,7 @@ struct semid_ds_old {
long sem_pad1; /* SVABI/386 says I need this here */
time_t sem_ctime; /* last change time */
/* Times measured in secs since */
- /* 00:00:00 GMT, Jan. 1, 1970 */
+ /* 00:00:00 UTC, Jan. 1, 1970, without leap seconds */
long sem_pad2; /* SVABI/386 says I need this here */
long sem_pad3[4]; /* SVABI/386 says I need this here */
};
@@ -50,7 +50,7 @@ struct semid_ds {
time_t sem_otime; /* last operation time */
time_t sem_ctime; /* last change time */
/* Times measured in secs since */
- /* 00:00:00 GMT, Jan. 1, 1970 */
+ /* 00:00:00 UTC, Jan. 1, 1970, without leap seconds */
};
/*
diff --git a/sys/sys/time.h b/sys/sys/time.h
index 1f0a530..395e888 100644
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -398,7 +398,7 @@ extern sbintime_t sbt_tickthreshold;
* Functions containing "up" returns time relative to boot and
* should be used for calculating time intervals.
*
- * Functions without "up" returns GMT time.
+ * Functions without "up" returns UTC time.
*
* Functions with the "get" prefix returns a less precise result
* much faster than the functions without "get" prefix and should
OpenPOWER on IntegriCloud