diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-11-01 08:10:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-11-01 08:10:10 +0000 |
commit | 25b3dd49a7140508ff17e705408edd80122a4add (patch) | |
tree | f55e4b1a272c4993a11c8b592716b1bf05585c71 /elf | |
parent | bc710b3b7a7c2d94377b023ad9fe46e25c7e3405 (diff) | |
download | glibc-25b3dd49a7140508ff17e705408edd80122a4add.tar.gz glibc-25b3dd49a7140508ff17e705408edd80122a4add.tar.xz glibc-25b3dd49a7140508ff17e705408edd80122a4add.zip |
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 'elf')
-rw-r--r-- | elf/Versions | 1 | ||||
-rw-r--r-- | elf/dl-load.c | 2 | ||||
-rw-r--r-- | elf/elf.h | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/elf/Versions b/elf/Versions index 06bcb03f95..e9b29f5c63 100644 --- a/elf/Versions +++ b/elf/Versions @@ -61,5 +61,6 @@ ld { # variables used elsewhere _dl_out_of_memory; _dl_all_dirs; _dl_init_all_dirs; + _dl_clktck; _dl_pagesize; } } diff --git a/elf/dl-load.c b/elf/dl-load.c index dc1d57ff0a..45f38f3c44 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -112,6 +112,8 @@ struct filebuf size_t _dl_pagesize; +int _dl_clktck; + extern const char *_dl_platform; extern size_t _dl_platformlen; diff --git a/elf/elf.h b/elf/elf.h index de4fdda92b..6f2e52b11d 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -862,6 +862,7 @@ typedef struct #define AT_EUID 12 /* Effective uid */ #define AT_GID 13 /* Real gid */ #define AT_EGID 14 /* Effective gid */ +#define AT_CLKTCK 17 /* Frequency of times() */ /* Some more special a_type values describing the hardware. */ #define AT_PLATFORM 15 /* String identifying platform. */ @@ -870,7 +871,7 @@ typedef struct /* This entry gives some information about the FPU initialization performed by the kernel. */ -#define AT_FPUCW 17 /* Used FPU control word. */ +#define AT_FPUCW 18 /* Used FPU control word. */ /* Note section contents. Each entry in the note section begins with |