[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#284989: marked as done (glibc-doc: _SC_CLK_TCK corresponds to CLK_TCK)



Your message dated Tue, 5 Dec 2017 21:03:23 +0100
with message-id <20171205200323.GA16670@aurel32.net>
and subject line Bug#284989: glibc-doc: _SC_CLK_TCK corresponds to CLK_TCK
has caused the Debian Bug report #284989,
regarding glibc-doc: _SC_CLK_TCK corresponds to CLK_TCK
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
284989: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=284989
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: glibc-doc
Version: 2.3.2.ds1-18
Severity: normal

In the "Constants for Sysconf" node, _SC_CLK_TCK is described as being
the parameter corresponding to CLOCKS_PER_SEC, but I believe that
should be CLK_TCK.  Eg.

    #include <time.h>
    #include <unistd.h>
    main () {
      printf ("%d, %d, %d\n",
              sysconf(_SC_CLK_TCK), CLK_TCK, CLOCKS_PER_SEC);
    }

shows "100, 100, 1000000", ie. sysconf(_SC_CLK_TCK) equals CLK_TCK not
CLOCKS_PER_SEC.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.4.25-1-k6
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

-- no debconf information


--- End Message ---
--- Begin Message ---
Version: 2.16-0experimental1


On 2004-12-10 10:09, Kevin Ryde wrote:
> Package: glibc-doc
> Version: 2.3.2.ds1-18
> Severity: normal
> 
> In the "Constants for Sysconf" node, _SC_CLK_TCK is described as being
> the parameter corresponding to CLOCKS_PER_SEC, but I believe that
> should be CLK_TCK.  Eg.
> 
>     #include <time.h>
>     #include <unistd.h>
>     main () {
>       printf ("%d, %d, %d\n",
>               sysconf(_SC_CLK_TCK), CLK_TCK, CLOCKS_PER_SEC);
>     }
> 
> shows "100, 100, 1000000", ie. sysconf(_SC_CLK_TCK) equals CLK_TCK not
> CLOCKS_PER_SEC.
> 

This has been fixed in version 2.16, in upstream commit 4cfd80263af2.
Closing the bug.

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net

--- End Message ---

Reply to: