reduce spurious inclusion of libc.h
authorRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 04:08:09 +0000 (00:08 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:37 +0000 (14:34 -0400)
libc.h was intended to be a header for access to global libc state and
related interfaces, but ended up included all over the place because
it was the way to get the weak_alias macro. most of the inclusions
removed here are places where weak_alias was needed. a few were
recently introduced for hidden. some go all the way back to when
libc.h defined CANCELPT_BEGIN and _END, and all (wrongly implemented)
cancellation points had to include it.

remaining spurious users are mostly callers of the LOCK/UNLOCK macros
and files that use the LFS64 macro to define the awful *64 aliases.

in a few places, new inclusion of libc.h is added because several
internal headers no longer implicitly include libc.h.

declarations for __lockfile and __unlockfile are moved from libc.h to
stdio_impl.h so that the latter does not need libc.h. putting them in
libc.h made no sense at all, since the macros in stdio_impl.h are
needed to use them correctly anyway.

193 files changed:
src/aio/aio.c
src/aio/aio_suspend.c
src/aio/lio_listio.c
src/conf/sysconf.c
src/crypt/crypt_r.c
src/ctype/isalnum.c
src/ctype/isalpha.c
src/ctype/isblank.c
src/ctype/iscntrl.c
src/ctype/isdigit.c
src/ctype/isgraph.c
src/ctype/islower.c
src/ctype/isprint.c
src/ctype/ispunct.c
src/ctype/isspace.c
src/ctype/isupper.c
src/ctype/iswalnum.c
src/ctype/iswalpha.c
src/ctype/iswblank.c
src/ctype/iswcntrl.c
src/ctype/iswctype.c
src/ctype/iswdigit.c
src/ctype/iswgraph.c
src/ctype/iswlower.c
src/ctype/iswprint.c
src/ctype/iswpunct.c
src/ctype/iswspace.c
src/ctype/iswupper.c
src/ctype/iswxdigit.c
src/ctype/isxdigit.c
src/ctype/tolower.c
src/ctype/toupper.c
src/ctype/towctrans.c
src/ctype/wctrans.c
src/dirent/closedir.c
src/env/__environ.c
src/env/clearenv.c
src/env/getenv.c
src/env/putenv.c
src/env/unsetenv.c
src/errno/strerror.c
src/fcntl/fcntl.c
src/fenv/fesetround.c
src/fenv/m68k/fenv.c
src/fenv/powerpc64/fenv.c
src/fenv/s390x/fenv.c
src/internal/dynlink.h
src/internal/fdpic_crt.h
src/internal/libc.h
src/internal/malloc_impl.h
src/internal/sh/__shcall.c
src/internal/stdio_impl.h
src/internal/syscall.h
src/ipc/msgrcv.c
src/ipc/msgsnd.c
src/ldso/__dlsym.c
src/ldso/dladdr.c
src/ldso/dlclose.c
src/ldso/dlerror.c
src/ldso/dlinfo.c
src/ldso/dlopen.c
src/ldso/tlsdesc.c
src/legacy/euidaccess.c
src/legacy/utmpx.c
src/linux/cache.c
src/linux/getdents.c
src/linux/setfsgid.c
src/linux/setfsuid.c
src/linux/sysinfo.c
src/linux/x32/sysinfo.c
src/locale/__lctrans.c
src/locale/dcngettext.c
src/locale/freelocale.c
src/locale/langinfo.c
src/locale/newlocale.c
src/locale/strcoll.c
src/locale/strxfrm.c
src/locale/textdomain.c
src/locale/wcscoll.c
src/locale/wcsxfrm.c
src/malloc/memalign.c
src/math/exp10.c
src/math/exp10f.c
src/math/exp10l.c
src/math/lgamma_r.c
src/math/lgammaf_r.c
src/math/lgammal.c
src/math/remainder.c
src/math/remainderf.c
src/math/signgam.c
src/misc/basename.c
src/misc/getopt.c
src/misc/pty.c
src/mman/madvise.c
src/mman/mremap.c
src/mman/munmap.c
src/multibyte/internal.h
src/network/accept.c
src/network/accept4.c
src/network/connect.c
src/network/dn_expand.c
src/network/ent.c
src/network/getnameinfo.c
src/network/inet_aton.c
src/network/lookup_serv.c
src/network/recvfrom.c
src/network/recvmsg.c
src/network/res_mkquery.c
src/network/res_query.c
src/network/res_send.c
src/network/resolvconf.c
src/network/sendmsg.c
src/network/sendto.c
src/passwd/pwf.h
src/process/execvp.c
src/process/posix_spawn.c
src/process/system.c
src/process/waitid.c
src/process/waitpid.c
src/search/hsearch.c
src/select/poll.c
src/select/pselect.c
src/select/select.c
src/signal/signal.c
src/signal/sigsetjmp_tail.c
src/signal/sigsuspend.c
src/signal/sigtimedwait.c
src/stat/futimesat.c
src/stdio/__fdopen.c
src/stdio/fclose.c
src/stdio/fgetpos.c
src/stdio/fmemopen.c
src/stdio/fopen.c
src/stdio/freopen.c
src/stdio/fscanf.c
src/stdio/fseek.c
src/stdio/fsetpos.c
src/stdio/ftell.c
src/stdio/fwscanf.c
src/stdio/getdelim.c
src/stdio/open_memstream.c
src/stdio/open_wmemstream.c
src/stdio/scanf.c
src/stdio/sscanf.c
src/stdio/swscanf.c
src/stdio/tmpfile.c
src/stdio/vfprintf.c
src/stdio/vfwprintf.c
src/stdio/vfwscanf.c
src/stdio/vscanf.c
src/stdio/vsscanf.c
src/stdio/vswprintf.c
src/stdio/vswscanf.c
src/stdio/vwscanf.c
src/stdio/wscanf.c
src/stdlib/strtod.c
src/stdlib/strtol.c
src/string/memrchr.c
src/string/stpcpy.c
src/string/stpncpy.c
src/string/strcasecmp.c
src/string/strchrnul.c
src/string/strerror_r.c
src/string/strlcpy.c
src/string/strncasecmp.c
src/string/wcsdup.c
src/temp/mkostemps.c
src/termios/cfsetospeed.c
src/termios/tcdrain.c
src/thread/__syscall_cp.c
src/thread/__tls_get_addr.c
src/thread/pthread_attr_setinheritsched.c
src/thread/pthread_cancel.c
src/thread/pthread_equal.c
src/thread/pthread_self.c
src/thread/pthread_testcancel.c
src/thread/x32/syscall_cp_fixup.c
src/time/asctime_r.c
src/time/clock_gettime.c
src/time/clock_nanosleep.c
src/time/gmtime_r.c
src/time/localtime_r.c
src/time/nanosleep.c
src/time/strftime.c
src/time/wcsftime.c
src/unistd/acct.c
src/unistd/close.c
src/unistd/dup3.c
src/unistd/pause.c
src/unistd/read.c
src/unistd/readv.c
src/unistd/write.c
src/unistd/writev.c

index aafd8e8..a5f6443 100644 (file)
@@ -7,7 +7,6 @@
 #include <stdlib.h>
 #include "syscall.h"
 #include "atomic.h"
-#include "libc.h"
 #include "pthread_impl.h"
 
 /* The following is a threads-based implementation of AIO with minimal
index b269dd0..0b3abe5 100644 (file)
@@ -2,7 +2,6 @@
 #include <errno.h>
 #include <time.h>
 #include "atomic.h"
-#include "libc.h"
 #include "pthread_impl.h"
 
 int aio_suspend(const struct aiocb *const cbs[], int cnt, const struct timespec *ts)
index bd37767..bd64546 100644 (file)
@@ -3,7 +3,6 @@
 #include <unistd.h>
 #include <string.h>
 #include "pthread_impl.h"
-#include "libc.h"
 
 struct lio_state {
        struct sigevent *sev;
index 3baaed3..5199ed2 100644 (file)
@@ -5,7 +5,6 @@
 #include <signal.h>
 #include <sys/sysinfo.h>
 #include "syscall.h"
-#include "libc.h"
 
 #define JT(x) (-256|(x))
 #define VER JT(1)
index 5789973..db6015e 100644 (file)
@@ -1,5 +1,4 @@
 #include <crypt.h>
-#include "libc.h"
 
 char *__crypt_r(const char *key, const char *salt, struct crypt_data *data)
 {
index 2214936..8018a2b 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 
 int isalnum(int c)
 {
index f155d3a..a87a937 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 #undef isalpha
 
 int isalpha(int c)
index 299120e..716da23 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 
 int isblank(int c)
 {
index cb4114a..f27837e 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 
 int iscntrl(int c)
 {
index 4d8a103..16beddb 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 #undef isdigit
 
 int isdigit(int c)
index a0aae08..292d198 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 #undef isgraph
 
 int isgraph(int c)
index 0264021..c3fa74c 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 #undef islower
 
 int islower(int c)
index 067275f..b950816 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 #undef isprint
 
 int isprint(int c)
index e772d76..a491d5d 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 
 int ispunct(int c)
 {
index 231e907..428813e 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 #undef isspace
 
 int isspace(int c)
index 68c36f4..bfd15ac 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 #undef isupper
 
 int isupper(int c)
index a6082da..046c399 100644 (file)
@@ -1,5 +1,4 @@
 #include <wctype.h>
-#include "libc.h"
 
 int iswalnum(wint_t wc)
 {
index 00f9d81..1c5485d 100644 (file)
@@ -1,5 +1,4 @@
 #include <wctype.h>
-#include "libc.h"
 
 static const unsigned char table[] = {
 #include "alpha.h"
index d9b33ef..68c8800 100644 (file)
@@ -1,6 +1,5 @@
 #include <wctype.h>
 #include <ctype.h>
-#include "libc.h"
 
 int iswblank(wint_t wc)
 {
index daace82..feccfcd 100644 (file)
@@ -1,5 +1,4 @@
 #include <wctype.h>
-#include "libc.h"
 
 int iswcntrl(wint_t wc)
 {
index 3d9c2cc..71b09b8 100644 (file)
@@ -1,6 +1,5 @@
 #include <wctype.h>
 #include <string.h>
-#include "libc.h"
 
 #define WCTYPE_ALNUM  1
 #define WCTYPE_ALPHA  2
index ed9a88e..db817ed 100644 (file)
@@ -1,5 +1,4 @@
 #include <wctype.h>
-#include "libc.h"
 
 #undef iswdigit
 
index 0ea5ca3..ecdf466 100644 (file)
@@ -1,5 +1,4 @@
 #include <wctype.h>
-#include "libc.h"
 
 int iswgraph(wint_t wc)
 {
index 79df44a..f02a436 100644 (file)
@@ -1,5 +1,4 @@
 #include <wctype.h>
-#include "libc.h"
 
 int iswlower(wint_t wc)
 {
index 69856e0..86f9d64 100644 (file)
@@ -1,5 +1,4 @@
 #include <wctype.h>
-#include "libc.h"
 
 /* Consider all legal codepoints as printable except for:
  * - C0 and C1 control characters
index d880104..f0b9ea0 100644 (file)
@@ -1,5 +1,4 @@
 #include <wctype.h>
-#include "libc.h"
 
 static const unsigned char table[] = {
 #include "punct.h"
index 75ae7e8..263afa1 100644 (file)
@@ -1,6 +1,5 @@
 #include <wchar.h>
 #include <wctype.h>
-#include "libc.h"
 
 /* Our definition of whitespace is the Unicode White_Space property,
  * minus non-breaking spaces (U+00A0, U+2007, and U+202F) and script-
index 6e1e029..7e48666 100644 (file)
@@ -1,5 +1,4 @@
 #include <wctype.h>
-#include "libc.h"
 
 int iswupper(wint_t wc)
 {
index 1e27f1f..62bc9e7 100644 (file)
@@ -1,5 +1,4 @@
 #include <wctype.h>
-#include "libc.h"
 
 int iswxdigit(wint_t wc)
 {
index 0e9152a..aab1a74 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 
 int isxdigit(int c)
 {
index 362d6b2..f10132e 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 
 int tolower(int c)
 {
index bbf4e06..4e74a55 100644 (file)
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include "libc.h"
 
 int toupper(int c)
 {
index 12355af..8f68101 100644 (file)
@@ -1,6 +1,6 @@
 #include <ctype.h>
+#include <stddef.h>
 #include <wctype.h>
-#include "libc.h"
 
 #define CASEMAP(u1,u2,l) { (u1), (l)-(u1), (u2)-(u1)+1 }
 #define CASELACE(u1,u2) CASEMAP((u1),(u2),(u1)+1)
index b1b1265..d3eda52 100644 (file)
@@ -1,6 +1,5 @@
 #include <wctype.h>
 #include <string.h>
-#include "libc.h"
 
 wctrans_t wctrans(const char *class)
 {
index 81e9591..e794ae9 100644 (file)
@@ -1,7 +1,7 @@
 #include <dirent.h>
 #include <unistd.h>
+#include <stdlib.h>
 #include "__dirent.h"
-#include "libc.h"
 
 int closedir(DIR *dir)
 {
index e6c6faa..fe8abcf 100644 (file)
@@ -1,4 +1,4 @@
-#include "libc.h"
+#include <unistd.h>
 
 char **__environ = 0;
 weak_alias(__environ, ___environ);
index 2e275b4..db8e8e9 100644 (file)
@@ -1,7 +1,6 @@
 #define _GNU_SOURCE
 #include <stdlib.h>
 #include <unistd.h>
-#include "libc.h"
 
 static void dummy(char *old, char *new) {}
 weak_alias(dummy, __env_rm_add);
index f279779..a90d39c 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include "libc.h"
 
 char *getenv(const char *name)
 {
index 20f9602..dce8c82 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include "libc.h"
 
 static void dummy(char *old, char *new) {}
 weak_alias(dummy, __env_rm_add);
index 471219e..b14c4c9 100644 (file)
@@ -2,7 +2,6 @@
 #include <string.h>
 #include <errno.h>
 #include <unistd.h>
-#include "libc.h"
 
 static void dummy(char *old, char *new) {}
 weak_alias(dummy, __env_rm_add);
index 24c94d3..e3ed771 100644 (file)
@@ -1,7 +1,6 @@
 #include <errno.h>
 #include <string.h>
 #include "locale_impl.h"
-#include "libc.h"
 
 #define E(a,b) ((unsigned char)a),
 static const unsigned char errid[] = {
index ce615d0..d3bff5c 100644 (file)
@@ -3,7 +3,6 @@
 #include <stdarg.h>
 #include <errno.h>
 #include "syscall.h"
-#include "libc.h"
 
 int fcntl(int fd, int cmd, ...)
 {
index a85db71..50e58f1 100644 (file)
@@ -1,5 +1,5 @@
 #include <fenv.h>
-#include "libc.h"
+#include <features.h>
 
 /* __fesetround wrapper for arch independent argument check */
 
index fa85379..d0658e6 100644 (file)
@@ -1,5 +1,5 @@
 #include <fenv.h>
-#include "libc.h"
+#include <features.h>
 
 #if __HAVE_68881__ || __mcffpu__
 
index 9db0fb6..90dabdc 100644 (file)
@@ -1,6 +1,6 @@
 #define _GNU_SOURCE
 #include <fenv.h>
-#include "libc.h"
+#include <features.h>
 
 static inline double get_fpscr_f(void)
 {
index 72b9dbe..fd4e60c 100644 (file)
@@ -1,5 +1,5 @@
 #include <fenv.h>
-#include "libc.h"
+#include <features.h>
 
 static inline unsigned get_fpc(void)
 {
index 90b6e48..cbe0a6f 100644 (file)
@@ -5,7 +5,7 @@
 #include <elf.h>
 #include <stdint.h>
 #include <stddef.h>
-#include "libc.h"
+#include <stdarg.h>
 
 #if UINTPTR_MAX == 0xffffffff
 typedef Elf32_Ehdr Ehdr;
index 3c3f077..7e9632b 100644 (file)
@@ -1,5 +1,5 @@
 #include <stdint.h>
-#include "libc.h"
+#include <features.h>
 
 hidden void *__fdpic_fixup(void *map, uintptr_t *a, uintptr_t *z)
 {
index 155a299..83ad398 100644 (file)
@@ -53,8 +53,6 @@ extern hidden const char __libc_version[];
 /* Designed to avoid any overhead in non-threaded processes */
 hidden void __lock(volatile int *);
 hidden void __unlock(volatile int *);
-hidden int __lockfile(FILE *);
-hidden void __unlockfile(FILE *);
 #define LOCK(x) __lock(x)
 #define UNLOCK(x) __unlock(x)
 
index b6eacd8..59785a7 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef MALLOC_IMPL_H
 #define MALLOC_IMPL_H
 
-#include "libc.h"
 #include <sys/mman.h>
 
 hidden void *__expand_heap(size_t *);
index 2365590..4e073e8 100644 (file)
@@ -1,4 +1,4 @@
-#include "libc.h"
+#include <features.h>
 
 hidden int __shcall(void *arg, int (*func)(void *))
 {
index 92f7be6..4afb7ea 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <stdio.h>
 #include "syscall.h"
-#include "libc.h"
 
 #define UNGET 8
 
@@ -54,6 +53,9 @@ extern hidden FILE *volatile __stdin_used;
 extern hidden FILE *volatile __stdout_used;
 extern hidden FILE *volatile __stderr_used;
 
+hidden int __lockfile(FILE *);
+hidden void __unlockfile(FILE *);
+
 hidden size_t __stdio_read(FILE *, unsigned char *, size_t);
 hidden size_t __stdio_write(FILE *, const unsigned char *, size_t);
 hidden size_t __stdout_write(FILE *, const unsigned char *, size_t);
index 3cb0a77..da70ce9 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef _INTERNAL_SYSCALL_H
 #define _INTERNAL_SYSCALL_H
 
+#include <features.h>
 #include <sys/syscall.h>
-#include "libc.h"
 #include "syscall_arch.h"
 
 #ifndef SYSCALL_RLIM_INFINITY
index ed4a448..0a344e5 100644 (file)
@@ -1,7 +1,6 @@
 #include <sys/msg.h>
 #include "syscall.h"
 #include "ipc.h"
-#include "libc.h"
 
 ssize_t msgrcv(int q, void *m, size_t len, long type, int flag)
 {
index 23f4a4c..e1abde3 100644 (file)
@@ -1,7 +1,6 @@
 #include <sys/msg.h>
 #include "syscall.h"
 #include "ipc.h"
-#include "libc.h"
 
 int msgsnd(int q, const void *m, size_t len, int flag)
 {
index 012994a..8ac0a33 100644 (file)
@@ -1,6 +1,5 @@
 #include <dlfcn.h>
 #include "dynlink.h"
-#include "libc.h"
 
 static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict ra)
 {
index 659ab91..e5c8020 100644 (file)
@@ -1,6 +1,5 @@
 #define _GNU_SOURCE
 #include <dlfcn.h>
-#include "libc.h"
 
 static int stub_dladdr(const void *addr, Dl_info *info)
 {
index b839fe2..e437422 100644 (file)
@@ -1,6 +1,5 @@
 #include <dlfcn.h>
 #include "dynlink.h"
-#include "libc.h"
 
 int dlclose(void *p)
 {
index 7e5ec23..06ed854 100644 (file)
@@ -3,7 +3,6 @@
 #include <stdarg.h>
 #include "pthread_impl.h"
 #include "dynlink.h"
-#include "libc.h"
 
 char *dlerror()
 {
index a8a5ad5..b55f5fe 100644 (file)
@@ -1,7 +1,6 @@
 #define _GNU_SOURCE
 #include <dlfcn.h>
 #include "dynlink.h"
-#include "libc.h"
 
 int dlinfo(void *dso, int req, void *res)
 {
index 9544741..69372a2 100644 (file)
@@ -1,6 +1,5 @@
 #include <dlfcn.h>
 #include "dynlink.h"
-#include "libc.h"
 
 static void *stub_dlopen(const char *file, int mode)
 {
index caf8dc0..49a1f18 100644 (file)
@@ -1,6 +1,5 @@
 #include <stddef.h>
 #include <dynlink.h>
-#include "libc.h"
 
 ptrdiff_t __tlsdesc_static()
 {
index 7307251..6e1f398 100644 (file)
@@ -1,7 +1,6 @@
 #define _GNU_SOURCE
 #include <unistd.h>
 #include <fcntl.h>
-#include "libc.h"
 
 int euidaccess(const char *filename, int amode)
 {
index 3c98367..7aa65da 100644 (file)
@@ -2,7 +2,6 @@
 #include <utmpx.h>
 #include <stddef.h>
 #include <errno.h>
-#include "libc.h"
 
 void endutxent(void)
 {
index 3f0abc7..84a138a 100644 (file)
@@ -1,5 +1,4 @@
 #include "syscall.h"
-#include "libc.h"
 
 #ifdef SYS_cacheflush
 int _flush_cache(void *addr, int len, int op)
index 90f7556..cab2995 100644 (file)
@@ -1,5 +1,7 @@
+#define _BSD_SOURCE
 #include <dirent.h>
 #include "syscall.h"
+#include "libc.h"
 
 int getdents(int fd, struct dirent *buf, size_t len)
 {
index ad80422..e29d9c0 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/fsuid.h>
 #include "syscall.h"
-#include "libc.h"
 
 int setfsgid(gid_t gid)
 {
index 8635873..1bae441 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/fsuid.h>
 #include "syscall.h"
-#include "libc.h"
 
 int setfsuid(uid_t uid)
 {
index 4b5a798..db86476 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/sysinfo.h>
 #include "syscall.h"
-#include "libc.h"
 
 int __lsysinfo(struct sysinfo *info)
 {
index d1c1b14..59b3bb7 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/sysinfo.h>
 #include "syscall.h"
-#include "libc.h"
 
 #define klong long long
 #define kulong unsigned long long
index 107fe14..9fbe762 100644 (file)
@@ -1,6 +1,5 @@
 #include <locale.h>
 #include "locale_impl.h"
-#include "libc.h"
 
 static const char *dummy(const char *msg, const struct __locale_map *lm)
 {
index fc1018d..eefa31a 100644 (file)
@@ -7,7 +7,6 @@
 #include <sys/mman.h>
 #include <ctype.h>
 #include "locale_impl.h"
-#include "libc.h"
 #include "atomic.h"
 #include "pleval.h"
 
index e75acd6..802b8bf 100644 (file)
@@ -1,6 +1,5 @@
 #include <stdlib.h>
 #include "locale_impl.h"
-#include "libc.h"
 
 void freelocale(locale_t l)
 {
index 83be643..1477309 100644 (file)
@@ -1,7 +1,6 @@
 #include <locale.h>
 #include <langinfo.h>
 #include "locale_impl.h"
-#include "libc.h"
 
 static const char c_time[] =
        "Sun\0" "Mon\0" "Tue\0" "Wed\0" "Thu\0" "Fri\0" "Sat\0"
index f50bbe9..8fb006a 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include "locale_impl.h"
-#include "libc.h"
 
 int __loc_is_allocated(locale_t loc)
 {
index 84f199f..dd3cbc4 100644 (file)
@@ -1,7 +1,6 @@
 #include <string.h>
 #include <locale.h>
 #include "locale_impl.h"
-#include "libc.h"
 
 int __strcoll_l(const char *l, const char *r, locale_t loc)
 {
index 14b76a6..c66c620 100644 (file)
@@ -1,7 +1,6 @@
 #include <string.h>
 #include <locale.h>
 #include "locale_impl.h"
-#include "libc.h"
 
 /* collate only by code points */
 size_t __strxfrm_l(char *restrict dest, const char *restrict src, size_t n, locale_t loc)
index c501501..d727539 100644 (file)
@@ -3,8 +3,6 @@
 #include <stdlib.h>
 #include <errno.h>
 #include <limits.h>
-#include "libc.h"
-#include "atomic.h"
 
 static char *current_domain;
 
index 14bb8b9..ad2cc69 100644 (file)
@@ -1,7 +1,6 @@
 #include <wchar.h>
 #include <locale.h>
 #include "locale_impl.h"
-#include "libc.h"
 
 /* FIXME: stub */
 int __wcscoll_l(const wchar_t *l, const wchar_t *r, locale_t locale)
index 0a0b776..05e3e11 100644 (file)
@@ -1,7 +1,6 @@
 #include <wchar.h>
 #include <locale.h>
 #include "locale_impl.h"
-#include "libc.h"
 
 /* collate only by code points */
 size_t __wcsxfrm_l(wchar_t *restrict dest, const wchar_t *restrict src, size_t n, locale_t loc)
index 8a6152f..cf9dfbd 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <errno.h>
-#include "libc.h"
 #include "malloc_impl.h"
 
 void *__memalign(size_t align, size_t len)
index 9f5e3c2..26899eb 100644 (file)
@@ -1,7 +1,6 @@
 #define _GNU_SOURCE
 #include <math.h>
 #include <stdint.h>
-#include "libc.h"
 
 double exp10(double x)
 {
index 7a8d447..d009f0a 100644 (file)
@@ -1,7 +1,6 @@
 #define _GNU_SOURCE
 #include <math.h>
 #include <stdint.h>
-#include "libc.h"
 
 float exp10f(float x)
 {
index b758ebf..f3da1a0 100644 (file)
@@ -1,7 +1,6 @@
 #define _GNU_SOURCE
 #include <float.h>
 #include <math.h>
-#include "libc.h"
 #include "libm.h"
 
 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
index fff565d..f9984cd 100644 (file)
@@ -79,7 +79,6 @@
  */
 
 #include "libm.h"
-#include "libc.h"
 
 static const double
 pi  =  3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */
index c5b43db..3f353f1 100644 (file)
@@ -14,7 +14,6 @@
  */
 
 #include "libm.h"
-#include "libc.h"
 
 static const float
 pi  =  3.1415927410e+00, /* 0x40490fdb */
index 8c79812..abbd4fc 100644 (file)
@@ -87,7 +87,6 @@
 
 #define _GNU_SOURCE
 #include "libm.h"
-#include "libc.h"
 
 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
 long double __lgammal_r(long double x, int *sg)
index 6cd089c..612155f 100644 (file)
@@ -1,5 +1,4 @@
 #include <math.h>
-#include "libc.h"
 
 double remainder(double x, double y)
 {
index 420d3bf..bf1d7b2 100644 (file)
@@ -1,5 +1,4 @@
 #include <math.h>
-#include "libc.h"
 
 float remainderf(float x, float y)
 {
index b4903a5..ee331b2 100644 (file)
@@ -1,6 +1,5 @@
 #include <math.h>
 #include "libm.h"
-#include "libc.h"
 
 int __signgam = 0;
 
index cc4f778..438377b 100644 (file)
@@ -1,6 +1,5 @@
 #include <string.h>
 #include <libgen.h>
-#include "libc.h"
 
 char *basename(char *s)
 {
index 7d7b116..864d52c 100644 (file)
@@ -3,7 +3,6 @@
 #include <string.h>
 #include <limits.h>
 #include <stdlib.h>
-#include "libc.h"
 #include "locale_impl.h"
 #include "stdio_impl.h"
 
index b395d2c..b9cb5ea 100644 (file)
@@ -3,7 +3,6 @@
 #include <stdio.h>
 #include <fcntl.h>
 #include <errno.h>
-#include "libc.h"
 #include "syscall.h"
 
 int posix_openpt(int flags)
index f80926b..e0c7c0e 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/mman.h>
 #include "syscall.h"
-#include "libc.h"
 
 int __madvise(void *addr, size_t len, int advice)
 {
index ce4e8ea..cc6991a 100644 (file)
@@ -5,7 +5,6 @@
 #include <stdint.h>
 #include <stdarg.h>
 #include "syscall.h"
-#include "libc.h"
 
 static void dummy(void) { }
 weak_alias(dummy, __vm_wait);
index 3f711ee..2bf83bb 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/mman.h>
 #include "syscall.h"
-#include "libc.h"
 
 static void dummy(void) { }
 weak_alias(dummy, __vm_wait);
index 7d0e782..45bbc6d 100644 (file)
@@ -1,7 +1,7 @@
 #define bittab __fsmu8
 
 #include <stdint.h>
-#include "libc.h"
+#include <features.h>
 
 extern hidden const uint32_t bittab[];
 
index 521e9ef..a92406f 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/socket.h>
 #include "syscall.h"
-#include "libc.h"
 
 int accept(int fd, struct sockaddr *restrict addr, socklen_t *restrict len)
 {
index 285d858..59ab172 100644 (file)
@@ -3,7 +3,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #include "syscall.h"
-#include "libc.h"
 
 int accept4(int fd, struct sockaddr *restrict addr, socklen_t *restrict len, int flg)
 {
index 57f01a1..289127b 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/socket.h>
 #include "syscall.h"
-#include "libc.h"
 
 int connect(int fd, const struct sockaddr *addr, socklen_t len)
 {
index d9b3393..eac343a 100644 (file)
@@ -1,5 +1,4 @@
 #include <resolv.h>
-#include "libc.h"
 
 int __dn_expand(const unsigned char *base, const unsigned char *end, const unsigned char *src, char *dest, int space)
 {
index 5abea63..c6e0123 100644 (file)
@@ -1,5 +1,4 @@
 #include <netdb.h>
-#include "libc.h"
 
 void sethostent(int x)
 {
index 84f5ed6..f77e73a 100644 (file)
@@ -2,6 +2,7 @@
 #include <limits.h>
 #include <string.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
index 0f9a45f..c65f7c2 100644 (file)
@@ -2,7 +2,7 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#include "libc.h"
+#include <stdlib.h>
 
 int __inet_aton(const char *s0, struct in_addr *dest)
 {
index 403b12a..ae38277 100644 (file)
@@ -3,6 +3,7 @@
 #include <netdb.h>
 #include <ctype.h>
 #include <string.h>
+#include <stdlib.h>
 #include <fcntl.h>
 #include <errno.h>
 #include "lookup.h"
index 436f344..6191166 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/socket.h>
 #include "syscall.h"
-#include "libc.h"
 
 ssize_t recvfrom(int fd, void *restrict buf, size_t len, int flags, struct sockaddr *restrict addr, socklen_t *restrict alen)
 {
index 4f52665..4ca7da8 100644 (file)
@@ -1,7 +1,6 @@
 #include <sys/socket.h>
 #include <limits.h>
 #include "syscall.h"
-#include "libc.h"
 
 ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
 {
index ec4568a..6fa04a5 100644 (file)
@@ -1,7 +1,6 @@
 #include <resolv.h>
 #include <string.h>
 #include <time.h>
-#include "libc.h"
 
 int __res_mkquery(int op, const char *dname, int class, int type,
        const unsigned char *data, int datalen,
index 33543dc..2f4da2e 100644 (file)
@@ -1,6 +1,5 @@
 #include <resolv.h>
 #include <netdb.h>
-#include "libc.h"
 
 int res_query(const char *name, int class, int type, unsigned char *dest, int len)
 {
index 6facc1b..b9cea0b 100644 (file)
@@ -1,5 +1,4 @@
 #include <resolv.h>
-#include "libc.h"
 
 int __res_send(const unsigned char *msg, int msglen, unsigned char *answer, int anslen)
 {
index 4c3e4c4..ceabf08 100644 (file)
@@ -3,6 +3,7 @@
 #include <ctype.h>
 #include <errno.h>
 #include <string.h>
+#include <stdlib.h>
 #include <netinet/in.h>
 
 int __get_resolv_conf(struct resolvconf *conf, char *search, size_t search_sz)
index 5f08000..80cc5f4 100644 (file)
@@ -3,7 +3,6 @@
 #include <string.h>
 #include <errno.h>
 #include "syscall.h"
-#include "libc.h"
 
 ssize_t sendmsg(int fd, const struct msghdr *msg, int flags)
 {
index 899eecf..c598797 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/socket.h>
 #include "syscall.h"
-#include "libc.h"
 
 ssize_t sendto(int fd, const void *buf, size_t len, int flags, const struct sockaddr *addr, socklen_t alen)
 {
index ab7e166..95bb6e0 100644 (file)
@@ -4,9 +4,9 @@
 #include <stdio.h>
 #include <errno.h>
 #include <stdint.h>
+#include <stdlib.h>
 #include <string.h>
 #include <limits.h>
-#include "libc.h"
 
 hidden int __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size, struct passwd **res);
 hidden int __getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf, size_t *size, struct passwd **res);
index 2dddedd..1fdf036 100644 (file)
@@ -3,7 +3,6 @@
 #include <unistd.h>
 #include <errno.h>
 #include <limits.h>
-#include "libc.h"
 
 extern char **__environ;
 
index 2f8ef93..5aaf829 100644 (file)
@@ -8,7 +8,6 @@
 #include "syscall.h"
 #include "pthread_impl.h"
 #include "fdop.h"
-#include "libc.h"
 
 struct args {
        int p[2];
index 9135b81..5af59b8 100644 (file)
@@ -5,7 +5,6 @@
 #include <spawn.h>
 #include <errno.h>
 #include "pthread_impl.h"
-#include "libc.h"
 
 extern char **__environ;
 
index c67feac..d688650 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/wait.h>
 #include "syscall.h"
-#include "libc.h"
 
 int waitid(idtype_t type, id_t id, siginfo_t *info, int options)
 {
index f75e31e..1b65bf0 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/wait.h>
 #include "syscall.h"
-#include "libc.h"
 
 pid_t waitpid(pid_t pid, int *status, int options)
 {
index 1dcb4d8..b3ac879 100644 (file)
@@ -2,7 +2,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <search.h>
-#include "libc.h"
 
 /*
 open addressing hash table with 2^n table size
index 9e0bcbd..c84c8a9 100644 (file)
@@ -2,7 +2,6 @@
 #include <time.h>
 #include <signal.h>
 #include "syscall.h"
-#include "libc.h"
 
 int poll(struct pollfd *fds, nfds_t n, int timeout)
 {
index 4e2d7b0..762af37 100644 (file)
@@ -2,7 +2,6 @@
 #include <signal.h>
 #include <stdint.h>
 #include "syscall.h"
-#include "libc.h"
 
 int pselect(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, const struct timespec *restrict ts, const sigset_t *restrict mask)
 {
index 7b5f6dc..02fd75c 100644 (file)
@@ -3,7 +3,6 @@
 #include <stdint.h>
 #include <errno.h>
 #include "syscall.h"
-#include "libc.h"
 
 int select(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, struct timeval *restrict tv)
 {
index bcd5682..7a6dd17 100644 (file)
@@ -1,6 +1,5 @@
 #include <signal.h>
 #include "syscall.h"
-#include "libc.h"
 
 void (*signal(int sig, void (*func)(int)))(int)
 {
index 252529a..f2aa288 100644 (file)
@@ -1,7 +1,6 @@
 #include <setjmp.h>
 #include <signal.h>
 #include "syscall.h"
-#include "libc.h"
 
 hidden int __sigsetjmp_tail(sigjmp_buf jb, int ret)
 {
index 0b42725..36e0602 100644 (file)
@@ -1,6 +1,5 @@
 #include <signal.h>
 #include "syscall.h"
-#include "libc.h"
 
 int sigsuspend(const sigset_t *mask)
 {
index 0739986..7bcfe72 100644 (file)
@@ -1,7 +1,6 @@
 #include <signal.h>
 #include <errno.h>
 #include "syscall.h"
-#include "libc.h"
 
 int sigtimedwait(const sigset_t *restrict mask, siginfo_t *restrict si, const struct timespec *restrict timeout)
 {
index b4eea1d..4bdb1c2 100644 (file)
@@ -3,7 +3,6 @@
 #include <sys/stat.h>
 #include <errno.h>
 #include "syscall.h"
-#include "libc.h"
 
 int __futimesat(int dirfd, const char *pathname, const struct timeval times[2])
 {
index 8d6ce81..116e78e 100644 (file)
@@ -4,6 +4,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <string.h>
+#include "libc.h"
 
 FILE *__fdopen(int fd, const char *mode)
 {
index c675413..889b96d 100644 (file)
@@ -1,5 +1,5 @@
 #include "stdio_impl.h"
-#include "libc.h"
+#include <stdlib.h>
 
 static void dummy(FILE *f) { }
 weak_alias(dummy, __unlist_locked_file);
index 6eb361e..6b45f57 100644 (file)
@@ -1,4 +1,5 @@
 #include "stdio_impl.h"
+#include "libc.h"
 
 int fgetpos(FILE *restrict f, fpos_t *restrict pos)
 {
index 5e0eeb5..82413b2 100644 (file)
@@ -1,7 +1,9 @@
 #include "stdio_impl.h"
 #include <errno.h>
 #include <string.h>
+#include <stdlib.h>
 #include <inttypes.h>
+#include "libc.h"
 
 struct cookie {
        size_t pos, len, size;
index 252f082..2a20c7f 100644 (file)
@@ -2,6 +2,7 @@
 #include <fcntl.h>
 #include <string.h>
 #include <errno.h>
+#include "libc.h"
 
 FILE *fopen(const char *restrict filename, const char *restrict mode)
 {
index a9c83c8..6d6d21d 100644 (file)
@@ -1,6 +1,7 @@
 #include "stdio_impl.h"
 #include <fcntl.h>
 #include <unistd.h>
+#include "libc.h"
 
 /* The basic idea of this implementation is to open a new FILE,
  * hack the necessary parts of the new FILE into the old one, then
index acb8a10..f639e11 100644 (file)
@@ -1,6 +1,5 @@
 #include <stdio.h>
 #include <stdarg.h>
-#include "libc.h"
 
 int fscanf(FILE *restrict f, const char *restrict fmt, ...)
 {
index b160b74..26d9f7e 100644 (file)
@@ -1,4 +1,5 @@
 #include "stdio_impl.h"
+#include "libc.h"
 
 int __fseeko_unlocked(FILE *f, off_t off, int whence)
 {
index 6310424..cea5ddb 100644 (file)
@@ -1,4 +1,5 @@
 #include "stdio_impl.h"
+#include "libc.h"
 
 int fsetpos(FILE *f, const fpos_t *pos)
 {
index bb62897..aad352b 100644 (file)
@@ -1,6 +1,7 @@
 #include "stdio_impl.h"
 #include <limits.h>
 #include <errno.h>
+#include "libc.h"
 
 off_t __ftello_unlocked(FILE *f)
 {
index cb114b3..530bb7c 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <wchar.h>
-#include "libc.h"
 
 int fwscanf(FILE *restrict f, const wchar_t *restrict fmt, ...)
 {
index d4b2388..26a5678 100644 (file)
@@ -1,5 +1,6 @@
 #include "stdio_impl.h"
 #include <string.h>
+#include <stdlib.h>
 #include <inttypes.h>
 #include <errno.h>
 
index 40f5ad6..600d277 100644 (file)
@@ -2,6 +2,8 @@
 #include <errno.h>
 #include <limits.h>
 #include <string.h>
+#include <stdlib.h>
+#include "libc.h"
 
 struct cookie {
        char **bufp;
index a7c3a64..ed1b561 100644 (file)
@@ -3,6 +3,8 @@
 #include <errno.h>
 #include <limits.h>
 #include <string.h>
+#include <stdlib.h>
+#include "libc.h"
 
 struct cookie {
        wchar_t **bufp;
index a740056..bd77699 100644 (file)
@@ -1,6 +1,5 @@
 #include <stdio.h>
 #include <stdarg.h>
-#include "libc.h"
 
 int scanf(const char *restrict fmt, ...)
 {
index 8a2302f..f2ac2f5 100644 (file)
@@ -1,6 +1,5 @@
 #include <stdio.h>
 #include <stdarg.h>
-#include "libc.h"
 
 int sscanf(const char *restrict s, const char *restrict fmt, ...)
 {
index d893fba..03d572d 100644 (file)
@@ -1,6 +1,5 @@
 #include <stdarg.h>
 #include <wchar.h>
-#include "libc.h"
 
 int swscanf(const wchar_t *restrict s, const wchar_t *restrict fmt, ...)
 {
index 55d742f..7013f64 100644 (file)
@@ -2,6 +2,7 @@
 #include <fcntl.h>
 #include <stdlib.h>
 #include "stdio_impl.h"
+#include "libc.h"
 
 #define MAXTRIES 100
 
index 2100eb5..9b961e7 100644 (file)
@@ -5,6 +5,7 @@
 #include <string.h>
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdlib.h>
 #include <wchar.h>
 #include <inttypes.h>
 #include <math.h>
index 9d774fc..0adf0b7 100644 (file)
@@ -5,6 +5,7 @@
 #include <string.h>
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdlib.h>
 #include <wchar.h>
 #include <inttypes.h>
 
index a7cd092..7be6634 100644 (file)
@@ -11,7 +11,6 @@
 #include "shgetc.h"
 #include "intscan.h"
 #include "floatscan.h"
-#include "libc.h"
 
 #define SIZE_hh -2
 #define SIZE_h  -1
index 43892f0..9d46ab0 100644 (file)
@@ -1,6 +1,5 @@
 #include <stdio.h>
 #include <stdarg.h>
-#include "libc.h"
 
 int vscanf(const char *restrict fmt, va_list ap)
 {
index 929ffa3..9850022 100644 (file)
@@ -1,5 +1,4 @@
 #include "stdio_impl.h"
-#include "libc.h"
 
 static size_t do_read(FILE *f, unsigned char *buf, size_t len)
 {
index 38efed6..7f98c5c 100644 (file)
@@ -2,6 +2,7 @@
 #include <limits.h>
 #include <errno.h>
 #include <stdint.h>
+#include <stdlib.h>
 #include <wchar.h>
 
 struct cookie {
index 411dd39..00b614b 100644 (file)
@@ -1,5 +1,4 @@
 #include "stdio_impl.h"
-#include "libc.h"
 #include <wchar.h>
 
 static size_t wstring_read(FILE *f, unsigned char *buf, size_t len)
index 63c9cce..5a3931e 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <wchar.h>
-#include "libc.h"
 
 int vwscanf(const wchar_t *restrict fmt, va_list ap)
 {
index 8041225..4dfec25 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdio.h>
 #include <stdarg.h>
 #include <wchar.h>
-#include "libc.h"
 
 int wscanf(const wchar_t *restrict fmt, ...)
 {
index 461dcf8..a898b1d 100644 (file)
@@ -2,7 +2,6 @@
 #include "shgetc.h"
 #include "floatscan.h"
 #include "stdio_impl.h"
-#include "libc.h"
 
 static long double strtox(const char *s, char **p, int prec)
 {
index 730bf2d..d82ecf7 100644 (file)
@@ -4,7 +4,6 @@
 #include <inttypes.h>
 #include <limits.h>
 #include <ctype.h>
-#include "libc.h"
 
 static unsigned long long strtox(const char *s, char **p, int base, unsigned long long lim)
 {
index a78e9d6..e51748b 100644 (file)
@@ -1,5 +1,4 @@
 #include <string.h>
-#include "libc.h"
 
 void *__memrchr(const void *m, int c, size_t n)
 {
index 06623c4..54cf9ca 100644 (file)
@@ -1,7 +1,6 @@
 #include <string.h>
 #include <stdint.h>
 #include <limits.h>
-#include "libc.h"
 
 #define ALIGN (sizeof(size_t))
 #define ONES ((size_t)-1/UCHAR_MAX)
index 1f57a4d..d6d92ff 100644 (file)
@@ -1,7 +1,6 @@
 #include <string.h>
 #include <stdint.h>
 #include <limits.h>
-#include "libc.h"
 
 #define ALIGN (sizeof(size_t)-1)
 #define ONES ((size_t)-1/UCHAR_MAX)
index 3cd5f2d..002c6aa 100644 (file)
@@ -1,6 +1,5 @@
 #include <strings.h>
 #include <ctype.h>
-#include "libc.h"
 
 int strcasecmp(const char *_l, const char *_r)
 {
index 05700ad..f2b9ae1 100644 (file)
@@ -1,7 +1,6 @@
 #include <string.h>
 #include <stdint.h>
 #include <limits.h>
-#include "libc.h"
 
 #define ALIGN (sizeof(size_t))
 #define ONES ((size_t)-1/UCHAR_MAX)
index da26b4f..1dc88bb 100644 (file)
@@ -1,6 +1,5 @@
 #include <string.h>
 #include <errno.h>
-#include "libc.h"
 
 int strerror_r(int err, char *buf, size_t buflen)
 {
index 193d724..dcb22f6 100644 (file)
@@ -2,7 +2,6 @@
 #include <string.h>
 #include <stdint.h>
 #include <limits.h>
-#include "libc.h"
 
 #define ALIGN (sizeof(size_t)-1)
 #define ONES ((size_t)-1/UCHAR_MAX)
index 3af5300..e0ef93c 100644 (file)
@@ -1,6 +1,5 @@
 #include <strings.h>
 #include <ctype.h>
-#include "libc.h"
 
 int strncasecmp(const char *_l, const char *_r, size_t n)
 {
index dd49c1b..f398e80 100644 (file)
@@ -1,6 +1,5 @@
 #include <stdlib.h>
 #include <wchar.h>
-#include "libc.h"
 
 wchar_t *wcsdup(const wchar_t *s)
 {
index d1464b4..ef24eea 100644 (file)
@@ -4,7 +4,6 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <errno.h>
-#include "libc.h"
 
 int __mkostemps(char *template, int len, int flags)
 {
index b571f62..c9cbdd9 100644 (file)
@@ -2,7 +2,6 @@
 #include <termios.h>
 #include <sys/ioctl.h>
 #include <errno.h>
-#include "libc.h"
 
 int cfsetospeed(struct termios *tio, speed_t speed)
 {
index 6e43afb..c0e542b 100644 (file)
@@ -1,6 +1,5 @@
 #include <termios.h>
 #include <sys/ioctl.h>
-#include "libc.h"
 #include "syscall.h"
 
 int tcdrain(int fd)
index afd82ef..af666f0 100644 (file)
@@ -1,6 +1,5 @@
 #include "pthread_impl.h"
 #include "syscall.h"
-#include "libc.h"
 
 hidden long __syscall_cp_c();
 
index 013817b..34fbc46 100644 (file)
@@ -1,6 +1,5 @@
 #include <stddef.h>
 #include "pthread_impl.h"
-#include "libc.h"
 
 void *__tls_get_addr(tls_mod_off_t *v)
 {
index 605af97..6a64837 100644 (file)
@@ -1,6 +1,5 @@
 #include "pthread_impl.h"
 #include "syscall.h"
-#include "libc.h"
 
 hidden void *__start_sched(void *p)
 {
index 43f8d40..2f9d5e9 100644 (file)
@@ -2,7 +2,6 @@
 #include <string.h>
 #include "pthread_impl.h"
 #include "syscall.h"
-#include "libc.h"
 
 hidden long __cancel(), __syscall_cp_asm(), __syscall_cp_c();
 
index 7c31482..dbb7365 100644 (file)
@@ -1,6 +1,5 @@
 #include <pthread.h>
 #include <threads.h>
-#include "libc.h"
 
 static int __pthread_equal(pthread_t a, pthread_t b)
 {
index 241a620..bd3bf95 100644 (file)
@@ -1,6 +1,5 @@
 #include "pthread_impl.h"
 #include <threads.h>
-#include "libc.h"
 
 static pthread_t __pthread_self_internal()
 {
index ee48e6d..d772449 100644 (file)
@@ -1,5 +1,4 @@
 #include "pthread_impl.h"
-#include "libc.h"
 
 static void dummy()
 {
index b1a1faa..4956610 100644 (file)
@@ -1,5 +1,5 @@
 #include <sys/syscall.h>
-#include "libc.h"
+#include <features.h>
 
 hidden long __syscall_cp_internal(volatile void*, long long, long long,
                                   long long, long long, long long,
index af2618d..26809ca 100644 (file)
@@ -3,7 +3,6 @@
 #include <langinfo.h>
 #include "locale_impl.h"
 #include "atomic.h"
-#include "libc.h"
 
 char *__asctime_r(const struct tm *restrict tm, char *restrict buf)
 {
index c24fe17..8fd1b8f 100644 (file)
@@ -2,7 +2,6 @@
 #include <errno.h>
 #include <stdint.h>
 #include "syscall.h"
-#include "libc.h"
 #include "atomic.h"
 
 #ifdef VDSO_CGT_SYM
index 9e4d9f1..32f0c07 100644 (file)
@@ -1,7 +1,6 @@
 #include <time.h>
 #include <errno.h>
 #include "syscall.h"
-#include "libc.h"
 
 int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem)
 {
index e529799..22aec2c 100644 (file)
@@ -1,6 +1,5 @@
 #include "time_impl.h"
 #include <errno.h>
-#include "libc.h"
 
 struct tm *__gmtime_r(const time_t *restrict t, struct tm *restrict tm)
 {
index 2e62c29..1a15b31 100644 (file)
@@ -1,6 +1,6 @@
 #include "time_impl.h"
 #include <errno.h>
-#include "libc.h"
+#include <limits.h>
 
 struct tm *__localtime_r(const time_t *restrict t, struct tm *restrict tm)
 {
index a2ff483..1e6f392 100644 (file)
@@ -1,6 +1,5 @@
 #include <time.h>
 #include "syscall.h"
-#include "libc.h"
 
 int nanosleep(const struct timespec *req, struct timespec *rem)
 {
index ba18a27..cc53d53 100644 (file)
@@ -6,7 +6,6 @@
 #include <time.h>
 #include <limits.h>
 #include "locale_impl.h"
-#include "libc.h"
 #include "time_impl.h"
 
 static int is_leap(int y)
index 31b30ca..8e1437b 100644 (file)
@@ -3,7 +3,6 @@
 #include <locale.h>
 #include "locale_impl.h"
 #include "time_impl.h"
-#include "libc.h"
 
 size_t __wcsftime_l(wchar_t *restrict s, size_t n, const wchar_t *restrict f, const struct tm *restrict tm, locale_t loc)
 {
index f6f25a8..308ffc3 100644 (file)
@@ -1,7 +1,6 @@
 #define _GNU_SOURCE
 #include <unistd.h>
 #include "syscall.h"
-#include "libc.h"
 
 int acct(const char *filename)
 {
index fa3c6ca..5b38e01 100644 (file)
@@ -1,7 +1,6 @@
 #include <unistd.h>
 #include <errno.h>
 #include "syscall.h"
-#include "libc.h"
 
 static int dummy(int fd)
 {
index 0eb6caf..f919f79 100644 (file)
@@ -3,7 +3,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #include "syscall.h"
-#include "libc.h"
 
 int __dup3(int old, int new, int flags)
 {
index 56eb171..90bbf4c 100644 (file)
@@ -1,7 +1,5 @@
 #include <unistd.h>
-#include <signal.h>
 #include "syscall.h"
-#include "libc.h"
 
 int pause(void)
 {
index eb882fc..f3589c0 100644 (file)
@@ -1,6 +1,5 @@
 #include <unistd.h>
 #include "syscall.h"
-#include "libc.h"
 
 ssize_t read(int fd, void *buf, size_t count)
 {
index e45cb48..91e6de8 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/uio.h>
 #include "syscall.h"
-#include "libc.h"
 
 ssize_t readv(int fd, const struct iovec *iov, int count)
 {
index e2f7e1f..8fd5bc5 100644 (file)
@@ -1,6 +1,5 @@
 #include <unistd.h>
 #include "syscall.h"
-#include "libc.h"
 
 ssize_t write(int fd, const void *buf, size_t count)
 {
index ef300dd..5a46c95 100644 (file)
@@ -1,6 +1,5 @@
 #include <sys/uio.h>
 #include "syscall.h"
-#include "libc.h"
 
 ssize_t writev(int fd, const struct iovec *iov, int count)
 {