update makefile
[musl-tables] / abi_func.cc
index ed88811..d04a252 100644 (file)
 #include <stropts.h>
 #include <sys/acct.h>
 #include <sys/auxv.h>
+#ifndef __GLIBC__
+#include <sys/cachectl.h>
+#endif
 #include <sys/epoll.h>
 #include <sys/eventfd.h>
 #include <sys/fanotify.h>
 #include <sys/file.h>
 #include <sys/fsuid.h>
 #include <sys/inotify.h>
+// #include <sys/io.h>
 #include <sys/ioctl.h>
 #include <sys/ipc.h>
 #include <sys/klog.h>
+#include <sys/membarrier.h>
 #include <sys/mman.h>
 #include <sys/mount.h>
 #include <sys/msg.h>
@@ -78,6 +83,7 @@
 #include <sys/prctl.h>
 #include <sys/ptrace.h>
 #include <sys/quota.h>
+#include <sys/random.h>
 #include <sys/reboot.h>
 #include <sys/resource.h>
 #include <sys/select.h>
 #include <sys/xattr.h>
 #include <syslog.h>
 #include <termios.h>
+#ifndef __GLIBC__
+#include <threads.h>
+#endif
 #include <time.h>
 #include <uchar.h>
 #include <ucontext.h>
 #define M(x) x
 #endif
 
-// T(ElfW)
+// ElfW
 T(_Exit)
 T(__assert_fail)
 T(__ctype_get_mb_cur_max)
@@ -155,7 +164,7 @@ T(__signbit)
 T(__signbitf)
 T(__signbitl)
 T(_exit)
-// _flush_cache
+M(T(_flush_cache))
 T(_flushlbf)
 T(_longjmp)
 M(T(_pthread_cleanup_pop))
@@ -228,15 +237,15 @@ T(c32rtomb)
 T(cabs)
 T(cabsf)
 T(cabsl)
-// cachectl
-// cacheflush
+M(T(cachectl))
+M(T(cacheflush))
 T(cacos)
 T(cacosf)
 T(cacosh)
 T(cacoshf)
 T(cacoshl)
 T(cacosl)
-// call_once
+M(T(call_once))
 T(calloc)
 T(carg)
 T(cargf)
@@ -301,17 +310,18 @@ T(clone)
 T(close)
 T(closedir)
 T(closelog)
-// cnd_broadcast
-// cnd_destroy
-// cnd_init
-// cnd_signal
-// cnd_timedwait
-// cnd_wait
+M(T(cnd_broadcast))
+M(T(cnd_destroy))
+M(T(cnd_init))
+M(T(cnd_signal))
+M(T(cnd_timedwait))
+M(T(cnd_wait))
 T(confstr)
 T(conj)
 T(conjf)
 T(conjl)
 T(connect)
+T(copy_file_range)
 T(copysign)
 T(copysignf)
 T(copysignl)
@@ -431,6 +441,7 @@ T(exp2f)
 T(exp2l)
 T(expf)
 T(expl)
+T(explicit_bzero)
 T(expm1)
 T(expm1f)
 T(expm1l)
@@ -486,7 +497,9 @@ T(fgets)
 T(fgets_unlocked)
 T(fgetspent)
 T(fgetwc)
+T(fgetwc_unlocked)
 T(fgetws)
+T(fgetws_unlocked)
 T(fgetxattr)
 T(fileno)
 T(fileno_unlocked)
@@ -514,6 +527,7 @@ T(fmodl)
 T(fmtmsg)
 T(fnmatch)
 T(fopen)
+T(fopencookie)
 T(fork)
 T(forkpty)
 T(fpathconf)
@@ -523,7 +537,9 @@ T(fputc_unlocked)
 T(fputs)
 T(fputs_unlocked)
 T(fputwc)
+T(fputwc_unlocked)
 T(fputws)
+T(fputws_unlocked)
 T(fread)
 T(fread_unlocked)
 T(free)
@@ -582,6 +598,7 @@ M(T(getdents))
 T(getdomainname)
 T(getdtablesize)
 T(getegid)
+T(getentropy)
 T(getenv)
 T(geteuid)
 T(getgid)
@@ -632,6 +649,7 @@ T(getpwnam)
 T(getpwnam_r)
 T(getpwuid)
 T(getpwuid_r)
+T(getrandom)
 T(getresgid)
 T(getresuid)
 T(getrlimit)
@@ -660,7 +678,9 @@ T(getutxid)
 T(getutxline)
 T(getw)
 T(getwc)
+T(getwc_unlocked)
 T(getwchar)
+T(getwchar_unlocked)
 T(getxattr)
 T(glob)
 T(globfree)
@@ -858,10 +878,12 @@ T(mbsrtowcs)
 T(mbstowcs)
 T(mbtowc)
 T(memalign)
