Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Dec 2008 17:31:07 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Viktor =?utf-8?Q?=C5=A0tujber?= <theultramage@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: documentation problem for times(3) man page
Message-ID:  <874p1nsyis.fsf@kobe.laptop>
In-Reply-To: <87abbgrkli.fsf@kobe.laptop> (Giorgos Keramidas's message of "Mon, 01 Dec 2008 17:17:13 %2B0200")
References:  <890fa77e0812010051p2ab5c7cbv6e960124d699967b@mail.gmail.com> <87abbgrkli.fsf@kobe.laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 01 Dec 2008 17:17:13 +0200,
Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:
> On Mon, 1 Dec 2008 09:51:46 +0100, "Viktor =C5=A0tujber" <theultramage@gm=
ail.com> 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 &#352;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




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