diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-05-15 11:18:10 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-05-15 11:18:10 -0400 |
commit | 3b85df27870a47ed1db84e948e37a5a50a178a92 (patch) | |
tree | 0857de32492f4bb0e3b906b3e33b2c8b8d34c57b /sysdeps/unix/sysv/linux/ia64 | |
parent | 15a856b1090669df0aec536edbdf240e71a470ca (diff) | |
download | glibc-3b85df27870a47ed1db84e948e37a5a50a178a92.tar.gz glibc-3b85df27870a47ed1db84e948e37a5a50a178a92.tar.xz glibc-3b85df27870a47ed1db84e948e37a5a50a178a92.zip |
sysconf on Linux/ia64 reported outdate versions for some options
The code is also cleaned up to avoid inefficiencies.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ia64')
-rw-r--r-- | sysdeps/unix/sysv/linux/ia64/sysconf.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/sysdeps/unix/sysv/linux/ia64/sysconf.c b/sysdeps/unix/sysv/linux/ia64/sysconf.c index 4b5d1ce2cd..67b8251dd3 100644 --- a/sysdeps/unix/sysv/linux/ia64/sysconf.c +++ b/sysdeps/unix/sysv/linux/ia64/sysconf.c @@ -1,5 +1,5 @@ -/* Get file-specific information about a file. Linux version. - Copyright (C) 2003, 2004 Free Software Foundation, Inc. +/* Get file-specific information about a file. Linux/ia64 version. + Copyright (C) 2003, 2004, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -24,22 +24,8 @@ #include "has_cpuclock.c" +#define HAS_CPUCLOCK() (has_cpuclock () ? _POSIX_VERSION : -1) -static long int linux_sysconf (int name); - - -/* Get the value of the system variable NAME. */ -long int -__sysconf (int name) -{ - if (name == _SC_CPUTIME || name == _SC_THREAD_CPUTIME) - return has_cpuclock () ? 200112L : -1; - - /* Everything else is handled by the more general code. */ - return linux_sysconf (name); -} /* Now the generic Linux version. */ -#undef __sysconf -#define __sysconf static linux_sysconf #include "../sysconf.c" |