Is this worth deleting now that struct timezone *tzp is no longer
used?

I was originally going to send a small diff changing only the line
that read, "If tp or tzp is NULL, the associated time information
will not be returned or set" since gettimeofday(&tv, NULL) works
exactly as one would expect.

I thought that it might be worth pruning this now, but if it's
still worth keeping the information around, I don't have strong
objection against keeping it either.

-- 
Bryan

Index: gettimeofday.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/gettimeofday.2,v
retrieving revision 1.29
diff -u -r1.29 gettimeofday.2
--- gettimeofday.2      10 Sep 2015 17:55:21 -0000      1.29
+++ gettimeofday.2      29 Apr 2017 14:00:07 -0000
@@ -61,18 +61,14 @@
 .Dq ticks .
 If
 .Fa tp
-or
-.Fa tzp
 is
 .Dv NULL ,
 the associated time
 information will not be returned or set.
 .Pp
-The structures pointed to by
+The structure pointed to by
 .Fa tp
-and
-.Fa tzp
-are defined in
+is defined in
 .In sys/time.h
 as:
 .Bd -literal
@@ -80,20 +76,7 @@
        time_t          tv_sec;         /* seconds since Jan. 1, 1970 */
        suseconds_t     tv_usec;        /* and microseconds */
 };
-
-struct timezone {
-       int     tz_minuteswest; /* of Greenwich */
-       int     tz_dsttime;     /* type of dst correction to apply */
-};
 .Ed
-.Pp
-The
-.Fa timezone
-structure indicates the local time zone
-(measured in minutes of time westward from Greenwich),
-and a flag that, if nonzero, indicates that
-Daylight Saving time applies locally during
-the appropriate part of the year.
 .Pp
 Only the superuser may set the time of day or time zone.
 If the system securelevel is greater than 1 (see

Reply via email to