From owner-freebsd-bugs Tue Sep 4 11:40:11 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 21F9337B407 for ; Tue, 4 Sep 2001 11:40:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f84Ie2m12246; Tue, 4 Sep 2001 11:40:02 -0700 (PDT) (envelope-from gnats) Date: Tue, 4 Sep 2001 11:40:02 -0700 (PDT) Message-Id: <200109041840.f84Ie2m12246@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: David Malone Subject: Re: misc/30297: CLOCKS_PER_SEC non-standard Reply-To: David Malone Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/30297; it has been noted by GNATS. From: David Malone To: Bernd Luevelsmeyer Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/30297: CLOCKS_PER_SEC non-standard Date: Tue, 4 Sep 2001 19:33:04 +0100 On Mon, Sep 03, 2001 at 03:29:39PM -0700, Bernd Luevelsmeyer wrote: > >Description: > CLOCKS_PER_SEC in the #include-file is 128. > "The Single UNIX Specification" at > http://www.UNIX-systems.org/online.html however says > "CLOCKS_PER_SEC is defined to be one million in ", and > the Red Hat Linux 7.2 manpage says "POSIX requires > that CLOCKS_PER_SEC equals 1000000 independent of the actual > resolution." > >How-To-Repeat: > > >Fix: > If POSIX indeed requires CLOCKS_PER_SEC to be one million then > it should be changed to that value, in order to enhance > Standard conformance. This cannot be changed without either a library version number bump or introducing binary incompatability. Some people also reily on code using CLOCKS_PER_SEC producing sensible values. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message