+T(membarrier)
 T(memccpy)
 M(T(memchr))
 T(memcmp)
 T(memcpy)
+T(memfd_create)
 T(memmem)
 T(memmove)
 T(mempcpy)
@@ -882,6 +904,7 @@ T(mkstemps)
 T(mktemp)
 T(mktime)
 T(mlock)
+T(mlock2)
 T(mlockall)
 T(mmap)
 T(modf)
@@ -906,15 +929,16 @@ T(msgget)
 T(msgrcv)
 T(msgsnd)
 T(msync)
-// mtx_destroy
-// mtx_init
-// mtx_lock
-// mtx_timedlock
-// mtx_trylock
-// mtx_unlock
+M(T(mtx_destroy))
+M(T(mtx_init))
+M(T(mtx_lock))
+M(T(mtx_timedlock))
+M(T(mtx_trylock))
+M(T(mtx_unlock))
 T(munlock)
 T(munlockall)
 T(munmap)
+T(name_to_handle_at)
 T(nan)
 T(nanf)
 T(nanl)
@@ -945,6 +969,7 @@ T(ns_skiprr)
 T(ntohl)
 T(ntohs)
 T(open)
+T(open_by_handle_at)
 T(open_memstream)
 T(open_wmemstream)
 T(openat)
@@ -967,8 +992,10 @@ T(posix_madvise)
 T(posix_memalign)
 T(posix_openpt)
 T(posix_spawn)
+T(posix_spawn_file_actions_addchdir_np)
 T(posix_spawn_file_actions_addclose)
 T(posix_spawn_file_actions_adddup2)
+T(posix_spawn_file_actions_addfchdir_np)
 T(posix_spawn_file_actions_addopen)
 T(posix_spawn_file_actions_destroy)
 T(posix_spawn_file_actions_init)
@@ -1048,6 +1075,7 @@ T(pthread_detach)
 T(pthread_equal)
 T(pthread_exit)
 T(pthread_getaffinity_np)
+T(pthread_getattr_default_np)
 T(pthread_getattr_np)
 T(pthread_getconcurrency)
 T(pthread_getcpuclockid)
@@ -1094,9 +1122,11 @@ T(pthread_rwlockattr_init)
 T(pthread_rwlockattr_setpshared)
 T(pthread_self)
 T(pthread_setaffinity_np)
+T(pthread_setattr_default_np)
 T(pthread_setcancelstate)
 T(pthread_setcanceltype)
 T(pthread_setconcurrency)
+T(pthread_setname_np)
 T(pthread_setschedparam)
 T(pthread_setschedprio)
 T(pthread_setspecific)
@@ -1107,6 +1137,8 @@ T(pthread_spin_lock)
 T(pthread_spin_trylock)
 T(pthread_spin_unlock)
 T(pthread_testcancel)
+T(pthread_timedjoin_np)
+T(pthread_tryjoin_np)
 T(ptrace)
 T(ptsname)
 T(ptsname_r)
@@ -1123,7 +1155,9 @@ T(pututline)
 T(pututxline)
 T(putw)
 T(putwc)
+T(putwc_unlocked)
 T(putwchar)
+T(putwchar_unlocked)
 T(pwrite)
 T(pwritev)
 T(qsort)
@@ -1201,6 +1235,7 @@ T(sched_setaffinity)
 T(sched_setparam)
 T(sched_setscheduler)
 T(sched_yield)
+T(secure_getenv)
 T(seed48)
 T(seekdir)
 T(select)
@@ -1428,14 +1463,14 @@ T(tfind)
 T(tgamma)
 T(tgammaf)
 T(tgammal)
-// thrd_create
-// thrd_current
-// thrd_detach
-// thrd_equal
-// thrd_exit
-// thrd_join
-// thrd_sleep
-// thrd_yield
+M(T(thrd_create))
+M(T(thrd_current))
+M(T(thrd_detach))
+M(T(thrd_equal))
+M(T(thrd_exit))
+M(T(thrd_join))
+M(T(thrd_sleep))
+M(T(thrd_yield))
 T(time)
 T(timegm)
 T(timer_create)
@@ -1466,10 +1501,10 @@ T(truncate)
 T(truncf)
 T(truncl)
 T(tsearch)
-// tss_create
-// tss_delete
-// tss_get
-// tss_set
+M(T(tss_create))
+M(T(tss_delete))
+M(T(tss_get))
+M(T(tss_set))
 T(ttyname)
 T(ttyname_r)
 T(twalk)
@@ -1543,6 +1578,7 @@ T(wcscpy)
 T(wcscspn)
 T(wcsdup)
 T(wcsftime)
+T(wcsftime_l)
 T(wcslen)
 T(wcsncasecmp)
 T(wcsncasecmp_l)