add more alias functions, update prototypes according to musl changes
[ldtrace] / func.h
diff --git a/func.h b/func.h
index 87f2d7c..a167cf1 100644 (file)
--- a/func.h
+++ b/func.h
@@ -1,6 +1,12 @@
 typedef void (*signal_handler)(int);
 
 V(_Noreturn void, _Exit, (int ec), (ec))
+F(int, _IO_getc, (FILE *f), (f))
+F(int, _IO_getc_unlocked, (FILE *f), (f))
+F(int, _IO_putc, (int c, FILE *f), (c,f))
+F(int, _IO_putc_unlocked, (int c, FILE *f), (c,f))
+F(int, _IO_feof_unlocked, (FILE *f), (f))
+F(int, _IO_ferror_unlocked, (FILE *f), (f))
 V(void, __acquire_ptc, (), ())
 V(void, __aio_wake, (void), ())
 F(char *, __asctime, (const struct tm *restrict tm, char *restrict buf), (tm,buf))
@@ -28,7 +34,7 @@ F(const int32_t **, __ctype_tolower_loc, (void), ())
 F(const int32_t **, __ctype_toupper_loc, (void), ())
 F(int, __cxa_atexit, (void (*func)(void *), void *arg, void *dso), (func,arg,dso))
 V(void, __cxa_finalize, (void *dso), (dso))
-F(int, __dladdr, (void *addr, Dl_info *info), (addr,info))
+F(int, __dladdr, (const void *addr, Dl_info *info), (addr,info))
 F(int, __dlinfo, (void *dso, int req, void *res), (dso,req,res))
 F(void *, __dlsym, (void *restrict p, const char *restrict s, void *restrict ra), (p,s,ra))
 F(int, __dn_comp, (const char *src, unsigned char *dst, int space, unsigned char **dnptrs, unsigned char **lastdnptr), (src,dst,space,dnptrs,lastdnptr))
