From owner-freebsd-questions@FreeBSD.ORG Mon Dec 1 15:31:18 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 310B9106564A for ; Mon, 1 Dec 2008 15:31:18 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 9B97B8FC20 for ; Mon, 1 Dec 2008 15:31:17 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl144-35.kln.forthnet.gr [195.74.243.35]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mB1FV7l4006315 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 1 Dec 2008 17:31:12 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mB1FV7o3078941; Mon, 1 Dec 2008 17:31:07 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mB1FV7ex078940; Mon, 1 Dec 2008 17:31:07 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Viktor =?utf-8?Q?=C5=A0tujber?= References: <890fa77e0812010051p2ab5c7cbv6e960124d699967b@mail.gmail.com> <87abbgrkli.fsf@kobe.laptop> Date: Mon, 01 Dec 2008 17:31:07 +0200 In-Reply-To: <87abbgrkli.fsf@kobe.laptop> (Giorgos Keramidas's message of "Mon, 01 Dec 2008 17:17:13 +0200") Message-ID: <874p1nsyis.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MailScanner-ID: mB1FV7l4006315 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.826, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.57, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: documentation problem for times(3) man page X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 15:31:18 -0000 On Mon, 01 Dec 2008 17:17:13 +0200, Giorgos Keramidas wrote: > On Mon, 1 Dec 2008 09:51:46 +0100, "Viktor =C5=A0tujber" wrote: >> Hi. Half a year ago I started the following thread: >> http://lists.freebsd.org/pipermail/freebsd-questions/2008-April/172448.h= tml. > >> The subject was a documentation issue where a man page mismatched the >> actual system behavior. > > You are right, there *is* a mismatch. The manpage seems to imply that > times() returns the number of CLK_TCK's since the UNIX Epoch, but it > returns the number of CLK_TCK's since the system _booted_ instead. > > I'll fix the manpage. It should be fixed on 8.0-CURRENT now, after the following change: : Author: keramida (doc committer) : Date: Mon Dec 1 15:27:00 2008 : New Revision: 185519 : URL: http://svn.freebsd.org/changeset/base/185519 : : Log: : The times(3) function returns the number of CLK_TCKs since the : startup time of FreeBSD, not since the UNIX Epoch. : : PR: docs/122359 : Submitted by: Viktor Štujber : MFC after: 1 week : : Modified: : head/lib/libc/gen/times.3 It may be too late to push this into 7.1-RELEASE, but I will try to merge the change to the stable branches in a few days. Cheers, Giorgos