docs/87681: [patch] correct gettimeofday(2) manpage, document one known bug

Andreas Kohn andreas.kohn at gmail.com
Sat Feb 11 12:40:20 UTC 2006


The following reply was made to PR docs/87681; it has been noted by GNATS.

From: Andreas Kohn <andreas.kohn at gmail.com>
To: bug-followup at FreeBSD.org, andreas at syndrom23.de
Cc:  
Subject: Re: docs/87681: [patch] correct gettimeofday(2) manpage, document one known bug
Date: Sat, 11 Feb 2006 13:32:08 +0100

 The bug was fixed, and time_t is now used on all archs but alpha.
 The documentation is still incorrect w.r.t. to the types.
 
 Updated patch:
 
 --------------------
 Index: gettimeofday.2
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /storage/freebsd/cvs/src/lib/libc/sys/gettimeofday.2,v
 retrieving revision 1.25
 diff -u -r1.25 gettimeofday.2
 --- gettimeofday.2      2 Jul 2004 23:52:13 -0000       1.25
 +++ gettimeofday.2      11 Feb 2006 12:26:57 -0000
 @@ -82,8 +82,8 @@
  .Pp
  .Bd -literal
  struct timeval {
 -       long    tv_sec;         /* seconds since Jan. 1, 1970 */
 -       long    tv_usec;        /* and microseconds */
 +       time_t          tv_sec;         /* seconds since Jan. 1, 1970 */
 +       suseconds_t     tv_usec;        /* and microseconds */
  };
 
  struct timezone {
 --------------------



More information about the freebsd-doc mailing list