aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-01 08:10:10 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-01 08:10:10 +0000
commit25b3dd49a7140508ff17e705408edd80122a4add (patch)
treef55e4b1a272c4993a11c8b592716b1bf05585c71 /sysdeps/posix
parentbc710b3b7a7c2d94377b023ad9fe46e25c7e3405 (diff)
downloadglibc-25b3dd49a7140508ff17e705408edd80122a4add.zip
glibc-25b3dd49a7140508ff17e705408edd80122a4add.tar.gz
glibc-25b3dd49a7140508ff17e705408edd80122a4add.tar.bz2
Update.
* elf/Versions [ld] (GLIBC_2.2): Export _dl_clktck and _dl_pagesize. * elf/dl-load.c: Define _dl_clktck. * elf/elf.h: Define AT_CLKTCK. * include/time.h: Declare __getclktck. * misc/Makefile (routines): Add getclktck. * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_CLKTCK. (_dl_show_auxv): Show AT_CLKTCK value. * sysdeps/generic/getclktck.c: New file. * sysdeps/unix/sysv/linux/getclktck.c: New file. * sysdeps/unix/sysv/linux/alpha/getclktck.c: New file. * sysdeps/unix/sysv/linux/ia64/getclktck.c: New file. * sysdeps/posix/sysconf.c: Use __getclktck to handle _SC_CLK_TCK. * sysdeps/unix/sysv/linux/getpagesize.c: New file. * sysdeps/unix/sysv/linux/bits/time.h: Use __sysconf to for CLK_TCK. * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise. * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/sysconf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
index b8fd368..616c950 100644
--- a/sysdeps/posix/sysconf.c
+++ b/sysdeps/posix/sysconf.c
@@ -55,11 +55,7 @@ __sysconf (name)
#endif
case _SC_CLK_TCK:
-#ifdef CLK_TCK
- return CLK_TCK;
-#else
- return 60;
-#endif
+ return __getclktck ();
case _SC_NGROUPS_MAX:
#ifdef NGROUPS_MAX