From bf067910f598d44f4cf37474a2654258ec03d773 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 12 Mar 2004 17:40:52 +0000 Subject: Update. 2004-03-12 Ulrich Drepper * posix/getconf.c (vars): Add _SC_ values for cache information. * sysdeps/generic/bits/confname.h: Add _SC_* values for cache information. * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Reorganize to allow yet another sysconf function to include the one in this file. * sysdeps/unix/sysv/linux/i386/sysconf.c: New file. * sysdeps/generic/sysconf.c: Add default handling for cache line info. --- sysdeps/unix/sysv/linux/sysconf.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sysdeps/unix/sysv/linux/sysconf.c') diff --git a/sysdeps/unix/sysv/linux/sysconf.c b/sysdeps/unix/sysv/linux/sysconf.c index 61e9865dce..6fae5590f5 100644 --- a/sysdeps/unix/sysv/linux/sysconf.c +++ b/sysdeps/unix/sysv/linux/sysconf.c @@ -17,6 +17,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include #include #include #include @@ -26,10 +27,6 @@ static long int posix_sysconf (int name); -/* Define this first, so it can be inlined. */ -#define __sysconf static posix_sysconf -#include - /* Get the value of the system variable NAME. */ long int @@ -83,3 +80,8 @@ __sysconf (int name) } return posix_sysconf (name); } + +/* Now the POSIX version. */ +#undef __sysconf +#define __sysconf static posix_sysconf +#include -- cgit 1.4.1