aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/aliases.h1
-rw-r--r--include/alloca.h1
-rw-r--r--include/argp.h1
-rw-r--r--include/argz.h1
-rw-r--r--include/arpa/ftp.h1
-rw-r--r--include/arpa/inet.h1
-rw-r--r--include/arpa/nameser.h1
-rw-r--r--include/arpa/telnet.h1
-rw-r--r--include/arpa/tftp.h1
-rw-r--r--include/assert.h1
-rw-r--r--include/bits/mathcalls.h1
-rw-r--r--include/bits/posix1_lim.h1
-rw-r--r--include/bits/posix2_lim.h1
-rw-r--r--include/bits/stab.def1
-rw-r--r--include/bits/xopen_lim.h94
-rw-r--r--include/ctype.h1
-rw-r--r--include/db.h1
-rw-r--r--include/dirent.h1
-rw-r--r--include/dlfcn.h1
-rw-r--r--include/elf.h1
-rw-r--r--include/endian.h1
-rw-r--r--include/envz.h1
-rw-r--r--include/err.h1
-rw-r--r--include/errno.h73
-rw-r--r--include/error.h1
-rw-r--r--include/fcntl.h1
-rw-r--r--include/features.h235
-rw-r--r--include/fnmatch.h1
-rw-r--r--include/ftw.h1
-rw-r--r--include/getopt.h1
-rw-r--r--include/glob.h1
-rw-r--r--include/gnu-versions.h53
-rw-r--r--include/grp.h1
-rw-r--r--include/langinfo.h1
-rw-r--r--include/libc-symbols.h322
-rw-r--r--include/libgen.h1
-rw-r--r--include/libintl.h1
-rw-r--r--include/limits.h123
-rw-r--r--include/linewrap.h1
-rw-r--r--include/link.h1
-rw-r--r--include/locale.h1
-rw-r--r--include/malloc.h1
-rw-r--r--include/math.h1
-rw-r--r--include/mcheck.h1
-rw-r--r--include/memory.h1
-rw-r--r--include/monetary.h1
-rw-r--r--include/netdb.h1
-rw-r--r--include/netgroup.h1
-rw-r--r--include/netinet/ether.h1
-rw-r--r--include/netinet/in.h1
-rw-r--r--include/nlist.h1
-rw-r--r--include/nss.h1
-rw-r--r--include/nsswitch.h1
-rw-r--r--include/obstack.h1
-rw-r--r--include/poll.h1
-rw-r--r--include/printf.h1
-rw-r--r--include/protocols/routed.h1
-rw-r--r--include/protocols/rwhod.h1
-rw-r--r--include/protocols/talkd.h1
-rw-r--r--include/protocols/timed.h1
-rw-r--r--include/pwd.h1
-rw-r--r--include/regex.h1
-rw-r--r--include/resolv.h1
-rw-r--r--include/rpc/auth_unix.h1
-rw-r--r--include/rpc/clnt.h1
-rw-r--r--include/rpc/netdb.h1
-rw-r--r--include/rpc/pmap_clnt.h1
-rw-r--r--include/rpc/pmap_prot.h1
-rw-r--r--include/rpc/pmap_rmt.h1
-rw-r--r--include/rpc/rpc.h1
-rw-r--r--include/rpc/rpc_msg.h1
-rw-r--r--include/rpc/svc.h1
-rw-r--r--include/rpc/svc_auth.h1
-rw-r--r--include/rpc/types.h1
-rw-r--r--include/rpc/xdr.h1
-rw-r--r--include/sched.h1
-rw-r--r--include/search.h1
-rw-r--r--include/set-hooks.h57
-rw-r--r--include/setjmp.h1
-rw-r--r--include/sgtty.h1
-rw-r--r--include/shadow.h1
-rw-r--r--include/signal.h1
-rw-r--r--include/stab.h1
-rw-r--r--include/stdio.h5
-rw-r--r--include/stdlib.h1
-rw-r--r--include/string.h1
-rw-r--r--include/strings.h1
-rw-r--r--include/sys/bitypes.h1
-rw-r--r--include/sys/cdefs.h1
-rw-r--r--include/sys/dir.h1
-rw-r--r--include/sys/errno.h1
-rw-r--r--include/sys/fcntl.h1
-rw-r--r--include/sys/file.h1
-rw-r--r--include/sys/gmon.h1
-rw-r--r--include/sys/ioctl.h1
-rw-r--r--include/sys/ipc.h1
-rw-r--r--include/sys/msg.h1
-rw-r--r--include/sys/poll.h1
-rw-r--r--include/sys/queue.h1
-rw-r--r--include/sys/resource.h1
-rw-r--r--include/sys/select.h1
-rw-r--r--include/sys/sem.h1
-rw-r--r--include/sys/shm.h1
-rw-r--r--include/sys/signal.h1
-rw-r--r--include/sys/socket.h1
-rw-r--r--include/sys/stat.h1
-rw-r--r--include/sys/statfs.h1
-rw-r--r--include/sys/syslog.h1
-rw-r--r--include/sys/termios.h1
-rw-r--r--include/sys/time.h1
-rw-r--r--include/sys/timeb.h1
-rw-r--r--include/sys/times.h1
-rw-r--r--include/sys/types.h1
-rw-r--r--include/sys/uio.h1
-rw-r--r--include/sys/un.h1
-rw-r--r--include/sys/unistd.h1
-rw-r--r--include/sys/utsname.h1
-rw-r--r--include/sys/vlimit.h1
-rw-r--r--include/sys/vtimes.h1
-rw-r--r--include/sys/wait.h1
-rw-r--r--include/syscall.h1
-rw-r--r--include/sysexits.h1
-rw-r--r--include/syslog.h1
-rw-r--r--include/tar.h1
-rw-r--r--include/termios.h1
-rw-r--r--include/time.h1
-rw-r--r--include/ttyent.h1
-rw-r--r--include/unistd.h1
-rw-r--r--include/utime.h1
-rw-r--r--include/utmp.h1
-rw-r--r--include/values.h69
-rw-r--r--include/wchar.h1
-rw-r--r--include/wctype.h1
-rw-r--r--include/wordexp.h1
-rw-r--r--include/xlocale.h1
135 files changed, 1157 insertions, 0 deletions
diff --git a/include/aliases.h b/include/aliases.h
new file mode 100644
index 0000000000..cfe459d02d
--- /dev/null
+++ b/include/aliases.h
@@ -0,0 +1 @@
+#include <inet/aliases.h>
diff --git a/include/alloca.h b/include/alloca.h
new file mode 100644
index 0000000000..34eeeab78e
--- /dev/null
+++ b/include/alloca.h
@@ -0,0 +1 @@
+#include <stdlib/alloca.h>
diff --git a/include/argp.h b/include/argp.h
new file mode 100644
index 0000000000..92be5f90f1
--- /dev/null
+++ b/include/argp.h
@@ -0,0 +1 @@
+#include <argp/argp.h>
diff --git a/include/argz.h b/include/argz.h
new file mode 100644
index 0000000000..179e693106
--- /dev/null
+++ b/include/argz.h
@@ -0,0 +1 @@
+#include <string/argz.h>
diff --git a/include/arpa/ftp.h b/include/arpa/ftp.h
new file mode 100644
index 0000000000..c716d68156
--- /dev/null
+++ b/include/arpa/ftp.h
@@ -0,0 +1 @@
+#include <inet/arpa/ftp.h>
diff --git a/include/arpa/inet.h b/include/arpa/inet.h
new file mode 100644
index 0000000000..65733b618c
--- /dev/null
+++ b/include/arpa/inet.h
@@ -0,0 +1 @@
+#include <inet/arpa/inet.h>
diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h
new file mode 100644
index 0000000000..944fe732a6
--- /dev/null
+++ b/include/arpa/nameser.h
@@ -0,0 +1 @@
+#include <resolv/arpa/nameser.h>
diff --git a/include/arpa/telnet.h b/include/arpa/telnet.h
new file mode 100644
index 0000000000..742c04cfe3
--- /dev/null
+++ b/include/arpa/telnet.h
@@ -0,0 +1 @@
+#include <inet/arpa/telnet.h>
diff --git a/include/arpa/tftp.h b/include/arpa/tftp.h
new file mode 100644
index 0000000000..21d5197f24
--- /dev/null
+++ b/include/arpa/tftp.h
@@ -0,0 +1 @@
+#include <inet/arpa/tftp.h>
diff --git a/include/assert.h b/include/assert.h
new file mode 100644
index 0000000000..e2fa7020c1
--- /dev/null
+++ b/include/assert.h
@@ -0,0 +1 @@
+#include <assert/assert.h>
diff --git a/include/bits/mathcalls.h b/include/bits/mathcalls.h
new file mode 100644
index 0000000000..d75b598cc7
--- /dev/null
+++ b/include/bits/mathcalls.h
@@ -0,0 +1 @@
+#include <math/bits/mathcalls.h>
diff --git a/include/bits/posix1_lim.h b/include/bits/posix1_lim.h
new file mode 100644
index 0000000000..c3c67d1c84
--- /dev/null
+++ b/include/bits/posix1_lim.h
@@ -0,0 +1 @@
+#include <posix/bits/posix1_lim.h>
diff --git a/include/bits/posix2_lim.h b/include/bits/posix2_lim.h
new file mode 100644
index 0000000000..49a539438c
--- /dev/null
+++ b/include/bits/posix2_lim.h
@@ -0,0 +1 @@
+#include <posix/bits/posix2_lim.h>
diff --git a/include/bits/stab.def b/include/bits/stab.def
new file mode 100644
index 0000000000..d153eba4de
--- /dev/null
+++ b/include/bits/stab.def
@@ -0,0 +1 @@
+#include <misc/bits/stab.def>
diff --git a/include/bits/xopen_lim.h b/include/bits/xopen_lim.h
new file mode 100644
index 0000000000..c8b847fbc2
--- /dev/null
+++ b/include/bits/xopen_lim.h
@@ -0,0 +1,94 @@
+/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/*
+ * Never include this file directly; use <limits.h> instead.
+ */
+
+/* Additional definitions from X/Open Portability Guide, Issue 4, Version 2
+ System Interfaces and Headers, 4.16 <limits.h>
+
+ Please note only the values which are not greater than the minimum
+ stated in the standard document are listed. The `sysconf' functions
+ should be used to obtain the actual value. */
+
+#ifndef _XOPEN_LIM_H
+
+#define _XOPEN_LIM_H 1
+
+/* We do not provide fixed values for
+
+ ARG_MAX Maximum length of argument to the `exec' function
+ including environment data.
+
+ ATEXIT_MAX Maximum number of functions that may be registered
+ with `atexit'.
+
+ CHILD_MAX Maximum number of simultaneous processes per real
+ user ID.
+
+ OPEN_MAX Maximum number of files that one process can have open
+ at anyone time.
+
+ PAGESIZE
+ PAGE_SIZE Size of bytes of a page.
+
+ PASS_MAX Maximum number of significant bytes in a password.
+*/
+
+
+/* Maximum number of `iovec' structures that one process has available
+ for use with `readv' or writev'. */
+#define IOV_MAX _XOPEN_IOV_MAX
+
+/* The number of streams that one process can have open at one time. */
+#define STREAM_MAX _POSIX_STREAM_MAX
+
+/* Maximum number of bytes supported for the name of a time zone. */
+#define TZNAME_MAX _POSIX_TZNAME_MAX
+
+
+/* Maximum number of `iovec' structures that one process has available
+ for use with `readv' or writev'. */
+#define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV
+
+
+/* Maximum value of `digit' in calls to the `printf' and `scanf'
+ functions. We have no limit, so return a reasonable value. */
+#define NL_ARGMAX _POSIX_ARG_MAX
+
+/* Maximum number of bytes in a `LANG' name. We have no limit. */
+#define NL_LANGMAX _POSIX2_LINE_MAX
+
+/* Maximum message number. We have no limit. */
+#define NL_MSGMAX INT_MAX
+
+/* Maximum number of bytes in N-to-1 collation mapping. We have no
+ limit. */
+#define NL_NMAX INT_MAX
+
+/* Maximum set number. We have no limit. */
+#define NL_SETMAX INT_MAX
+
+/* Maximum number of bytes in a message. We have no limit. */
+#define NL_TEXTMAX INT_MAX
+
+/* Default process priority. */
+#define NZERO 20
+
+#endif /* bits/xopen_lim.h */
diff --git a/include/ctype.h b/include/ctype.h
new file mode 100644
index 0000000000..7b51e1f5eb
--- /dev/null
+++ b/include/ctype.h
@@ -0,0 +1 @@
+#include <ctype/ctype.h>
diff --git a/include/db.h b/include/db.h
new file mode 100644
index 0000000000..a04f7746ef
--- /dev/null
+++ b/include/db.h
@@ -0,0 +1 @@
+#include <db/db.h>
diff --git a/include/dirent.h b/include/dirent.h
new file mode 100644
index 0000000000..f59a6b778b
--- /dev/null
+++ b/include/dirent.h
@@ -0,0 +1 @@
+#include <dirent/dirent.h>
diff --git a/include/dlfcn.h b/include/dlfcn.h
new file mode 100644
index 0000000000..92804a1c1c
--- /dev/null
+++ b/include/dlfcn.h
@@ -0,0 +1 @@
+#include <elf/dlfcn.h>
diff --git a/include/elf.h b/include/elf.h
new file mode 100644
index 0000000000..8a1764f956
--- /dev/null
+++ b/include/elf.h
@@ -0,0 +1 @@
+#include <elf/elf.h>
diff --git a/include/endian.h b/include/endian.h
new file mode 100644
index 0000000000..cacf2fe9b7
--- /dev/null
+++ b/include/endian.h
@@ -0,0 +1 @@
+#include <string/endian.h>
diff --git a/include/envz.h b/include/envz.h
new file mode 100644
index 0000000000..0a476ed62a
--- /dev/null
+++ b/include/envz.h
@@ -0,0 +1 @@
+#include <string/envz.h>
diff --git a/include/err.h b/include/err.h
new file mode 100644
index 0000000000..915720aa4c
--- /dev/null
+++ b/include/err.h
@@ -0,0 +1 @@
+#include <misc/err.h>
diff --git a/include/errno.h b/include/errno.h
new file mode 100644
index 0000000000..23e0b8f9a9
--- /dev/null
+++ b/include/errno.h
@@ -0,0 +1,73 @@
+/* Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/*
+ * ISO C Standard: 4.1.3 Errors <errno.h>
+ */
+
+#ifndef _ERRNO_H
+
+/* The includer defined __need_Emath if he wants only the definitions
+ of EDOM and ERANGE, and not everything else. */
+#ifndef __need_Emath
+#define _ERRNO_H 1
+#include <features.h>
+#endif
+
+__BEGIN_DECLS
+
+/* Get the error number constants from the system-specific file.
+ This file will test __need_Emath and _ERRNO_H. */
+#include <bits/errno.h>
+#undef __need_Emath
+
+#ifdef _ERRNO_H
+
+/* Declare the `errno' variable, unless it's defined as a macro by
+ bits/errno.h. This is the case in GNU, where it is a per-thread
+ variable. This redeclaration using the macro still works, but it
+ will be a function declaration without a prototype and may trigger
+ a -Wstrict-prototypes warning. */
+#ifndef errno
+extern int errno;
+#endif
+
+#ifdef __USE_GNU
+
+/* The full and simple forms of the name with which the program was
+ invoked. These variables are set up automatically at startup based on
+ the value of ARGV[0] (this works only if you use GNU ld). */
+extern char *program_invocation_name, *program_invocation_short_name;
+#endif /* __USE_GNU */
+#endif /* _ERRNO_H */
+
+__END_DECLS
+
+#endif /* _ERRNO_H */
+
+/* The Hurd <bits/errno.h> defines `error_t' as an enumerated type so
+ that printing `error_t' values in the debugger shows the names. We
+ might need this definition sometimes even if this file was included
+ before. */
+#if defined __USE_GNU || defined __need_error_t
+# ifndef __error_t_defined
+typedef int error_t;
+# define __error_t_defined 1
+# endif
+# undef __need_error_t
+#endif
diff --git a/include/error.h b/include/error.h
new file mode 100644
index 0000000000..70f3192fa6
--- /dev/null
+++ b/include/error.h
@@ -0,0 +1 @@
+#include <misc/error.h>
diff --git a/include/fcntl.h b/include/fcntl.h
new file mode 100644
index 0000000000..bac1e8685d
--- /dev/null
+++ b/include/fcntl.h
@@ -0,0 +1 @@
+#include <io/fcntl.h>
diff --git a/include/features.h b/include/features.h
new file mode 100644
index 0000000000..d1f4ae3d29
--- /dev/null
+++ b/include/features.h
@@ -0,0 +1,235 @@
+/* Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#ifndef _FEATURES_H
+#define _FEATURES_H 1
+
+/* These are defined by the user (or the compiler)
+ to specify the desired environment:
+
+ __STRICT_ANSI__ ISO Standard C.
+ _ISOC9X_SOURCE Extensions to ISO C 89 from ISO C 9x.
+ _POSIX_SOURCE IEEE Std 1003.1.
+ _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
+ if >=199309L, add IEEE Std 1003.1b-1993
+ _XOPEN_SOURCE Includes POSIX and XPG things.
+ _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
+ _BSD_SOURCE ISO C, POSIX, and 4.3BSD things.
+ _SVID_SOURCE ISO C, POSIX, and SVID things.
+ _GNU_SOURCE All of the above, plus GNU extensions.
+ _REENTRANT Select additionally reentrant object.
+ _THREAD_SAFE Same as _REENTRANT, often used by other systems.
+
+ The `-ansi' switch to the GNU C compiler defines __STRICT_ANSI__.
+ If none of these are defined, the default is all but _GNU_SOURCE.
+ If more than one of these are defined, they accumulate.
+ For example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE
+ together give you ISO C, 1003.1, and 1003.2, but nothing else.
+
+ These are defined by this file and are used by the
+ header files to decide what to declare or define:
+
+ __USE_ISOC9X Define ISO C 9X things.
+ __USE_POSIX Define IEEE Std 1003.1 things.
+ __USE_POSIX2 Define IEEE Std 1003.2 things.
+ __USE_POSIX199309 Define IEEE Std 1003.1b things.
+ __USE_XOPEN Define XPG things.
+ __USE_XOPEN_EXTENDED Define X/Open Unix things.
+ __USE_BSD Define 4.3BSD things.
+ __USE_SVID Define SVID things.
+ __USE_MISC Define things common to BSD and System V Unix.
+ __USE_GNU Define GNU extensions.
+ __USE_REENTRANT Define reentrant/thread-safe *_r functions.
+ __FAVOR_BSD Favor 4.3BSD things in cases of conflict.
+
+ The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
+ defined by this file unconditionally. `__GNU_LIBRARY__' is provided
+ only for compatibility. All new code should use the other symbols
+ to test for features.
+
+ All macros listed above as possibly being defined by this file are
+ explicitly undefined if they are not explicitly defined.
+ Feature-test macros that are not defined by the user or compiler
+ but are implied by the other feature-test macros defined (or by the
+ lack of any definitions) are defined by the file. */
+
+
+/* Undefine everything, so we get a clean slate. */
+#undef __USE_ISOC9X
+#undef __USE_POSIX
+#undef __USE_POSIX2
+#undef __USE_POSIX199309
+#undef __USE_XOPEN
+#undef __USE_XOPEN_EXTENDED
+#undef __USE_BSD
+#undef __USE_SVID
+#undef __USE_MISC
+#undef __USE_GNU
+#undef __USE_REENTRANT
+#undef __FAVOR_BSD
+#undef __KERNEL_STRICT_NAMES
+
+/* Suppress kernel-name space pollution unless user expressedly asks
+ for it. */
+#ifndef _LOOSE_KERNEL_NAMES
+# define __KERNEL_STRICT_NAMES
+#endif
+
+/* Always use ISO C things. */
+#define __USE_ANSI 1
+
+
+/* If _BSD_SOURCE was defined by the user, favor BSD over POSIX. */
+#if defined _BSD_SOURCE && \
+ !(defined _POSIX_SOURCE || defined _POSIX_C_SOURCE || \
+ defined _XOPEN_SOURCE || defined _XOPEN_SOURCE_EXTENDED || \
+ defined _GNU_SOURCE || defined _SVID_SOURCE)
+# define __FAVOR_BSD 1
+#endif
+
+/* If _GNU_SOURCE was defined by the user, turn on all the other features. */
+#ifdef _GNU_SOURCE
+# undef _ISOC9X_SOURCE
+# define _ISOC9X_SOURCE 1
+# undef _POSIX_SOURCE
+# define _POSIX_SOURCE 1
+# undef _POSIX_C_SOURCE
+# define _POSIX_C_SOURCE 199309L
+# undef _XOPEN_SOURCE
+# define _XOPEN_SOURCE 1
+# undef _XOPEN_SOURCE_EXTENDED
+# define _XOPEN_SOURCE_EXTENDED 1
+# undef _BSD_SOURCE
+# define _BSD_SOURCE 1
+# undef _SVID_SOURCE
+# define _SVID_SOURCE 1
+#endif
+
+/* If nothing (other than _GNU_SOURCE) is defined,
+ define _BSD_SOURCE and _SVID_SOURCE. */
+#if (!defined __STRICT_ANSI__ && !defined _ISOC9X_SOURCE && \
+ !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE && \
+ !defined _XOPEN_SOURCE && !defined _XOPEN_SOURCE_EXTENDED && \
+ !defined _BSD_SOURCE && !defined _SVID_SOURCE)
+# define _BSD_SOURCE 1
+# define _SVID_SOURCE 1
+#endif
+
+/* This is to enable the ISO C 9x extension. It will go away as soon
+ as this standard is officially released. */
+#ifdef _ISOC9X_SOURCE
+# define __USE_ISOC9X 1
+#endif
+
+/* If none of the ANSI/POSIX macros are defined, use POSIX.1 and POSIX.2
+ (and IEEE Std 1003.1b-1993 unless _XOPEN_SOURCE is defined). */
+#if (!defined __STRICT_ANSI__ && !defined _POSIX_SOURCE && \
+ !defined _POSIX_C_SOURCE)
+# define _POSIX_SOURCE 1
+# ifdef _XOPEN_SOURCE
+# define _POSIX_C_SOURCE 2
+# else
+# define _POSIX_C_SOURCE 199309L
+# endif
+#endif
+
+#if defined _POSIX_SOURCE || _POSIX_C_SOURCE >= 1 || defined _XOPEN_SOURCE
+# define __USE_POSIX 1
+#endif
+
+#if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 2 || defined _XOPEN_SOURCE
+# define __USE_POSIX2 1
+#endif
+
+#if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 199309L
+# define __USE_POSIX199309 1
+#endif
+
+#ifdef _XOPEN_SOURCE
+# define __USE_XOPEN 1
+# ifdef _XOPEN_SOURCE_EXTENDED
+# define __USE_XOPEN_EXTENDED 1
+# endif
+#endif
+
+#if defined _BSD_SOURCE || defined _SVID_SOURCE
+# define __USE_MISC 1
+#endif
+
+#ifdef _BSD_SOURCE
+# define __USE_BSD 1
+#endif
+
+#ifdef _SVID_SOURCE
+# define __USE_SVID 1
+#endif
+
+#ifdef _GNU_SOURCE
+# define __USE_GNU 1
+#endif
+
+#if defined _REENTRANT || defined _THREAD_SAFE
+# define __USE_REENTRANT 1
+#endif
+
+/* We do support the IEC 559 math functionality, real and complex. */
+#define __STDC_IEC_559__ 1
+#define __STDC_IEC_559_COMPLEX__ 1
+
+/* This macro indicates that the installed library is the GNU C Library.
+ For historic reasons the value now is 6 and this will stay from now
+ on. The use of this variable is deprecated. Use __GLIBC__ and
+ __GLIBC_MINOR__ now (see below) when you want to test for a specific
+ GNU C library version and use the values in <gnu/lib-names.h> to get
+ the sonames of the shared libraries. */
+#undef __GNU_LIBRARY__
+#define __GNU_LIBRARY__ 6
+
+/* Major and minor version number of the GNU C library package. Use
+ these macros to test for features in specific releases. */
+#define __GLIBC__ 2
+#define __GLIBC_MINOR__ 1
+
+
+#if !defined __GNUC__ || __GNUC__ < 2
+/* In GCC version 2, (__extension__ EXPR) will not complain
+ about GCC extensions used in EXPR under -ansi or -pedantic. */
+# define __extension__
+#endif
+
+
+/* This is here only because every header file already includes this one. */
+#ifndef __ASSEMBLER__
+# include <sys/cdefs.h>
+#endif
+
+/* This is here only because every header file already includes this one. */
+#ifndef _LIBC
+/* Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
+ <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
+ which will always return failure (and set errno to ENOSYS).
+
+ We avoid including <gnu/stubs.h> when compiling the C library itself to
+ avoid a dependency loop. stubs.h depends on every object file. If
+ this #include were done for the library source code, then every object
+ file would depend on stubs.h. */
+
+# include <gnu/stubs.h>
+#endif
+
+#endif /* features.h */
diff --git a/include/fnmatch.h b/include/fnmatch.h
new file mode 100644
index 0000000000..b12b786df0
--- /dev/null
+++ b/include/fnmatch.h
@@ -0,0 +1 @@
+#include <posix/fnmatch.h>
diff --git a/include/ftw.h b/include/ftw.h
new file mode 100644
index 0000000000..4fb654cf22
--- /dev/null
+++ b/include/ftw.h
@@ -0,0 +1 @@
+#include <io/ftw.h>
diff --git a/include/getopt.h b/include/getopt.h
new file mode 100644
index 0000000000..74ca6d453a
--- /dev/null
+++ b/include/getopt.h
@@ -0,0 +1 @@
+#include <posix/getopt.h>
diff --git a/include/glob.h b/include/glob.h
new file mode 100644
index 0000000000..ce047bb177
--- /dev/null
+++ b/include/glob.h
@@ -0,0 +1 @@
+#include <posix/glob.h>
diff --git a/include/gnu-versions.h b/include/gnu-versions.h
new file mode 100644
index 0000000000..7085895a0a
--- /dev/null
+++ b/include/gnu-versions.h
@@ -0,0 +1,53 @@
+/* Header with interface version macros for library pieces copied elsewhere.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#ifndef _GNU_VERSIONS_H
+#define _GNU_VERSIONS_H 1
+
+/* This file exists to define these few macros. Each specifies a version
+ number associated with the library interface of a piece of the C library
+ which is also distributed with other GNU packages. These pieces are
+ both part of the GNU C library and also distributed with other GNU
+ packages so those packages may use their facilities on systems lacking
+ the GNU C library. The source files for each piece surround all their
+ code with `#ifndef ELIDE_CODE' after defining it with this:
+
+ #define OBSTACK_INTERFACE_VERSION 1
+ #if !defined (_LIBC) && defined (__GNU_LIBRARY__) && __GNU_LIBRARY__ > 1
+ #include <gnu-versions.h>
+ #if _GNU_OBSTACK_INTERFACE_VERSION == OBSTACK_INTERFACE_VERSION
+ #define ELIDE_CODE
+ #endif
+ #endif
+
+ This allows those one to avoid compiling those files when part of a GNU
+ package not libc, on a system using a GNU C library that supports the
+ same interface.
+
+ Please preserve the format of the comments after each macro. And
+ remember, if any of these versions change, the libc.so major version
+ number must change too (so avoid it)! */
+
+#define _GNU_OBSTACK_INTERFACE_VERSION 2 /* vs malloc/obstack.c */
+#define _GNU_REGEX_INTERFACE_VERSION 1 /* vs posix/regex.c */
+#define _GNU_GLOB_INTERFACE_VERSION 1 /* vs posix/glob.c */
+#define _GNU_GETOPT_INTERFACE_VERSION 2 /* vs posix/getopt.c and
+ posix/getopt1.c */
+
+#endif /* gnu-versions.h */
diff --git a/include/grp.h b/include/grp.h
new file mode 100644
index 0000000000..250092cbf1
--- /dev/null
+++ b/include/grp.h
@@ -0,0 +1 @@
+#include <grp/grp.h>
diff --git a/include/langinfo.h b/include/langinfo.h
new file mode 100644
index 0000000000..2a81c6ddaf
--- /dev/null
+++ b/include/langinfo.h
@@ -0,0 +1 @@
+#include <locale/langinfo.h>
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
new file mode 100644
index 0000000000..07a35f1b53
--- /dev/null
+++ b/include/libc-symbols.h
@@ -0,0 +1,322 @@
+/* Support macros for making weak and strong aliases for symbols,
+ and for using symbol sets and linker warnings with GNU ld.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#ifndef _LIBC_SYMBOLS_H
+#define _LIBC_SYMBOLS_H 1
+
+/* This file's macros are included implicitly in the compilation of every
+ file in the C library by -imacros.
+
+ We include config.h which is generated by configure.
+ It should define for us the following symbols:
+
+ * HAVE_ASM_SET_DIRECTIVE if we have `.set B, A' instead of `A = B'.
+ * ASM_GLOBAL_DIRECTIVE with `.globl' or `.global'.
+ * HAVE_GNU_LD if using GNU ld, with support for weak symbols in a.out,
+ and for symbol set and warning messages extensions in a.out and ELF.
+ * HAVE_ELF if using ELF, which supports weak symbols using `.weak'.
+ * HAVE_ASM_WEAK_DIRECTIVE if we have weak symbols using `.weak'.
+ * HAVE_ASM_WEAKEXT_DIRECTIVE if we have weak symbols using `.weakext'.
+
+ */
+
+/* This is defined for the compilation of all C library code. features.h
+ tests this to avoid inclusion of stubs.h while compiling the library,
+ before stubs.h has been generated. Some library code that is shared
+ with other packages also tests this symbol to see if it is being
+ compiled as part of the C library. We must define this before including
+ config.h, because it makes some definitions conditional on whether libc
+ itself is being compiled, or just some generator program. */
+#define _LIBC 1
+
+/* Enable declarations of GNU extensions, since we are compiling them. */
+#define _GNU_SOURCE 1
+/* And we also need the data for the reentrant functions. */
+#define _REENTRANT 1
+
+#include <config.h>
+/*
+
+*/
+
+#ifndef ASSEMBLER
+
+/* Define the macros `_' and `N_' for conveniently marking translatable
+ strings in the libc source code. */
+
+#define N_(msgid) msgid
+
+#include <libintl.h>
+extern const char _libc_intl_domainname[];
+
+#ifdef dgettext
+/* This is defined as an optimizing macro, so use it. */
+#define _(msgid) dgettext (_libc_intl_domainname, (msgid))
+#else
+/* Be sure to use only the __ name when `dgettext' is a plain function
+ instead of an optimizing macro. */
+#define _(msgid) __dgettext (_libc_intl_domainname, (msgid))
+#endif
+
+#endif
+
+/*
+
+*/
+/* The symbols in all the user (non-_) macros are C symbols.
+ HAVE_GNU_LD without HAVE_ELF implies a.out. */
+
+#if defined (HAVE_ASM_WEAK_DIRECTIVE) || defined (HAVE_ASM_WEAKEXT_DIRECTIVE)
+#define HAVE_WEAK_SYMBOLS
+#endif
+
+#ifndef __SYMBOL_PREFIX
+#ifdef NO_UNDERSCORES
+#define __SYMBOL_PREFIX
+#else
+#define __SYMBOL_PREFIX "_"
+#endif
+#endif
+
+#ifndef C_SYMBOL_NAME
+#ifdef NO_UNDERSCORES
+#define C_SYMBOL_NAME(name) name
+#else
+#define C_SYMBOL_NAME(name) _##name
+#endif
+#endif
+
+
+/* Define ALIAS as a strong alias for ORIGINAL. */
+#ifdef HAVE_ASM_SET_DIRECTIVE
+#define strong_alias_asm(original, alias) \
+ ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias); \
+ .set C_SYMBOL_NAME (alias),C_SYMBOL_NAME (original)
+#ifdef ASSEMBLER
+#define strong_alias(original, alias) strong_alias_asm (original, alias)
+#else
+#define strong_alias(original, alias) \
+ asm (__string_1 (ASM_GLOBAL_DIRECTIVE) " " __SYMBOL_PREFIX #alias "\n" \
+ ".set " __SYMBOL_PREFIX #alias "," __SYMBOL_PREFIX #original);
+#endif
+#else
+#define strong_alias_asm(original, alias) \
+ ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias); \
+ C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
+#ifdef ASSEMBLER
+#define strong_alias(original, alias) strong_alias_asm (original, alias)
+#else
+#define strong_alias(original, alias) \
+ asm (__string_1 (ASM_GLOBAL_DIRECTIVE) " " __SYMBOL_PREFIX #alias "\n" \
+ __SYMBOL_PREFIX #alias " = " __SYMBOL_PREFIX #original);
+#endif
+#endif
+
+/* Helper macros used above. */
+#define __string_1(x) __string_0(x)
+#define __string_0(x) #x
+
+
+#ifdef HAVE_WEAK_SYMBOLS
+
+#ifdef ASSEMBLER
+
+#ifdef HAVE_ASM_WEAKEXT_DIRECTIVE
+
+/* Define ALIAS as a weak alias for ORIGINAL.
+ If weak aliases are not available, this defines a strong alias. */
+#define weak_alias(original, alias) \
+ .weakext C_SYMBOL_NAME (alias), C_SYMBOL_NAME (original)
+
+/* Declare SYMBOL as weak undefined symbol (resolved to 0 if not defined). */
+#define weak_extern(symbol) \
+ .weakext C_SYMBOL_NAME (symbol)
+
+#else /* ! HAVE_ASM_WEAKEXT_DIRECTIVE */
+
+/* Define ALIAS as a weak alias for ORIGINAL.
+ If weak aliases are not available, this defines a strong alias. */
+#define weak_alias(original, alias) \
+ .weak C_SYMBOL_NAME (alias); \
+ C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
+
+
+/* Declare SYMBOL as weak undefined symbol (resolved to 0 if not defined). */
+#define weak_extern(symbol) \
+ .weak C_SYMBOL_NAME (symbol)
+
+#endif /* ! HAVE_ASM_WEAKEXT_DIRECTIVE */
+
+#else /* ! ASSEMBLER */
+
+#ifdef HAVE_ASM_WEAKEXT_DIRECTIVE
+#define weak_extern_asm(symbol) asm (".weakext " __SYMBOL_PREFIX #symbol);
+#define weak_alias_asm(original, alias) \
+ asm (".weakext " __SYMBOL_PREFIX #alias ", " __SYMBOL_PREFIX #original);
+#else /* ! HAVE_ASM_WEAKEXT_DIRECTIVE */
+#define weak_extern_asm(symbol) asm (".weak " __SYMBOL_PREFIX #symbol);
+#define weak_alias_asm(original, alias) \
+ asm (".weak " __SYMBOL_PREFIX #alias "\n" \
+ __SYMBOL_PREFIX #alias " = " __SYMBOL_PREFIX #original);
+#endif /* ! HAVE_ASM_WEAKEXT_DIRECTIVE */
+
+#define weak_alias(o, a) weak_alias_asm (o, a)
+#define weak_extern(symbol) weak_extern_asm (symbol)
+
+#endif /* ! ASSEMBLER */
+#else
+#define weak_alias(original, alias) strong_alias(original, alias)
+#define weak_extern(symbol) /* Do nothing; the ref will be strong. */
+#endif
+
+
+#if (!defined (ASSEMBLER) && \
+ (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)))
+/* GCC 2.7 and later has special syntax for weak symbols and aliases.
+ Using that is better when possible, because the compiler and assembler
+ are better clued in to what we are doing. */
+#undef strong_alias
+#define strong_alias(name, aliasname) \
+ extern __typeof (name) aliasname __attribute__ ((alias (#name)));
+
+#ifdef HAVE_WEAK_SYMBOLS
+#undef weak_alias
+#define weak_alias(name, aliasname) \
+ extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
+
+/* This comes between the return type and function name in
+ a function definition to make that definition weak. */
+#define weak_function __attribute__ ((weak))
+#define weak_const_function __attribute__ ((weak, __const__))
+
+#endif /* HAVE_WEAK_SYMBOLS. */
+#endif /* Not ASSEMBLER, and GCC 2.7 or later. */
+
+
+#ifndef weak_function
+/* If we do not have the __attribute__ ((weak)) syntax, there is no way we
+ can define functions as weak symbols. The compiler will emit a `.globl'
+ directive for the function symbol, and a `.weak' directive in addition
+ will produce an error from the assembler. */
+#define weak_function /* empty */
+#define weak_const_function /* empty */
+#endif
+
+
+/* When a reference to SYMBOL is encountered, the linker will emit a
+ warning message MSG. */
+#ifdef HAVE_GNU_LD
+#ifdef HAVE_ELF
+
+/* We want the .gnu.warning.SYMBOL section to be unallocated. */
+#ifdef HAVE_ASM_PREVIOUS_DIRECTIVE
+#define __make_section_unallocated(section_string) \
+ asm(".section " section_string "; .previous");
+#elif defined (HAVE_ASM_POPSECTION_DIRECTIVE)
+#define __make_section_unallocated(section_string) \
+ asm(".pushsection " section_string "; .popsection");
+#else
+#define __make_section_unallocated(section_string)
+#endif
+
+#define link_warning(symbol, msg) \
+ __make_section_unallocated (".gnu.warning." #symbol) \
+ static const char __evoke_link_warning_##symbol[] \
+ __attribute__ ((section (".gnu.warning." #symbol))) = msg;
+#else
+#define link_warning(symbol, msg) \
+ asm(".stabs \"" msg "\",30,0,0,0\n" \
+ ".stabs \"" __SYMBOL_PREFIX #symbol "\",1,0,0,0\n");
+#endif
+#else
+/* We will never be heard; they will all die horribly. */
+#define link_warning(symbol, msg)
+#endif
+
+/* A canned warning for sysdeps/stub functions. */
+#define stub_warning(name) \
+ link_warning (name, \
+ "warning: " #name " is not implemented and will always fail")
+
+/*
+
+*/
+
+#ifdef HAVE_GNU_LD
+
+/* Symbol set support macros. */
+
+#ifdef HAVE_ELF
+
+/* Make SYMBOL, which is in the text segment, an element of SET. */
+#define text_set_element(set, symbol) _elf_set_element(set, symbol)
+/* Make SYMBOL, which is in the data segment, an element of SET. */
+#define data_set_element(set, symbol) _elf_set_element(set, symbol)
+/* Make SYMBOL, which is in the bss segment, an element of SET. */
+#define bss_set_element(set, symbol) _elf_set_element(set, symbol)
+
+/* These are all done the same way in ELF.
+ There is a new section created for each set. */
+#ifdef PIC
+/* When building a shared library, make the set section writable,
+ because it will need to be relocated at run time anyway. */
+#define _elf_set_element(set, symbol) \
+ static const void *__elf_set_##set##_element_##symbol##__ \
+ __attribute__ ((unused, section (#set))) = &(symbol)
+#else
+#define _elf_set_element(set, symbol) \
+ static const void *const __elf_set_##set##_element_##symbol##__ \
+ __attribute__ ((unused, section (#set))) = &(symbol)
+#endif
+
+/* Define SET as a symbol set. This may be required (it is in a.out) to
+ be able to use the set's contents. */
+#define symbol_set_define(set) symbol_set_declare(set)
+
+/* Declare SET for use in this module, if defined in another module. */
+#define symbol_set_declare(set) \
+ extern void *const __start_##set __attribute__ ((__weak__)); \
+ extern void *const __stop_##set __attribute__ ((__weak__)); \
+ weak_extern (__start_##set) weak_extern (__stop_##set)
+
+/* Return a pointer (void *const *) to the first element of SET. */
+#define symbol_set_first_element(set) (&__start_##set)
+
+/* Return true iff PTR (a void *const *) has been incremented
+ past the last element in SET. */
+#define symbol_set_end_p(set, ptr) ((ptr) >= &__stop_##set)
+
+#else /* Not ELF: a.out. */
+
+#define text_set_element(set, symbol) \
+ asm(".stabs \"" __SYMBOL_PREFIX #set "\",23,0,0," __SYMBOL_PREFIX #symbol)
+#define data_set_element(set, symbol) \
+ asm(".stabs \"" __SYMBOL_PREFIX #set "\",25,0,0," __SYMBOL_PREFIX #symbol)
+#define bss_set_element(set, symbol) ?error Must use initialized data.
+#define symbol_set_define(set) void *const (set)[1];
+#define symbol_set_declare(set) extern void *const (set)[1];
+
+#define symbol_set_first_element(set) &(set)[1]
+#define symbol_set_end_p(set, ptr) (*(ptr) == 0)
+
+#endif /* ELF. */
+#endif /* Have GNU ld. */
+
+#endif /* libc-symbols.h */
diff --git a/include/libgen.h b/include/libgen.h
new file mode 100644
index 0000000000..4795d8e561
--- /dev/null
+++ b/include/libgen.h
@@ -0,0 +1 @@
+#include <misc/libgen.h>
diff --git a/include/libintl.h b/include/libintl.h
new file mode 100644
index 0000000000..be1062ca03
--- /dev/null
+++ b/include/libintl.h
@@ -0,0 +1 @@
+#include <intl/libintl.h>
diff --git a/include/limits.h b/include/limits.h
new file mode 100644
index 0000000000..31d8792d9d
--- /dev/null
+++ b/include/limits.h
@@ -0,0 +1,123 @@
+/* Copyright (C) 1991, 1992, 1996 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/*
+ * ISO C Standard: 4.14/2.2.4.2 Limits of integral types <limits.h>
+ */
+
+#include <features.h>
+
+#ifdef __USE_POSIX
+/* POSIX adds things to <limits.h>. */
+# include <bits/posix1_lim.h>
+#endif
+
+#ifdef __USE_POSIX2
+# include <bits/posix2_lim.h>
+#endif
+
+#ifdef __USE_XOPEN
+# include <bits/xopen_lim.h>
+#endif
+
+
+#if __GNUC__ >= 2
+
+ /* Get the compiler's limits.h, which defines all the ANSI constants. */
+ #ifndef _LIBC_LIMITS_H_
+ #define _LIBC_LIMITS_H_ /* This tells it not to look for another. */
+ #endif
+ #ifndef _GCC_LIMITS_H_ /* This is what GCC's file defines. */
+ #include_next <limits.h>
+ #endif
+
+#else /* Not GCC 2. */
+
+/* We only protect from multiple inclusion here, because all the other
+ #include's protect themselves, and in GCC 2 we may #include_next through
+ multiple copies of this file before we get to GCC's. */
+# ifndef _LIMITS_H
+# define _LIMITS_H 1
+
+/* We don't have #include_next.
+ Define ANSI <limits.h> for standard 32-bit words. */
+
+/* These assume 8-bit `char's, 16-bit `short int's,
+ and 32-bit `int's and `long int's. */
+
+/* Number of bits in a `char'. */
+# define CHAR_BIT 8
+
+/* Maximum length of any multibyte character in any locale. */
+# define MB_LEN_MAX 6
+
+/* Minimum and maximum values a `signed char' can hold. */
+# define SCHAR_MIN (-128)
+# define SCHAR_MAX 127
+
+/* Maximum value an `unsigned char' can hold. (Minimum is 0.) */
+# define UCHAR_MAX 255
+
+/* Minimum and maximum values a `char' can hold. */
+# ifdef __CHAR_UNSIGNED__
+# define CHAR_MIN 0
+# define CHAR_MAX UCHAR_MAX
+# else
+# define CHAR_MIN SCHAR_MIN
+# define CHAR_MAX SCHAR_MAX
+# endif
+
+/* Minimum and maximum values a `signed short int' can hold. */
+# define SHRT_MIN (-32768)
+# define SHRT_MAX 32767
+
+/* Maximum value an `unsigned short int' can hold. (Minimum is 0.) */
+# define USHRT_MAX 65535
+
+/* Minimum and maximum values a `signed int' can hold. */
+# define INT_MIN (- INT_MAX - 1)
+# define INT_MAX 2147483647
+
+/* Maximum value an `unsigned int' can hold. (Minimum is 0.) */
+# ifdef __STDC__
+# define UINT_MAX 4294967295U
+# else
+# define UINT_MAX 4294967295
+# endif
+
+/* Minimum and maximum values a `signed long int' can hold. */
+# ifdef __alpha__
+# define LONG_MAX 9223372036854775807L
+# else
+# define LONG_MAX 2147483647L
+# endif
+# define LONG_MIN (- LONG_MAX - 1L)
+
+/* Maximum value an `unsigned long int' can hold. (Minimum is 0.) */
+# ifdef __alpha__
+# define ULONG_MAX 18446744073709551615UL
+# else
+# ifdef __STDC__
+# define ULONG_MAX 4294967295UL
+# else
+# define ULONG_MAX 4294967295L
+# endif
+# endif
+
+# endif /* limits.h */
+#endif /* GCC 2. */
diff --git a/include/linewrap.h b/include/linewrap.h
new file mode 100644
index 0000000000..03ca090301
--- /dev/null
+++ b/include/linewrap.h
@@ -0,0 +1 @@
+#include "stdio/linewrap.h"
diff --git a/include/link.h b/include/link.h
new file mode 100644
index 0000000000..0999f0bbfc
--- /dev/null
+++ b/include/link.h
@@ -0,0 +1 @@
+#include <elf/link.h>
diff --git a/include/locale.h b/include/locale.h
new file mode 100644
index 0000000000..6e0bd916dc
--- /dev/null
+++ b/include/locale.h
@@ -0,0 +1 @@
+#include <locale/locale.h>
diff --git a/include/malloc.h b/include/malloc.h
new file mode 100644
index 0000000000..448e0a8c6b
--- /dev/null
+++ b/include/malloc.h
@@ -0,0 +1 @@
+#include <malloc/malloc.h>
diff --git a/include/math.h b/include/math.h
new file mode 100644
index 0000000000..f837293f81
--- /dev/null
+++ b/include/math.h
@@ -0,0 +1 @@
+#include <math/math.h>
diff --git a/include/mcheck.h b/include/mcheck.h
new file mode 100644
index 0000000000..90a48d5f9a
--- /dev/null
+++ b/include/mcheck.h
@@ -0,0 +1 @@
+#include <malloc/mcheck.h>
diff --git a/include/memory.h b/include/memory.h
new file mode 100644
index 0000000000..1ec3e63fc9
--- /dev/null
+++ b/include/memory.h
@@ -0,0 +1 @@
+#include <string/memory.h>
diff --git a/include/monetary.h b/include/monetary.h
new file mode 100644
index 0000000000..4735dc6c8a
--- /dev/null
+++ b/include/monetary.h
@@ -0,0 +1 @@
+#include <stdlib/monetary.h>
diff --git a/include/netdb.h b/include/netdb.h
new file mode 100644
index 0000000000..e2e1868cbb
--- /dev/null
+++ b/include/netdb.h
@@ -0,0 +1 @@
+#include <resolv/netdb.h>
diff --git a/include/netgroup.h b/include/netgroup.h
new file mode 100644
index 0000000000..4b2b284cdb
--- /dev/null
+++ b/include/netgroup.h
@@ -0,0 +1 @@
+#include <inet/netgroup.h>
diff --git a/include/netinet/ether.h b/include/netinet/ether.h
new file mode 100644
index 0000000000..60ef5a3abf
--- /dev/null
+++ b/include/netinet/ether.h
@@ -0,0 +1 @@
+#include <inet/netinet/ether.h>
diff --git a/include/netinet/in.h b/include/netinet/in.h
new file mode 100644
index 0000000000..9139cfaeee
--- /dev/null
+++ b/include/netinet/in.h
@@ -0,0 +1 @@
+#include <inet/netinet/in.h>
diff --git a/include/nlist.h b/include/nlist.h
new file mode 100644
index 0000000000..897a93c7fe
--- /dev/null
+++ b/include/nlist.h
@@ -0,0 +1 @@
+#include <misc/nlist.h>
diff --git a/include/nss.h b/include/nss.h
new file mode 100644
index 0000000000..0541335c18
--- /dev/null
+++ b/include/nss.h
@@ -0,0 +1 @@
+#include <nss/nss.h>
diff --git a/include/nsswitch.h b/include/nsswitch.h
new file mode 100644
index 0000000000..a876d23185
--- /dev/null
+++ b/include/nsswitch.h
@@ -0,0 +1 @@
+#include <nss/nsswitch.h>
diff --git a/include/obstack.h b/include/obstack.h
new file mode 100644
index 0000000000..2339cbc4d5
--- /dev/null
+++ b/include/obstack.h
@@ -0,0 +1 @@
+#include <malloc/obstack.h>
diff --git a/include/poll.h b/include/poll.h
new file mode 100644
index 0000000000..778488accb
--- /dev/null
+++ b/include/poll.h
@@ -0,0 +1 @@
+#include <io/poll.h>
diff --git a/include/printf.h b/include/printf.h
new file mode 100644
index 0000000000..777e958fb9
--- /dev/null
+++ b/include/printf.h
@@ -0,0 +1 @@
+#include <stdio-common/printf.h>
diff --git a/include/protocols/routed.h b/include/protocols/routed.h
new file mode 100644
index 0000000000..2e97bfd187
--- /dev/null
+++ b/include/protocols/routed.h
@@ -0,0 +1 @@
+#include <protocols/routed.h>
diff --git a/include/protocols/rwhod.h b/include/protocols/rwhod.h
new file mode 100644
index 0000000000..6fc35a0c41
--- /dev/null
+++ b/include/protocols/rwhod.h
@@ -0,0 +1 @@
+#include <protocols/rwhod.h>
diff --git a/include/protocols/talkd.h b/include/protocols/talkd.h
new file mode 100644
index 0000000000..4fd7a34fdf
--- /dev/null
+++ b/include/protocols/talkd.h
@@ -0,0 +1 @@
+#include <protocols/talkd.h>
diff --git a/include/protocols/timed.h b/include/protocols/timed.h
new file mode 100644
index 0000000000..58dbafeaf2
--- /dev/null
+++ b/include/protocols/timed.h
@@ -0,0 +1 @@
+#include <protocols/timed.h>
diff --git a/include/pwd.h b/include/pwd.h
new file mode 100644
index 0000000000..28d59a6a0a
--- /dev/null
+++ b/include/pwd.h
@@ -0,0 +1 @@
+#include <pwd/pwd.h>
diff --git a/include/regex.h b/include/regex.h
new file mode 100644
index 0000000000..22bfc89e77
--- /dev/null
+++ b/include/regex.h
@@ -0,0 +1 @@
+#include <posix/regex.h>
diff --git a/include/resolv.h b/include/resolv.h
new file mode 100644
index 0000000000..95b9eebef8
--- /dev/null
+++ b/include/resolv.h
@@ -0,0 +1 @@
+#include <resolv/resolv.h>
diff --git a/include/rpc/auth_unix.h b/include/rpc/auth_unix.h
new file mode 100644
index 0000000000..36299392ba
--- /dev/null
+++ b/include/rpc/auth_unix.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/auth_unix.h>
diff --git a/include/rpc/clnt.h b/include/rpc/clnt.h
new file mode 100644
index 0000000000..b4493d1d90
--- /dev/null
+++ b/include/rpc/clnt.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/clnt.h>
diff --git a/include/rpc/netdb.h b/include/rpc/netdb.h
new file mode 100644
index 0000000000..a9d93e13ad
--- /dev/null
+++ b/include/rpc/netdb.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/netdb.h>
diff --git a/include/rpc/pmap_clnt.h b/include/rpc/pmap_clnt.h
new file mode 100644
index 0000000000..dfe537c96f
--- /dev/null
+++ b/include/rpc/pmap_clnt.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/pmap_clnt.h>
diff --git a/include/rpc/pmap_prot.h b/include/rpc/pmap_prot.h
new file mode 100644
index 0000000000..06d7d378cf
--- /dev/null
+++ b/include/rpc/pmap_prot.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/pmap_prot.h>
diff --git a/include/rpc/pmap_rmt.h b/include/rpc/pmap_rmt.h
new file mode 100644
index 0000000000..1585c13039
--- /dev/null
+++ b/include/rpc/pmap_rmt.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/pmap_rmt.h>
diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h
new file mode 100644
index 0000000000..1b5c5cd8de
--- /dev/null
+++ b/include/rpc/rpc.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/rpc.h>
diff --git a/include/rpc/rpc_msg.h b/include/rpc/rpc_msg.h
new file mode 100644
index 0000000000..3c63730c1f
--- /dev/null
+++ b/include/rpc/rpc_msg.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/rpc_msg.h>
diff --git a/include/rpc/svc.h b/include/rpc/svc.h
new file mode 100644
index 0000000000..68aa67b429
--- /dev/null
+++ b/include/rpc/svc.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/svc.h>
diff --git a/include/rpc/svc_auth.h b/include/rpc/svc_auth.h
new file mode 100644
index 0000000000..e2c226312e
--- /dev/null
+++ b/include/rpc/svc_auth.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/svc_auth.h>
diff --git a/include/rpc/types.h b/include/rpc/types.h
new file mode 100644
index 0000000000..53df7e666b
--- /dev/null
+++ b/include/rpc/types.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/types.h>
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
new file mode 100644
index 0000000000..4c9083d08a
--- /dev/null
+++ b/include/rpc/xdr.h
@@ -0,0 +1 @@
+#include <sunrpc/rpc/xdr.h>
diff --git a/include/sched.h b/include/sched.h
new file mode 100644
index 0000000000..b9bebc9dee
--- /dev/null
+++ b/include/sched.h
@@ -0,0 +1 @@
+#include "posix/sched.h"
diff --git a/include/search.h b/include/search.h
new file mode 100644
index 0000000000..ff24508172
--- /dev/null
+++ b/include/search.h
@@ -0,0 +1 @@
+#include <misc/search.h>
diff --git a/include/set-hooks.h b/include/set-hooks.h
new file mode 100644
index 0000000000..995bdf4120
--- /dev/null
+++ b/include/set-hooks.h
@@ -0,0 +1,57 @@
+/* Macros for using symbol sets for running lists of functions.
+ Copyright (C) 1994, 1995, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#ifndef _SET_HOOKS_H
+#define _SET_HOOKS_H 1
+
+#define __need_size_t
+#include <stddef.h>
+#include <sys/cdefs.h>
+
+/* Define a hook variable called NAME. Functions put on this hook take
+ arguments described by PROTO. Use `text_set_element (NAME, FUNCTION)'
+ from gnu-stabs.h to add a function to the hook. */
+
+#define DEFINE_HOOK(NAME, PROTO) \
+ typedef void __##NAME##_hook_function_t PROTO; \
+ symbol_set_define (NAME)
+
+#define DECLARE_HOOK(NAME, PROTO) \
+ typedef void __##NAME##_hook_function_t PROTO;\
+ symbol_set_declare (NAME)
+
+/* Run all the functions hooked on the set called NAME.
+ Each function is called like this: `function ARGS'. */
+
+#define RUN_HOOK(NAME, ARGS) \
+do { \
+ void *const *ptr; \
+ for (ptr = symbol_set_first_element (NAME); \
+ ! symbol_set_end_p (NAME, ptr); ++ptr) \
+ (*(__##NAME##_hook_function_t *) *ptr) ARGS; \
+} while (0)
+
+/* Define a hook variable with NAME and PROTO, and a function called RUNNER
+ which calls each function on the hook in turn, with ARGS. */
+
+#define DEFINE_HOOK_RUNNER(name, runner, proto, args) \
+DEFINE_HOOK (name, proto); void runner proto { RUN_HOOK (name, args); }
+
+
+#endif /* set-hooks.h */
diff --git a/include/setjmp.h b/include/setjmp.h
new file mode 100644
index 0000000000..c78a964566
--- /dev/null
+++ b/include/setjmp.h
@@ -0,0 +1 @@
+#include <setjmp/setjmp.h>
diff --git a/include/sgtty.h b/include/sgtty.h
new file mode 100644
index 0000000000..ffb62401cb
--- /dev/null
+++ b/include/sgtty.h
@@ -0,0 +1 @@
+#include <misc/sgtty.h>
diff --git a/include/shadow.h b/include/shadow.h
new file mode 100644
index 0000000000..4848197be1
--- /dev/null
+++ b/include/shadow.h
@@ -0,0 +1 @@
+#include <shadow/shadow.h>
diff --git a/include/signal.h b/include/signal.h
new file mode 100644
index 0000000000..d9939c4e83
--- /dev/null
+++ b/include/signal.h
@@ -0,0 +1 @@
+#include <signal/signal.h>
diff --git a/include/stab.h b/include/stab.h
new file mode 100644
index 0000000000..2e278fc778
--- /dev/null
+++ b/include/stab.h
@@ -0,0 +1 @@
+#include <misc/stab.h>
diff --git a/include/stdio.h b/include/stdio.h
new file mode 100644
index 0000000000..457eabe32f
--- /dev/null
+++ b/include/stdio.h
@@ -0,0 +1,5 @@
+#ifdef USE_IN_LIBIO
+#include <libio/stdio.h>
+#else
+#include <stdio/stdio.h>
+#endif
diff --git a/include/stdlib.h b/include/stdlib.h
new file mode 100644
index 0000000000..c0887a99e9
--- /dev/null
+++ b/include/stdlib.h
@@ -0,0 +1 @@
+#include <stdlib/stdlib.h>
diff --git a/include/string.h b/include/string.h
new file mode 100644
index 0000000000..b557c65f39
--- /dev/null
+++ b/include/string.h
@@ -0,0 +1 @@
+#include <string/string.h>
diff --git a/include/strings.h b/include/strings.h
new file mode 100644
index 0000000000..b1bb339d3d
--- /dev/null
+++ b/include/strings.h
@@ -0,0 +1 @@
+#include <string/strings.h>
diff --git a/include/sys/bitypes.h b/include/sys/bitypes.h
new file mode 100644
index 0000000000..137945172d
--- /dev/null
+++ b/include/sys/bitypes.h
@@ -0,0 +1 @@
+#include <resolv/sys/bitypes.h>
diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h
new file mode 100644
index 0000000000..200abb4f02
--- /dev/null
+++ b/include/sys/cdefs.h
@@ -0,0 +1 @@
+#include <misc/sys/cdefs.h>
diff --git a/include/sys/dir.h b/include/sys/dir.h
new file mode 100644
index 0000000000..5453e743fc
--- /dev/null
+++ b/include/sys/dir.h
@@ -0,0 +1 @@
+#include <misc/sys/dir.h>
diff --git a/include/sys/errno.h b/include/sys/errno.h
new file mode 100644
index 0000000000..339f4fc10c
--- /dev/null
+++ b/include/sys/errno.h
@@ -0,0 +1 @@
+#include <errno.h>
diff --git a/include/sys/fcntl.h b/include/sys/fcntl.h
new file mode 100644
index 0000000000..dec2157be6
--- /dev/null
+++ b/include/sys/fcntl.h
@@ -0,0 +1 @@
+#include <io/sys/fcntl.h>
diff --git a/include/sys/file.h b/include/sys/file.h
new file mode 100644
index 0000000000..fb3cd7544e
--- /dev/null
+++ b/include/sys/file.h
@@ -0,0 +1 @@
+#include <misc/sys/file.h>
diff --git a/include/sys/gmon.h b/include/sys/gmon.h
new file mode 100644
index 0000000000..987589fcfe
--- /dev/null
+++ b/include/sys/gmon.h
@@ -0,0 +1 @@
+#include <gmon/sys/gmon.h>
diff --git a/include/sys/ioctl.h b/include/sys/ioctl.h
new file mode 100644
index 0000000000..8cc77757f6
--- /dev/null
+++ b/include/sys/ioctl.h
@@ -0,0 +1 @@
+#include <misc/sys/ioctl.h>
diff --git a/include/sys/ipc.h b/include/sys/ipc.h
new file mode 100644
index 0000000000..7bd257684b
--- /dev/null
+++ b/include/sys/ipc.h
@@ -0,0 +1 @@
+#include <sysvipc/sys/ipc.h>
diff --git a/include/sys/msg.h b/include/sys/msg.h
new file mode 100644
index 0000000000..0f8026dda1
--- /dev/null
+++ b/include/sys/msg.h
@@ -0,0 +1 @@
+#include <sysvipc/sys/msg.h>
diff --git a/include/sys/poll.h b/include/sys/poll.h
new file mode 100644
index 0000000000..5231e6845e
--- /dev/null
+++ b/include/sys/poll.h
@@ -0,0 +1 @@
+#include <io/sys/poll.h>
diff --git a/include/sys/queue.h b/include/sys/queue.h
new file mode 100644
index 0000000000..5c9823b7eb
--- /dev/null
+++ b/include/sys/queue.h
@@ -0,0 +1 @@
+#include <misc/sys/queue.h>
diff --git a/include/sys/resource.h b/include/sys/resource.h
new file mode 100644
index 0000000000..33e6f4de9e
--- /dev/null
+++ b/include/sys/resource.h
@@ -0,0 +1 @@
+#include <resource/sys/resource.h>
diff --git a/include/sys/select.h b/include/sys/select.h
new file mode 100644
index 0000000000..f793af7bf0
--- /dev/null
+++ b/include/sys/select.h
@@ -0,0 +1 @@
+#include <misc/sys/select.h>
diff --git a/include/sys/sem.h b/include/sys/sem.h
new file mode 100644
index 0000000000..b0fb201bd0
--- /dev/null
+++ b/include/sys/sem.h
@@ -0,0 +1 @@
+#include <sysvipc/sys/sem.h>
diff --git a/include/sys/shm.h b/include/sys/shm.h
new file mode 100644
index 0000000000..1878fcc5be
--- /dev/null
+++ b/include/sys/shm.h
@@ -0,0 +1 @@
+#include <sysvipc/sys/shm.h>
diff --git a/include/sys/signal.h b/include/sys/signal.h
new file mode 100644
index 0000000000..b2110df1ae
--- /dev/null
+++ b/include/sys/signal.h
@@ -0,0 +1 @@
+#include <signal/sys/signal.h>
diff --git a/include/sys/socket.h b/include/sys/socket.h
new file mode 100644
index 0000000000..999a683016
--- /dev/null
+++ b/include/sys/socket.h
@@ -0,0 +1 @@
+#include <socket/sys/socket.h>
diff --git a/include/sys/stat.h b/include/sys/stat.h
new file mode 100644
index 0000000000..37a526069f
--- /dev/null
+++ b/include/sys/stat.h
@@ -0,0 +1 @@
+#include <io/sys/stat.h>
diff --git a/include/sys/statfs.h b/include/sys/statfs.h
new file mode 100644
index 0000000000..d42df4b65d
--- /dev/null
+++ b/include/sys/statfs.h
@@ -0,0 +1 @@
+#include <io/sys/statfs.h>
diff --git a/include/sys/syslog.h b/include/sys/syslog.h
new file mode 100644
index 0000000000..247528b430
--- /dev/null
+++ b/include/sys/syslog.h
@@ -0,0 +1 @@
+#include <misc/sys/syslog.h>
diff --git a/include/sys/termios.h b/include/sys/termios.h
new file mode 100644
index 0000000000..27e4de5f4b
--- /dev/null
+++ b/include/sys/termios.h
@@ -0,0 +1 @@
+#include <termios/sys/termios.h>
diff --git a/include/sys/time.h b/include/sys/time.h
new file mode 100644
index 0000000000..5595a957a0
--- /dev/null
+++ b/include/sys/time.h
@@ -0,0 +1 @@
+#include <time/sys/time.h>
diff --git a/include/sys/timeb.h b/include/sys/timeb.h
new file mode 100644
index 0000000000..9f4509c35e
--- /dev/null
+++ b/include/sys/timeb.h
@@ -0,0 +1 @@
+#include <time/sys/timeb.h>
diff --git a/include/sys/times.h b/include/sys/times.h
new file mode 100644
index 0000000000..16ca91138a
--- /dev/null
+++ b/include/sys/times.h
@@ -0,0 +1 @@
+#include <posix/sys/times.h>
diff --git a/include/sys/types.h b/include/sys/types.h
new file mode 100644
index 0000000000..716732f4d4
--- /dev/null
+++ b/include/sys/types.h
@@ -0,0 +1 @@
+#include <posix/sys/types.h>
diff --git a/include/sys/uio.h b/include/sys/uio.h
new file mode 100644
index 0000000000..03afd84b87
--- /dev/null
+++ b/include/sys/uio.h
@@ -0,0 +1 @@
+#include <misc/sys/uio.h>
diff --git a/include/sys/un.h b/include/sys/un.h
new file mode 100644
index 0000000000..bdbee99980
--- /dev/null
+++ b/include/sys/un.h
@@ -0,0 +1 @@
+#include <socket/sys/un.h>
diff --git a/include/sys/unistd.h b/include/sys/unistd.h
new file mode 100644
index 0000000000..8ca19e5516
--- /dev/null
+++ b/include/sys/unistd.h
@@ -0,0 +1 @@
+#include <posix/sys/unistd.h>
diff --git a/include/sys/utsname.h b/include/sys/utsname.h
new file mode 100644
index 0000000000..ff81bdf48e
--- /dev/null
+++ b/include/sys/utsname.h
@@ -0,0 +1 @@
+#include <posix/sys/utsname.h>
diff --git a/include/sys/vlimit.h b/include/sys/vlimit.h
new file mode 100644
index 0000000000..8a76d2fd00
--- /dev/null
+++ b/include/sys/vlimit.h
@@ -0,0 +1 @@
+#include <resource/sys/vlimit.h>
diff --git a/include/sys/vtimes.h b/include/sys/vtimes.h
new file mode 100644
index 0000000000..dd666ca443
--- /dev/null
+++ b/include/sys/vtimes.h
@@ -0,0 +1 @@
+#include <resource/sys/vtimes.h>
diff --git a/include/sys/wait.h b/include/sys/wait.h
new file mode 100644
index 0000000000..379d5cc7a5
--- /dev/null
+++ b/include/sys/wait.h
@@ -0,0 +1 @@
+#include <posix/sys/wait.h>
diff --git a/include/syscall.h b/include/syscall.h
new file mode 100644
index 0000000000..8c53cfb204
--- /dev/null
+++ b/include/syscall.h
@@ -0,0 +1 @@
+#include <misc/syscall.h>
diff --git a/include/sysexits.h b/include/sysexits.h
new file mode 100644
index 0000000000..139e3cfa13
--- /dev/null
+++ b/include/sysexits.h
@@ -0,0 +1 @@
+#include <misc/sysexits.h>
diff --git a/include/syslog.h b/include/syslog.h
new file mode 100644
index 0000000000..4cfb7723bb
--- /dev/null
+++ b/include/syslog.h
@@ -0,0 +1 @@
+#include <misc/syslog.h>
diff --git a/include/tar.h b/include/tar.h
new file mode 100644
index 0000000000..05efa1fc0e
--- /dev/null
+++ b/include/tar.h
@@ -0,0 +1 @@
+#include <posix/tar.h>
diff --git a/include/termios.h b/include/termios.h
new file mode 100644
index 0000000000..3f754ac900
--- /dev/null
+++ b/include/termios.h
@@ -0,0 +1 @@
+#include <termios/termios.h>
diff --git a/include/time.h b/include/time.h
new file mode 100644
index 0000000000..b2a33bf5c3
--- /dev/null
+++ b/include/time.h
@@ -0,0 +1 @@
+#include <time/time.h>
diff --git a/include/ttyent.h b/include/ttyent.h
new file mode 100644
index 0000000000..ba790e3542
--- /dev/null
+++ b/include/ttyent.h
@@ -0,0 +1 @@
+#include <misc/ttyent.h>
diff --git a/include/unistd.h b/include/unistd.h
new file mode 100644
index 0000000000..77901d9846
--- /dev/null
+++ b/include/unistd.h
@@ -0,0 +1 @@
+#include <posix/unistd.h>
diff --git a/include/utime.h b/include/utime.h
new file mode 100644
index 0000000000..6dadc53ad6
--- /dev/null
+++ b/include/utime.h
@@ -0,0 +1 @@
+#include <io/utime.h>
diff --git a/include/utmp.h b/include/utmp.h
new file mode 100644
index 0000000000..c0c21a4436
--- /dev/null
+++ b/include/utmp.h
@@ -0,0 +1 @@
+#include <login/utmp.h>
diff --git a/include/values.h b/include/values.h
new file mode 100644
index 0000000000..26421724c4
--- /dev/null
+++ b/include/values.h
@@ -0,0 +1,69 @@
+/* Old compatibility names for <limits.h> and <float.h> constants.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/* This interface is obsolete. New programs should use
+ <limits.h> and/or <float.h> instead of <values.h>. */
+
+#ifndef _VALUES_H
+#define _VALUES_H 1
+
+#include <features.h>
+
+#include <limits.h>
+
+#define _TYPEBITS(type) (sizeof (type) * CHAR_BIT)
+
+#define CHARBITS _TYPEBITS (char)
+#define SHORTBITS _TYPEBITS (short int)
+#define INTBITS _TYPEBITS (int)
+#define LONGBITS _TYPEBITS (long int)
+#define PTRBITS _TYPEBITS (char *)
+#define DOUBLEBITS _TYPEBITS (double)
+#define FLOATBITS _TYPEBITS (float)
+
+#define MINSHORT SHRT_MIN
+#define MININT INT_MIN
+#define MINLONG LONG_MIN
+
+#define MAXSHORT SHRT_MAX
+#define MAXINT INT_MAX
+#define MAXLONG LONG_MAX
+
+#define HIBITS MINSHORT
+#define HIBITL MINLONG
+
+
+#include <float.h>
+
+#define MAXDOUBLE DBL_MAX
+#define MAXFLOAT FLT_MAX
+#define MINDOUBLE DBL_MIN
+#define MINFLOAT FLT_MIN
+#define DMINEXP DBL_MIN_EXP
+#define FMINEXP FLT_MIN_EXP
+#define DMAXEXP DBL_MAX_EXP
+#define FMAXEXP FLT_MAX_EXP
+
+
+#ifdef __USE_MISC
+/* Some systems define this name instead of CHAR_BIT or CHARBITS. */
+#define BITSPERBYTE CHAR_BIT
+#endif
+
+#endif /* values.h */
diff --git a/include/wchar.h b/include/wchar.h
new file mode 100644
index 0000000000..c87ffb851b
--- /dev/null
+++ b/include/wchar.h
@@ -0,0 +1 @@
+#include <wcsmbs/wchar.h>
diff --git a/include/wctype.h b/include/wctype.h
new file mode 100644
index 0000000000..c76f50c866
--- /dev/null
+++ b/include/wctype.h
@@ -0,0 +1 @@
+#include <wctype/wctype.h>
diff --git a/include/wordexp.h b/include/wordexp.h
new file mode 100644
index 0000000000..64e036e062
--- /dev/null
+++ b/include/wordexp.h
@@ -0,0 +1 @@
+#include <posix/wordexp.h>
diff --git a/include/xlocale.h b/include/xlocale.h
new file mode 100644
index 0000000000..5280ef0bc4
--- /dev/null
+++ b/include/xlocale.h
@@ -0,0 +1 @@
+#include <locale/xlocale.h>