From owner-freebsd-bugs Mon Oct 19 14:50:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA23617 for freebsd-bugs-outgoing; Mon, 19 Oct 1998 14:50:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA23602 for ; Mon, 19 Oct 1998 14:50:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA07305; Mon, 19 Oct 1998 14:50:01 -0700 (PDT) Received: from sleipnir.watson.org (SLEIPNIR.RES.CMU.EDU [128.2.91.229]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA23447 for ; Mon, 19 Oct 1998 14:48:20 -0700 (PDT) (envelope-from robert@sleipnir.watson.org) Received: (from robert@localhost) by sleipnir.watson.org (8.9.1/8.8.8) id OAA20173; Mon, 19 Oct 1998 14:29:52 -0400 (EDT) (envelope-from robert) Message-Id: <199810191829.OAA20173@sleipnir.watson.org> Date: Mon, 19 Oct 1998 14:29:52 -0400 (EDT) From: robert@fledge.watson.org Reply-To: robert+freebsd@cyrus.watson.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/8376: clock_gettime and CLOCK_VIRTUAL -- not implemented Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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