Date: Tue, 4 Sep 2001 11:40:02 -0700 (PDT) From: David Malone <dwmalone@maths.tcd.ie> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/30297: CLOCKS_PER_SEC non-standard Message-ID: <200109041840.f84Ie2m12246@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/30297; it has been noted by GNATS. From: David Malone <dwmalone@maths.tcd.ie> To: Bernd Luevelsmeyer <bdluevel@heitec.net> 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 <time.h> 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 <time.h>", 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109041840.f84Ie2m12246>