mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-24 12:25:35 +08:00
57ada0e7e7
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. |
||
---|---|---|
.. | ||
a.out.h | ||
dirent.h | ||
epoll.h | ||
errno.h | ||
eventfd.h | ||
fcntl-linux.h | ||
fcntl.h | ||
in.h | ||
initspin.h | ||
inotify.h | ||
ioctl-types.h | ||
ioctls.h | ||
ipc.h | ||
local_lim.h | ||
mqueue.h | ||
msq.h | ||
param.h | ||
poll.h | ||
posix_opt.h | ||
resource.h | ||
sched.h | ||
sem.h | ||
shm.h | ||
sigaction.h | ||
sigcontext.h | ||
siginfo.h | ||
signalfd.h | ||
signum.h | ||
sigset.h | ||
sigstack.h | ||
socket_type.h | ||
socket.h | ||
stat.h | ||
statfs.h | ||
statvfs.h | ||
sys_errlist.h | ||
sysctl.h | ||
termios.h | ||
time.h | ||
timerfd.h | ||
timex.h | ||
uio.h | ||
utsname.h | ||
waitflags.h |