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

Bug#284989: glibc-doc: _SC_CLK_TCK corresponds to CLK_TCK



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



Reply to: