Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 2003 22:29:28 +1100
From:      Tim Robbins <tjr@FreeBSD.org>
To:        Poul-Henning Kamp <phk@FreeBSD.org>
Cc:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys time.h src/sys/kern kern_time.c
Message-ID:  <20030223222928.A26996@dilbert.robbins.dropbear.id.au>
In-Reply-To: <200302231018.h1NAIVaV048679@repoman.freebsd.org>; from phk@FreeBSD.org on Sun, Feb 23, 2003 at 02:18:31AM -0800
References:  <200302231018.h1NAIVaV048679@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 23, 2003 at 02:18:31AM -0800, Poul-Henning Kamp wrote:

> phk         2003/02/23 02:18:31 PST
> 
>   Modified files:
>     sys/sys              time.h 
>     sys/kern             kern_time.c 
>   Log:
>   Implement CLOCK_MONOTONIC.

I think there is a typo here:

	if (uap->clock_id != CLOCK_REALTIME)
		nanotime(&ats);
	else if (uap->clock_id != CLOCK_MONOTONIC)
		nanouptime(&ats);

Shouldn't it be...

	if (uap->clock_id == CLOCK_REALTIME)
		nanotime(&ats);
	else if (uap->clock_id == CLOCK_MONOTONIC)
		nanouptime(&ats);
	else
		return (EINVAL);

Thanks for doing this, though. I'll add CLOCK_PROF and CLOCK_VIRTUAL
as soon as -current has stabilised a bit.


Tim

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




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