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

Tom Rhodes trhodes at FreeBSD.org
Mon Feb 13 18:34:24 UTC 2006


On Sat, 11 Feb 2006 12:40:11 GMT
Andreas Kohn <andreas.kohn at gmail.com> wrote:

> 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:
>  
>  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 {

Yea, this was a jcamou assignment since it's his (and to some
extent brooks) fault the time_t change happened.  I've just
been waiting for jcamou to send an updated patch for the
manual page.  Thanks for moving it along!  :)

-- 
Tom Rhodes



More information about the freebsd-doc mailing list