Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 2014 05:07:12 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r275985 - in head/sys: i386/xen kern netinet sys
Message-ID:  <201412210507.sBL57CXS085418@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sun Dec 21 05:07:11 2014
New Revision: 275985
URL: https://svnweb.freebsd.org/changeset/base/275985

Log:
  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).

Modified:
  head/sys/i386/xen/clock.c
  head/sys/kern/subr_fattime.c
  head/sys/netinet/in_systm.h
  head/sys/netinet/ip_icmp.c
  head/sys/netinet/ip_icmp.h
  head/sys/sys/sem.h
  head/sys/sys/time.h

Modified: head/sys/i386/xen/clock.c
==============================================================================
--- head/sys/i386/xen/clock.c	Sun Dec 21 04:58:45 2014	(r275984)
+++ head/sys/i386/xen/clock.c	Sun Dec 21 05:07:11 2014	(r275985)
@@ -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;

Modified: head/sys/kern/subr_fattime.c
==============================================================================
--- head/sys/kern/subr_fattime.c	Sun Dec 21 04:58:45 2014	(r275984)
+++ head/sys/kern/subr_fattime.c	Sun Dec 21 05:07:11 2014	(r275985)
@@ -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

Modified: head/sys/netinet/in_systm.h
==============================================================================
--- head/sys/netinet/in_systm.h	Sun Dec 21 04:58:45 2014	(r275984)
+++ head/sys/netinet/in_systm.h	Sun Dec 21 05:07:11 2014	(r275985)
@@ -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);

Modified: head/sys/netinet/ip_icmp.c
==============================================================================
--- head/sys/netinet/ip_icmp.c	Sun Dec 21 04:58:45 2014	(r275984)
+++ head/sys/netinet/ip_icmp.c	Sun Dec 21 05:07:11 2014	(r275985)
@@ -861,7 +861,7 @@ icmp_send(struct mbuf *m, struct mbuf *o
 }
 
 /*
- * Return milliseconds since 00:00 GMT in network format.
+ * Return milliseconds since 00:00 UTC in network format.
  */
 uint32_t
 iptime(void)

Modified: head/sys/netinet/ip_icmp.h
==============================================================================
--- head/sys/netinet/ip_icmp.h	Sun Dec 21 04:58:45 2014	(r275984)
+++ head/sys/netinet/ip_icmp.h	Sun Dec 21 05:07:11 2014	(r275985)
@@ -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 */

Modified: head/sys/sys/sem.h
==============================================================================
--- head/sys/sys/sem.h	Sun Dec 21 04:58:45 2014	(r275984)
+++ head/sys/sys/sem.h	Sun Dec 21 05:07:11 2014	(r275985)
@@ -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 */
 };
 
 /*

Modified: head/sys/sys/time.h
==============================================================================
--- head/sys/sys/time.h	Sun Dec 21 04:58:45 2014	(r275984)
+++ head/sys/sys/time.h	Sun Dec 21 05:07:11 2014	(r275985)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412210507.sBL57CXS085418>