#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
#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)
#include <unistd.h>
#include <string.h>
#include "pthread_impl.h"
-#include "libc.h"
struct lio_state {
struct sigevent *sev;
#include <signal.h>
#include <sys/sysinfo.h>
#include "syscall.h"
-#include "libc.h"
#define JT(x) (-256|(x))
#define VER JT(1)
#include <crypt.h>
-#include "libc.h"
char *__crypt_r(const char *key, const char *salt, struct crypt_data *data)
{
#include <ctype.h>
-#include "libc.h"
int isalnum(int c)
{
#include <ctype.h>
-#include "libc.h"
#undef isalpha
int isalpha(int c)
#include <ctype.h>
-#include "libc.h"
int isblank(int c)
{
#include <ctype.h>
-#include "libc.h"
int iscntrl(int c)
{
#include <ctype.h>
-#include "libc.h"
#undef isdigit
int isdigit(int c)
#include <ctype.h>
-#include "libc.h"
#undef isgraph
int isgraph(int c)
#include <ctype.h>
-#include "libc.h"
#undef islower
int islower(int c)
#include <ctype.h>
-#include "libc.h"
#undef isprint
int isprint(int c)
#include <ctype.h>
-#include "libc.h"
int ispunct(int c)
{
#include <ctype.h>
-#include "libc.h"
#undef isspace
int isspace(int c)
#include <ctype.h>
-#include "libc.h"
#undef isupper
int isupper(int c)
#include <wctype.h>
-#include "libc.h"
int iswalnum(wint_t wc)
{
#include <wctype.h>
-#include "libc.h"
static const unsigned char table[] = {
#include "alpha.h"
#include <wctype.h>
#include <ctype.h>
-#include "libc.h"
int iswblank(wint_t wc)
{
#include <wctype.h>
-#include "libc.h"
int iswcntrl(wint_t wc)
{
#include <wctype.h>
#include <string.h>
-#include "libc.h"
#define WCTYPE_ALNUM 1
#define WCTYPE_ALPHA 2
#include <wctype.h>
-#include "libc.h"
#undef iswdigit
#include <wctype.h>
-#include "libc.h"
int iswgraph(wint_t wc)
{
#include <wctype.h>
-#include "libc.h"
int iswlower(wint_t wc)
{
#include <wctype.h>
-#include "libc.h"
/* Consider all legal codepoints as printable except for:
* - C0 and C1 control characters
#include <wctype.h>
-#include "libc.h"
static const unsigned char table[] = {
#include "punct.h"
#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-
#include <wctype.h>
-#include "libc.h"
int iswupper(wint_t wc)
{
#include <wctype.h>
-#include "libc.h"
int iswxdigit(wint_t wc)
{
#include <ctype.h>
-#include "libc.h"
int isxdigit(int c)
{
#include <ctype.h>
-#include "libc.h"
int tolower(int c)
{
#include <ctype.h>
-#include "libc.h"
int toupper(int c)
{
#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)
#include <wctype.h>
#include <string.h>
-#include "libc.h"
wctrans_t wctrans(const char *class)
{
#include <dirent.h>
#include <unistd.h>
+#include <stdlib.h>
#include "__dirent.h"
-#include "libc.h"
int closedir(DIR *dir)
{
-#include "libc.h"
+#include <unistd.h>
char **__environ = 0;
weak_alias(__environ, ___environ);
#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);
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include "libc.h"
char *getenv(const char *name)
{
#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);
#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);
#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[] = {
#include <stdarg.h>
#include <errno.h>
#include "syscall.h"
-#include "libc.h"
int fcntl(int fd, int cmd, ...)
{
#include <fenv.h>
-#include "libc.h"
+#include <features.h>
/* __fesetround wrapper for arch independent argument check */
#include <fenv.h>
-#include "libc.h"
+#include <features.h>
#if __HAVE_68881__ || __mcffpu__
#define _GNU_SOURCE
#include <fenv.h>
-#include "libc.h"
+#include <features.h>
static inline double get_fpscr_f(void)
{
#include <fenv.h>
-#include "libc.h"
+#include <features.h>
static inline unsigned get_fpc(void)
{
#include <elf.h>
#include <stdint.h>
#include <stddef.h>
-#include "libc.h"
+#include <stdarg.h>
#if UINTPTR_MAX == 0xffffffff
typedef Elf32_Ehdr Ehdr;
#include <stdint.h>
-#include "libc.h"
+#include <features.h>
hidden void *__fdpic_fixup(void *map, uintptr_t *a, uintptr_t *z)
{
/* 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)
#ifndef MALLOC_IMPL_H
#define MALLOC_IMPL_H
-#include "libc.h"
#include <sys/mman.h>
hidden void *__expand_heap(size_t *);
-#include "libc.h"
+#include <features.h>
hidden int __shcall(void *arg, int (*func)(void *))
{
#include <stdio.h>
#include "syscall.h"
-#include "libc.h"
#define UNGET 8
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);
#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
#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)
{
#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)
{
#include <dlfcn.h>
#include "dynlink.h"
-#include "libc.h"
static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict ra)
{
#define _GNU_SOURCE
#include <dlfcn.h>
-#include "libc.h"
static int stub_dladdr(const void *addr, Dl_info *info)
{
#include <dlfcn.h>
#include "dynlink.h"
-#include "libc.h"
int dlclose(void *p)
{
#include <stdarg.h>
#include "pthread_impl.h"
#include "dynlink.h"
-#include "libc.h"
char *dlerror()
{
#define _GNU_SOURCE
#include <dlfcn.h>
#include "dynlink.h"
-#include "libc.h"
int dlinfo(void *dso, int req, void *res)
{
#include <dlfcn.h>
#include "dynlink.h"
-#include "libc.h"
static void *stub_dlopen(const char *file, int mode)
{
#include <stddef.h>
#include <dynlink.h>
-#include "libc.h"
ptrdiff_t __tlsdesc_static()
{
#define _GNU_SOURCE
#include <unistd.h>
#include <fcntl.h>
-#include "libc.h"
int euidaccess(const char *filename, int amode)
{
#include <utmpx.h>
#include <stddef.h>
#include <errno.h>
-#include "libc.h"
void endutxent(void)
{
#include "syscall.h"
-#include "libc.h"
#ifdef SYS_cacheflush
int _flush_cache(void *addr, int len, int op)
+#define _BSD_SOURCE
#include <dirent.h>
#include "syscall.h"
+#include "libc.h"
int getdents(int fd, struct dirent *buf, size_t len)
{
#include <sys/fsuid.h>
#include "syscall.h"
-#include "libc.h"
int setfsgid(gid_t gid)
{
#include <sys/fsuid.h>
#include "syscall.h"
-#include "libc.h"
int setfsuid(uid_t uid)
{
#include <sys/sysinfo.h>
#include "syscall.h"
-#include "libc.h"
int __lsysinfo(struct sysinfo *info)
{
#include <sys/sysinfo.h>
#include "syscall.h"
-#include "libc.h"
#define klong long long
#define kulong unsigned long long
#include <locale.h>
#include "locale_impl.h"
-#include "libc.h"
static const char *dummy(const char *msg, const struct __locale_map *lm)
{
#include <sys/mman.h>
#include <ctype.h>
#include "locale_impl.h"
-#include "libc.h"
#include "atomic.h"
#include "pleval.h"
#include <stdlib.h>
#include "locale_impl.h"
-#include "libc.h"
void freelocale(locale_t l)
{
#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"
#include <stdlib.h>
#include <string.h>
#include "locale_impl.h"
-#include "libc.h"
int __loc_is_allocated(locale_t loc)
{
#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)
{
#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)
#include <stdlib.h>
#include <errno.h>
#include <limits.h>
-#include "libc.h"
-#include "atomic.h"
static char *current_domain;
#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)
#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)
#include <stdlib.h>
#include <stdint.h>
#include <errno.h>
-#include "libc.h"
#include "malloc_impl.h"
void *__memalign(size_t align, size_t len)
#define _GNU_SOURCE
#include <math.h>
#include <stdint.h>
-#include "libc.h"
double exp10(double x)
{
#define _GNU_SOURCE
#include <math.h>
#include <stdint.h>
-#include "libc.h"
float exp10f(float x)
{
#define _GNU_SOURCE
#include <float.h>
#include <math.h>
-#include "libc.h"
#include "libm.h"
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
*/
#include "libm.h"
-#include "libc.h"
static const double
pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */
*/
#include "libm.h"
-#include "libc.h"
static const float
pi = 3.1415927410e+00, /* 0x40490fdb */
#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)
#include <math.h>
-#include "libc.h"
double remainder(double x, double y)
{
#include <math.h>
-#include "libc.h"
float remainderf(float x, float y)
{
#include <math.h>
#include "libm.h"
-#include "libc.h"
int __signgam = 0;
#include <string.h>
#include <libgen.h>
-#include "libc.h"
char *basename(char *s)
{
#include <string.h>
#include <limits.h>
#include <stdlib.h>
-#include "libc.h"
#include "locale_impl.h"
#include "stdio_impl.h"
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
-#include "libc.h"
#include "syscall.h"
int posix_openpt(int flags)
#include <sys/mman.h>
#include "syscall.h"
-#include "libc.h"
int __madvise(void *addr, size_t len, int advice)
{
#include <stdint.h>
#include <stdarg.h>
#include "syscall.h"
-#include "libc.h"
static void dummy(void) { }
weak_alias(dummy, __vm_wait);
#include <sys/mman.h>
#include "syscall.h"
-#include "libc.h"
static void dummy(void) { }
weak_alias(dummy, __vm_wait);
#define bittab __fsmu8
#include <stdint.h>
-#include "libc.h"
+#include <features.h>
extern hidden const uint32_t bittab[];
#include <sys/socket.h>
#include "syscall.h"
-#include "libc.h"
int accept(int fd, struct sockaddr *restrict addr, socklen_t *restrict len)
{
#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)
{
#include <sys/socket.h>
#include "syscall.h"
-#include "libc.h"
int connect(int fd, const struct sockaddr *addr, socklen_t len)
{
#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)
{
#include <netdb.h>
-#include "libc.h"
void sethostent(int x)
{
#include <limits.h>
#include <string.h>
#include <stdio.h>
+#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#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)
{
#include <netdb.h>
#include <ctype.h>
#include <string.h>
+#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include "lookup.h"
#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)
{
#include <sys/socket.h>
#include <limits.h>
#include "syscall.h"
-#include "libc.h"
ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
{
#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,
#include <resolv.h>
#include <netdb.h>
-#include "libc.h"
int res_query(const char *name, int class, int type, unsigned char *dest, int len)
{
#include <resolv.h>
-#include "libc.h"
int __res_send(const unsigned char *msg, int msglen, unsigned char *answer, int anslen)
{
#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)
#include <string.h>
#include <errno.h>
#include "syscall.h"
-#include "libc.h"
ssize_t sendmsg(int fd, const struct msghdr *msg, int flags)
{
#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)
{
#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);
#include <unistd.h>
#include <errno.h>
#include <limits.h>
-#include "libc.h"
extern char **__environ;
#include "syscall.h"
#include "pthread_impl.h"
#include "fdop.h"
-#include "libc.h"
struct args {
int p[2];
#include <spawn.h>
#include <errno.h>
#include "pthread_impl.h"
-#include "libc.h"
extern char **__environ;
#include <sys/wait.h>
#include "syscall.h"
-#include "libc.h"
int waitid(idtype_t type, id_t id, siginfo_t *info, int options)
{
#include <sys/wait.h>
#include "syscall.h"
-#include "libc.h"
pid_t waitpid(pid_t pid, int *status, int options)
{
#include <stdlib.h>
#include <string.h>
#include <search.h>
-#include "libc.h"
/*
open addressing hash table with 2^n table size
#include <time.h>
#include <signal.h>
#include "syscall.h"
-#include "libc.h"
int poll(struct pollfd *fds, nfds_t n, int timeout)
{
#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)
{
#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)
{
#include <signal.h>
#include "syscall.h"
-#include "libc.h"
void (*signal(int sig, void (*func)(int)))(int)
{
#include <setjmp.h>
#include <signal.h>
#include "syscall.h"
-#include "libc.h"
hidden int __sigsetjmp_tail(sigjmp_buf jb, int ret)
{
#include <signal.h>
#include "syscall.h"
-#include "libc.h"
int sigsuspend(const sigset_t *mask)
{
#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)
{
#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])
{
#include <fcntl.h>
#include <errno.h>
#include <string.h>
+#include "libc.h"
FILE *__fdopen(int fd, const char *mode)
{
#include "stdio_impl.h"
-#include "libc.h"
+#include <stdlib.h>
static void dummy(FILE *f) { }
weak_alias(dummy, __unlist_locked_file);
#include "stdio_impl.h"
+#include "libc.h"
int fgetpos(FILE *restrict f, fpos_t *restrict pos)
{
#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;
#include <fcntl.h>
#include <string.h>
#include <errno.h>
+#include "libc.h"
FILE *fopen(const char *restrict filename, const char *restrict mode)
{
#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
#include <stdio.h>
#include <stdarg.h>
-#include "libc.h"
int fscanf(FILE *restrict f, const char *restrict fmt, ...)
{
#include "stdio_impl.h"
+#include "libc.h"
int __fseeko_unlocked(FILE *f, off_t off, int whence)
{
#include "stdio_impl.h"
+#include "libc.h"
int fsetpos(FILE *f, const fpos_t *pos)
{
#include "stdio_impl.h"
#include <limits.h>
#include <errno.h>
+#include "libc.h"
off_t __ftello_unlocked(FILE *f)
{
#include <stdio.h>
#include <stdarg.h>
#include <wchar.h>
-#include "libc.h"
int fwscanf(FILE *restrict f, const wchar_t *restrict fmt, ...)
{
#include "stdio_impl.h"
#include <string.h>
+#include <stdlib.h>
#include <inttypes.h>
#include <errno.h>
#include <errno.h>
#include <limits.h>
#include <string.h>
+#include <stdlib.h>
+#include "libc.h"
struct cookie {
char **bufp;
#include <errno.h>
#include <limits.h>
#include <string.h>
+#include <stdlib.h>
+#include "libc.h"
struct cookie {
wchar_t **bufp;
#include <stdio.h>
#include <stdarg.h>
-#include "libc.h"
int scanf(const char *restrict fmt, ...)
{
#include <stdio.h>
#include <stdarg.h>
-#include "libc.h"
int sscanf(const char *restrict s, const char *restrict fmt, ...)
{
#include <stdarg.h>
#include <wchar.h>
-#include "libc.h"
int swscanf(const wchar_t *restrict s, const wchar_t *restrict fmt, ...)
{
#include <fcntl.h>
#include <stdlib.h>
#include "stdio_impl.h"
+#include "libc.h"
#define MAXTRIES 100
#include <string.h>
#include <stdarg.h>
#include <stddef.h>
+#include <stdlib.h>
#include <wchar.h>
#include <inttypes.h>
#include <math.h>
#include <string.h>
#include <stdarg.h>
#include <stddef.h>
+#include <stdlib.h>
#include <wchar.h>
#include <inttypes.h>
#include "shgetc.h"
#include "intscan.h"
#include "floatscan.h"
-#include "libc.h"
#define SIZE_hh -2
#define SIZE_h -1
#include <stdio.h>
#include <stdarg.h>
-#include "libc.h"
int vscanf(const char *restrict fmt, va_list ap)
{
#include "stdio_impl.h"
-#include "libc.h"
static size_t do_read(FILE *f, unsigned char *buf, size_t len)
{
#include <limits.h>
#include <errno.h>
#include <stdint.h>
+#include <stdlib.h>
#include <wchar.h>
struct cookie {
#include "stdio_impl.h"
-#include "libc.h"
#include <wchar.h>
static size_t wstring_read(FILE *f, unsigned char *buf, size_t len)
#include <stdio.h>
#include <stdarg.h>
#include <wchar.h>
-#include "libc.h"
int vwscanf(const wchar_t *restrict fmt, va_list ap)
{
#include <stdio.h>
#include <stdarg.h>
#include <wchar.h>
-#include "libc.h"
int wscanf(const wchar_t *restrict fmt, ...)
{
#include "shgetc.h"
#include "floatscan.h"
#include "stdio_impl.h"
-#include "libc.h"
static long double strtox(const char *s, char **p, int prec)
{
#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)
{
#include <string.h>
-#include "libc.h"
void *__memrchr(const void *m, int c, size_t n)
{
#include <string.h>
#include <stdint.h>
#include <limits.h>
-#include "libc.h"
#define ALIGN (sizeof(size_t))
#define ONES ((size_t)-1/UCHAR_MAX)
#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)
#include <strings.h>
#include <ctype.h>
-#include "libc.h"
int strcasecmp(const char *_l, const char *_r)
{
#include <string.h>
#include <stdint.h>
#include <limits.h>
-#include "libc.h"
#define ALIGN (sizeof(size_t))
#define ONES ((size_t)-1/UCHAR_MAX)
#include <string.h>
#include <errno.h>
-#include "libc.h"
int strerror_r(int err, char *buf, size_t buflen)
{
#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)
#include <strings.h>
#include <ctype.h>
-#include "libc.h"
int strncasecmp(const char *_l, const char *_r, size_t n)
{
#include <stdlib.h>
#include <wchar.h>
-#include "libc.h"
wchar_t *wcsdup(const wchar_t *s)
{
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
-#include "libc.h"
int __mkostemps(char *template, int len, int flags)
{
#include <termios.h>
#include <sys/ioctl.h>
#include <errno.h>
-#include "libc.h"
int cfsetospeed(struct termios *tio, speed_t speed)
{
#include <termios.h>
#include <sys/ioctl.h>
-#include "libc.h"
#include "syscall.h"
int tcdrain(int fd)
#include "pthread_impl.h"
#include "syscall.h"
-#include "libc.h"
hidden long __syscall_cp_c();
#include <stddef.h>
#include "pthread_impl.h"
-#include "libc.h"
void *__tls_get_addr(tls_mod_off_t *v)
{
#include "pthread_impl.h"
#include "syscall.h"
-#include "libc.h"
hidden void *__start_sched(void *p)
{
#include <string.h>
#include "pthread_impl.h"
#include "syscall.h"
-#include "libc.h"
hidden long __cancel(), __syscall_cp_asm(), __syscall_cp_c();
#include <pthread.h>
#include <threads.h>
-#include "libc.h"
static int __pthread_equal(pthread_t a, pthread_t b)
{
#include "pthread_impl.h"
#include <threads.h>
-#include "libc.h"
static pthread_t __pthread_self_internal()
{
#include "pthread_impl.h"
-#include "libc.h"
static void dummy()
{
#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,
#include <langinfo.h>
#include "locale_impl.h"
#include "atomic.h"
-#include "libc.h"
char *__asctime_r(const struct tm *restrict tm, char *restrict buf)
{
#include <errno.h>
#include <stdint.h>
#include "syscall.h"
-#include "libc.h"
#include "atomic.h"
#ifdef VDSO_CGT_SYM
#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)
{
#include "time_impl.h"
#include <errno.h>
-#include "libc.h"
struct tm *__gmtime_r(const time_t *restrict t, struct tm *restrict tm)
{
#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)
{
#include <time.h>
#include "syscall.h"
-#include "libc.h"
int nanosleep(const struct timespec *req, struct timespec *rem)
{
#include <time.h>
#include <limits.h>
#include "locale_impl.h"
-#include "libc.h"
#include "time_impl.h"
static int is_leap(int y)
#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)
{
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"
-#include "libc.h"
int acct(const char *filename)
{
#include <unistd.h>
#include <errno.h>
#include "syscall.h"
-#include "libc.h"
static int dummy(int fd)
{
#include <errno.h>
#include <fcntl.h>
#include "syscall.h"
-#include "libc.h"
int __dup3(int old, int new, int flags)
{
#include <unistd.h>
-#include <signal.h>
#include "syscall.h"
-#include "libc.h"
int pause(void)
{
#include <unistd.h>
#include "syscall.h"
-#include "libc.h"
ssize_t read(int fd, void *buf, size_t count)
{
#include <sys/uio.h>
#include "syscall.h"
-#include "libc.h"
ssize_t readv(int fd, const struct iovec *iov, int count)
{
#include <unistd.h>
#include "syscall.h"
-#include "libc.h"
ssize_t write(int fd, const void *buf, size_t count)
{
#include <sys/uio.h>
#include "syscall.h"
-#include "libc.h"
ssize_t writev(int fd, const struct iovec *iov, int count)
{