From owner-freebsd-doc@FreeBSD.ORG Wed Oct 19 19:30:16 2005 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD30216A420 for ; Wed, 19 Oct 2005 19:30:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE65843D69 for ; Wed, 19 Oct 2005 19:30:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9JJUFn9061192 for ; Wed, 19 Oct 2005 19:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9JJUFQh061175; Wed, 19 Oct 2005 19:30:15 GMT (envelope-from gnats) Resent-Date: Wed, 19 Oct 2005 19:30:15 GMT Resent-Message-Id: <200510191930.j9JJUFQh061175@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Andreas Kohn" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C2A216A420 for ; Wed, 19 Oct 2005 19:29:19 +0000 (GMT) (envelope-from andreas@syndrom23.de) Received: from vs159088.vserver.de (syndrom23.de [62.75.159.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F4C543D64 for ; Wed, 19 Oct 2005 19:29:18 +0000 (GMT) (envelope-from andreas@syndrom23.de) Received: from klamath.syndrom23.de ([212.204.44.203]) (authenticated bits=0) by vs159088.vserver.de (8.12.8/8.12.8) with ESMTP id j9JJT608004576 for ; Wed, 19 Oct 2005 21:29:14 +0200 Message-Id: <1129750157.0@klamath.syndrom23.de> Date: Wed, 19 Oct 2005 21:29:17 +0200 From: "Andreas Kohn" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.6 Cc: Subject: docs/87681: [PATCH] correct gettimeofday manpage, document one known bug X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Oct 2005 19:30:17 -0000 >Number: 87681 >Category: docs >Synopsis: [PATCH] correct gettimeofday manpage, document one known bug >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 19 19:30:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Andreas Kohn >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 7.0-CURRENT #35: Sun Oct 2 14:16:27 CEST 2005 root@klamath.syndrom23.de:/usr/obj/usr/src/sys/KLAMATH >Description: struct timeval's tv_sec member should be time_t according to http://www.opengroup.org/onlinepubs/007908799/xsh/systime.h.html. It isn't on FreeBSD, due to alpha compatibility requirements with Tru64. The attached patch documents that, and also updates the description of the structs with the correct types found in _timeval.h For more information, please consider the thread starting at http://lists.freebsd.org/pipermail/freebsd-hackers/2005-October/013948.html >How-To-Repeat: N/A >Fix: --- gettimeofday.2.diff begins here --- Index: gettimeofday.2 =================================================================== 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 8 Oct 2005 16:27:40 -0000 @@ -82,8 +82,8 @@ .Pp .Bd -literal struct timeval { - long tv_sec; /* seconds since Jan. 1, 1970 */ - long tv_usec; /* and microseconds */ + long tv_sec; /* seconds since Jan. 1, 1970 */ + suseconds_t tv_usec; /* and microseconds */ }; struct timezone { @@ -133,3 +133,5 @@ .Fn gettimeofday system call appeared in .Bx 4.2 . +.Sh BUGS +The tv_sec member of struct timeval should be a time_t. --- gettimeofday.2.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: