mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-02 21:06:41 +03:00
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.
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user