about summary refs log tree commit diff
path: root/posix/posix-envs.def
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 /posix/posix-envs.def
parent67cf3c6ed0b1119bbddc1c6f46af486fc1ad2432 (diff)
downloadglibc-41868acc3a55bad110e79a7a40c030b39c5480bb.tar.gz
glibc-41868acc3a55bad110e79a7a40c030b39c5480bb.tar.xz
glibc-41868acc3a55bad110e79a7a40c030b39c5480bb.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 'posix/posix-envs.def')
-rw-r--r--posix/posix-envs.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/posix-envs.def b/posix/posix-envs.def
index 9047d0ce89..0b33e02884 100644
--- a/posix/posix-envs.def
+++ b/posix/posix-envs.def
@@ -42,7 +42,8 @@
    defined.  These are called with arguments V5, V6, V7 before and
    after the relevant groups of environments.  */
 
-#include "confdefs.h"
+#define NEED_SPEC_ARRAY 0
+#include <confdefs.h>
 
 START_ENV_GROUP (V7)