NetBSD Problem Report #40612

From www@NetBSD.org  Wed Feb 11 10:55:15 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 866E463C0C7
	for <gnats-bugs@gnats.netbsd.org>; Wed, 11 Feb 2009 10:55:15 +0000 (UTC)
Message-Id: <20090211105507.52E8263BAB8@narn.NetBSD.org>
Date: Wed, 11 Feb 2009 10:55:07 +0000 (UTC)
From: QFH02545@nifty.com
Reply-To: QFH02545@nifty.com
To: gnats-bugs@NetBSD.org
Subject: timer_settime(2)'s ovalue is not relative time when the timer was created CLOCK_REALTIME
X-Send-Pr-Version: www-1.0

>Number:         40612
>Category:       kern
>Synopsis:       timer_settime(2)'s ovalue is not relative time when the timer was created CLOCK_REALTIME
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 11 11:00:00 +0000 2009
>Originator:     HITOSHI OSADA
>Release:        NetBSD 5.99.7
>Organization:
>Environment:
System: NetBSD amd690g 5.99.7 NetBSD 5.99.7 (AMD690G) #1: Sun Feb 8 00:53:26 JST 2009 root@amd690g:/NetBSD-obj/src-obj/sys/arch/amd64/compile/AMD690G amd64
Architecture: x86_64
Machine: amd64

>Description:
SUSv2(http://opengroup.org/onlinepubs/007908799/xsh/timer_settime.html) says

>The members of ovalue are subject to the resolution of the timer, and they are the 
>same values that would be returned by a timer_gettime() call at that point in time. 

and 

>The timer_gettime() function stores the amount of time until the specified timer,
> timerid, expires and the reload value of the timer into the space pointed to by
> the value argument.
>(snip) 
> This value is returned as the interval until timer expiration, even if the timer
> was armed with absolute time.

but our timer_settime(2) always sets absolute time into ovalue when the timer was created as CLOCK_REALTIME.(CLOCK_VIRTUAL returns relative time correctly.)

>How-To-Repeat:

>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.