about summary refs log tree commit diff
path: root/sysdeps/posix/sysconf.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2014-10-01 14:36:03 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-12-15 11:03:33 +0530
commit41868acc3a55bad110e79a7a40c030b39c5480bb (patch)
tree9153591b1d908064b0533a33abb65bad7f99f3f3 /sysdeps/posix/sysconf.c
parent67cf3c6ed0b1119bbddc1c6f46af486fc1ad2432 (diff)
downloadglibc-siddhesh/posix-wundef.tar.gz
glibc-siddhesh/posix-wundef.tar.xz
glibc-siddhesh/posix-wundef.zip
Use conf.list to generate spec array siddhesh/posix-wundef
This patch adds support to generate the spec array in getconf from the
conf.list.  The generated code is mostly unchanged.  the only changes
are due to the change in layout of the spec and val arrays in the ELF.

The val array can also be auto-generated from conf.list once the
remaining macros are added to it.

	* posix/conf.list (SPEC:XBS5): Add sysconf prefix.
	* posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
	* posix/posix-envs.def: Likewise.
	* sysdeps/posix/sysconf.c: Likewise.
	* posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
	(specs): Remove array.
	* scripts/gen-conf.awk: Support generation of specs array.
Diffstat (limited to 'sysdeps/posix/sysconf.c')
-rw-r--r--sysdeps/posix/sysconf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
index c7b748b171..bff59f4d4d 100644
--- a/sysdeps/posix/sysconf.c
+++ b/sysdeps/posix/sysconf.c
@@ -31,6 +31,7 @@
 #include <sys/types.h>
 #include <regex.h>
 
+#define NEED_SPEC_ARRAY 0
 #include <confdefs.h>