@@ -40,6 +46,7 @@ F(int, __dns_query, (unsigned char *r, const void *a, int family, int ptr), (r,a
 V(void, __do_cleanup_pop, (struct __ptcb *cb), (cb))
 V(void, __do_cleanup_push, (struct __ptcb *cb), (cb))
 F(int, __dup3, (int old, int new, int flags), (old,new,flags))
+F(locale_t, __duplocale, (locale_t old), (old))
 F(void *, __dynlink, (int argc, char **argv), (argc,argv))
 F(int *, __errno_location, (void), ())
 F(int, __execvpe, (const char *file, char *const argv[], char *const envp[]), (file,argv,envp))
@@ -67,6 +74,7 @@ F(size_t, __freadahead, (FILE *f), (f))
 F(int, __freading, (FILE *f), (f))
 F(const char *, __freadptr, (FILE *f, size_t *sizep), (f,sizep))
 V(void, __freadptrinc, (FILE *f, size_t inc), (f,inc))
+V(void, __freelocale, (locale_t l), (l))
 F(int, __fseeko, (FILE *f, off_t off, int whence), (f,off,whence))
 F(int, __fseeko_unlocked, (FILE *f, off_t off, int whence), (f,off,whence))
 V(void, __fseterr, (FILE *f), (f))
@@ -83,6 +91,7 @@ F(int, __fwriting, (FILE *f), (f))
 F(int, __fxstat, (int ver, int fd, struct stat *buf), (ver,fd,buf))
 F(int, __fxstatat, (int ver, int fd, const char *path, struct stat *buf, int flag), (ver,fd,path,buf,flag))
 V(void, __get_handler_set, (sigset_t *set), (set))
+F(ssize_t, __getdelim, (char **restrict s, size_t *restrict n, int delim, FILE *restrict f), (s,n,delim,f))
 F(int, __getdents, (int fd, struct dirent *buf, size_t len), (fd,buf,len))
 F(struct group *, __getgrent_a, (FILE *f, struct group *gr, char **line, size_t *size, char ***mem, size_t *nmem), (f,gr,line,size,mem,nmem))
 F(struct passwd *, __getpwent_a, (FILE *f, struct passwd *pw, char **line, size_t *size), (f,pw,line,size))
@@ -97,6 +106,18 @@ F(void *, __install_initial_tls, (void *p), (p))
 F(unsigned long long, __intscan, (FILE *f, unsigned base, int pok, unsigned long long lim), (f,base,pok,lim))
 F(long double, __invtrigl_R, (long double z), (z))
 F(int, __ipparse, (void *dest, int family, const char *s0), (dest,family,s0))
+XF(int, __isoc99_fscanf, (FILE *restrict f, const char *restrict fmt, ...))
+XF(int, __isoc99_fwscanf, (FILE *restrict f, const wchar_t *restrict fmt, ...))
+XF(int, __isoc99_scanf, (const char *restrict fmt, ...))
+XF(int, __isoc99_sscanf, (const char *restrict s, const char *restrict fmt, ...))
+XF(int, __isoc99_swscanf, (const wchar_t *restrict s, const wchar_t *restrict fmt, ...))
+F(int, __isoc99_vfscanf, (FILE *restrict f, const char *restrict fmt, va_list ap), (f,fmt,ap))
+F(int, __isoc99_vfwscanf, (FILE *restrict f, const wchar_t *restrict fmt, va_list ap), (f,fmt,ap))
+F(int, __isoc99_vscanf, (const char *restrict fmt, va_list ap), (fmt,ap))
+F(int, __isoc99_vsscanf, (const char *restrict s, const char *restrict fmt, va_list ap), (s,fmt,ap))
+F(int, __isoc99_vswscanf, (const wchar_t *restrict s, const wchar_t *restrict fmt, va_list ap), (s,fmt,ap))
+F(int, __isoc99_vwscanf, (const wchar_t *restrict fmt, va_list ap), (fmt,ap))
+XF(int, __isoc99_wscanf, (const wchar_t *restrict fmt, ...))
 F(double complex, __ldexp_cexp, (double complex z, int expt), (z,expt))
 F(float complex, __ldexp_cexpf, (float complex z, int expt), (z,expt))
 F(double, __lgamma_r, (double x, int *signgamp), (x,signgamp))
@@ -111,6 +132,7 @@ F(int, __libc_start_main, (int (*main)(int,char **,char **), int argc, char **ar
 F(struct tm *, __localtime_r, (const time_t *restrict t, struct tm *restrict tm), (t,tm))
 V(void, __lock, (volatile int *l), (l))
 F(int, __lockfile, (FILE *f), (f))
+V(_Noreturn void, __longjmp, (jmp_buf buf, int v), (buf,v))
 F(int, __lxstat, (int ver, const char *path, struct stat *buf), (ver,path,buf))
 F(int, __madvise, (void *addr, size_t len, int advice), (addr,len,advice))
 F(const char unsigned *, __map_file, (const char *pathname, size_t *size), (pathname,size))
@@ -121,15 +143,18 @@ F(void *, __mmap, (void *start, size_t len, int prot, int flags, int fd, off_t o
 F(int, __month_to_secs, (int month, int is_leap), (month,is_leap))
 XF(void *, __mremap, (void *old_addr, size_t old_len, size_t new_len, int flags, ...))
 F(int, __munmap, (void *start, size_t len), (start,len))
+F(locale_t, __newlocale, (int mask, const char *name, locale_t base), (mask,name,base))
 F(char *, __nl_langinfo, (nl_item item), (item))
 F(char *, __nl_langinfo_l, (nl_item item, locale_t loc), (item,loc))
 F(int, __overflow, (FILE *f, int _c), (f,_c))
 F(long double, __p1evll, (long double x, const long double *P, int n), (x,P,n))
 F(int, __parsespent, (char *s, struct spwd *sp), (s,sp))
 F(long double, __polevll, (long double x, const long double *P, int n), (x,P,n))
+F(int, __posix_getopt, (int argc, char * const argv[], const char *optstring), (argc,argv,optstring))
 F(int, __posix_spawnx, (pid_t *restrict res, const char *restrict path, int (*exec)(const char *, char *const *, char *const *), const posix_spawn_file_actions_t *fa, const posix_spawnattr_t *restrict attr, char *const argv[restrict], char *const envp[restrict]), (res,path,exec,fa,attr,argv,envp))
 V(void, __procfdname, (char *buf, unsigned fd), (buf,fd))
 F(pthread_t, __pthread_self_def, (), ())
+F(pthread_t, __pthread_self_init, (), ())
 V(void, __pthread_tsd_run_dtors, (), ())
 F(int, __ptsname_r, (int fd, char *buf, size_t len), (fd,buf,len))
 F(int, __putenv, (char *s, int a), (s,a))
@@ -150,6 +175,7 @@ F(int, __secs_to_tm, (long long t, struct tm *tm), (t,tm))
 V(void, __secs_to_zone, (long long t, int local, int *isdst, long *offset, long *oppoff, const char **zonename), (t,local,isdst,offset,oppoff,zonename))
 V(void, __seek_on_exit, (), ())
 F(int, __set_thread_area, (void *p), (p))
+F(int, __setjmp, (jmp_buf buf), (buf))
 F(int, __setrlimit, (int resource, const struct rlimit *rlim), (resource,rlim))
 F(int, __setxid, (int nr, int id, int eid, int sid), (nr,id,eid,sid))
 F(int, __shgetc, (FILE *f), (f))
@@ -179,6 +205,12 @@ F(char *, __strdup, (const char *s), (s))
 F(const char *, __strftime_fmt_1, (char (*s)[100], size_t *l, int f, const struct tm *tm, locale_t loc), (s,l,f,tm,loc))
 F(size_t, __strftime_l, (char *restrict s, size_t n, const char *restrict f, const struct tm *restrict tm, locale_t loc), (s,n,f,tm,loc))
 F(size_t, __string_read, (FILE *f, unsigned char *buf, size_t len), (f,buf,len))
+F(intmax_t, __strtoimax_internal, (const char *restrict s, char **restrict p, int base), (s,p,base))
+F(long, __strtol_internal, (const char *restrict s, char **restrict p, int base), (s,p,base))
+F(long long, __strtoll_internal, (const char *restrict s, char **restrict p, int base), (s,p,base))
+F(unsigned long, __strtoul_internal, (const char *restrict s, char **restrict p, int base), (s,p,base))
+F(unsigned long long, __strtoull_internal, (const char *restrict s, char **restrict p, int base), (s,p,base))
+F(uintmax_t, __strtoumax_internal, (const char *restrict s, char **restrict p, int base), (s,p,base))
 F(size_t, __strxfrm_l, (char *restrict dest, const char *restrict src, size_t n, locale_t loc), (dest,src,n,loc))
 V(void, __synccall, (void (*func)(void *), void *ctx), (func,ctx))
 F(long, __syscall_cp, (long nr, long u, long v, long w, long x, long y, long z), (nr,u,v,w,x,y,z))
@@ -197,14 +229,19 @@ V(void, __tzset, (), ())
 F(int, __uflow, (FILE *f), (f))
 V(void, __unlock, (volatile int *l), (l))
 V(void, __unlockfile, (FILE *f), (f))
+F(locale_t, __uselocale, (locale_t l), (l))
 F(pid_t, __vfork, (void), ())
 V(void, __vm_lock, (int inc), (inc))
+V(void, __vm_lock_impl, (int inc), (inc))
 V(void, __vm_unlock, (void), ())
+V(void, __vm_unlock_impl, (void), ())
 V(void, __vsyslog, (int priority, const char *message, va_list ap), (priority,message,ap))
 V(void, __wait, (volatile int *addr, volatile int *waiters, int val, int priv), (addr,waiters,val,priv))
 F(int, __wcscoll_l, (const wchar_t *l, const wchar_t *r, locale_t locale), (l,r,locale))
 F(size_t, __wcsftime_l, (wchar_t *restrict s, size_t n, const wchar_t *restrict f, const struct tm *restrict tm, locale_t loc), (s,n,f,tm,loc))
 F(size_t, __wcsxfrm_l, (wchar_t *restrict dest, const wchar_t *restrict src, size_t n, locale_t loc), (dest,src,n,loc))
+F(char *, __xpg_basename, (char *s), (s))
+F(int, __xpg_strerror_r, (int err, char *buf, size_t buflen), (err,buf,buflen))
 F(int, __xstat, (int ver, const char *path, struct stat *buf), (ver,path,buf))
 F(long long, __year_to_secs, (long long year, int *is_leap), (year,is_leap))
 F(int, __yield, (), ())
@@ -212,8 +249,10 @@ V(void, _dl_debug_state, (void), ())
 V(_Noreturn void, _exit, (int status), (status))
 F(int, _flush_cache, (void *addr, int len, int op), (addr,len,op))
 V(void, _flushlbf, (void), ())
+V(_Noreturn void, _longjmp, (jmp_buf buf, int v), (buf,v))
 V(void, _pthread_cleanup_pop, (struct __ptcb *cb, int run), (cb,run))
 V(void, _pthread_cleanup_push, (struct __ptcb *cb, void (*f)(void *), void *x), (cb,f,x))
+F(int, _setjmp, (jmp_buf buf), (buf))
 V(void, _start, (), ())
 F(long, a64l, (const char *s), (s))
 V(_Noreturn void, abort, (void), ())
@@ -273,12 +312,15 @@ F(int, bind, (int fd, const struct sockaddr *addr, socklen_t len), (fd,addr,len)
 F(char *, bind_textdomain_codeset, (const char *domainname, const char *codeset), (domainname,codeset))
 F(char *, bindtextdomain, (const char *domainname, const char *dirname), (domainname,dirname))
 F(int, brk, (void *end), (end))
+F(signal_handler, bsd_signal, (int sig, void (*func)(int)), (sig,func))
 F(void *, bsearch, (const void *key, const void *base, size_t nel, size_t width, int (*cmp)(const void *, const void *)), (key,base,nel,width,cmp))
 F(wint_t, btowc, (int c), (c))
 V(void, bzero, (void *s, size_t n), (s,n))
 F(double, cabs, (double complex z), (z))
 F(float, cabsf, (float complex z), (z))
 F(long double, cabsl, (long double complex z), (z))
+F(int, cachectl, (void *addr, int len, int op), (addr,len,op))
+F(int, cacheflush, (void *addr, int len, int op), (addr,len,op))
 F(double complex, cacos, (double complex z), (z))
 F(float complex, cacosf, (float complex z), (z))
 F(double complex, cacosh, (double complex z), (z))
@@ -326,6 +368,7 @@ F(speed_t, cfgetospeed, (const struct termios *tio), (tio))
 V(void, cfmakeraw, (struct termios *t), (t))
 F(int, cfsetispeed, (struct termios *tio, speed_t speed), (tio,speed))
 F(int, cfsetospeed, (struct termios *tio, speed_t speed), (tio,speed))
+F(int, cfsetspeed, (struct termios *tio, speed_t speed), (tio,speed))
 F(int, chdir, (const char *path), (path))
 F(int, chmod, (const char *path, mode_t mode), (path,mode))
 F(int, chown, (const char *path, uid_t uid, gid_t gid), (path,uid,gid))
@@ -335,15 +378,18 @@ F(float, cimagf, (float complex z), (z))
 F(long double, cimagl, (long double complex z), (z))
 F(int, clearenv, (), ())
 V(void, clearerr, (FILE *f), (f))
+V(void, clearerr_unlocked, (FILE *f), (f))
 F(clock_t, clock, (), ())
 F(int, clock_adjtime, (clockid_t clock_id, struct timex *utx), (clock_id,utx))
 F(int, clock_getcpuclockid, (pid_t pid, clockid_t *clk), (pid,clk))
 F(int, clock_getres, (clockid_t clk, struct timespec *ts), (clk,ts))
+F(int, clock_gettime, (clockid_t clk, struct timespec *ts), (clk,ts))
 F(int, clock_nanosleep, (clockid_t clk, int flags, const struct timespec *req, struct timespec *rem), (clk,flags,req,rem))
 F(int, clock_settime, (clockid_t clk, const struct timespec *ts), (clk,ts))
 F(double complex, clog, (double complex z), (z))
 F(float complex, clogf, (float complex z), (z))
 F(long double complex, clogl, (long double complex z), (z))
+XF(int, clone, (int (*func)(void *), void *stack, int flags, void *arg, ...))
 F(int, close, (int fd), (fd))
 F(int, closedir, (DIR *dir), (dir))
 V(void, closelog, (void), ())
@@ -372,6 +418,7 @@ F(float, crealf, (float complex z), (z))
 F(long double, creall, (long double complex z), (z))
 F(int, creat, (const char *filename, mode_t mode), (filename,mode))
 F(char *, crypt, (const char *key, const char *salt), (key,salt))
+F(char *, crypt_r, (const char *key, const char *salt, struct crypt_data *data), (key,salt,data))
 F(double complex, csin, (double complex z), (z))
 F(float complex, csinf, (float complex z), (z))
 F(double complex, csinh, (double complex z), (z))
@@ -401,23 +448,31 @@ F(int, dirfd, (DIR *d), (d))
 F(char *, dirname, (char *s), (s))
 F(div_t, div, (int num, int den), (num,den))
 F(int, dl_iterate_phdr, (int(*callback)(struct dl_phdr_info *info, size_t size, void *data), void *data), (callback,data))
-F(int, dladdr, (void *addr, Dl_info *info), (addr,info))
+F(int, dladdr, (const void *addr, Dl_info *info), (addr,info))
 F(int, dlclose, (void *p), (p))
 F(char *, dlerror, (), ())
 F(int, dlinfo, (void *dso, int req, void *res), (dso,req,res))
 F(void *, dlopen, (const char *file, int mode), (file,mode))
 //F(void *, dlsym, (void *restrict p, const char *restrict s), (p,s))
+F(int, dn_comp, (const char *src, unsigned char *dst, int space, unsigned char **dnptrs, unsigned char **lastdnptr), (src,dst,space,dnptrs,lastdnptr))
+F(int, dn_expand, (const unsigned char *base, const unsigned char *end, const unsigned char *src, char *dest, int space), (base,end,src,dest,space))
 F(int, dn_skipname, (const unsigned char *s, const unsigned char *end), (s,end))
 F(char *, dngettext, (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n), (domainname,msgid1,msgid2,n))
 XF(int, dprintf, (int fd, const char *restrict fmt, ...))
 F(double, drand48, (void), ())
+F(double, drem, (double x, double y), (x,y))
+F(float, dremf, (float x, float y), (x,y))
 F(int, dup, (int fd), (fd))
 F(int, dup2, (int old, int new), (old,new))
+F(int, dup3, (int old, int new, int flags), (old,new,flags))
 F(locale_t, duplocale, (locale_t old), (old))
+F(int, eaccess, (const char *filename, int amode), (filename,amode))
 F(char *, ecvt, (double x, int n, int *dp, int *sign), (x,n,dp,sign))
+V(void, endgrent, (), ())
 V(void, endhostent, (void), ())
 F(int, endmntent, (FILE *f), (f))
 V(void, endprotoent, (void), ())
+V(void, endpwent, (), ())
 V(void, endservent, (void), ())
 V(void, endspent, (), ())
 V(void, endusershell, (void), ())
@@ -485,6 +540,7 @@ F(int, fdatasync, (int fd), (fd))
 F(double, fdim, (double x, double y), (x,y))
 F(float, fdimf, (float x, float y), (x,y))
 F(long double, fdiml, (long double x, long double y), (x,y))
+F(FILE *, fdopen, (int fd, const char *mode), (fd,mode))
 F(DIR *, fdopendir, (int fd), (fd))
 F(int, feclearexcept, (int mask), (mask))
 F(int, fegetenv, (fenv_t *envp), (envp))
@@ -492,8 +548,10 @@ F(int, fegetexceptflag, (fexcept_t *fp, int mask), (fp,mask))
 F(int, fegetround, (void), ())
 F(int, feholdexcept, (fenv_t *envp), (envp))
 F(int, feof, (FILE *f), (f))
+F(int, feof_unlocked, (FILE *f), (f))
 F(int, feraiseexcept, (int mask), (mask))
 F(int, ferror, (FILE *f), (f))
+F(int, ferror_unlocked, (FILE *f), (f))
 F(int, fesetenv, (const fenv_t *envp), (envp))
 F(int, fesetexceptflag, (const fexcept_t *fp, int mask), (fp,mask))
 F(int, fesetround, (int r), (r))
@@ -501,18 +559,24 @@ F(int, fetestexcept, (int mask), (mask))
 F(int, feupdateenv, (const fenv_t *envp), (envp))
 F(int, fexecve, (int fd, char *const argv[], char *const envp[]), (fd,argv,envp))
 F(int, fflush, (FILE *f), (f))
+F(int, fflush_unlocked, (FILE *f), (f))
 F(int, ffs, (int i), (i))
 F(int, fgetc, (FILE *f), (f))
+F(int, fgetc_unlocked, (FILE *f), (f))
+F(wint_t, fgetwc_unlocked, (FILE *f), (f))
 F(struct group *, fgetgrent, (FILE *f), (f))
 F(char *, fgetln, (FILE *f, size_t *plen), (f,plen))
 F(int, fgetpos, (FILE *restrict f, fpos_t *restrict pos), (f,pos))
 F(struct passwd *, fgetpwent, (FILE *f), (f))
 F(char *, fgets, (char *restrict s, int n, FILE *restrict f), (s,n,f))
+F(char *, fgets_unlocked, (char *restrict s, int n, FILE *restrict f), (s,n,f))
 F(struct spwd *, fgetspent, (FILE *f), (f))
 F(wint_t, fgetwc, (FILE *f), (f))
 F(wchar_t *, fgetws, (wchar_t *restrict s, int n, FILE *restrict f), (s,n,f))
+F(wchar_t *, fgetws_unlocked, (wchar_t *restrict s, int n, FILE *restrict f), (s,n,f))
 F(ssize_t, fgetxattr, (int filedes, const char *name, void *value, size_t size), (filedes,name,value,size))
 F(int, fileno, (FILE *f), (f))
+F(int, fileno_unlocked, (FILE *f), (f))
 F(int, finite, (double x), (x))
 F(int, finitef, (float x), (x))
 F(ssize_t, flistxattr, (int filedes, char *list, size_t size), (filedes,list,size))
@@ -540,11 +604,17 @@ F(pid_t, fork, (void), ())
 F(int, forkpty, (int *m, char *name, const struct termios *tio, const struct winsize *ws), (m,name,tio,ws))
 F(long, fpathconf, (int fd, int name), (fd,name))
 XF(int, fprintf, (FILE *restrict f, const char *restrict fmt, ...))
+F(int, fpurge, (FILE *f), (f))
 F(int, fputc, (int c, FILE *f), (c,f))
+F(int, fputc_unlocked, (int c, FILE *f), (c,f))
+F(wint_t, fputwc_unlocked, (wchar_t c, FILE *f), (c,f))
 F(int, fputs, (const char *restrict s, FILE *restrict f), (s,f))
+F(int, fputs_unlocked, (const char *restrict s, FILE *restrict f), (s,f))
 F(wint_t, fputwc, (wchar_t c, FILE *f), (c,f))
 F(int, fputws, (const wchar_t *restrict ws, FILE *restrict f), (ws,f))
+F(int, fputws_unlocked, (const wchar_t *restrict ws, FILE *restrict f), (ws,f))
 F(size_t, fread, (void *restrict destv, size_t size, size_t nmemb, FILE *restrict f), (destv,size,nmemb,f))
+F(size_t, fread_unlocked, (void *restrict destv, size_t size, size_t nmemb, FILE *restrict f), (destv,size,nmemb,f))
 V(void, free, (void *p), (p))
 V(void, freeaddrinfo, (struct addrinfo *p), (p))
 V(void, freeifaddrs, (struct ifaddrs *ifp), (ifp))
@@ -556,13 +626,16 @@ F(float, frexpf, (float x, int *e), (x,e))
 F(long double, frexpl, (long double x, int *e), (x,e))
 XF(int, fscanf, (FILE *restrict f, const char *restrict fmt, ...))
 F(int, fseek, (FILE *f, long off, int whence), (f,off,whence))
+F(int, fseeko, (FILE *f, off_t off, int whence), (f,off,whence))
 F(int, fsetpos, (FILE *f, const fpos_t *pos), (f,pos))
 F(int, fsetxattr, (int filedes, const char *name, const void *value, size_t size, int flags), (filedes,name,value,size,flags))
 F(int, fstat, (int fd, struct stat *st), (fd,st))
 F(int, fstatat, (int fd, const char *restrict path, struct stat *restrict buf, int flag), (fd,path,buf,flag))
+F(int, fstatfs, (int fd, struct statfs *buf), (fd,buf))
 F(int, fstatvfs, (int fd, struct statvfs *buf), (fd,buf))
 F(int, fsync, (int fd), (fd))
 F(long, ftell, (FILE *f), (f))
+F(off_t, ftello, (FILE *f), (f))
 F(int, ftime, (struct timeb *tp), (tp))
 F(key_t, ftok, (const char *path, int id), (path,id))
 F(int, ftruncate, (int fd, off_t length), (fd,length))
@@ -575,6 +648,7 @@ F(int, futimesat, (int dirfd, const char *pathname, const struct timeval times[2
 F(int, fwide, (FILE *f, int mode), (f,mode))
 XF(int, fwprintf, (FILE *restrict f, const wchar_t *restrict fmt, ...))
 F(size_t, fwrite, (const void *restrict src, size_t size, size_t nmemb, FILE *restrict f), (src,size,nmemb,f))
+F(size_t, fwrite_unlocked, (const void *restrict src, size_t size, size_t nmemb, FILE *restrict f), (src,size,nmemb,f))
 XF(int, fwscanf, (FILE *restrict f, const wchar_t *restrict fmt, ...))
 F(const char *, gai_strerror, (int ecode), (ecode))
 F(char *, gcvt, (double x, int n, char *b), (x,n,b))
@@ -587,6 +661,7 @@ F(int, getchar_unlocked, (void), ())
 F(char *, getcwd, (char *buf, size_t size), (buf,size))
 F(struct tm *, getdate, (const char *s), (s))
 F(ssize_t, getdelim, (char **restrict s, size_t *restrict n, int delim, FILE *restrict f), (s,n,delim,f))
+F(int, getdents, (int fd, struct dirent *buf, size_t len), (fd,buf,len))
 F(int, getdomainname, (char *name, size_t len), (name,len))
 F(int, getdtablesize, (void), ())
 F(gid_t, getegid, (void), ())
@@ -665,11 +740,14 @@ F(struct utmpx *, getutxid, (const struct utmpx *ut), (ut))
 F(struct utmpx *, getutxline, (const struct utmpx *ut), (ut))
 F(int, getw, (FILE *f), (f))
 F(wint_t, getwc, (FILE *f), (f))
+F(wint_t, getwc_unlocked, (FILE *f), (f))
 F(wint_t, getwchar, (void), ())
+F(wint_t, getwchar_unlocked, (void), ())
 F(ssize_t, getxattr, (const char *path, const char *name, void *value, size_t size), (path,name,value,size))
 F(int, glob, (const char *restrict pat, int flags, int (*errfunc)(const char *path, int err), glob_t *restrict g), (pat,flags,errfunc,g))
 V(void, globfree, (glob_t *g), (g))
 F(struct tm *, gmtime, (const time_t *t), (t))
+F(struct tm *, gmtime_r, (const time_t *restrict t, struct tm *restrict tm), (t,tm))
 F(int, grantpt, (int fd), (fd))
 F(char *, hasmntopt, (const struct mntent *mnt, const char *opt), (mnt,opt))
 F(int, hcreate, (size_t nel), (nel))
@@ -698,7 +776,7 @@ F(char *, index, (const char *s, int c), (s,c))
 F(in_addr_t, inet_addr, (const char *p), (p))
 F(int, inet_aton, (const char *cp, struct in_addr *inp), (cp,inp))
 F(in_addr_t, inet_lnaof, (struct in_addr in), (in))
-F(struct in_addr, inet_makeaddr, (int net, int host), (net,host))
+F(struct in_addr, inet_makeaddr, (in_addr_t net, in_addr_t host), (net,host))
 F(in_addr_t, inet_netof, (struct in_addr in), (in))
 F(in_addr_t, inet_network, (const char *p), (p))
 F(char *, inet_ntoa, (struct in_addr in), (in))
@@ -710,7 +788,7 @@ F(char *, initstate, (unsigned seed, char *state, size_t size), (seed,state,size
 F(int, inotify_add_watch, (int fd, const char *pathname, uint32_t mask), (fd,pathname,mask))
 F(int, inotify_init, (), ())
 F(int, inotify_init1, (int flags), (flags))
-F(int, inotify_rm_watch, (int fd, uint32_t wd), (fd,wd))
+F(int, inotify_rm_watch, (int fd, int wd), (fd,wd))
 V(void, insque, (void *element, void *pred), (element,pred))
 XF(int, ioctl, (int fd, int req, ...))
 F(int, ioperm, (unsigned long from, unsigned long num, int turn_on), (from,num,turn_on))
@@ -790,6 +868,9 @@ F(long double, ldexpl, (long double x, int n), (x,n))
 F(ldiv_t, ldiv, (long num, long den), (num,den))
 F(void *, lfind, (const void *key, const void *base, size_t *nelp, size_t width, int (*compar)(const void *, const void *)), (key,base,nelp,width,compar))
 F(double, lgamma, (double x), (x))
+F(double, lgamma_r, (double x, int *signgamp), (x,signgamp))
+F(float, lgammaf_r, (float x, int *signgamp), (x,signgamp))
+F(long double, lgammal_r, (long double x, int *sg), (x,sg))
 F(float, lgammaf, (float x), (x))
 F(long double, lgammal, (long double x), (x))
 F(ssize_t, lgetxattr, (const char *path, const char *name, void *value, size_t size), (path,name,value,size))
@@ -809,6 +890,7 @@ F(long long, llroundf, (float x), (x))
 F(long long, llroundl, (long double x), (x))
 F(struct lconv *, localeconv, (void), ())
 F(struct tm *, localtime, (const time_t *t), (t))
+F(struct tm *, localtime_r, (const time_t *restrict t, struct tm *restrict tm), (t,tm))
 F(int, lockf, (int fd, int op, off_t size), (fd,op,size))
 F(double, log, (double x), (x))
 F(double, log10, (double x), (x))
@@ -825,6 +907,7 @@ F(float, logbf, (float x), (x))
 F(long double, logbl, (long double x), (x))
 F(float, logf, (float x), (x))
 F(long double, logl, (long double x), (x))
+V(_Noreturn void, longjmp, (jmp_buf buf, int v), (buf,v))
 F(long, lrand48, (void), ())
 F(int, lremovexattr, (const char *path, const char *name), (path,name))
 F(long, lrint, (double x), (x))
@@ -838,6 +921,7 @@ F(off_t, lseek, (int fd, off_t offset, int whence), (fd,offset,whence))
 F(int, lsetxattr, (const char *path, const char *name, const void *value, size_t size, int flags), (path,name,value,size,flags))
 F(int, lstat, (const char *restrict path, struct stat *restrict buf), (path,buf))
 F(int, lutimes, (const char *filename, const struct timeval tv[2]), (filename,tv))
+F(int, madvise, (void *addr, size_t len, int advice), (addr,len,advice))
 F(void *, malloc, (size_t n), (n))
 F(int, mblen, (const char *s, size_t n), (s,n))
 F(size_t, mbrlen, (const char *restrict s, size_t n, mbstate_t *restrict st), (s,n,st))
@@ -847,6 +931,7 @@ F(size_t, mbsnrtowcs, (wchar_t *restrict wcs, const char **restrict src, size_t
 F(size_t, mbsrtowcs, (wchar_t *restrict ws, const char **restrict src, size_t wn, mbstate_t *restrict st), (ws,src,wn,st))
 F(size_t, mbstowcs, (wchar_t *restrict ws, const char *restrict s, size_t wn), (ws,s,wn))
 F(int, mbtowc, (wchar_t *restrict wc, const char *restrict src, size_t n), (wc,src,n))
+F(void *, memalign, (size_t align, size_t len), (align,len))
 F(void *, memccpy, (void *restrict dest, const void *restrict src, int c, size_t n), (dest,src,c,n))
 F(void *, memchr, (const void *src, int c, size_t n), (src,c,n))
 F(int, memcmp, (const void *vl, const void *vr, size_t n), (vl,vr,n))
@@ -854,6 +939,7 @@ F(void *, memcpy, (void *restrict dest, const void *restrict src, size_t n), (de
 F(void *, memmem, (const void *h0, size_t k, const void *n0, size_t l), (h0,k,n0,l))
 F(void *, memmove, (void *dest, const void *src, size_t n), (dest,src,n))
 F(void *, mempcpy, (void *dest, const void *src, size_t n), (dest,src,n))
+F(void *, memrchr, (const void *m, int c, size_t n), (m,c,n))
 F(void *, memset, (void *dest, int c, size_t n), (dest,c,n))
 F(int, mincore, (void *addr, size_t len, unsigned char *vec), (addr,len,vec))
 F(int, mkdir, (const char *path, mode_t mode), (path,mode))
@@ -864,12 +950,14 @@ F(int, mkfifoat, (int fd, const char *path, mode_t mode), (fd,path,mode))
 F(int, mknod, (const char *path, mode_t mode, dev_t dev), (path,mode,dev))
 F(int, mknodat, (int fd, const char *path, mode_t mode, dev_t dev), (fd,path,mode,dev))
 F(int, mkostemp, (char *template, int flags), (template,flags))
+F(int, mkostemps, (char *template, int len, int flags), (template,len,flags))
 F(int, mkstemp, (char *template), (template))
 F(int, mkstemps, (char *template, int len), (template,len))
 F(char *, mktemp, (char *template), (template))
 F(time_t, mktime, (struct tm *tm), (tm))
 F(int, mlock, (const void *addr, size_t len), (addr,len))
 F(int, mlockall, (int flags), (flags))
+F(void *, mmap, (void *start, size_t len, int prot, int flags, int fd, off_t off), (start,len,prot,flags,fd,off))
 F(double, modf, (double x, double *iptr), (x,iptr))
 F(float, modff, (float x, float *iptr), (x,iptr))
 F(long double, modfl, (long double x, long double *iptr), (x,iptr))
@@ -886,6 +974,7 @@ F(ssize_t, mq_timedreceive, (mqd_t mqd, char *restrict msg, size_t len, unsigned
 F(int, mq_timedsend, (mqd_t mqd, const char *msg, size_t len, unsigned prio, const struct timespec *at), (mqd,msg,len,prio,at))
 F(int, mq_unlink, (const char *name), (name))
 F(long, mrand48, (void), ())
+XF(void *, mremap, (void *old_addr, size_t old_len, size_t new_len, int flags, ...))
 F(int, msgctl, (int q, int cmd, struct msqid_ds *buf), (q,cmd,buf))
 F(int, msgget, (key_t k, int flag), (k,flag))
 F(ssize_t, msgrcv, (int q, void *m, size_t len, long type, int flag), (q,m,len,type,flag))
@@ -893,6 +982,7 @@ F(int, msgsnd, (int q, const void *m, size_t len, int flag), (q,m,len,flag))
 F(int, msync, (void *start, size_t len, int flags), (start,len,flags))
 F(int, munlock, (const void *addr, size_t len), (addr,len))
 F(int, munlockall, (void), ())
+F(int, munmap, (void *start, size_t len), (start,len))
 F(double, nan, (const char *s), (s))
 F(float, nanf, (const char *s), (s))
 F(long double, nanl, (const char *s), (s))
@@ -910,6 +1000,8 @@ F(long double, nexttowardl, (long double x, long double y), (x,y))
 F(int, nftw, (const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags), (path,fn,fd_limit,flags))
 F(char *, ngettext, (const char *msgid1, const char *msgid2, unsigned long int n), (msgid1,msgid2,n))
 F(int, nice, (int inc), (inc))
+F(char *, nl_langinfo, (nl_item item), (item))
+F(char *, nl_langinfo_l, (nl_item item, locale_t loc), (item,loc))
 F(long, nrand48, (unsigned short s[3]), (s))
 F(uint32_t, ntohl, (uint32_t n), (n))
 F(uint16_t, ntohs, (uint16_t n), (n))
@@ -958,6 +1050,9 @@ F(int, posix_spawnattr_setsigdefault, (posix_spawnattr_t *restrict attr, const s
 F(int, posix_spawnattr_setsigmask, (posix_spawnattr_t *restrict attr, const sigset_t *restrict mask), (attr,mask))
 F(int, posix_spawnp, (pid_t *restrict res, const char *restrict file, const posix_spawn_file_actions_t *fa, const posix_spawnattr_t *restrict attr, char *const argv[restrict], char *const envp[restrict]), (res,file,fa,attr,argv,envp))
 F(double, pow, (double x, double y), (x,y))
+F(double, pow10, (double x), (x))
+F(float, pow10f, (float x), (x))
+F(long double, pow10l, (long double x), (x))
 F(float, powf, (float x, float y), (x,y))
 F(long double, powl, (long double x, long double y), (x,y))
 F(int, ppoll, (struct pollfd *fds, nfds_t n, const struct timespec *to, const sigset_t *mask), (fds,n,to,mask))
@@ -1057,6 +1152,7 @@ F(int, pthread_rwlockattr_destroy, (pthread_rwlockattr_t *a), (a))
 F(int, pthread_rwlockattr_getpshared, (const pthread_rwlockattr_t *restrict a, int *restrict pshared), (a,pshared))
 F(int, pthread_rwlockattr_init, (pthread_rwlockattr_t *a), (a))
 F(int, pthread_rwlockattr_setpshared, (pthread_rwlockattr_t *a, int pshared), (a,pshared))
+F(pthread_t, pthread_self, (), ())
 F(int, pthread_setaffinity_np, (pthread_t td, size_t size, const cpu_set_t *set), (td,size,set))
 F(int, pthread_setcancelstate, (int new, int *old), (new,old))
 F(int, pthread_setcanceltype, (int new, int *old), (new,old))
@@ -1073,6 +1169,7 @@ F(int, pthread_spin_unlock, (pthread_spinlock_t *s), (s))
 V(void, pthread_testcancel, (), ())
 XF(long, ptrace, (int req, ...))
 F(char *, ptsname, (int fd), (fd))
+F(int, ptsname_r, (int fd, char *buf, size_t len), (fd,buf,len))
 F(int, putc, (int c, FILE *f), (c,f))
 F(int, putc_unlocked, (int c, FILE *f), (c,f))
 F(int, putchar, (int c), (c))
@@ -1085,7 +1182,9 @@ F(int, putspent, (const struct spwd *sp, FILE *f), (sp,f))
 F(struct utmpx *, pututxline, (const struct utmpx *ut), (ut))
 F(int, putw, (int x, FILE *f), (x,f))
 F(wint_t, putwc, (wchar_t c, FILE *f), (c,f))
+F(wint_t, putwc_unlocked, (wchar_t c, FILE *f), (c,f))
 F(wint_t, putwchar, (wchar_t c), (c))
+F(wint_t, putwchar_unlocked, (wchar_t c), (c))
 F(ssize_t, pwrite, (int fd, const void *buf, size_t size, off_t ofs), (fd,buf,size,ofs))
 F(ssize_t, pwritev, (int fd, const struct iovec *iov, int count, off_t ofs), (fd,iov,count,ofs))
 V(void, qsort, (void *base, size_t nel, size_t width, int (*cmp)(const void*, const void*)), (base,nel,width,cmp))
@@ -1115,7 +1214,7 @@ V(void, regfree, (regex_t *preg), (preg))
 F(double, remainder, (double x, double y), (x,y))
 F(float, remainderf, (float x, float y), (x,y))
 F(long double, remainderl, (long double x, long double y), (x,y))
-F(int, remap_file_pages, (void *addr, size_t size, int prot, ssize_t pgoff, int flags), (addr,size,prot,pgoff,flags))
+F(int, remap_file_pages, (void *addr, size_t size, int prot, size_t pgoff, int flags), (addr,size,prot,pgoff,flags))
 F(int, remove, (const char *path), (path))
 F(int, removexattr, (const char *path, const char *name), (path,name))
 V(void, remque, (void *element), (element))
@@ -1126,6 +1225,7 @@ F(int, rename, (const char *old, const char *new), (old,new))
 F(int, renameat, (int oldfd, const char *old, int newfd, const char *new), (oldfd,old,newfd,new))
 F(int, res_init, (), ())
 F(int, res_query, (const char *name, int class, int type, unsigned char *dest, int len), (name,class,type,dest,len))
+F(int, res_search, (const char *name, int class, int type, unsigned char *dest, int len), (name,class,type,dest,len))
 V(void, rewind, (FILE *f), (f))
 V(void, rewinddir, (DIR *dir), (dir))
 F(char *, rindex, (const char *s, int c), (s,c))
@@ -1156,6 +1256,7 @@ F(int, sched_rr_get_interval, (pid_t pid, struct timespec *ts), (pid,ts))
 F(int, sched_setaffinity, (pid_t tid, size_t size, const cpu_set_t *set), (tid,size,set))
 F(int, sched_setparam, (pid_t pid, const struct sched_param *param), (pid,param))
 F(int, sched_setscheduler, (pid_t pid, int sched, const struct sched_param *param), (pid,sched,param))
+F(int, sched_yield, (), ())
 F(unsigned short *, seed48, (unsigned short *s), (s))
 V(void, seekdir, (DIR *dir, long off), (dir,off))
 F(int, select, (int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, struct timeval *restrict tv), (n,rfds,wfds,efds,tv))
@@ -1191,6 +1292,7 @@ F(int, setgroups, (size_t count, const gid_t list[]), (count,list))
 V(void, sethostent, (int x), (x))
 F(int, sethostname, (const char *name, size_t len), (name,len))
 F(int, setitimer, (int which, const struct itimerval *restrict new, struct itimerval *restrict old), (which,new,old))
+F(int, setjmp, (jmp_buf buf), (buf))
 V(void, setlinebuf, (FILE *f), (f))
 F(char *, setlocale, (int category, const char *locale), (category,locale))
 F(int, setlogmask, (int maskpri), (maskpri))
@@ -1224,9 +1326,10 @@ F(int, shmctl, (int id, int cmd, struct shmid_ds *buf), (id,cmd,buf))
 F(int, shmdt, (const void *addr), (addr))
 F(int, shmget, (key_t key, size_t size, int flag), (key,size,flag))
 F(int, shutdown, (int fd, int how), (fd,how))
+F(int, sigaction, (int sig, const struct sigaction *restrict sa, struct sigaction *restrict old), (sig,sa,old))
 F(int, sigaddset, (sigset_t *set, int sig), (set,sig))
 F(int, sigaltstack, (const stack_t *restrict ss, stack_t *restrict old), (ss,old))
-F(int, sigandset, (sigset_t *dest, sigset_t *left, sigset_t *right), (dest,left,right))
+F(int, sigandset, (sigset_t *dest, const sigset_t *left, const sigset_t *right), (dest,left,right))
 F(int, sigdelset, (sigset_t *set, int sig), (set,sig))
 F(int, sigemptyset, (sigset_t *set), (set))
 F(int, sigfillset, (sigset_t *set), (set))
@@ -1240,7 +1343,7 @@ F(signal_handler, signal, (int sig, void (*func)(int)), (sig,func))
 F(int, signalfd, (int fd, const sigset_t *sigs, int flags), (fd,sigs,flags))
 F(double, significand, (double x), (x))
 F(float, significandf, (float x), (x))
-F(int, sigorset, (sigset_t *dest, sigset_t *left, sigset_t *right), (dest,left,right))
+F(int, sigorset, (sigset_t *dest, const sigset_t *left, const sigset_t *right), (dest,left,right))
 F(int, sigpause, (int sig), (sig))
 F(int, sigpending, (sigset_t *set), (set))
 F(int, sigprocmask, (int how, const sigset_t *restrict set, sigset_t *restrict old), (how,set,old))
@@ -1276,17 +1379,22 @@ V(void, srand48, (long seed), (seed))
 V(void, srandom, (unsigned seed), (seed))
 XF(int, sscanf, (const char *restrict s, const char *restrict fmt, ...))
 F(int, stat, (const char *restrict path, struct stat *restrict buf), (path,buf))
+F(int, statfs, (const char *path, struct statfs *buf), (path,buf))
 F(int, statvfs, (const char *restrict path, struct statvfs *restrict buf), (path,buf))
-F(int, stime, (time_t *t), (t))
+F(int, stime, (const time_t *t), (t))
+F(char *, stpcpy, (char *restrict d, const char *restrict s), (d,s))
+F(char *, stpncpy, (char *restrict d, const char *restrict s, size_t n), (d,s,n))
 F(int, strcasecmp, (const char *_l, const char *_r), (_l,_r))
 F(int, strcasecmp_l, (const char *l, const char *r, locale_t loc), (l,r,loc))
 F(char *, strcasestr, (const char *h, const char *n), (h,n))
 F(char *, strcat, (char *restrict dest, const char *restrict src), (dest,src))
 F(char *, strchr, (const char *s, int c), (s,c))
+F(char *, strchrnul, (const char *s, int c), (s,c))
 F(int, strcmp, (const char *l, const char *r), (l,r))
 F(int, strcoll, (const char *l, const char *r), (l,r))
 F(char *, strcpy, (char *restrict dest, const char *restrict src), (dest,src))
 F(size_t, strcspn, (const char *s, const char *c), (s,c))
+F(char *, strdup, (const char *s), (s))
 F(char *, strerror, (int e), (e))
 F(char *, strerror_l, (int err, locale_t l), (err,l))
 F(int, strerror_r, (int err, char *buf, size_t buflen), (err,buf,buflen))
@@ -1311,12 +1419,15 @@ F(char *, strsignal, (int signum), (signum))
 F(size_t, strspn, (const char *s, const char *c), (s,c))
 F(char *, strstr, (const char *h, const char *n), (h,n))
 F(double, strtod, (const char *restrict s, char **restrict p), (s,p))
+//F(double, strtod_l, (const char *restrict s, char **restrict p, struct __locale_struct *l), (s,p,l))
 F(float, strtof, (const char *restrict s, char **restrict p), (s,p))
+//F(float, strtof_l, (const char *restrict s, char **restrict p, struct __locale_struct *l), (s,p,l))
 F(intmax_t, strtoimax, (const char *restrict s, char **restrict p, int base), (s,p,base))
 F(char *, strtok, (char *restrict s, const char *restrict sep), (s,sep))
 F(char *, strtok_r, (char *restrict s, const char *restrict sep, char **restrict p), (s,sep,p))
 F(long, strtol, (const char *restrict s, char **restrict p, int base), (s,p,base))
 F(long double, strtold, (const char *restrict s, char **restrict p), (s,p))
+//F(long double, strtold_l, (const char *restrict s, char **restrict p, struct __locale_struct *l), (s,p,l))
 F(long long, strtoll, (const char *restrict s, char **restrict p, int base), (s,p,base))
 F(unsigned long, strtoul, (const char *restrict s, char **restrict p, int base), (s,p,base))
 F(unsigned long long, strtoull, (const char *restrict s, char **restrict p, int base), (s,p,base))
@@ -1398,6 +1509,7 @@ F(void *, tsearch, (const void *key, void **rootp, int (*compar)(const void *, c
 F(char *, ttyname, (int fd), (fd))
 F(int, ttyname_r, (int fd, char *name, size_t size), (fd,name,size))
 V(void, twalk, (const void *root, void (*action)(const void *, VISIT, int)), (root,action))
+V(void, tzset, (), ())
 F(unsigned, ualarm, (unsigned value, unsigned interval), (value,interval))
 F(int, ulckpwdf, (), ())
 XF(long, ulimit, (int cmd, ...))
@@ -1424,6 +1536,7 @@ F(int, vdprintf, (int fd, const char *restrict fmt, va_list ap), (fd,fmt,ap))
 V(_Noreturn void, verr, (int status, const char *fmt, va_list ap), (status,fmt,ap))
 V(_Noreturn void, verrx, (int status, const char *fmt, va_list ap), (status,fmt,ap))
 F(int, versionsort, (const struct dirent **a, const struct dirent **b), (a,b))
+F(pid_t, vfork, (void), ())
 F(int, vfprintf, (FILE *restrict f, const char *restrict fmt, va_list ap), (f,fmt,ap))
 F(int, vfscanf, (FILE *restrict f, const char *restrict fmt, va_list ap), (f,fmt,ap))
 F(int, vfwprintf, (FILE *restrict f, const wchar_t *restrict fmt, va_list ap), (f,fmt,ap))
@@ -1437,6 +1550,7 @@ F(int, vsprintf, (char *restrict s, const char *restrict fmt, va_list ap), (s,fm
 F(int, vsscanf, (const char *restrict s, const char *restrict fmt, va_list ap), (s,fmt,ap))
 F(int, vswprintf, (wchar_t *restrict s, size_t n, const wchar_t *restrict fmt, va_list ap), (s,n,fmt,ap))
 F(int, vswscanf, (const wchar_t *restrict s, const wchar_t *restrict fmt, va_list ap), (s,fmt,ap))
+V(void, vsyslog, (int priority, const char *message, va_list ap), (priority,message,ap))
 V(void, vwarn, (const char *fmt, va_list ap), (fmt,ap))
 V(void, vwarnx, (const char *fmt, va_list ap), (fmt,ap))
 F(int, vwprintf, (const wchar_t *restrict fmt, va_list ap), (fmt,ap))