]> git.ipfire.org Git - thirdparty/glibc.git/commit
Use conf.list to generate spec array siddhesh/posix-wundef
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 1 Oct 2014 09:06:03 +0000 (14:36 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 15 Dec 2014 05:33:33 +0000 (11:03 +0530)
commit41868acc3a55bad110e79a7a40c030b39c5480bb
tree9153591b1d908064b0533a33abb65bad7f99f3f3
parent67cf3c6ed0b1119bbddc1c6f46af486fc1ad2432
Use conf.list to generate spec array

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.
posix/conf.list
posix/confstr.c
posix/getconf.c
posix/posix-envs.def
scripts/gen-conf.awk
sysdeps/posix/sysconf.c