@@ -59,17 +59,11 @@ endif # $(AUTOCONF) = no
subdir_objs subdir_stubs subdir_testclean \
$(addprefix install-, no-libc.a bin lib data headers others)
-headers := limits.h values.h features.h gnu-versions.h \
- bits/xopen_lim.h gnu/libc-version.h stdc-predef.h \
- bits/libc-header-start.h
+headers :=
echo-headers: subdir_echo-headers
-# The headers are in the include directory.
-subdir-dirs = include
-vpath %.h $(subdir-dirs)
-
-# What to install.
+# This header is created during the install process. See below.
install-others = $(inst_includedir)/gnu/stubs.h
install-bin-script =
@@ -311,34 +305,6 @@ $(objpfx)check-local-headers.out: scripts/check-local-headers.sh
"$(includedir)" "$(objpfx)" < /dev/null > $@; \
$(evaluate-test)
-ifneq "$(headers)" ""
-# Special test of all the installed headers in this directory.
-tests-special += $(objpfx)check-installed-headers-c.out
-libof-check-installed-headers-c := testsuite
-$(objpfx)check-installed-headers-c.out: \
- scripts/check-installed-headers.sh $(headers)
- $(SHELL) $(..)scripts/check-installed-headers.sh c \
- "$(CC) $(filter-out -std=%,$(CFLAGS)) -D_ISOMAC $(+includes)" \
- $(headers) > $@; \
- $(evaluate-test)
-
-ifneq "$(CXX)" ""
-tests-special += $(objpfx)check-installed-headers-cxx.out
-libof-check-installed-headers-cxx := testsuite
-$(objpfx)check-installed-headers-cxx.out: \
- scripts/check-installed-headers.sh $(headers)
- $(SHELL) $(..)scripts/check-installed-headers.sh c++ \
- "$(CXX) $(filter-out -std=%,$(CXXFLAGS)) -D_ISOMAC $(+includes)" \
- $(headers) > $@; \
- $(evaluate-test)
-endif # $(CXX)
-
-tests-special += $(objpfx)check-wrapper-headers.out
-$(objpfx)check-wrapper-headers.out: scripts/check-wrapper-headers.py $(headers)
- $(PYTHON) $< --root=. --subdir=. $(headers) \
- --generated $(common-generated) > $@; $(evaluate-test)
-endif # $(headers)
-
define summarize-tests
@egrep -v '^(PASS|XFAIL):' $(objpfx)$1 || true
@echo "Summary of test results$2:"
dissimilarity index 100%
@@ -?,? +1 @@
+#include <misc/bits/xopen_lim.h>
dissimilarity index 100%
@@ -?,? +1 @@
+#include <misc/features.h>
dissimilarity index 100%
@@ -?,? +1 @@
+#include <misc/gnu-versions.h>
dissimilarity index 100%
@@ -?,? +1 @@
+#include <misc/gnu/libc-version.h>
dissimilarity index 100%
@@ -?,? +1 @@
+#include <misc/limits.h>
dissimilarity index 100%
@@ -?,? +1 @@
+#include <misc/stdc-predef.h>
dissimilarity index 100%
@@ -?,? +1 @@
+#include <misc/values.h>
@@ -23,21 +23,22 @@ subdir := misc
include ../Makeconfig
-headers := sys/uio.h bits/uio-ext.h bits/uio_lim.h \
- sys/ioctl.h bits/ioctls.h bits/ioctl-types.h \
- sys/ptrace.h sys/file.h sys/dir.h sys/cdefs.h \
- ar.h a.out.h libgen.h stab.h bits/stab.def sgtty.h \
- ttyent.h paths.h sys/reboot.h \
- sys/mman.h sys/param.h bits/param.h \
- fstab.h mntent.h search.h err.h error.h \
- sys/queue.h sysexits.h syscall.h sys/syscall.h sys/swap.h \
- sys/select.h sys/sysinfo.h \
- regexp.h bits/select.h bits/mman.h sys/xattr.h \
- syslog.h sys/syslog.h \
- bits/syslog.h bits/syslog-ldbl.h bits/syslog-path.h bits/error.h \
- bits/select2.h bits/hwcap.h sys/auxv.h \
- sys/sysmacros.h bits/sysmacros.h bits/types/struct_iovec.h \
- bits/err-ldbl.h bits/error-ldbl.h
+headers := \
+ a.out.h ar.h err.h error.h features.h fstab.h gnu-versions.h \
+ libgen.h limits.h mntent.h paths.h regexp.h search.h sgtty.h \
+ stab.h stdc-predef.h syscall.h sysexits.h syslog.h ttyent.h \
+ values.h \
+ bits/err-ldbl.h bits/error-ldbl.h bits/error.h bits/hwcap.h \
+ bits/ioctl-types.h bits/ioctls.h bits/libc-header-start.h \
+ bits/mman.h bits/param.h bits/select.h bits/select2.h \
+ bits/stab.def bits/syslog-ldbl.h bits/syslog-path.h \
+ bits/syslog.h bits/sysmacros.h bits/types/struct_iovec.h \
+ bits/uio-ext.h bits/uio_lim.h bits/xopen_lim.h \
+ gnu/libc-version.h \
+ sys/auxv.h sys/cdefs.h sys/dir.h sys/file.h sys/ioctl.h \
+ sys/mman.h sys/param.h sys/ptrace.h sys/queue.h sys/reboot.h \
+ sys/select.h sys/swap.h sys/syscall.h sys/sysinfo.h \
+ sys/syslog.h sys/sysmacros.h sys/uio.h sys/xattr.h
routines := brk sbrk sstk ioctl \
readv writev preadv preadv64 pwritev pwritev64 \
similarity index 100%
copy from include/bits/xopen_lim.h
copy to misc/bits/xopen_lim.h
similarity index 100%
copy from include/features.h
copy to misc/features.h
similarity index 100%
copy from include/gnu-versions.h
copy to misc/gnu-versions.h
similarity index 100%
copy from include/gnu/libc-version.h
copy to misc/gnu/libc-version.h
similarity index 100%
copy from include/limits.h
copy to misc/limits.h
similarity index 100%
copy from include/stdc-predef.h
copy to misc/stdc-predef.h
similarity index 100%
copy from include/values.h
copy to misc/values.h
@@ -1,6 +1,7 @@
/* This file generated by errnos.awk from
errno.texi
stdc-predef.h
+ ../misc/stdc-predef.h
libc-symbols.h
mach/message.h
mach/kern_return.h