Date: Mon, 19 Oct 1998 14:29:52 -0400 (EDT) From: robert@fledge.watson.org To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/8376: clock_gettime and CLOCK_VIRTUAL -- not implemented Message-ID: <199810191829.OAA20173@sleipnir.watson.org>
next in thread | raw e-mail | index | archive | help
>Number: 8376
>Category: kern
>Synopsis: CLOCK_VIRTUAL not implemented
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 19 14:50:00 PDT 1998
>Last-Modified:
>Originator: Robert Watson
>Organization:
>Release: FreeBSD 3.0-BETA i386
>Environment:
3.0-BETA
>Description:
This is either a documentation bug or a software bug. Currently, clock_gettime
syscall does not implement CLOCK_VIRTUAL as described in clock_gettime(2).
EINVAL is returned. Either a BUGS section should be added to clock_gettime(2)
to indicate that a described feature is not present, or the implementation
should be fixed.
>How-To-Repeat:
struct timespec ts;
if (clock_gettime(CLOCK_VIRTUAL, &ts) != 0) {
perror("clock_gettime");
exit(-1);
}
>Fix:
Described in description. I have not written up patches. Presumably a fix
would require maintaining state in the proc structure -- this would be
inefficient in many ways as most processes don't use realtime clock data
about themselves. Maintaining the accuracy of a lot of clocks is presumably
far less easy than maintaining it for a few.
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810191829.OAA20173>
