summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sysconf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-03-12 17:40:52 +0000
committerUlrich Drepper <drepper@redhat.com>2004-03-12 17:40:52 +0000
commitbf067910f598d44f4cf37474a2654258ec03d773 (patch)
treeea2d4d79a91ee64b90588c456211d159834d5c34 /sysdeps/unix/sysv/linux/sysconf.c
parent7780fd933c674642ce4c607b9c386a72d7653dfe (diff)
downloadglibc-bf067910f598d44f4cf37474a2654258ec03d773.tar.gz
glibc-bf067910f598d44f4cf37474a2654258ec03d773.tar.xz
glibc-bf067910f598d44f4cf37474a2654258ec03d773.zip
Update.
2004-03-12  Ulrich Drepper  <drepper@redhat.com>

	* 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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sysconf.c')
-rw-r--r--sysdeps/unix/sysv/linux/sysconf.c10
1 files changed, 6 insertions, 4 deletions
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 <errno.h>
 #include <fcntl.h>
 #include <stdlib.h>
 #include <sysdep.h>
@@ -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 <sysdeps/posix/sysconf.c>
-
 
 /* 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 <sysdeps/posix/sysconf.c>