Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Feb 2006 12:40:11 GMT
From:      Andreas Kohn <andreas.kohn@gmail.com>
To:        freebsd-doc@FreeBSD.org
Subject:   Re: docs/87681: [patch] correct gettimeofday(2) manpage, document one known bug
Message-ID:  <200602111240.k1BCeBiM078657@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/87681; it has been noted by GNATS.

From: Andreas Kohn <andreas.kohn@gmail.com>
To: bug-followup@FreeBSD.org, andreas@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 {
 --------------------



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