diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-01-06 04:59:13 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-01-06 04:59:13 -0800 |
commit | 57ada0e7e79b9421a77d2b92dffce0f9e8e087b5 (patch) | |
tree | 194bb1f4abee3c29299c52ae825f6be8f356c43f /sysdeps/unix/s-proto.S | |
parent | 46abb64d6287d09100b147d062f6810066389b7e (diff) | |
download | glibc-57ada0e7e79b9421a77d2b92dffce0f9e8e087b5.tar.gz |
Define CLOCKS_PER_SEC type to the type clock_t
C99 specifies that CLOCKS_PER_SEC is an expression with the type clock_t.
This patch adds a generic <bits/time2.h> to define CLOCKS_PER_SEC and
provides the Linux/x86-64 version of <bits/time2.h> to support x32.
[BZ #17797]
* bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
* sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
* sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
CLOCKS_PER_SEC == 1000000.
* time/clocktest.c (main): Replace %ld with %jd and cast to
intmax_t.
Diffstat (limited to 'sysdeps/unix/s-proto.S')
0 files changed, 0 insertions, 0 deletions