diff --git a/libc/arch-x86/syscalls/__brk.S b/libc/arch-x86/syscalls/__brk.S index b26e18760..e3e8bfdc8 100644 --- a/libc/arch-x86/syscalls/__brk.S +++ b/libc/arch-x86/syscalls/__brk.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__brk) pushl %ebx diff --git a/libc/arch-x86/syscalls/__fcntl.S b/libc/arch-x86/syscalls/__fcntl.S index 328df2421..3492b3b59 100644 --- a/libc/arch-x86/syscalls/__fcntl.S +++ b/libc/arch-x86/syscalls/__fcntl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__fcntl) pushl %ebx diff --git a/libc/arch-x86/syscalls/__fcntl64.S b/libc/arch-x86/syscalls/__fcntl64.S index b0fb98114..0fc5f21e2 100644 --- a/libc/arch-x86/syscalls/__fcntl64.S +++ b/libc/arch-x86/syscalls/__fcntl64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__fcntl64) pushl %ebx diff --git a/libc/arch-x86/syscalls/__fork.S b/libc/arch-x86/syscalls/__fork.S index 98e00c8cd..1a2064509 100644 --- a/libc/arch-x86/syscalls/__fork.S +++ b/libc/arch-x86/syscalls/__fork.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__fork) pushl %ebx diff --git a/libc/arch-x86/syscalls/__fstatfs64.S b/libc/arch-x86/syscalls/__fstatfs64.S index aeb686302..1e3487f11 100644 --- a/libc/arch-x86/syscalls/__fstatfs64.S +++ b/libc/arch-x86/syscalls/__fstatfs64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__fstatfs64) pushl %ebx diff --git a/libc/arch-x86/syscalls/__getcpu.S b/libc/arch-x86/syscalls/__getcpu.S index f50782c36..159acfc31 100644 --- a/libc/arch-x86/syscalls/__getcpu.S +++ b/libc/arch-x86/syscalls/__getcpu.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__getcpu) pushl %ebx diff --git a/libc/arch-x86/syscalls/__getcwd.S b/libc/arch-x86/syscalls/__getcwd.S index 9337342b9..5479dbf33 100644 --- a/libc/arch-x86/syscalls/__getcwd.S +++ b/libc/arch-x86/syscalls/__getcwd.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__getcwd) pushl %ebx diff --git a/libc/arch-x86/syscalls/__getpriority.S b/libc/arch-x86/syscalls/__getpriority.S index 60fa3bbf8..5d67dbc95 100644 --- a/libc/arch-x86/syscalls/__getpriority.S +++ b/libc/arch-x86/syscalls/__getpriority.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__getpriority) pushl %ebx diff --git a/libc/arch-x86/syscalls/__ioctl.S b/libc/arch-x86/syscalls/__ioctl.S index 0e8d189cd..485d0ebba 100644 --- a/libc/arch-x86/syscalls/__ioctl.S +++ b/libc/arch-x86/syscalls/__ioctl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__ioctl) pushl %ebx diff --git a/libc/arch-x86/syscalls/__llseek.S b/libc/arch-x86/syscalls/__llseek.S index b34788690..1f1721e30 100644 --- a/libc/arch-x86/syscalls/__llseek.S +++ b/libc/arch-x86/syscalls/__llseek.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__llseek) pushl %ebx diff --git a/libc/arch-x86/syscalls/__mmap2.S b/libc/arch-x86/syscalls/__mmap2.S index 010a98918..f97ec3892 100644 --- a/libc/arch-x86/syscalls/__mmap2.S +++ b/libc/arch-x86/syscalls/__mmap2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__mmap2) pushl %ebx diff --git a/libc/arch-x86/syscalls/__open.S b/libc/arch-x86/syscalls/__open.S index 87cda4595..f386cae10 100644 --- a/libc/arch-x86/syscalls/__open.S +++ b/libc/arch-x86/syscalls/__open.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__open) pushl %ebx diff --git a/libc/arch-x86/syscalls/__openat.S b/libc/arch-x86/syscalls/__openat.S index 31db1dcfb..335bf3c18 100644 --- a/libc/arch-x86/syscalls/__openat.S +++ b/libc/arch-x86/syscalls/__openat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__openat) pushl %ebx diff --git a/libc/arch-x86/syscalls/__ptrace.S b/libc/arch-x86/syscalls/__ptrace.S index 1f143cc63..ff376a472 100644 --- a/libc/arch-x86/syscalls/__ptrace.S +++ b/libc/arch-x86/syscalls/__ptrace.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__ptrace) pushl %ebx diff --git a/libc/arch-x86/syscalls/__reboot.S b/libc/arch-x86/syscalls/__reboot.S index a32e8a8e8..cd6ef55f7 100644 --- a/libc/arch-x86/syscalls/__reboot.S +++ b/libc/arch-x86/syscalls/__reboot.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__reboot) pushl %ebx diff --git a/libc/arch-x86/syscalls/__rt_sigaction.S b/libc/arch-x86/syscalls/__rt_sigaction.S index 957bca183..7eeb92242 100644 --- a/libc/arch-x86/syscalls/__rt_sigaction.S +++ b/libc/arch-x86/syscalls/__rt_sigaction.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__rt_sigaction) pushl %ebx diff --git a/libc/arch-x86/syscalls/__rt_sigprocmask.S b/libc/arch-x86/syscalls/__rt_sigprocmask.S index a23e07997..111943d7a 100644 --- a/libc/arch-x86/syscalls/__rt_sigprocmask.S +++ b/libc/arch-x86/syscalls/__rt_sigprocmask.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__rt_sigprocmask) pushl %ebx diff --git a/libc/arch-x86/syscalls/__rt_sigtimedwait.S b/libc/arch-x86/syscalls/__rt_sigtimedwait.S index cf2b2a20b..0e23113bb 100644 --- a/libc/arch-x86/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-x86/syscalls/__rt_sigtimedwait.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__rt_sigtimedwait) pushl %ebx diff --git a/libc/arch-x86/syscalls/__sched_getaffinity.S b/libc/arch-x86/syscalls/__sched_getaffinity.S index da9f08ac5..5293efd46 100644 --- a/libc/arch-x86/syscalls/__sched_getaffinity.S +++ b/libc/arch-x86/syscalls/__sched_getaffinity.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__sched_getaffinity) pushl %ebx diff --git a/libc/arch-x86/syscalls/__set_thread_area.S b/libc/arch-x86/syscalls/__set_thread_area.S index 37f41d05f..95f1a5f2e 100644 --- a/libc/arch-x86/syscalls/__set_thread_area.S +++ b/libc/arch-x86/syscalls/__set_thread_area.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__set_thread_area) pushl %ebx diff --git a/libc/arch-x86/syscalls/__setresuid.S b/libc/arch-x86/syscalls/__setresuid.S index c16d2fb58..537c89770 100644 --- a/libc/arch-x86/syscalls/__setresuid.S +++ b/libc/arch-x86/syscalls/__setresuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__setresuid) pushl %ebx diff --git a/libc/arch-x86/syscalls/__setreuid.S b/libc/arch-x86/syscalls/__setreuid.S index 2ba521d7c..bc6cd25ac 100644 --- a/libc/arch-x86/syscalls/__setreuid.S +++ b/libc/arch-x86/syscalls/__setreuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__setreuid) pushl %ebx diff --git a/libc/arch-x86/syscalls/__setuid.S b/libc/arch-x86/syscalls/__setuid.S index 092ceb034..5a5ff6df9 100644 --- a/libc/arch-x86/syscalls/__setuid.S +++ b/libc/arch-x86/syscalls/__setuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__setuid) pushl %ebx diff --git a/libc/arch-x86/syscalls/__sigsuspend.S b/libc/arch-x86/syscalls/__sigsuspend.S index c69665f0c..6a5c6aacb 100644 --- a/libc/arch-x86/syscalls/__sigsuspend.S +++ b/libc/arch-x86/syscalls/__sigsuspend.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__sigsuspend) pushl %ebx diff --git a/libc/arch-x86/syscalls/__statfs64.S b/libc/arch-x86/syscalls/__statfs64.S index 58785ad55..f909cdaae 100644 --- a/libc/arch-x86/syscalls/__statfs64.S +++ b/libc/arch-x86/syscalls/__statfs64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__statfs64) pushl %ebx diff --git a/libc/arch-x86/syscalls/__sys_clone.S b/libc/arch-x86/syscalls/__sys_clone.S index 17e7c3b67..2a6197057 100644 --- a/libc/arch-x86/syscalls/__sys_clone.S +++ b/libc/arch-x86/syscalls/__sys_clone.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__sys_clone) pushl %ebx diff --git a/libc/arch-x86/syscalls/__syslog.S b/libc/arch-x86/syscalls/__syslog.S index 1216d75f8..26727906e 100644 --- a/libc/arch-x86/syscalls/__syslog.S +++ b/libc/arch-x86/syscalls/__syslog.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__syslog) pushl %ebx diff --git a/libc/arch-x86/syscalls/__timer_create.S b/libc/arch-x86/syscalls/__timer_create.S index 1817afc12..7bb27cae7 100644 --- a/libc/arch-x86/syscalls/__timer_create.S +++ b/libc/arch-x86/syscalls/__timer_create.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__timer_create) pushl %ebx diff --git a/libc/arch-x86/syscalls/__timer_delete.S b/libc/arch-x86/syscalls/__timer_delete.S index 1472a99ec..9b7ef3721 100644 --- a/libc/arch-x86/syscalls/__timer_delete.S +++ b/libc/arch-x86/syscalls/__timer_delete.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__timer_delete) pushl %ebx diff --git a/libc/arch-x86/syscalls/__timer_getoverrun.S b/libc/arch-x86/syscalls/__timer_getoverrun.S index 2204682f6..e3fb9bbbe 100644 --- a/libc/arch-x86/syscalls/__timer_getoverrun.S +++ b/libc/arch-x86/syscalls/__timer_getoverrun.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__timer_getoverrun) pushl %ebx diff --git a/libc/arch-x86/syscalls/__timer_gettime.S b/libc/arch-x86/syscalls/__timer_gettime.S index e45e4efe5..e409b433e 100644 --- a/libc/arch-x86/syscalls/__timer_gettime.S +++ b/libc/arch-x86/syscalls/__timer_gettime.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__timer_gettime) pushl %ebx diff --git a/libc/arch-x86/syscalls/__timer_settime.S b/libc/arch-x86/syscalls/__timer_settime.S index 71a918268..00078e71a 100644 --- a/libc/arch-x86/syscalls/__timer_settime.S +++ b/libc/arch-x86/syscalls/__timer_settime.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__timer_settime) pushl %ebx diff --git a/libc/arch-x86/syscalls/__waitid.S b/libc/arch-x86/syscalls/__waitid.S index 2588b2631..65b86fc57 100644 --- a/libc/arch-x86/syscalls/__waitid.S +++ b/libc/arch-x86/syscalls/__waitid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__waitid) pushl %ebx diff --git a/libc/arch-x86/syscalls/_exit.S b/libc/arch-x86/syscalls/_exit.S index 9ce3e71f7..1c43c759c 100644 --- a/libc/arch-x86/syscalls/_exit.S +++ b/libc/arch-x86/syscalls/_exit.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(_exit) pushl %ebx diff --git a/libc/arch-x86/syscalls/_exit_thread.S b/libc/arch-x86/syscalls/_exit_thread.S index cc1291637..e05abca6d 100644 --- a/libc/arch-x86/syscalls/_exit_thread.S +++ b/libc/arch-x86/syscalls/_exit_thread.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(_exit_thread) pushl %ebx diff --git a/libc/arch-x86/syscalls/_waitpid.S b/libc/arch-x86/syscalls/_waitpid.S index 8ed78982b..d2486d503 100644 --- a/libc/arch-x86/syscalls/_waitpid.S +++ b/libc/arch-x86/syscalls/_waitpid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(_waitpid) pushl %ebx diff --git a/libc/arch-x86/syscalls/accept.S b/libc/arch-x86/syscalls/accept.S index 5678205de..6183a082e 100644 --- a/libc/arch-x86/syscalls/accept.S +++ b/libc/arch-x86/syscalls/accept.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(accept) pushl %ebx diff --git a/libc/arch-x86/syscalls/access.S b/libc/arch-x86/syscalls/access.S index a21ec43c8..50bb47b29 100644 --- a/libc/arch-x86/syscalls/access.S +++ b/libc/arch-x86/syscalls/access.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(access) pushl %ebx diff --git a/libc/arch-x86/syscalls/acct.S b/libc/arch-x86/syscalls/acct.S index d5d2a1a8a..713c2881b 100644 --- a/libc/arch-x86/syscalls/acct.S +++ b/libc/arch-x86/syscalls/acct.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(acct) pushl %ebx diff --git a/libc/arch-x86/syscalls/bind.S b/libc/arch-x86/syscalls/bind.S index 77a4f126a..3c6e1bd62 100644 --- a/libc/arch-x86/syscalls/bind.S +++ b/libc/arch-x86/syscalls/bind.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(bind) pushl %ebx diff --git a/libc/arch-x86/syscalls/capget.S b/libc/arch-x86/syscalls/capget.S index f563ce697..69bff2780 100644 --- a/libc/arch-x86/syscalls/capget.S +++ b/libc/arch-x86/syscalls/capget.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(capget) pushl %ebx diff --git a/libc/arch-x86/syscalls/capset.S b/libc/arch-x86/syscalls/capset.S index 7ab426bf8..0d92ff6b4 100644 --- a/libc/arch-x86/syscalls/capset.S +++ b/libc/arch-x86/syscalls/capset.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(capset) pushl %ebx diff --git a/libc/arch-x86/syscalls/chdir.S b/libc/arch-x86/syscalls/chdir.S index bab961475..b40832996 100644 --- a/libc/arch-x86/syscalls/chdir.S +++ b/libc/arch-x86/syscalls/chdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(chdir) pushl %ebx diff --git a/libc/arch-x86/syscalls/chmod.S b/libc/arch-x86/syscalls/chmod.S index a3d22c7cf..348fc7e34 100644 --- a/libc/arch-x86/syscalls/chmod.S +++ b/libc/arch-x86/syscalls/chmod.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(chmod) pushl %ebx diff --git a/libc/arch-x86/syscalls/chown.S b/libc/arch-x86/syscalls/chown.S index 48c2b23aa..d33e4c753 100644 --- a/libc/arch-x86/syscalls/chown.S +++ b/libc/arch-x86/syscalls/chown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(chown) pushl %ebx diff --git a/libc/arch-x86/syscalls/chroot.S b/libc/arch-x86/syscalls/chroot.S index ea640e673..66d47b12c 100644 --- a/libc/arch-x86/syscalls/chroot.S +++ b/libc/arch-x86/syscalls/chroot.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(chroot) pushl %ebx diff --git a/libc/arch-x86/syscalls/clock_getres.S b/libc/arch-x86/syscalls/clock_getres.S index 806b7e4b6..003e8f6e8 100644 --- a/libc/arch-x86/syscalls/clock_getres.S +++ b/libc/arch-x86/syscalls/clock_getres.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(clock_getres) pushl %ebx diff --git a/libc/arch-x86/syscalls/clock_gettime.S b/libc/arch-x86/syscalls/clock_gettime.S index 2f87d1205..64b852b25 100644 --- a/libc/arch-x86/syscalls/clock_gettime.S +++ b/libc/arch-x86/syscalls/clock_gettime.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(clock_gettime) pushl %ebx diff --git a/libc/arch-x86/syscalls/clock_nanosleep.S b/libc/arch-x86/syscalls/clock_nanosleep.S index d691301ca..1090a4ad7 100644 --- a/libc/arch-x86/syscalls/clock_nanosleep.S +++ b/libc/arch-x86/syscalls/clock_nanosleep.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(clock_nanosleep) pushl %ebx diff --git a/libc/arch-x86/syscalls/clock_settime.S b/libc/arch-x86/syscalls/clock_settime.S index a13b20ac7..f4595e7f9 100644 --- a/libc/arch-x86/syscalls/clock_settime.S +++ b/libc/arch-x86/syscalls/clock_settime.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(clock_settime) pushl %ebx diff --git a/libc/arch-x86/syscalls/close.S b/libc/arch-x86/syscalls/close.S index 0e8040328..93fb7b5f2 100644 --- a/libc/arch-x86/syscalls/close.S +++ b/libc/arch-x86/syscalls/close.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(close) pushl %ebx diff --git a/libc/arch-x86/syscalls/connect.S b/libc/arch-x86/syscalls/connect.S index f55d31ce7..92dd85356 100644 --- a/libc/arch-x86/syscalls/connect.S +++ b/libc/arch-x86/syscalls/connect.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(connect) pushl %ebx diff --git a/libc/arch-x86/syscalls/delete_module.S b/libc/arch-x86/syscalls/delete_module.S index a319310de..8957eb1bf 100644 --- a/libc/arch-x86/syscalls/delete_module.S +++ b/libc/arch-x86/syscalls/delete_module.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(delete_module) pushl %ebx diff --git a/libc/arch-x86/syscalls/dup.S b/libc/arch-x86/syscalls/dup.S index 7304681bc..1ac329b2e 100644 --- a/libc/arch-x86/syscalls/dup.S +++ b/libc/arch-x86/syscalls/dup.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(dup) pushl %ebx diff --git a/libc/arch-x86/syscalls/dup2.S b/libc/arch-x86/syscalls/dup2.S index d6cee8120..3e0dd389c 100644 --- a/libc/arch-x86/syscalls/dup2.S +++ b/libc/arch-x86/syscalls/dup2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(dup2) pushl %ebx diff --git a/libc/arch-x86/syscalls/epoll_create.S b/libc/arch-x86/syscalls/epoll_create.S index 061f17395..4dae863e5 100644 --- a/libc/arch-x86/syscalls/epoll_create.S +++ b/libc/arch-x86/syscalls/epoll_create.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(epoll_create) pushl %ebx diff --git a/libc/arch-x86/syscalls/epoll_ctl.S b/libc/arch-x86/syscalls/epoll_ctl.S index 5228da3d8..0a367f2de 100644 --- a/libc/arch-x86/syscalls/epoll_ctl.S +++ b/libc/arch-x86/syscalls/epoll_ctl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(epoll_ctl) pushl %ebx diff --git a/libc/arch-x86/syscalls/epoll_wait.S b/libc/arch-x86/syscalls/epoll_wait.S index e395a5e61..c1f30a62c 100644 --- a/libc/arch-x86/syscalls/epoll_wait.S +++ b/libc/arch-x86/syscalls/epoll_wait.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(epoll_wait) pushl %ebx diff --git a/libc/arch-x86/syscalls/eventfd.S b/libc/arch-x86/syscalls/eventfd.S index 4e96a7baf..d74f6287f 100644 --- a/libc/arch-x86/syscalls/eventfd.S +++ b/libc/arch-x86/syscalls/eventfd.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(eventfd) pushl %ebx diff --git a/libc/arch-x86/syscalls/execve.S b/libc/arch-x86/syscalls/execve.S index 3028e8ffd..117e71a37 100644 --- a/libc/arch-x86/syscalls/execve.S +++ b/libc/arch-x86/syscalls/execve.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(execve) pushl %ebx diff --git a/libc/arch-x86/syscalls/faccessat.S b/libc/arch-x86/syscalls/faccessat.S index c7c3b20ca..3aab3f335 100644 --- a/libc/arch-x86/syscalls/faccessat.S +++ b/libc/arch-x86/syscalls/faccessat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(faccessat) pushl %ebx diff --git a/libc/arch-x86/syscalls/fchdir.S b/libc/arch-x86/syscalls/fchdir.S index 2d6a4fd13..1aa07c796 100644 --- a/libc/arch-x86/syscalls/fchdir.S +++ b/libc/arch-x86/syscalls/fchdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fchdir) pushl %ebx diff --git a/libc/arch-x86/syscalls/fchmod.S b/libc/arch-x86/syscalls/fchmod.S index d1e2b1ba0..6ab69d993 100644 --- a/libc/arch-x86/syscalls/fchmod.S +++ b/libc/arch-x86/syscalls/fchmod.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fchmod) pushl %ebx diff --git a/libc/arch-x86/syscalls/fchmodat.S b/libc/arch-x86/syscalls/fchmodat.S index b46522b27..98308952c 100644 --- a/libc/arch-x86/syscalls/fchmodat.S +++ b/libc/arch-x86/syscalls/fchmodat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fchmodat) pushl %ebx diff --git a/libc/arch-x86/syscalls/fchown.S b/libc/arch-x86/syscalls/fchown.S index d09f965e7..f12d04786 100644 --- a/libc/arch-x86/syscalls/fchown.S +++ b/libc/arch-x86/syscalls/fchown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fchown) pushl %ebx diff --git a/libc/arch-x86/syscalls/fchownat.S b/libc/arch-x86/syscalls/fchownat.S index ad958db3f..d87654d60 100644 --- a/libc/arch-x86/syscalls/fchownat.S +++ b/libc/arch-x86/syscalls/fchownat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fchownat) pushl %ebx diff --git a/libc/arch-x86/syscalls/fdatasync.S b/libc/arch-x86/syscalls/fdatasync.S index 7b912aa03..9c340d7d1 100644 --- a/libc/arch-x86/syscalls/fdatasync.S +++ b/libc/arch-x86/syscalls/fdatasync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fdatasync) pushl %ebx diff --git a/libc/arch-x86/syscalls/fgetxattr.S b/libc/arch-x86/syscalls/fgetxattr.S index e81c25710..5eb5426c8 100644 --- a/libc/arch-x86/syscalls/fgetxattr.S +++ b/libc/arch-x86/syscalls/fgetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fgetxattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/flistxattr.S b/libc/arch-x86/syscalls/flistxattr.S index 2d398d146..1ffcbfcc9 100644 --- a/libc/arch-x86/syscalls/flistxattr.S +++ b/libc/arch-x86/syscalls/flistxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(flistxattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/flock.S b/libc/arch-x86/syscalls/flock.S index cad1420d8..55cf6d74f 100644 --- a/libc/arch-x86/syscalls/flock.S +++ b/libc/arch-x86/syscalls/flock.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(flock) pushl %ebx diff --git a/libc/arch-x86/syscalls/fremovexattr.S b/libc/arch-x86/syscalls/fremovexattr.S index 837efb8eb..8869a74a6 100644 --- a/libc/arch-x86/syscalls/fremovexattr.S +++ b/libc/arch-x86/syscalls/fremovexattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fremovexattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/fsetxattr.S b/libc/arch-x86/syscalls/fsetxattr.S index ae0e0f87b..4af3c6129 100644 --- a/libc/arch-x86/syscalls/fsetxattr.S +++ b/libc/arch-x86/syscalls/fsetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fsetxattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/fstat.S b/libc/arch-x86/syscalls/fstat.S index 4fd1d5a2d..8a6a5a736 100644 --- a/libc/arch-x86/syscalls/fstat.S +++ b/libc/arch-x86/syscalls/fstat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fstat) pushl %ebx diff --git a/libc/arch-x86/syscalls/fstatat.S b/libc/arch-x86/syscalls/fstatat.S index f07b405b3..5dc6d349d 100644 --- a/libc/arch-x86/syscalls/fstatat.S +++ b/libc/arch-x86/syscalls/fstatat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fstatat) pushl %ebx diff --git a/libc/arch-x86/syscalls/fsync.S b/libc/arch-x86/syscalls/fsync.S index f9e4bc3a2..6671c07b1 100644 --- a/libc/arch-x86/syscalls/fsync.S +++ b/libc/arch-x86/syscalls/fsync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fsync) pushl %ebx diff --git a/libc/arch-x86/syscalls/ftruncate.S b/libc/arch-x86/syscalls/ftruncate.S index 9d27c14fe..36e115895 100644 --- a/libc/arch-x86/syscalls/ftruncate.S +++ b/libc/arch-x86/syscalls/ftruncate.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(ftruncate) pushl %ebx diff --git a/libc/arch-x86/syscalls/ftruncate64.S b/libc/arch-x86/syscalls/ftruncate64.S index a121addbd..9b3f00eca 100644 --- a/libc/arch-x86/syscalls/ftruncate64.S +++ b/libc/arch-x86/syscalls/ftruncate64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(ftruncate64) pushl %ebx diff --git a/libc/arch-x86/syscalls/futex.S b/libc/arch-x86/syscalls/futex.S index 7f0684ff9..f76a4dcd8 100644 --- a/libc/arch-x86/syscalls/futex.S +++ b/libc/arch-x86/syscalls/futex.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(futex) pushl %ebx diff --git a/libc/arch-x86/syscalls/getdents.S b/libc/arch-x86/syscalls/getdents.S index c17a5a7b5..ffd601908 100644 --- a/libc/arch-x86/syscalls/getdents.S +++ b/libc/arch-x86/syscalls/getdents.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getdents) pushl %ebx diff --git a/libc/arch-x86/syscalls/getegid.S b/libc/arch-x86/syscalls/getegid.S index 0f055e194..78bb02d55 100644 --- a/libc/arch-x86/syscalls/getegid.S +++ b/libc/arch-x86/syscalls/getegid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getegid) movl $__NR_getegid32, %eax diff --git a/libc/arch-x86/syscalls/geteuid.S b/libc/arch-x86/syscalls/geteuid.S index a3081372f..b62ada1ea 100644 --- a/libc/arch-x86/syscalls/geteuid.S +++ b/libc/arch-x86/syscalls/geteuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(geteuid) movl $__NR_geteuid32, %eax diff --git a/libc/arch-x86/syscalls/getgid.S b/libc/arch-x86/syscalls/getgid.S index 0b4399177..2d20e6213 100644 --- a/libc/arch-x86/syscalls/getgid.S +++ b/libc/arch-x86/syscalls/getgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getgid) movl $__NR_getgid32, %eax diff --git a/libc/arch-x86/syscalls/getgroups.S b/libc/arch-x86/syscalls/getgroups.S index c92a69205..e7a1ef536 100644 --- a/libc/arch-x86/syscalls/getgroups.S +++ b/libc/arch-x86/syscalls/getgroups.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getgroups) pushl %ebx diff --git a/libc/arch-x86/syscalls/getitimer.S b/libc/arch-x86/syscalls/getitimer.S index 04f01c03c..56a2bbf58 100644 --- a/libc/arch-x86/syscalls/getitimer.S +++ b/libc/arch-x86/syscalls/getitimer.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getitimer) pushl %ebx diff --git a/libc/arch-x86/syscalls/getpeername.S b/libc/arch-x86/syscalls/getpeername.S index 1a385ad2b..c94e1cfba 100644 --- a/libc/arch-x86/syscalls/getpeername.S +++ b/libc/arch-x86/syscalls/getpeername.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getpeername) pushl %ebx diff --git a/libc/arch-x86/syscalls/getpgid.S b/libc/arch-x86/syscalls/getpgid.S index d1a8d26e7..98a5816e6 100644 --- a/libc/arch-x86/syscalls/getpgid.S +++ b/libc/arch-x86/syscalls/getpgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getpgid) pushl %ebx diff --git a/libc/arch-x86/syscalls/getpid.S b/libc/arch-x86/syscalls/getpid.S index f9e36139e..15cbe488b 100644 --- a/libc/arch-x86/syscalls/getpid.S +++ b/libc/arch-x86/syscalls/getpid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getpid) movl $__NR_getpid, %eax diff --git a/libc/arch-x86/syscalls/getppid.S b/libc/arch-x86/syscalls/getppid.S index afbc81a47..5c5fcfcd3 100644 --- a/libc/arch-x86/syscalls/getppid.S +++ b/libc/arch-x86/syscalls/getppid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getppid) movl $__NR_getppid, %eax diff --git a/libc/arch-x86/syscalls/getresgid.S b/libc/arch-x86/syscalls/getresgid.S index c1adb5c38..4cef66c01 100644 --- a/libc/arch-x86/syscalls/getresgid.S +++ b/libc/arch-x86/syscalls/getresgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getresgid) pushl %ebx diff --git a/libc/arch-x86/syscalls/getresuid.S b/libc/arch-x86/syscalls/getresuid.S index 4bbf637d7..039d188a1 100644 --- a/libc/arch-x86/syscalls/getresuid.S +++ b/libc/arch-x86/syscalls/getresuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getresuid) pushl %ebx diff --git a/libc/arch-x86/syscalls/getrlimit.S b/libc/arch-x86/syscalls/getrlimit.S index 09b2fd567..3cfbfb74b 100644 --- a/libc/arch-x86/syscalls/getrlimit.S +++ b/libc/arch-x86/syscalls/getrlimit.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getrlimit) pushl %ebx diff --git a/libc/arch-x86/syscalls/getrusage.S b/libc/arch-x86/syscalls/getrusage.S index f1802139d..8bf150167 100644 --- a/libc/arch-x86/syscalls/getrusage.S +++ b/libc/arch-x86/syscalls/getrusage.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getrusage) pushl %ebx diff --git a/libc/arch-x86/syscalls/getsid.S b/libc/arch-x86/syscalls/getsid.S index 5b1a32f4b..e04f03556 100644 --- a/libc/arch-x86/syscalls/getsid.S +++ b/libc/arch-x86/syscalls/getsid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getsid) pushl %ebx diff --git a/libc/arch-x86/syscalls/getsockname.S b/libc/arch-x86/syscalls/getsockname.S index 9e7cec1f7..330e0ec46 100644 --- a/libc/arch-x86/syscalls/getsockname.S +++ b/libc/arch-x86/syscalls/getsockname.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getsockname) pushl %ebx diff --git a/libc/arch-x86/syscalls/getsockopt.S b/libc/arch-x86/syscalls/getsockopt.S index c210749d8..931d7158c 100644 --- a/libc/arch-x86/syscalls/getsockopt.S +++ b/libc/arch-x86/syscalls/getsockopt.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getsockopt) pushl %ebx diff --git a/libc/arch-x86/syscalls/gettid.S b/libc/arch-x86/syscalls/gettid.S index d14f320b5..a2cb81359 100644 --- a/libc/arch-x86/syscalls/gettid.S +++ b/libc/arch-x86/syscalls/gettid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(gettid) movl $__NR_gettid, %eax diff --git a/libc/arch-x86/syscalls/gettimeofday.S b/libc/arch-x86/syscalls/gettimeofday.S index 2fa118d62..bdffd67d3 100644 --- a/libc/arch-x86/syscalls/gettimeofday.S +++ b/libc/arch-x86/syscalls/gettimeofday.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(gettimeofday) pushl %ebx diff --git a/libc/arch-x86/syscalls/getuid.S b/libc/arch-x86/syscalls/getuid.S index 08b9ccef0..ab44d51d8 100644 --- a/libc/arch-x86/syscalls/getuid.S +++ b/libc/arch-x86/syscalls/getuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getuid) movl $__NR_getuid32, %eax diff --git a/libc/arch-x86/syscalls/getxattr.S b/libc/arch-x86/syscalls/getxattr.S index 64990efc5..e99efa18a 100644 --- a/libc/arch-x86/syscalls/getxattr.S +++ b/libc/arch-x86/syscalls/getxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getxattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/init_module.S b/libc/arch-x86/syscalls/init_module.S index 9d1daad25..a006cffd1 100644 --- a/libc/arch-x86/syscalls/init_module.S +++ b/libc/arch-x86/syscalls/init_module.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(init_module) pushl %ebx diff --git a/libc/arch-x86/syscalls/inotify_add_watch.S b/libc/arch-x86/syscalls/inotify_add_watch.S index fc9c08785..5401e66c3 100644 --- a/libc/arch-x86/syscalls/inotify_add_watch.S +++ b/libc/arch-x86/syscalls/inotify_add_watch.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(inotify_add_watch) pushl %ebx diff --git a/libc/arch-x86/syscalls/inotify_init.S b/libc/arch-x86/syscalls/inotify_init.S index ffc4a2a33..254bc0660 100644 --- a/libc/arch-x86/syscalls/inotify_init.S +++ b/libc/arch-x86/syscalls/inotify_init.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(inotify_init) pushl %ebx diff --git a/libc/arch-x86/syscalls/inotify_rm_watch.S b/libc/arch-x86/syscalls/inotify_rm_watch.S index 08d208cfd..7b173f946 100644 --- a/libc/arch-x86/syscalls/inotify_rm_watch.S +++ b/libc/arch-x86/syscalls/inotify_rm_watch.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(inotify_rm_watch) pushl %ebx diff --git a/libc/arch-x86/syscalls/ioprio_get.S b/libc/arch-x86/syscalls/ioprio_get.S index 63f11112f..de356a62c 100644 --- a/libc/arch-x86/syscalls/ioprio_get.S +++ b/libc/arch-x86/syscalls/ioprio_get.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(ioprio_get) pushl %ebx diff --git a/libc/arch-x86/syscalls/ioprio_set.S b/libc/arch-x86/syscalls/ioprio_set.S index 2b4d87e24..98dbf5d05 100644 --- a/libc/arch-x86/syscalls/ioprio_set.S +++ b/libc/arch-x86/syscalls/ioprio_set.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(ioprio_set) pushl %ebx diff --git a/libc/arch-x86/syscalls/kill.S b/libc/arch-x86/syscalls/kill.S index 260fe7327..4153ef28f 100644 --- a/libc/arch-x86/syscalls/kill.S +++ b/libc/arch-x86/syscalls/kill.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(kill) pushl %ebx diff --git a/libc/arch-x86/syscalls/klogctl.S b/libc/arch-x86/syscalls/klogctl.S index 32db1afcc..a923fd783 100644 --- a/libc/arch-x86/syscalls/klogctl.S +++ b/libc/arch-x86/syscalls/klogctl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(klogctl) pushl %ebx diff --git a/libc/arch-x86/syscalls/lchown.S b/libc/arch-x86/syscalls/lchown.S index 9bd1c9abe..9318a648b 100644 --- a/libc/arch-x86/syscalls/lchown.S +++ b/libc/arch-x86/syscalls/lchown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lchown) pushl %ebx diff --git a/libc/arch-x86/syscalls/lgetxattr.S b/libc/arch-x86/syscalls/lgetxattr.S index bb5a7bab0..3fb060973 100644 --- a/libc/arch-x86/syscalls/lgetxattr.S +++ b/libc/arch-x86/syscalls/lgetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lgetxattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/link.S b/libc/arch-x86/syscalls/link.S index 4419149d0..661adf9f2 100644 --- a/libc/arch-x86/syscalls/link.S +++ b/libc/arch-x86/syscalls/link.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(link) pushl %ebx diff --git a/libc/arch-x86/syscalls/listen.S b/libc/arch-x86/syscalls/listen.S index 0c4d6b01e..4eda67c86 100644 --- a/libc/arch-x86/syscalls/listen.S +++ b/libc/arch-x86/syscalls/listen.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(listen) pushl %ebx diff --git a/libc/arch-x86/syscalls/listxattr.S b/libc/arch-x86/syscalls/listxattr.S index 059c2aa09..456f2dd48 100644 --- a/libc/arch-x86/syscalls/listxattr.S +++ b/libc/arch-x86/syscalls/listxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(listxattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/llistxattr.S b/libc/arch-x86/syscalls/llistxattr.S index a6023ebd4..5892afa7d 100644 --- a/libc/arch-x86/syscalls/llistxattr.S +++ b/libc/arch-x86/syscalls/llistxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(llistxattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/lremovexattr.S b/libc/arch-x86/syscalls/lremovexattr.S index 2bfd91b2b..1a110abec 100644 --- a/libc/arch-x86/syscalls/lremovexattr.S +++ b/libc/arch-x86/syscalls/lremovexattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lremovexattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/lseek.S b/libc/arch-x86/syscalls/lseek.S index d7b3b1952..03d9ee758 100644 --- a/libc/arch-x86/syscalls/lseek.S +++ b/libc/arch-x86/syscalls/lseek.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lseek) pushl %ebx diff --git a/libc/arch-x86/syscalls/lsetxattr.S b/libc/arch-x86/syscalls/lsetxattr.S index 05790e701..4468df813 100644 --- a/libc/arch-x86/syscalls/lsetxattr.S +++ b/libc/arch-x86/syscalls/lsetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lsetxattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/lstat.S b/libc/arch-x86/syscalls/lstat.S index 7b8187eab..bae108950 100644 --- a/libc/arch-x86/syscalls/lstat.S +++ b/libc/arch-x86/syscalls/lstat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lstat) pushl %ebx diff --git a/libc/arch-x86/syscalls/madvise.S b/libc/arch-x86/syscalls/madvise.S index bf8b518dd..832642918 100644 --- a/libc/arch-x86/syscalls/madvise.S +++ b/libc/arch-x86/syscalls/madvise.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(madvise) pushl %ebx diff --git a/libc/arch-x86/syscalls/mincore.S b/libc/arch-x86/syscalls/mincore.S index 42a612ae0..322904274 100644 --- a/libc/arch-x86/syscalls/mincore.S +++ b/libc/arch-x86/syscalls/mincore.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mincore) pushl %ebx diff --git a/libc/arch-x86/syscalls/mkdir.S b/libc/arch-x86/syscalls/mkdir.S index d8cdbd460..ce0707a26 100644 --- a/libc/arch-x86/syscalls/mkdir.S +++ b/libc/arch-x86/syscalls/mkdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mkdir) pushl %ebx diff --git a/libc/arch-x86/syscalls/mkdirat.S b/libc/arch-x86/syscalls/mkdirat.S index 844a2b9c6..85d48aa0f 100644 --- a/libc/arch-x86/syscalls/mkdirat.S +++ b/libc/arch-x86/syscalls/mkdirat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mkdirat) pushl %ebx diff --git a/libc/arch-x86/syscalls/mknod.S b/libc/arch-x86/syscalls/mknod.S index eebef2114..5e1e7ad46 100644 --- a/libc/arch-x86/syscalls/mknod.S +++ b/libc/arch-x86/syscalls/mknod.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mknod) pushl %ebx diff --git a/libc/arch-x86/syscalls/mlock.S b/libc/arch-x86/syscalls/mlock.S index 9c9168206..8ee3b19ad 100644 --- a/libc/arch-x86/syscalls/mlock.S +++ b/libc/arch-x86/syscalls/mlock.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mlock) pushl %ebx diff --git a/libc/arch-x86/syscalls/mlockall.S b/libc/arch-x86/syscalls/mlockall.S index 6bf571b5d..253dc672f 100644 --- a/libc/arch-x86/syscalls/mlockall.S +++ b/libc/arch-x86/syscalls/mlockall.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mlockall) pushl %ebx diff --git a/libc/arch-x86/syscalls/mount.S b/libc/arch-x86/syscalls/mount.S index 255f22307..b5b7c8b3f 100644 --- a/libc/arch-x86/syscalls/mount.S +++ b/libc/arch-x86/syscalls/mount.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mount) pushl %ebx diff --git a/libc/arch-x86/syscalls/mprotect.S b/libc/arch-x86/syscalls/mprotect.S index c2b6a0f08..db8ea5d69 100644 --- a/libc/arch-x86/syscalls/mprotect.S +++ b/libc/arch-x86/syscalls/mprotect.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mprotect) pushl %ebx diff --git a/libc/arch-x86/syscalls/mremap.S b/libc/arch-x86/syscalls/mremap.S index 6c366dc87..d2868b491 100644 --- a/libc/arch-x86/syscalls/mremap.S +++ b/libc/arch-x86/syscalls/mremap.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mremap) pushl %ebx diff --git a/libc/arch-x86/syscalls/msync.S b/libc/arch-x86/syscalls/msync.S index 15b052d09..b19741c00 100644 --- a/libc/arch-x86/syscalls/msync.S +++ b/libc/arch-x86/syscalls/msync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(msync) pushl %ebx diff --git a/libc/arch-x86/syscalls/munlock.S b/libc/arch-x86/syscalls/munlock.S index 1c7db581c..506538b6c 100644 --- a/libc/arch-x86/syscalls/munlock.S +++ b/libc/arch-x86/syscalls/munlock.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(munlock) pushl %ebx diff --git a/libc/arch-x86/syscalls/munlockall.S b/libc/arch-x86/syscalls/munlockall.S index 9e38a91d9..940a11a49 100644 --- a/libc/arch-x86/syscalls/munlockall.S +++ b/libc/arch-x86/syscalls/munlockall.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(munlockall) movl $__NR_munlockall, %eax diff --git a/libc/arch-x86/syscalls/munmap.S b/libc/arch-x86/syscalls/munmap.S index a62eb920d..7fbb0bf52 100644 --- a/libc/arch-x86/syscalls/munmap.S +++ b/libc/arch-x86/syscalls/munmap.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(munmap) pushl %ebx diff --git a/libc/arch-x86/syscalls/nanosleep.S b/libc/arch-x86/syscalls/nanosleep.S index 8cf0d8f44..fb834d230 100644 --- a/libc/arch-x86/syscalls/nanosleep.S +++ b/libc/arch-x86/syscalls/nanosleep.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(nanosleep) pushl %ebx diff --git a/libc/arch-x86/syscalls/pause.S b/libc/arch-x86/syscalls/pause.S index ff9d76c72..018208eb4 100644 --- a/libc/arch-x86/syscalls/pause.S +++ b/libc/arch-x86/syscalls/pause.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(pause) movl $__NR_pause, %eax diff --git a/libc/arch-x86/syscalls/perf_event_open.S b/libc/arch-x86/syscalls/perf_event_open.S index fa39a2af1..353ae93a0 100644 --- a/libc/arch-x86/syscalls/perf_event_open.S +++ b/libc/arch-x86/syscalls/perf_event_open.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(perf_event_open) pushl %ebx diff --git a/libc/arch-x86/syscalls/personality.S b/libc/arch-x86/syscalls/personality.S index 045f3de81..00c048b00 100644 --- a/libc/arch-x86/syscalls/personality.S +++ b/libc/arch-x86/syscalls/personality.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(personality) pushl %ebx diff --git a/libc/arch-x86/syscalls/pipe.S b/libc/arch-x86/syscalls/pipe.S index b906e6dec..10ecee191 100644 --- a/libc/arch-x86/syscalls/pipe.S +++ b/libc/arch-x86/syscalls/pipe.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(pipe) pushl %ebx diff --git a/libc/arch-x86/syscalls/pipe2.S b/libc/arch-x86/syscalls/pipe2.S index bf3ccf6e9..eaa4c5aec 100644 --- a/libc/arch-x86/syscalls/pipe2.S +++ b/libc/arch-x86/syscalls/pipe2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(pipe2) pushl %ebx diff --git a/libc/arch-x86/syscalls/poll.S b/libc/arch-x86/syscalls/poll.S index 32618571e..467829235 100644 --- a/libc/arch-x86/syscalls/poll.S +++ b/libc/arch-x86/syscalls/poll.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(poll) pushl %ebx diff --git a/libc/arch-x86/syscalls/prctl.S b/libc/arch-x86/syscalls/prctl.S index bcaf2d81e..9fa9fbb0d 100644 --- a/libc/arch-x86/syscalls/prctl.S +++ b/libc/arch-x86/syscalls/prctl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(prctl) pushl %ebx diff --git a/libc/arch-x86/syscalls/pread64.S b/libc/arch-x86/syscalls/pread64.S index b9fcb54fd..6f7921661 100644 --- a/libc/arch-x86/syscalls/pread64.S +++ b/libc/arch-x86/syscalls/pread64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(pread64) pushl %ebx diff --git a/libc/arch-x86/syscalls/pwrite64.S b/libc/arch-x86/syscalls/pwrite64.S index f689cc644..ca71e0ad6 100644 --- a/libc/arch-x86/syscalls/pwrite64.S +++ b/libc/arch-x86/syscalls/pwrite64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(pwrite64) pushl %ebx diff --git a/libc/arch-x86/syscalls/read.S b/libc/arch-x86/syscalls/read.S index bccc1bb30..d817191f2 100644 --- a/libc/arch-x86/syscalls/read.S +++ b/libc/arch-x86/syscalls/read.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(read) pushl %ebx diff --git a/libc/arch-x86/syscalls/readahead.S b/libc/arch-x86/syscalls/readahead.S index e72cc7a27..0c51042dc 100644 --- a/libc/arch-x86/syscalls/readahead.S +++ b/libc/arch-x86/syscalls/readahead.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(readahead) pushl %ebx diff --git a/libc/arch-x86/syscalls/readlink.S b/libc/arch-x86/syscalls/readlink.S index 7444728e7..298b58ec4 100644 --- a/libc/arch-x86/syscalls/readlink.S +++ b/libc/arch-x86/syscalls/readlink.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(readlink) pushl %ebx diff --git a/libc/arch-x86/syscalls/readv.S b/libc/arch-x86/syscalls/readv.S index 6ff3002fd..ff8f15c96 100644 --- a/libc/arch-x86/syscalls/readv.S +++ b/libc/arch-x86/syscalls/readv.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(readv) pushl %ebx diff --git a/libc/arch-x86/syscalls/recvfrom.S b/libc/arch-x86/syscalls/recvfrom.S index f3d9d6aca..fe420373e 100644 --- a/libc/arch-x86/syscalls/recvfrom.S +++ b/libc/arch-x86/syscalls/recvfrom.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(recvfrom) pushl %ebx diff --git a/libc/arch-x86/syscalls/recvmsg.S b/libc/arch-x86/syscalls/recvmsg.S index 9c4f9e29c..da7a93830 100644 --- a/libc/arch-x86/syscalls/recvmsg.S +++ b/libc/arch-x86/syscalls/recvmsg.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(recvmsg) pushl %ebx diff --git a/libc/arch-x86/syscalls/removexattr.S b/libc/arch-x86/syscalls/removexattr.S index a086eb732..f61c1d2e7 100644 --- a/libc/arch-x86/syscalls/removexattr.S +++ b/libc/arch-x86/syscalls/removexattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(removexattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/rename.S b/libc/arch-x86/syscalls/rename.S index 9f4081827..a3d293190 100644 --- a/libc/arch-x86/syscalls/rename.S +++ b/libc/arch-x86/syscalls/rename.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(rename) pushl %ebx diff --git a/libc/arch-x86/syscalls/renameat.S b/libc/arch-x86/syscalls/renameat.S index e3ffe7bf8..f08d89d82 100644 --- a/libc/arch-x86/syscalls/renameat.S +++ b/libc/arch-x86/syscalls/renameat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(renameat) pushl %ebx diff --git a/libc/arch-x86/syscalls/rmdir.S b/libc/arch-x86/syscalls/rmdir.S index 627c41a74..e4cb7be14 100644 --- a/libc/arch-x86/syscalls/rmdir.S +++ b/libc/arch-x86/syscalls/rmdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(rmdir) pushl %ebx diff --git a/libc/arch-x86/syscalls/sched_get_priority_max.S b/libc/arch-x86/syscalls/sched_get_priority_max.S index fb696cc70..dd02198ab 100644 --- a/libc/arch-x86/syscalls/sched_get_priority_max.S +++ b/libc/arch-x86/syscalls/sched_get_priority_max.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sched_get_priority_max) pushl %ebx diff --git a/libc/arch-x86/syscalls/sched_get_priority_min.S b/libc/arch-x86/syscalls/sched_get_priority_min.S index f1884f141..4baddce86 100644 --- a/libc/arch-x86/syscalls/sched_get_priority_min.S +++ b/libc/arch-x86/syscalls/sched_get_priority_min.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sched_get_priority_min) pushl %ebx diff --git a/libc/arch-x86/syscalls/sched_getparam.S b/libc/arch-x86/syscalls/sched_getparam.S index 0214c6c96..bc54f240b 100644 --- a/libc/arch-x86/syscalls/sched_getparam.S +++ b/libc/arch-x86/syscalls/sched_getparam.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sched_getparam) pushl %ebx diff --git a/libc/arch-x86/syscalls/sched_getscheduler.S b/libc/arch-x86/syscalls/sched_getscheduler.S index aaba95340..d117a7b91 100644 --- a/libc/arch-x86/syscalls/sched_getscheduler.S +++ b/libc/arch-x86/syscalls/sched_getscheduler.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sched_getscheduler) pushl %ebx diff --git a/libc/arch-x86/syscalls/sched_rr_get_interval.S b/libc/arch-x86/syscalls/sched_rr_get_interval.S index c2745c7b0..c6ca52050 100644 --- a/libc/arch-x86/syscalls/sched_rr_get_interval.S +++ b/libc/arch-x86/syscalls/sched_rr_get_interval.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sched_rr_get_interval) pushl %ebx diff --git a/libc/arch-x86/syscalls/sched_setaffinity.S b/libc/arch-x86/syscalls/sched_setaffinity.S index 40f09f2db..39dadb9c9 100644 --- a/libc/arch-x86/syscalls/sched_setaffinity.S +++ b/libc/arch-x86/syscalls/sched_setaffinity.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sched_setaffinity) pushl %ebx diff --git a/libc/arch-x86/syscalls/sched_setparam.S b/libc/arch-x86/syscalls/sched_setparam.S index b3c2c1f35..d0700cde9 100644 --- a/libc/arch-x86/syscalls/sched_setparam.S +++ b/libc/arch-x86/syscalls/sched_setparam.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sched_setparam) pushl %ebx diff --git a/libc/arch-x86/syscalls/sched_setscheduler.S b/libc/arch-x86/syscalls/sched_setscheduler.S index c57ed7b14..ee3bd8e63 100644 --- a/libc/arch-x86/syscalls/sched_setscheduler.S +++ b/libc/arch-x86/syscalls/sched_setscheduler.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sched_setscheduler) pushl %ebx diff --git a/libc/arch-x86/syscalls/sched_yield.S b/libc/arch-x86/syscalls/sched_yield.S index e40e2da1c..7bd58a88b 100644 --- a/libc/arch-x86/syscalls/sched_yield.S +++ b/libc/arch-x86/syscalls/sched_yield.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sched_yield) pushl %ebx diff --git a/libc/arch-x86/syscalls/select.S b/libc/arch-x86/syscalls/select.S index 1f199181a..821ff4db5 100644 --- a/libc/arch-x86/syscalls/select.S +++ b/libc/arch-x86/syscalls/select.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(select) pushl %ebx diff --git a/libc/arch-x86/syscalls/sendfile.S b/libc/arch-x86/syscalls/sendfile.S index fed0456f8..f85fb1344 100644 --- a/libc/arch-x86/syscalls/sendfile.S +++ b/libc/arch-x86/syscalls/sendfile.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sendfile) pushl %ebx diff --git a/libc/arch-x86/syscalls/sendfile64.S b/libc/arch-x86/syscalls/sendfile64.S index 9731806a2..49b14f879 100644 --- a/libc/arch-x86/syscalls/sendfile64.S +++ b/libc/arch-x86/syscalls/sendfile64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sendfile64) pushl %ebx diff --git a/libc/arch-x86/syscalls/sendmsg.S b/libc/arch-x86/syscalls/sendmsg.S index 9b9dee15f..dd087ef36 100644 --- a/libc/arch-x86/syscalls/sendmsg.S +++ b/libc/arch-x86/syscalls/sendmsg.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sendmsg) pushl %ebx diff --git a/libc/arch-x86/syscalls/sendto.S b/libc/arch-x86/syscalls/sendto.S index 315ed4c9a..9b820fff9 100644 --- a/libc/arch-x86/syscalls/sendto.S +++ b/libc/arch-x86/syscalls/sendto.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sendto) pushl %ebx diff --git a/libc/arch-x86/syscalls/setgid.S b/libc/arch-x86/syscalls/setgid.S index 4704047bb..534f1705d 100644 --- a/libc/arch-x86/syscalls/setgid.S +++ b/libc/arch-x86/syscalls/setgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setgid) pushl %ebx diff --git a/libc/arch-x86/syscalls/setgroups.S b/libc/arch-x86/syscalls/setgroups.S index f55d84fef..3c9e621ff 100644 --- a/libc/arch-x86/syscalls/setgroups.S +++ b/libc/arch-x86/syscalls/setgroups.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setgroups) pushl %ebx diff --git a/libc/arch-x86/syscalls/setitimer.S b/libc/arch-x86/syscalls/setitimer.S index 713c5c633..0da630e3d 100644 --- a/libc/arch-x86/syscalls/setitimer.S +++ b/libc/arch-x86/syscalls/setitimer.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setitimer) pushl %ebx diff --git a/libc/arch-x86/syscalls/setpgid.S b/libc/arch-x86/syscalls/setpgid.S index f90001a82..ed388ab73 100644 --- a/libc/arch-x86/syscalls/setpgid.S +++ b/libc/arch-x86/syscalls/setpgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setpgid) pushl %ebx diff --git a/libc/arch-x86/syscalls/setpriority.S b/libc/arch-x86/syscalls/setpriority.S index 973302ee0..5a32678ad 100644 --- a/libc/arch-x86/syscalls/setpriority.S +++ b/libc/arch-x86/syscalls/setpriority.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setpriority) pushl %ebx diff --git a/libc/arch-x86/syscalls/setregid.S b/libc/arch-x86/syscalls/setregid.S index 684254069..3d54ab4b6 100644 --- a/libc/arch-x86/syscalls/setregid.S +++ b/libc/arch-x86/syscalls/setregid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setregid) pushl %ebx diff --git a/libc/arch-x86/syscalls/setresgid.S b/libc/arch-x86/syscalls/setresgid.S index ce598c170..ee1fb72d5 100644 --- a/libc/arch-x86/syscalls/setresgid.S +++ b/libc/arch-x86/syscalls/setresgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setresgid) pushl %ebx diff --git a/libc/arch-x86/syscalls/setrlimit.S b/libc/arch-x86/syscalls/setrlimit.S index 0c11b754b..ace57ac40 100644 --- a/libc/arch-x86/syscalls/setrlimit.S +++ b/libc/arch-x86/syscalls/setrlimit.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setrlimit) pushl %ebx diff --git a/libc/arch-x86/syscalls/setsid.S b/libc/arch-x86/syscalls/setsid.S index 235b4fbc9..f26e95d05 100644 --- a/libc/arch-x86/syscalls/setsid.S +++ b/libc/arch-x86/syscalls/setsid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setsid) movl $__NR_setsid, %eax diff --git a/libc/arch-x86/syscalls/setsockopt.S b/libc/arch-x86/syscalls/setsockopt.S index 6219859c8..128b69e7c 100644 --- a/libc/arch-x86/syscalls/setsockopt.S +++ b/libc/arch-x86/syscalls/setsockopt.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setsockopt) pushl %ebx diff --git a/libc/arch-x86/syscalls/settimeofday.S b/libc/arch-x86/syscalls/settimeofday.S index f06aee7ba..8d27b7d77 100644 --- a/libc/arch-x86/syscalls/settimeofday.S +++ b/libc/arch-x86/syscalls/settimeofday.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(settimeofday) pushl %ebx diff --git a/libc/arch-x86/syscalls/setxattr.S b/libc/arch-x86/syscalls/setxattr.S index f6110ccfe..0786530b0 100644 --- a/libc/arch-x86/syscalls/setxattr.S +++ b/libc/arch-x86/syscalls/setxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setxattr) pushl %ebx diff --git a/libc/arch-x86/syscalls/shutdown.S b/libc/arch-x86/syscalls/shutdown.S index 997138ccf..456f7aba8 100644 --- a/libc/arch-x86/syscalls/shutdown.S +++ b/libc/arch-x86/syscalls/shutdown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(shutdown) pushl %ebx diff --git a/libc/arch-x86/syscalls/sigaction.S b/libc/arch-x86/syscalls/sigaction.S index 499c821ea..842f57451 100644 --- a/libc/arch-x86/syscalls/sigaction.S +++ b/libc/arch-x86/syscalls/sigaction.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sigaction) pushl %ebx diff --git a/libc/arch-x86/syscalls/sigaltstack.S b/libc/arch-x86/syscalls/sigaltstack.S index 7cdd1eb4c..346ff07f4 100644 --- a/libc/arch-x86/syscalls/sigaltstack.S +++ b/libc/arch-x86/syscalls/sigaltstack.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sigaltstack) pushl %ebx diff --git a/libc/arch-x86/syscalls/signalfd4.S b/libc/arch-x86/syscalls/signalfd4.S index 399ad35d1..0e9ed7107 100644 --- a/libc/arch-x86/syscalls/signalfd4.S +++ b/libc/arch-x86/syscalls/signalfd4.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(signalfd4) pushl %ebx diff --git a/libc/arch-x86/syscalls/sigpending.S b/libc/arch-x86/syscalls/sigpending.S index e26f189e4..70c3ec4e3 100644 --- a/libc/arch-x86/syscalls/sigpending.S +++ b/libc/arch-x86/syscalls/sigpending.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sigpending) pushl %ebx diff --git a/libc/arch-x86/syscalls/sigprocmask.S b/libc/arch-x86/syscalls/sigprocmask.S index fb12ea2dd..0ac052e0b 100644 --- a/libc/arch-x86/syscalls/sigprocmask.S +++ b/libc/arch-x86/syscalls/sigprocmask.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sigprocmask) pushl %ebx diff --git a/libc/arch-x86/syscalls/socket.S b/libc/arch-x86/syscalls/socket.S index b7a20de99..d1bb6ac84 100644 --- a/libc/arch-x86/syscalls/socket.S +++ b/libc/arch-x86/syscalls/socket.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(socket) pushl %ebx diff --git a/libc/arch-x86/syscalls/socketpair.S b/libc/arch-x86/syscalls/socketpair.S index 02c02acb8..14931f777 100644 --- a/libc/arch-x86/syscalls/socketpair.S +++ b/libc/arch-x86/syscalls/socketpair.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(socketpair) pushl %ebx diff --git a/libc/arch-x86/syscalls/stat.S b/libc/arch-x86/syscalls/stat.S index 2cdf1a055..07cbbf4db 100644 --- a/libc/arch-x86/syscalls/stat.S +++ b/libc/arch-x86/syscalls/stat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(stat) pushl %ebx diff --git a/libc/arch-x86/syscalls/swapoff.S b/libc/arch-x86/syscalls/swapoff.S index f2d6ddb51..203e324bd 100644 --- a/libc/arch-x86/syscalls/swapoff.S +++ b/libc/arch-x86/syscalls/swapoff.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(swapoff) pushl %ebx diff --git a/libc/arch-x86/syscalls/swapon.S b/libc/arch-x86/syscalls/swapon.S index 08602fbb5..b1b7c8c94 100644 --- a/libc/arch-x86/syscalls/swapon.S +++ b/libc/arch-x86/syscalls/swapon.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(swapon) pushl %ebx diff --git a/libc/arch-x86/syscalls/symlink.S b/libc/arch-x86/syscalls/symlink.S index 6c27dc1ff..d787593c0 100644 --- a/libc/arch-x86/syscalls/symlink.S +++ b/libc/arch-x86/syscalls/symlink.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(symlink) pushl %ebx diff --git a/libc/arch-x86/syscalls/sync.S b/libc/arch-x86/syscalls/sync.S index d2a469180..9e6d43dfc 100644 --- a/libc/arch-x86/syscalls/sync.S +++ b/libc/arch-x86/syscalls/sync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sync) pushl %ebx diff --git a/libc/arch-x86/syscalls/sysinfo.S b/libc/arch-x86/syscalls/sysinfo.S index b0fcd1d0a..5e536214e 100644 --- a/libc/arch-x86/syscalls/sysinfo.S +++ b/libc/arch-x86/syscalls/sysinfo.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sysinfo) pushl %ebx diff --git a/libc/arch-x86/syscalls/tgkill.S b/libc/arch-x86/syscalls/tgkill.S index ac8e7f639..b2467a0ac 100644 --- a/libc/arch-x86/syscalls/tgkill.S +++ b/libc/arch-x86/syscalls/tgkill.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(tgkill) pushl %ebx diff --git a/libc/arch-x86/syscalls/timerfd_create.S b/libc/arch-x86/syscalls/timerfd_create.S index 801f8a7f7..09e5b49f5 100644 --- a/libc/arch-x86/syscalls/timerfd_create.S +++ b/libc/arch-x86/syscalls/timerfd_create.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(timerfd_create) pushl %ebx diff --git a/libc/arch-x86/syscalls/timerfd_gettime.S b/libc/arch-x86/syscalls/timerfd_gettime.S index fde17beaf..3f81098e8 100644 --- a/libc/arch-x86/syscalls/timerfd_gettime.S +++ b/libc/arch-x86/syscalls/timerfd_gettime.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(timerfd_gettime) pushl %ebx diff --git a/libc/arch-x86/syscalls/timerfd_settime.S b/libc/arch-x86/syscalls/timerfd_settime.S index 5a5f3e4e2..367f652b6 100644 --- a/libc/arch-x86/syscalls/timerfd_settime.S +++ b/libc/arch-x86/syscalls/timerfd_settime.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(timerfd_settime) pushl %ebx diff --git a/libc/arch-x86/syscalls/times.S b/libc/arch-x86/syscalls/times.S index 62f3039e5..04514dd8f 100644 --- a/libc/arch-x86/syscalls/times.S +++ b/libc/arch-x86/syscalls/times.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(times) pushl %ebx diff --git a/libc/arch-x86/syscalls/tkill.S b/libc/arch-x86/syscalls/tkill.S index 38a7a80a1..9237e0a35 100644 --- a/libc/arch-x86/syscalls/tkill.S +++ b/libc/arch-x86/syscalls/tkill.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(tkill) pushl %ebx diff --git a/libc/arch-x86/syscalls/truncate.S b/libc/arch-x86/syscalls/truncate.S index ace71288e..442e08c53 100644 --- a/libc/arch-x86/syscalls/truncate.S +++ b/libc/arch-x86/syscalls/truncate.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(truncate) pushl %ebx diff --git a/libc/arch-x86/syscalls/truncate64.S b/libc/arch-x86/syscalls/truncate64.S index f9118bba8..04f794aaa 100644 --- a/libc/arch-x86/syscalls/truncate64.S +++ b/libc/arch-x86/syscalls/truncate64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(truncate64) pushl %ebx diff --git a/libc/arch-x86/syscalls/umask.S b/libc/arch-x86/syscalls/umask.S index f238975cb..4be0b47bf 100644 --- a/libc/arch-x86/syscalls/umask.S +++ b/libc/arch-x86/syscalls/umask.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(umask) pushl %ebx diff --git a/libc/arch-x86/syscalls/umount2.S b/libc/arch-x86/syscalls/umount2.S index 3bc04c8ca..2540ac891 100644 --- a/libc/arch-x86/syscalls/umount2.S +++ b/libc/arch-x86/syscalls/umount2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(umount2) pushl %ebx diff --git a/libc/arch-x86/syscalls/uname.S b/libc/arch-x86/syscalls/uname.S index 00c1a0c4f..ef27a6de2 100644 --- a/libc/arch-x86/syscalls/uname.S +++ b/libc/arch-x86/syscalls/uname.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(uname) pushl %ebx diff --git a/libc/arch-x86/syscalls/unlink.S b/libc/arch-x86/syscalls/unlink.S index 60e7b476a..fe63fe461 100644 --- a/libc/arch-x86/syscalls/unlink.S +++ b/libc/arch-x86/syscalls/unlink.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(unlink) pushl %ebx diff --git a/libc/arch-x86/syscalls/unlinkat.S b/libc/arch-x86/syscalls/unlinkat.S index 2e1a04f20..e17fb501b 100644 --- a/libc/arch-x86/syscalls/unlinkat.S +++ b/libc/arch-x86/syscalls/unlinkat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(unlinkat) pushl %ebx diff --git a/libc/arch-x86/syscalls/unshare.S b/libc/arch-x86/syscalls/unshare.S index f5b9a4407..aea9fbaba 100644 --- a/libc/arch-x86/syscalls/unshare.S +++ b/libc/arch-x86/syscalls/unshare.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(unshare) pushl %ebx diff --git a/libc/arch-x86/syscalls/utimensat.S b/libc/arch-x86/syscalls/utimensat.S index ab3192265..1318091c3 100644 --- a/libc/arch-x86/syscalls/utimensat.S +++ b/libc/arch-x86/syscalls/utimensat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(utimensat) pushl %ebx diff --git a/libc/arch-x86/syscalls/utimes.S b/libc/arch-x86/syscalls/utimes.S index 4ca4a8d36..4eafb8816 100644 --- a/libc/arch-x86/syscalls/utimes.S +++ b/libc/arch-x86/syscalls/utimes.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(utimes) pushl %ebx diff --git a/libc/arch-x86/syscalls/wait4.S b/libc/arch-x86/syscalls/wait4.S index 9de704a2f..d9d3ff491 100644 --- a/libc/arch-x86/syscalls/wait4.S +++ b/libc/arch-x86/syscalls/wait4.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(wait4) pushl %ebx diff --git a/libc/arch-x86/syscalls/write.S b/libc/arch-x86/syscalls/write.S index 11d0c72dd..e0cac6739 100644 --- a/libc/arch-x86/syscalls/write.S +++ b/libc/arch-x86/syscalls/write.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(write) pushl %ebx diff --git a/libc/arch-x86/syscalls/writev.S b/libc/arch-x86/syscalls/writev.S index a158a14b9..e8dab42e5 100644 --- a/libc/arch-x86/syscalls/writev.S +++ b/libc/arch-x86/syscalls/writev.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(writev) pushl %ebx diff --git a/libc/arch-x86_64/syscalls.mk b/libc/arch-x86_64/syscalls.mk new file mode 100644 index 000000000..568f1e8e6 --- /dev/null +++ b/libc/arch-x86_64/syscalls.mk @@ -0,0 +1,202 @@ +# Auto-generated by gensyscalls.py. Do not edit. +syscall_src := +syscall_src += arch-x86_64/syscalls/_exit.S +syscall_src += arch-x86_64/syscalls/_exit_thread.S +syscall_src += arch-x86_64/syscalls/__fork.S +syscall_src += arch-x86_64/syscalls/__waitid.S +syscall_src += arch-x86_64/syscalls/wait4.S +syscall_src += arch-x86_64/syscalls/__sys_clone.S +syscall_src += arch-x86_64/syscalls/execve.S +syscall_src += arch-x86_64/syscalls/__setuid.S +syscall_src += arch-x86_64/syscalls/getuid.S +syscall_src += arch-x86_64/syscalls/getgid.S +syscall_src += arch-x86_64/syscalls/geteuid.S +syscall_src += arch-x86_64/syscalls/getegid.S +syscall_src += arch-x86_64/syscalls/getresuid.S +syscall_src += arch-x86_64/syscalls/getresgid.S +syscall_src += arch-x86_64/syscalls/gettid.S +syscall_src += arch-x86_64/syscalls/readahead.S +syscall_src += arch-x86_64/syscalls/getgroups.S +syscall_src += arch-x86_64/syscalls/getpgid.S +syscall_src += arch-x86_64/syscalls/getppid.S +syscall_src += arch-x86_64/syscalls/getsid.S +syscall_src += arch-x86_64/syscalls/setsid.S +syscall_src += arch-x86_64/syscalls/setgid.S +syscall_src += arch-x86_64/syscalls/__setreuid.S +syscall_src += arch-x86_64/syscalls/__setresuid.S +syscall_src += arch-x86_64/syscalls/setresgid.S +syscall_src += arch-x86_64/syscalls/__brk.S +syscall_src += arch-x86_64/syscalls/kill.S +syscall_src += arch-x86_64/syscalls/tkill.S +syscall_src += arch-x86_64/syscalls/tgkill.S +syscall_src += arch-x86_64/syscalls/__ptrace.S +syscall_src += arch-x86_64/syscalls/__getpriority.S +syscall_src += arch-x86_64/syscalls/setpriority.S +syscall_src += arch-x86_64/syscalls/setrlimit.S +syscall_src += arch-x86_64/syscalls/getrlimit.S +syscall_src += arch-x86_64/syscalls/getrusage.S +syscall_src += arch-x86_64/syscalls/setgroups.S +syscall_src += arch-x86_64/syscalls/setpgid.S +syscall_src += arch-x86_64/syscalls/vfork.S +syscall_src += arch-x86_64/syscalls/setregid.S +syscall_src += arch-x86_64/syscalls/chroot.S +syscall_src += arch-x86_64/syscalls/prctl.S +syscall_src += arch-x86_64/syscalls/capget.S +syscall_src += arch-x86_64/syscalls/capset.S +syscall_src += arch-x86_64/syscalls/sigaltstack.S +syscall_src += arch-x86_64/syscalls/acct.S +syscall_src += arch-x86_64/syscalls/read.S +syscall_src += arch-x86_64/syscalls/write.S +syscall_src += arch-x86_64/syscalls/pread64.S +syscall_src += arch-x86_64/syscalls/pwrite64.S +syscall_src += arch-x86_64/syscalls/__open.S +syscall_src += arch-x86_64/syscalls/__openat.S +syscall_src += arch-x86_64/syscalls/close.S +syscall_src += arch-x86_64/syscalls/lseek.S +syscall_src += arch-x86_64/syscalls/getpid.S +syscall_src += arch-x86_64/syscalls/mmap.S +syscall_src += arch-x86_64/syscalls/munmap.S +syscall_src += arch-x86_64/syscalls/mremap.S +syscall_src += arch-x86_64/syscalls/msync.S +syscall_src += arch-x86_64/syscalls/mprotect.S +syscall_src += arch-x86_64/syscalls/madvise.S +syscall_src += arch-x86_64/syscalls/mlock.S +syscall_src += arch-x86_64/syscalls/munlock.S +syscall_src += arch-x86_64/syscalls/mlockall.S +syscall_src += arch-x86_64/syscalls/munlockall.S +syscall_src += arch-x86_64/syscalls/mincore.S +syscall_src += arch-x86_64/syscalls/__ioctl.S +syscall_src += arch-x86_64/syscalls/readv.S +syscall_src += arch-x86_64/syscalls/writev.S +syscall_src += arch-x86_64/syscalls/fcntl.S +syscall_src += arch-x86_64/syscalls/flock.S +syscall_src += arch-x86_64/syscalls/fchmod.S +syscall_src += arch-x86_64/syscalls/dup.S +syscall_src += arch-x86_64/syscalls/pipe.S +syscall_src += arch-x86_64/syscalls/pipe2.S +syscall_src += arch-x86_64/syscalls/dup2.S +syscall_src += arch-x86_64/syscalls/select.S +syscall_src += arch-x86_64/syscalls/ftruncate.S +syscall_src += arch-x86_64/syscalls/getdents.S +syscall_src += arch-x86_64/syscalls/fsync.S +syscall_src += arch-x86_64/syscalls/fdatasync.S +syscall_src += arch-x86_64/syscalls/fchown.S +syscall_src += arch-x86_64/syscalls/sync.S +syscall_src += arch-x86_64/syscalls/fstatfs.S +syscall_src += arch-x86_64/syscalls/sendfile.S +syscall_src += arch-x86_64/syscalls/mkdirat.S +syscall_src += arch-x86_64/syscalls/fchownat.S +syscall_src += arch-x86_64/syscalls/fchmodat.S +syscall_src += arch-x86_64/syscalls/renameat.S +syscall_src += arch-x86_64/syscalls/fsetxattr.S +syscall_src += arch-x86_64/syscalls/fgetxattr.S +syscall_src += arch-x86_64/syscalls/flistxattr.S +syscall_src += arch-x86_64/syscalls/fremovexattr.S +syscall_src += arch-x86_64/syscalls/link.S +syscall_src += arch-x86_64/syscalls/unlink.S +syscall_src += arch-x86_64/syscalls/unlinkat.S +syscall_src += arch-x86_64/syscalls/chdir.S +syscall_src += arch-x86_64/syscalls/mknod.S +syscall_src += arch-x86_64/syscalls/chmod.S +syscall_src += arch-x86_64/syscalls/chown.S +syscall_src += arch-x86_64/syscalls/lchown.S +syscall_src += arch-x86_64/syscalls/mount.S +syscall_src += arch-x86_64/syscalls/umount2.S +syscall_src += arch-x86_64/syscalls/fstat.S +syscall_src += arch-x86_64/syscalls/stat.S +syscall_src += arch-x86_64/syscalls/lstat.S +syscall_src += arch-x86_64/syscalls/mkdir.S +syscall_src += arch-x86_64/syscalls/readlink.S +syscall_src += arch-x86_64/syscalls/rmdir.S +syscall_src += arch-x86_64/syscalls/rename.S +syscall_src += arch-x86_64/syscalls/__getcwd.S +syscall_src += arch-x86_64/syscalls/access.S +syscall_src += arch-x86_64/syscalls/faccessat.S +syscall_src += arch-x86_64/syscalls/symlink.S +syscall_src += arch-x86_64/syscalls/fchdir.S +syscall_src += arch-x86_64/syscalls/truncate.S +syscall_src += arch-x86_64/syscalls/setxattr.S +syscall_src += arch-x86_64/syscalls/lsetxattr.S +syscall_src += arch-x86_64/syscalls/getxattr.S +syscall_src += arch-x86_64/syscalls/lgetxattr.S +syscall_src += arch-x86_64/syscalls/listxattr.S +syscall_src += arch-x86_64/syscalls/llistxattr.S +syscall_src += arch-x86_64/syscalls/removexattr.S +syscall_src += arch-x86_64/syscalls/lremovexattr.S +syscall_src += arch-x86_64/syscalls/statfs.S +syscall_src += arch-x86_64/syscalls/unshare.S +syscall_src += arch-x86_64/syscalls/swapon.S +syscall_src += arch-x86_64/syscalls/swapoff.S +syscall_src += arch-x86_64/syscalls/pause.S +syscall_src += arch-x86_64/syscalls/gettimeofday.S +syscall_src += arch-x86_64/syscalls/settimeofday.S +syscall_src += arch-x86_64/syscalls/times.S +syscall_src += arch-x86_64/syscalls/nanosleep.S +syscall_src += arch-x86_64/syscalls/clock_gettime.S +syscall_src += arch-x86_64/syscalls/clock_settime.S +syscall_src += arch-x86_64/syscalls/clock_getres.S +syscall_src += arch-x86_64/syscalls/clock_nanosleep.S +syscall_src += arch-x86_64/syscalls/getitimer.S +syscall_src += arch-x86_64/syscalls/setitimer.S +syscall_src += arch-x86_64/syscalls/__timer_create.S +syscall_src += arch-x86_64/syscalls/__timer_settime.S +syscall_src += arch-x86_64/syscalls/__timer_gettime.S +syscall_src += arch-x86_64/syscalls/__timer_getoverrun.S +syscall_src += arch-x86_64/syscalls/__timer_delete.S +syscall_src += arch-x86_64/syscalls/utimes.S +syscall_src += arch-x86_64/syscalls/utimensat.S +syscall_src += arch-x86_64/syscalls/timerfd_create.S +syscall_src += arch-x86_64/syscalls/timerfd_settime.S +syscall_src += arch-x86_64/syscalls/timerfd_gettime.S +syscall_src += arch-x86_64/syscalls/__rt_sigsuspend.S +syscall_src += arch-x86_64/syscalls/__rt_sigaction.S +syscall_src += arch-x86_64/syscalls/__rt_sigprocmask.S +syscall_src += arch-x86_64/syscalls/__rt_sigtimedwait.S +syscall_src += arch-x86_64/syscalls/signalfd4.S +syscall_src += arch-x86_64/syscalls/socket.S +syscall_src += arch-x86_64/syscalls/socketpair.S +syscall_src += arch-x86_64/syscalls/bind.S +syscall_src += arch-x86_64/syscalls/connect.S +syscall_src += arch-x86_64/syscalls/listen.S +syscall_src += arch-x86_64/syscalls/accept.S +syscall_src += arch-x86_64/syscalls/getsockname.S +syscall_src += arch-x86_64/syscalls/getpeername.S +syscall_src += arch-x86_64/syscalls/sendto.S +syscall_src += arch-x86_64/syscalls/recvfrom.S +syscall_src += arch-x86_64/syscalls/shutdown.S +syscall_src += arch-x86_64/syscalls/setsockopt.S +syscall_src += arch-x86_64/syscalls/getsockopt.S +syscall_src += arch-x86_64/syscalls/sendmsg.S +syscall_src += arch-x86_64/syscalls/recvmsg.S +syscall_src += arch-x86_64/syscalls/sched_setscheduler.S +syscall_src += arch-x86_64/syscalls/sched_getscheduler.S +syscall_src += arch-x86_64/syscalls/sched_yield.S +syscall_src += arch-x86_64/syscalls/sched_setparam.S +syscall_src += arch-x86_64/syscalls/sched_getparam.S +syscall_src += arch-x86_64/syscalls/sched_get_priority_max.S +syscall_src += arch-x86_64/syscalls/sched_get_priority_min.S +syscall_src += arch-x86_64/syscalls/sched_rr_get_interval.S +syscall_src += arch-x86_64/syscalls/sched_setaffinity.S +syscall_src += arch-x86_64/syscalls/__sched_getaffinity.S +syscall_src += arch-x86_64/syscalls/__getcpu.S +syscall_src += arch-x86_64/syscalls/ioprio_set.S +syscall_src += arch-x86_64/syscalls/ioprio_get.S +syscall_src += arch-x86_64/syscalls/uname.S +syscall_src += arch-x86_64/syscalls/umask.S +syscall_src += arch-x86_64/syscalls/__reboot.S +syscall_src += arch-x86_64/syscalls/__syslog.S +syscall_src += arch-x86_64/syscalls/init_module.S +syscall_src += arch-x86_64/syscalls/delete_module.S +syscall_src += arch-x86_64/syscalls/klogctl.S +syscall_src += arch-x86_64/syscalls/sysinfo.S +syscall_src += arch-x86_64/syscalls/personality.S +syscall_src += arch-x86_64/syscalls/perf_event_open.S +syscall_src += arch-x86_64/syscalls/futex.S +syscall_src += arch-x86_64/syscalls/epoll_create.S +syscall_src += arch-x86_64/syscalls/epoll_ctl.S +syscall_src += arch-x86_64/syscalls/epoll_wait.S +syscall_src += arch-x86_64/syscalls/inotify_init.S +syscall_src += arch-x86_64/syscalls/inotify_add_watch.S +syscall_src += arch-x86_64/syscalls/inotify_rm_watch.S +syscall_src += arch-x86_64/syscalls/poll.S +syscall_src += arch-x86_64/syscalls/eventfd.S diff --git a/libc/arch-x86_64/syscalls/__brk.S b/libc/arch-x86_64/syscalls/__brk.S new file mode 100644 index 000000000..ea5b9cff7 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__brk.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__brk) + movl $__NR_brk, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__brk) diff --git a/libc/arch-x86_64/syscalls/__fork.S b/libc/arch-x86_64/syscalls/__fork.S new file mode 100644 index 000000000..75f2ed713 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__fork.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__fork) + movl $__NR_fork, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__fork) diff --git a/libc/arch-x86_64/syscalls/__getcpu.S b/libc/arch-x86_64/syscalls/__getcpu.S new file mode 100644 index 000000000..47d5350e8 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__getcpu.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__getcpu) + movl $__NR_getcpu, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__getcpu) diff --git a/libc/arch-x86_64/syscalls/__getcwd.S b/libc/arch-x86_64/syscalls/__getcwd.S new file mode 100644 index 000000000..2a274a929 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__getcwd.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__getcwd) + movl $__NR_getcwd, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__getcwd) diff --git a/libc/arch-x86_64/syscalls/__getpriority.S b/libc/arch-x86_64/syscalls/__getpriority.S new file mode 100644 index 000000000..6d8d6f722 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__getpriority.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__getpriority) + movl $__NR_getpriority, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__getpriority) diff --git a/libc/arch-x86_64/syscalls/__ioctl.S b/libc/arch-x86_64/syscalls/__ioctl.S new file mode 100644 index 000000000..e9b3afa17 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__ioctl.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__ioctl) + movl $__NR_ioctl, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__ioctl) diff --git a/libc/arch-x86_64/syscalls/__open.S b/libc/arch-x86_64/syscalls/__open.S new file mode 100644 index 000000000..ef106e31d --- /dev/null +++ b/libc/arch-x86_64/syscalls/__open.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__open) + movl $__NR_open, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__open) diff --git a/libc/arch-x86_64/syscalls/__openat.S b/libc/arch-x86_64/syscalls/__openat.S new file mode 100644 index 000000000..adb2e1a4f --- /dev/null +++ b/libc/arch-x86_64/syscalls/__openat.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__openat) + movq %rcx, %r10 + movl $__NR_openat, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__openat) diff --git a/libc/arch-x86_64/syscalls/__ptrace.S b/libc/arch-x86_64/syscalls/__ptrace.S new file mode 100644 index 000000000..75586bdcc --- /dev/null +++ b/libc/arch-x86_64/syscalls/__ptrace.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__ptrace) + movq %rcx, %r10 + movl $__NR_ptrace, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__ptrace) diff --git a/libc/arch-x86_64/syscalls/__reboot.S b/libc/arch-x86_64/syscalls/__reboot.S new file mode 100644 index 000000000..46588c2f9 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__reboot.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__reboot) + movq %rcx, %r10 + movl $__NR_reboot, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__reboot) diff --git a/libc/arch-x86_64/syscalls/__rt_sigaction.S b/libc/arch-x86_64/syscalls/__rt_sigaction.S new file mode 100644 index 000000000..90129d7bd --- /dev/null +++ b/libc/arch-x86_64/syscalls/__rt_sigaction.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__rt_sigaction) + movq %rcx, %r10 + movl $__NR_rt_sigaction, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__rt_sigaction) diff --git a/libc/arch-x86_64/syscalls/__rt_sigprocmask.S b/libc/arch-x86_64/syscalls/__rt_sigprocmask.S new file mode 100644 index 000000000..dc3c1fc83 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__rt_sigprocmask.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__rt_sigprocmask) + movq %rcx, %r10 + movl $__NR_rt_sigprocmask, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__rt_sigprocmask) diff --git a/libc/arch-x86_64/syscalls/__rt_sigsuspend.S b/libc/arch-x86_64/syscalls/__rt_sigsuspend.S new file mode 100644 index 000000000..0efbd0702 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__rt_sigsuspend.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__rt_sigsuspend) + movl $__NR_rt_sigsuspend, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__rt_sigsuspend) diff --git a/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S b/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S new file mode 100644 index 000000000..3907d253a --- /dev/null +++ b/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__rt_sigtimedwait) + movq %rcx, %r10 + movl $__NR_rt_sigtimedwait, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__rt_sigtimedwait) diff --git a/libc/arch-x86_64/syscalls/__sched_getaffinity.S b/libc/arch-x86_64/syscalls/__sched_getaffinity.S new file mode 100644 index 000000000..c783bc3f1 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__sched_getaffinity.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__sched_getaffinity) + movl $__NR_sched_getaffinity, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__sched_getaffinity) diff --git a/libc/arch-x86_64/syscalls/__setresuid.S b/libc/arch-x86_64/syscalls/__setresuid.S new file mode 100644 index 000000000..e4ca4b83e --- /dev/null +++ b/libc/arch-x86_64/syscalls/__setresuid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__setresuid) + movl $__NR_setresuid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__setresuid) diff --git a/libc/arch-x86_64/syscalls/__setreuid.S b/libc/arch-x86_64/syscalls/__setreuid.S new file mode 100644 index 000000000..89d2aad57 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__setreuid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__setreuid) + movl $__NR_setreuid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__setreuid) diff --git a/libc/arch-x86_64/syscalls/__setuid.S b/libc/arch-x86_64/syscalls/__setuid.S new file mode 100644 index 000000000..20b508991 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__setuid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__setuid) + movl $__NR_setuid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__setuid) diff --git a/libc/arch-x86_64/syscalls/__sys_clone.S b/libc/arch-x86_64/syscalls/__sys_clone.S new file mode 100644 index 000000000..557a681e5 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__sys_clone.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__sys_clone) + movq %rcx, %r10 + movl $__NR_clone, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__sys_clone) diff --git a/libc/arch-x86_64/syscalls/__syslog.S b/libc/arch-x86_64/syscalls/__syslog.S new file mode 100644 index 000000000..4b76ad2df --- /dev/null +++ b/libc/arch-x86_64/syscalls/__syslog.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__syslog) + movl $__NR_syslog, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__syslog) diff --git a/libc/arch-x86_64/syscalls/__timer_create.S b/libc/arch-x86_64/syscalls/__timer_create.S new file mode 100644 index 000000000..cb46a1bc8 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__timer_create.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__timer_create) + movl $__NR_timer_create, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__timer_create) diff --git a/libc/arch-x86_64/syscalls/__timer_delete.S b/libc/arch-x86_64/syscalls/__timer_delete.S new file mode 100644 index 000000000..785f4ef0c --- /dev/null +++ b/libc/arch-x86_64/syscalls/__timer_delete.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__timer_delete) + movl $__NR_timer_delete, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__timer_delete) diff --git a/libc/arch-x86_64/syscalls/__timer_getoverrun.S b/libc/arch-x86_64/syscalls/__timer_getoverrun.S new file mode 100644 index 000000000..bc5383f70 --- /dev/null +++ b/libc/arch-x86_64/syscalls/__timer_getoverrun.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__timer_getoverrun) + movl $__NR_timer_getoverrun, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__timer_getoverrun) diff --git a/libc/arch-x86_64/syscalls/__timer_gettime.S b/libc/arch-x86_64/syscalls/__timer_gettime.S new file mode 100644 index 000000000..29577cbad --- /dev/null +++ b/libc/arch-x86_64/syscalls/__timer_gettime.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__timer_gettime) + movl $__NR_timer_gettime, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__timer_gettime) diff --git a/libc/arch-x86_64/syscalls/__timer_settime.S b/libc/arch-x86_64/syscalls/__timer_settime.S new file mode 100644 index 000000000..1f79ecaed --- /dev/null +++ b/libc/arch-x86_64/syscalls/__timer_settime.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__timer_settime) + movq %rcx, %r10 + movl $__NR_timer_settime, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__timer_settime) diff --git a/libc/arch-x86_64/syscalls/__waitid.S b/libc/arch-x86_64/syscalls/__waitid.S new file mode 100644 index 000000000..7e278a59b --- /dev/null +++ b/libc/arch-x86_64/syscalls/__waitid.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(__waitid) + movq %rcx, %r10 + movl $__NR_waitid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(__waitid) diff --git a/libc/arch-x86_64/syscalls/_exit.S b/libc/arch-x86_64/syscalls/_exit.S new file mode 100644 index 000000000..6628ac911 --- /dev/null +++ b/libc/arch-x86_64/syscalls/_exit.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(_exit) + movl $__NR_exit_group, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(_exit) diff --git a/libc/arch-x86_64/syscalls/_exit_thread.S b/libc/arch-x86_64/syscalls/_exit_thread.S new file mode 100644 index 000000000..0992af406 --- /dev/null +++ b/libc/arch-x86_64/syscalls/_exit_thread.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(_exit_thread) + movl $__NR_exit, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(_exit_thread) diff --git a/libc/arch-x86_64/syscalls/accept.S b/libc/arch-x86_64/syscalls/accept.S new file mode 100644 index 000000000..688637a00 --- /dev/null +++ b/libc/arch-x86_64/syscalls/accept.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(accept) + movl $__NR_accept, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(accept) diff --git a/libc/arch-x86_64/syscalls/access.S b/libc/arch-x86_64/syscalls/access.S new file mode 100644 index 000000000..fc4d62001 --- /dev/null +++ b/libc/arch-x86_64/syscalls/access.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(access) + movl $__NR_access, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(access) diff --git a/libc/arch-x86_64/syscalls/acct.S b/libc/arch-x86_64/syscalls/acct.S new file mode 100644 index 000000000..fac8a26b6 --- /dev/null +++ b/libc/arch-x86_64/syscalls/acct.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(acct) + movl $__NR_acct, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(acct) diff --git a/libc/arch-x86_64/syscalls/bind.S b/libc/arch-x86_64/syscalls/bind.S new file mode 100644 index 000000000..c9bb7fee2 --- /dev/null +++ b/libc/arch-x86_64/syscalls/bind.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(bind) + movl $__NR_bind, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(bind) diff --git a/libc/arch-x86_64/syscalls/capget.S b/libc/arch-x86_64/syscalls/capget.S new file mode 100644 index 000000000..a043647fa --- /dev/null +++ b/libc/arch-x86_64/syscalls/capget.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(capget) + movl $__NR_capget, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(capget) diff --git a/libc/arch-x86_64/syscalls/capset.S b/libc/arch-x86_64/syscalls/capset.S new file mode 100644 index 000000000..fba3d2460 --- /dev/null +++ b/libc/arch-x86_64/syscalls/capset.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(capset) + movl $__NR_capset, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(capset) diff --git a/libc/arch-x86_64/syscalls/chdir.S b/libc/arch-x86_64/syscalls/chdir.S new file mode 100644 index 000000000..8eb49493a --- /dev/null +++ b/libc/arch-x86_64/syscalls/chdir.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(chdir) + movl $__NR_chdir, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(chdir) diff --git a/libc/arch-x86_64/syscalls/chmod.S b/libc/arch-x86_64/syscalls/chmod.S new file mode 100644 index 000000000..069aae14a --- /dev/null +++ b/libc/arch-x86_64/syscalls/chmod.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(chmod) + movl $__NR_chmod, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(chmod) diff --git a/libc/arch-x86_64/syscalls/chown.S b/libc/arch-x86_64/syscalls/chown.S new file mode 100644 index 000000000..028165970 --- /dev/null +++ b/libc/arch-x86_64/syscalls/chown.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(chown) + movl $__NR_chown, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(chown) diff --git a/libc/arch-x86_64/syscalls/chroot.S b/libc/arch-x86_64/syscalls/chroot.S new file mode 100644 index 000000000..2f303ee40 --- /dev/null +++ b/libc/arch-x86_64/syscalls/chroot.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(chroot) + movl $__NR_chroot, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(chroot) diff --git a/libc/arch-x86_64/syscalls/clock_getres.S b/libc/arch-x86_64/syscalls/clock_getres.S new file mode 100644 index 000000000..38ff52a77 --- /dev/null +++ b/libc/arch-x86_64/syscalls/clock_getres.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(clock_getres) + movl $__NR_clock_getres, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(clock_getres) diff --git a/libc/arch-x86_64/syscalls/clock_gettime.S b/libc/arch-x86_64/syscalls/clock_gettime.S new file mode 100644 index 000000000..f299fb1d0 --- /dev/null +++ b/libc/arch-x86_64/syscalls/clock_gettime.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(clock_gettime) + movl $__NR_clock_gettime, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(clock_gettime) diff --git a/libc/arch-x86_64/syscalls/clock_nanosleep.S b/libc/arch-x86_64/syscalls/clock_nanosleep.S new file mode 100644 index 000000000..f61f3644b --- /dev/null +++ b/libc/arch-x86_64/syscalls/clock_nanosleep.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(clock_nanosleep) + movq %rcx, %r10 + movl $__NR_clock_nanosleep, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(clock_nanosleep) diff --git a/libc/arch-x86_64/syscalls/clock_settime.S b/libc/arch-x86_64/syscalls/clock_settime.S new file mode 100644 index 000000000..520c81c86 --- /dev/null +++ b/libc/arch-x86_64/syscalls/clock_settime.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(clock_settime) + movl $__NR_clock_settime, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(clock_settime) diff --git a/libc/arch-x86_64/syscalls/close.S b/libc/arch-x86_64/syscalls/close.S new file mode 100644 index 000000000..596e9d7bf --- /dev/null +++ b/libc/arch-x86_64/syscalls/close.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(close) + movl $__NR_close, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(close) diff --git a/libc/arch-x86_64/syscalls/connect.S b/libc/arch-x86_64/syscalls/connect.S new file mode 100644 index 000000000..45ab826d2 --- /dev/null +++ b/libc/arch-x86_64/syscalls/connect.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(connect) + movl $__NR_connect, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(connect) diff --git a/libc/arch-x86_64/syscalls/delete_module.S b/libc/arch-x86_64/syscalls/delete_module.S new file mode 100644 index 000000000..f5e1fc899 --- /dev/null +++ b/libc/arch-x86_64/syscalls/delete_module.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(delete_module) + movl $__NR_delete_module, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(delete_module) diff --git a/libc/arch-x86_64/syscalls/dup.S b/libc/arch-x86_64/syscalls/dup.S new file mode 100644 index 000000000..fdb0cf0d8 --- /dev/null +++ b/libc/arch-x86_64/syscalls/dup.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(dup) + movl $__NR_dup, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(dup) diff --git a/libc/arch-x86_64/syscalls/dup2.S b/libc/arch-x86_64/syscalls/dup2.S new file mode 100644 index 000000000..cc6f65b0b --- /dev/null +++ b/libc/arch-x86_64/syscalls/dup2.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(dup2) + movl $__NR_dup2, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(dup2) diff --git a/libc/arch-x86_64/syscalls/epoll_create.S b/libc/arch-x86_64/syscalls/epoll_create.S new file mode 100644 index 000000000..af5b6a508 --- /dev/null +++ b/libc/arch-x86_64/syscalls/epoll_create.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(epoll_create) + movl $__NR_epoll_create, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(epoll_create) diff --git a/libc/arch-x86_64/syscalls/epoll_ctl.S b/libc/arch-x86_64/syscalls/epoll_ctl.S new file mode 100644 index 000000000..df9f56125 --- /dev/null +++ b/libc/arch-x86_64/syscalls/epoll_ctl.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(epoll_ctl) + movq %rcx, %r10 + movl $__NR_epoll_ctl, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(epoll_ctl) diff --git a/libc/arch-x86_64/syscalls/epoll_wait.S b/libc/arch-x86_64/syscalls/epoll_wait.S new file mode 100644 index 000000000..04cd25a44 --- /dev/null +++ b/libc/arch-x86_64/syscalls/epoll_wait.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(epoll_wait) + movq %rcx, %r10 + movl $__NR_epoll_wait, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(epoll_wait) diff --git a/libc/arch-x86_64/syscalls/eventfd.S b/libc/arch-x86_64/syscalls/eventfd.S new file mode 100644 index 000000000..a00532311 --- /dev/null +++ b/libc/arch-x86_64/syscalls/eventfd.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(eventfd) + movl $__NR_eventfd2, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(eventfd) diff --git a/libc/arch-x86_64/syscalls/execve.S b/libc/arch-x86_64/syscalls/execve.S new file mode 100644 index 000000000..dd00ae579 --- /dev/null +++ b/libc/arch-x86_64/syscalls/execve.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(execve) + movl $__NR_execve, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(execve) diff --git a/libc/arch-x86_64/syscalls/faccessat.S b/libc/arch-x86_64/syscalls/faccessat.S new file mode 100644 index 000000000..75de9c864 --- /dev/null +++ b/libc/arch-x86_64/syscalls/faccessat.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(faccessat) + movq %rcx, %r10 + movl $__NR_faccessat, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(faccessat) diff --git a/libc/arch-x86_64/syscalls/fchdir.S b/libc/arch-x86_64/syscalls/fchdir.S new file mode 100644 index 000000000..a669808c2 --- /dev/null +++ b/libc/arch-x86_64/syscalls/fchdir.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fchdir) + movl $__NR_fchdir, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fchdir) diff --git a/libc/arch-x86_64/syscalls/fchmod.S b/libc/arch-x86_64/syscalls/fchmod.S new file mode 100644 index 000000000..c20073dd4 --- /dev/null +++ b/libc/arch-x86_64/syscalls/fchmod.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fchmod) + movl $__NR_fchmod, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fchmod) diff --git a/libc/arch-x86_64/syscalls/fchmodat.S b/libc/arch-x86_64/syscalls/fchmodat.S new file mode 100644 index 000000000..afc67fed8 --- /dev/null +++ b/libc/arch-x86_64/syscalls/fchmodat.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fchmodat) + movq %rcx, %r10 + movl $__NR_fchmodat, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fchmodat) diff --git a/libc/arch-x86_64/syscalls/fchown.S b/libc/arch-x86_64/syscalls/fchown.S new file mode 100644 index 000000000..4411cbf3e --- /dev/null +++ b/libc/arch-x86_64/syscalls/fchown.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fchown) + movl $__NR_fchown, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fchown) diff --git a/libc/arch-x86_64/syscalls/fchownat.S b/libc/arch-x86_64/syscalls/fchownat.S new file mode 100644 index 000000000..da2f5da15 --- /dev/null +++ b/libc/arch-x86_64/syscalls/fchownat.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fchownat) + movq %rcx, %r10 + movl $__NR_fchownat, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fchownat) diff --git a/libc/arch-x86_64/syscalls/fcntl.S b/libc/arch-x86_64/syscalls/fcntl.S new file mode 100644 index 000000000..dd3b94095 --- /dev/null +++ b/libc/arch-x86_64/syscalls/fcntl.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fcntl) + movl $__NR_fcntl, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fcntl) diff --git a/libc/arch-x86_64/syscalls/fdatasync.S b/libc/arch-x86_64/syscalls/fdatasync.S new file mode 100644 index 000000000..55777b9f7 --- /dev/null +++ b/libc/arch-x86_64/syscalls/fdatasync.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fdatasync) + movl $__NR_fdatasync, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fdatasync) diff --git a/libc/arch-x86_64/syscalls/fgetxattr.S b/libc/arch-x86_64/syscalls/fgetxattr.S new file mode 100644 index 000000000..92e4cf835 --- /dev/null +++ b/libc/arch-x86_64/syscalls/fgetxattr.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fgetxattr) + movq %rcx, %r10 + movl $__NR_fgetxattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fgetxattr) diff --git a/libc/arch-x86_64/syscalls/flistxattr.S b/libc/arch-x86_64/syscalls/flistxattr.S new file mode 100644 index 000000000..8b0053b77 --- /dev/null +++ b/libc/arch-x86_64/syscalls/flistxattr.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(flistxattr) + movl $__NR_flistxattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(flistxattr) diff --git a/libc/arch-x86_64/syscalls/flock.S b/libc/arch-x86_64/syscalls/flock.S new file mode 100644 index 000000000..fb8b69d50 --- /dev/null +++ b/libc/arch-x86_64/syscalls/flock.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(flock) + movl $__NR_flock, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(flock) diff --git a/libc/arch-x86_64/syscalls/fremovexattr.S b/libc/arch-x86_64/syscalls/fremovexattr.S new file mode 100644 index 000000000..5bf5d0d88 --- /dev/null +++ b/libc/arch-x86_64/syscalls/fremovexattr.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fremovexattr) + movl $__NR_fremovexattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fremovexattr) diff --git a/libc/arch-x86_64/syscalls/fsetxattr.S b/libc/arch-x86_64/syscalls/fsetxattr.S new file mode 100644 index 000000000..15b16433e --- /dev/null +++ b/libc/arch-x86_64/syscalls/fsetxattr.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fsetxattr) + movq %rcx, %r10 + movl $__NR_fsetxattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fsetxattr) diff --git a/libc/arch-x86_64/syscalls/fstat.S b/libc/arch-x86_64/syscalls/fstat.S new file mode 100644 index 000000000..18d3649a2 --- /dev/null +++ b/libc/arch-x86_64/syscalls/fstat.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fstat) + movl $__NR_fstat, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fstat) diff --git a/libc/arch-x86_64/syscalls/fstatfs.S b/libc/arch-x86_64/syscalls/fstatfs.S new file mode 100644 index 000000000..8ae21e7e9 --- /dev/null +++ b/libc/arch-x86_64/syscalls/fstatfs.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fstatfs) + movl $__NR_fstatfs, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fstatfs) diff --git a/libc/arch-x86_64/syscalls/fsync.S b/libc/arch-x86_64/syscalls/fsync.S new file mode 100644 index 000000000..80a45f3b1 --- /dev/null +++ b/libc/arch-x86_64/syscalls/fsync.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(fsync) + movl $__NR_fsync, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(fsync) diff --git a/libc/arch-x86_64/syscalls/ftruncate.S b/libc/arch-x86_64/syscalls/ftruncate.S new file mode 100644 index 000000000..97c7be9cf --- /dev/null +++ b/libc/arch-x86_64/syscalls/ftruncate.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(ftruncate) + movl $__NR_ftruncate, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(ftruncate) diff --git a/libc/arch-x86_64/syscalls/futex.S b/libc/arch-x86_64/syscalls/futex.S new file mode 100644 index 000000000..b9e61af34 --- /dev/null +++ b/libc/arch-x86_64/syscalls/futex.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(futex) + movq %rcx, %r10 + movl $__NR_futex, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(futex) diff --git a/libc/arch-x86_64/syscalls/getdents.S b/libc/arch-x86_64/syscalls/getdents.S new file mode 100644 index 000000000..b92d18dc6 --- /dev/null +++ b/libc/arch-x86_64/syscalls/getdents.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getdents) + movl $__NR_getdents64, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getdents) diff --git a/libc/arch-x86_64/syscalls/getegid.S b/libc/arch-x86_64/syscalls/getegid.S new file mode 100644 index 000000000..47bb072cf --- /dev/null +++ b/libc/arch-x86_64/syscalls/getegid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getegid) + movl $__NR_getegid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getegid) diff --git a/libc/arch-x86_64/syscalls/geteuid.S b/libc/arch-x86_64/syscalls/geteuid.S new file mode 100644 index 000000000..779b5eb33 --- /dev/null +++ b/libc/arch-x86_64/syscalls/geteuid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(geteuid) + movl $__NR_geteuid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(geteuid) diff --git a/libc/arch-x86_64/syscalls/getgid.S b/libc/arch-x86_64/syscalls/getgid.S new file mode 100644 index 000000000..30fabb739 --- /dev/null +++ b/libc/arch-x86_64/syscalls/getgid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getgid) + movl $__NR_getgid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getgid) diff --git a/libc/arch-x86_64/syscalls/getgroups.S b/libc/arch-x86_64/syscalls/getgroups.S new file mode 100644 index 000000000..edd00198d --- /dev/null +++ b/libc/arch-x86_64/syscalls/getgroups.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getgroups) + movl $__NR_getgroups, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getgroups) diff --git a/libc/arch-x86_64/syscalls/getitimer.S b/libc/arch-x86_64/syscalls/getitimer.S new file mode 100644 index 000000000..f39873f25 --- /dev/null +++ b/libc/arch-x86_64/syscalls/getitimer.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getitimer) + movl $__NR_getitimer, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getitimer) diff --git a/libc/arch-x86_64/syscalls/getpeername.S b/libc/arch-x86_64/syscalls/getpeername.S new file mode 100644 index 000000000..53a50296d --- /dev/null +++ b/libc/arch-x86_64/syscalls/getpeername.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getpeername) + movl $__NR_getpeername, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getpeername) diff --git a/libc/arch-x86_64/syscalls/getpgid.S b/libc/arch-x86_64/syscalls/getpgid.S new file mode 100644 index 000000000..3d446272c --- /dev/null +++ b/libc/arch-x86_64/syscalls/getpgid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getpgid) + movl $__NR_getpgid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getpgid) diff --git a/libc/arch-x86_64/syscalls/getpid.S b/libc/arch-x86_64/syscalls/getpid.S new file mode 100644 index 000000000..cddf9e97f --- /dev/null +++ b/libc/arch-x86_64/syscalls/getpid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getpid) + movl $__NR_getpid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getpid) diff --git a/libc/arch-x86_64/syscalls/getppid.S b/libc/arch-x86_64/syscalls/getppid.S new file mode 100644 index 000000000..03555f275 --- /dev/null +++ b/libc/arch-x86_64/syscalls/getppid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getppid) + movl $__NR_getppid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getppid) diff --git a/libc/arch-x86_64/syscalls/getresgid.S b/libc/arch-x86_64/syscalls/getresgid.S new file mode 100644 index 000000000..ef17b8c36 --- /dev/null +++ b/libc/arch-x86_64/syscalls/getresgid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getresgid) + movl $__NR_getresgid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getresgid) diff --git a/libc/arch-x86_64/syscalls/getresuid.S b/libc/arch-x86_64/syscalls/getresuid.S new file mode 100644 index 000000000..fd3f62d2c --- /dev/null +++ b/libc/arch-x86_64/syscalls/getresuid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getresuid) + movl $__NR_getresuid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getresuid) diff --git a/libc/arch-x86_64/syscalls/getrlimit.S b/libc/arch-x86_64/syscalls/getrlimit.S new file mode 100644 index 000000000..eb1241d74 --- /dev/null +++ b/libc/arch-x86_64/syscalls/getrlimit.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getrlimit) + movl $__NR_getrlimit, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getrlimit) diff --git a/libc/arch-x86_64/syscalls/getrusage.S b/libc/arch-x86_64/syscalls/getrusage.S new file mode 100644 index 000000000..89eacfd07 --- /dev/null +++ b/libc/arch-x86_64/syscalls/getrusage.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getrusage) + movl $__NR_getrusage, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getrusage) diff --git a/libc/arch-x86_64/syscalls/getsid.S b/libc/arch-x86_64/syscalls/getsid.S new file mode 100644 index 000000000..fa09d5b4e --- /dev/null +++ b/libc/arch-x86_64/syscalls/getsid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getsid) + movl $__NR_getsid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getsid) diff --git a/libc/arch-x86_64/syscalls/getsockname.S b/libc/arch-x86_64/syscalls/getsockname.S new file mode 100644 index 000000000..8206df239 --- /dev/null +++ b/libc/arch-x86_64/syscalls/getsockname.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getsockname) + movl $__NR_getsockname, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getsockname) diff --git a/libc/arch-x86_64/syscalls/getsockopt.S b/libc/arch-x86_64/syscalls/getsockopt.S new file mode 100644 index 000000000..14a156f38 --- /dev/null +++ b/libc/arch-x86_64/syscalls/getsockopt.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getsockopt) + movq %rcx, %r10 + movl $__NR_getsockopt, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getsockopt) diff --git a/libc/arch-x86_64/syscalls/gettid.S b/libc/arch-x86_64/syscalls/gettid.S new file mode 100644 index 000000000..5491bef41 --- /dev/null +++ b/libc/arch-x86_64/syscalls/gettid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(gettid) + movl $__NR_gettid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(gettid) diff --git a/libc/arch-x86_64/syscalls/gettimeofday.S b/libc/arch-x86_64/syscalls/gettimeofday.S new file mode 100644 index 000000000..7bf251a1a --- /dev/null +++ b/libc/arch-x86_64/syscalls/gettimeofday.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(gettimeofday) + movl $__NR_gettimeofday, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(gettimeofday) diff --git a/libc/arch-x86_64/syscalls/getuid.S b/libc/arch-x86_64/syscalls/getuid.S new file mode 100644 index 000000000..cdfd108e7 --- /dev/null +++ b/libc/arch-x86_64/syscalls/getuid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getuid) + movl $__NR_getuid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getuid) diff --git a/libc/arch-x86_64/syscalls/getxattr.S b/libc/arch-x86_64/syscalls/getxattr.S new file mode 100644 index 000000000..f1a513d7e --- /dev/null +++ b/libc/arch-x86_64/syscalls/getxattr.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(getxattr) + movq %rcx, %r10 + movl $__NR_getxattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(getxattr) diff --git a/libc/arch-x86_64/syscalls/init_module.S b/libc/arch-x86_64/syscalls/init_module.S new file mode 100644 index 000000000..4e54b7f22 --- /dev/null +++ b/libc/arch-x86_64/syscalls/init_module.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(init_module) + movl $__NR_init_module, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(init_module) diff --git a/libc/arch-x86_64/syscalls/inotify_add_watch.S b/libc/arch-x86_64/syscalls/inotify_add_watch.S new file mode 100644 index 000000000..0a2d8f1d2 --- /dev/null +++ b/libc/arch-x86_64/syscalls/inotify_add_watch.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(inotify_add_watch) + movl $__NR_inotify_add_watch, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(inotify_add_watch) diff --git a/libc/arch-x86_64/syscalls/inotify_init.S b/libc/arch-x86_64/syscalls/inotify_init.S new file mode 100644 index 000000000..0d20efc32 --- /dev/null +++ b/libc/arch-x86_64/syscalls/inotify_init.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(inotify_init) + movl $__NR_inotify_init, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(inotify_init) diff --git a/libc/arch-x86_64/syscalls/inotify_rm_watch.S b/libc/arch-x86_64/syscalls/inotify_rm_watch.S new file mode 100644 index 000000000..9f53e6487 --- /dev/null +++ b/libc/arch-x86_64/syscalls/inotify_rm_watch.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(inotify_rm_watch) + movl $__NR_inotify_rm_watch, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(inotify_rm_watch) diff --git a/libc/arch-x86_64/syscalls/ioprio_get.S b/libc/arch-x86_64/syscalls/ioprio_get.S new file mode 100644 index 000000000..6523bc945 --- /dev/null +++ b/libc/arch-x86_64/syscalls/ioprio_get.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(ioprio_get) + movl $__NR_ioprio_get, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(ioprio_get) diff --git a/libc/arch-x86_64/syscalls/ioprio_set.S b/libc/arch-x86_64/syscalls/ioprio_set.S new file mode 100644 index 000000000..bdbf5594f --- /dev/null +++ b/libc/arch-x86_64/syscalls/ioprio_set.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(ioprio_set) + movl $__NR_ioprio_set, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(ioprio_set) diff --git a/libc/arch-x86_64/syscalls/kill.S b/libc/arch-x86_64/syscalls/kill.S new file mode 100644 index 000000000..d2773c6e5 --- /dev/null +++ b/libc/arch-x86_64/syscalls/kill.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(kill) + movl $__NR_kill, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(kill) diff --git a/libc/arch-x86_64/syscalls/klogctl.S b/libc/arch-x86_64/syscalls/klogctl.S new file mode 100644 index 000000000..8e1f8bae8 --- /dev/null +++ b/libc/arch-x86_64/syscalls/klogctl.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(klogctl) + movl $__NR_syslog, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(klogctl) diff --git a/libc/arch-x86_64/syscalls/lchown.S b/libc/arch-x86_64/syscalls/lchown.S new file mode 100644 index 000000000..36a6f7aeb --- /dev/null +++ b/libc/arch-x86_64/syscalls/lchown.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(lchown) + movl $__NR_lchown, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(lchown) diff --git a/libc/arch-x86_64/syscalls/lgetxattr.S b/libc/arch-x86_64/syscalls/lgetxattr.S new file mode 100644 index 000000000..bc7d5f104 --- /dev/null +++ b/libc/arch-x86_64/syscalls/lgetxattr.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(lgetxattr) + movq %rcx, %r10 + movl $__NR_lgetxattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(lgetxattr) diff --git a/libc/arch-x86_64/syscalls/link.S b/libc/arch-x86_64/syscalls/link.S new file mode 100644 index 000000000..fa4b7d58a --- /dev/null +++ b/libc/arch-x86_64/syscalls/link.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(link) + movl $__NR_link, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(link) diff --git a/libc/arch-x86_64/syscalls/listen.S b/libc/arch-x86_64/syscalls/listen.S new file mode 100644 index 000000000..09111d422 --- /dev/null +++ b/libc/arch-x86_64/syscalls/listen.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(listen) + movl $__NR_listen, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(listen) diff --git a/libc/arch-x86_64/syscalls/listxattr.S b/libc/arch-x86_64/syscalls/listxattr.S new file mode 100644 index 000000000..726e3f601 --- /dev/null +++ b/libc/arch-x86_64/syscalls/listxattr.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(listxattr) + movl $__NR_listxattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(listxattr) diff --git a/libc/arch-x86_64/syscalls/llistxattr.S b/libc/arch-x86_64/syscalls/llistxattr.S new file mode 100644 index 000000000..7714588f5 --- /dev/null +++ b/libc/arch-x86_64/syscalls/llistxattr.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(llistxattr) + movl $__NR_llistxattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(llistxattr) diff --git a/libc/arch-x86_64/syscalls/lremovexattr.S b/libc/arch-x86_64/syscalls/lremovexattr.S new file mode 100644 index 000000000..cdaed46b6 --- /dev/null +++ b/libc/arch-x86_64/syscalls/lremovexattr.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(lremovexattr) + movl $__NR_lremovexattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(lremovexattr) diff --git a/libc/arch-x86_64/syscalls/lseek.S b/libc/arch-x86_64/syscalls/lseek.S new file mode 100644 index 000000000..97563157a --- /dev/null +++ b/libc/arch-x86_64/syscalls/lseek.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(lseek) + movl $__NR_lseek, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(lseek) diff --git a/libc/arch-x86_64/syscalls/lsetxattr.S b/libc/arch-x86_64/syscalls/lsetxattr.S new file mode 100644 index 000000000..4ef43b9bb --- /dev/null +++ b/libc/arch-x86_64/syscalls/lsetxattr.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(lsetxattr) + movq %rcx, %r10 + movl $__NR_lsetxattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(lsetxattr) diff --git a/libc/arch-x86_64/syscalls/lstat.S b/libc/arch-x86_64/syscalls/lstat.S new file mode 100644 index 000000000..425a0fa51 --- /dev/null +++ b/libc/arch-x86_64/syscalls/lstat.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(lstat) + movl $__NR_lstat, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(lstat) diff --git a/libc/arch-x86_64/syscalls/madvise.S b/libc/arch-x86_64/syscalls/madvise.S new file mode 100644 index 000000000..927b7a62c --- /dev/null +++ b/libc/arch-x86_64/syscalls/madvise.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(madvise) + movl $__NR_madvise, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(madvise) diff --git a/libc/arch-x86_64/syscalls/mincore.S b/libc/arch-x86_64/syscalls/mincore.S new file mode 100644 index 000000000..577e41f32 --- /dev/null +++ b/libc/arch-x86_64/syscalls/mincore.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(mincore) + movl $__NR_mincore, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(mincore) diff --git a/libc/arch-x86_64/syscalls/mkdir.S b/libc/arch-x86_64/syscalls/mkdir.S new file mode 100644 index 000000000..7ce8e7fbc --- /dev/null +++ b/libc/arch-x86_64/syscalls/mkdir.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(mkdir) + movl $__NR_mkdir, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(mkdir) diff --git a/libc/arch-x86_64/syscalls/mkdirat.S b/libc/arch-x86_64/syscalls/mkdirat.S new file mode 100644 index 000000000..3424611cf --- /dev/null +++ b/libc/arch-x86_64/syscalls/mkdirat.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(mkdirat) + movl $__NR_mkdirat, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(mkdirat) diff --git a/libc/arch-x86_64/syscalls/mknod.S b/libc/arch-x86_64/syscalls/mknod.S new file mode 100644 index 000000000..a435592c5 --- /dev/null +++ b/libc/arch-x86_64/syscalls/mknod.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(mknod) + movl $__NR_mknod, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(mknod) diff --git a/libc/arch-x86_64/syscalls/mlock.S b/libc/arch-x86_64/syscalls/mlock.S new file mode 100644 index 000000000..af2e72f40 --- /dev/null +++ b/libc/arch-x86_64/syscalls/mlock.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(mlock) + movl $__NR_mlock, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(mlock) diff --git a/libc/arch-x86_64/syscalls/mlockall.S b/libc/arch-x86_64/syscalls/mlockall.S new file mode 100644 index 000000000..f9fd0e048 --- /dev/null +++ b/libc/arch-x86_64/syscalls/mlockall.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(mlockall) + movl $__NR_mlockall, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(mlockall) diff --git a/libc/arch-x86_64/syscalls/mmap.S b/libc/arch-x86_64/syscalls/mmap.S new file mode 100644 index 000000000..4bf7d944e --- /dev/null +++ b/libc/arch-x86_64/syscalls/mmap.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(mmap) + movq %rcx, %r10 + movl $__NR_mmap, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(mmap) diff --git a/libc/arch-x86_64/syscalls/mount.S b/libc/arch-x86_64/syscalls/mount.S new file mode 100644 index 000000000..d09ca366c --- /dev/null +++ b/libc/arch-x86_64/syscalls/mount.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(mount) + movq %rcx, %r10 + movl $__NR_mount, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(mount) diff --git a/libc/arch-x86_64/syscalls/mprotect.S b/libc/arch-x86_64/syscalls/mprotect.S new file mode 100644 index 000000000..17dac16b0 --- /dev/null +++ b/libc/arch-x86_64/syscalls/mprotect.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(mprotect) + movl $__NR_mprotect, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(mprotect) diff --git a/libc/arch-x86_64/syscalls/mremap.S b/libc/arch-x86_64/syscalls/mremap.S new file mode 100644 index 000000000..e8d4192a7 --- /dev/null +++ b/libc/arch-x86_64/syscalls/mremap.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(mremap) + movq %rcx, %r10 + movl $__NR_mremap, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(mremap) diff --git a/libc/arch-x86_64/syscalls/msync.S b/libc/arch-x86_64/syscalls/msync.S new file mode 100644 index 000000000..6ea8de3a0 --- /dev/null +++ b/libc/arch-x86_64/syscalls/msync.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(msync) + movl $__NR_msync, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(msync) diff --git a/libc/arch-x86_64/syscalls/munlock.S b/libc/arch-x86_64/syscalls/munlock.S new file mode 100644 index 000000000..47a530843 --- /dev/null +++ b/libc/arch-x86_64/syscalls/munlock.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(munlock) + movl $__NR_munlock, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(munlock) diff --git a/libc/arch-x86_64/syscalls/munlockall.S b/libc/arch-x86_64/syscalls/munlockall.S new file mode 100644 index 000000000..f89ee711d --- /dev/null +++ b/libc/arch-x86_64/syscalls/munlockall.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(munlockall) + movl $__NR_munlockall, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(munlockall) diff --git a/libc/arch-x86_64/syscalls/munmap.S b/libc/arch-x86_64/syscalls/munmap.S new file mode 100644 index 000000000..5734dc3d7 --- /dev/null +++ b/libc/arch-x86_64/syscalls/munmap.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(munmap) + movl $__NR_munmap, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(munmap) diff --git a/libc/arch-x86_64/syscalls/nanosleep.S b/libc/arch-x86_64/syscalls/nanosleep.S new file mode 100644 index 000000000..0accaf49d --- /dev/null +++ b/libc/arch-x86_64/syscalls/nanosleep.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(nanosleep) + movl $__NR_nanosleep, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(nanosleep) diff --git a/libc/arch-x86_64/syscalls/pause.S b/libc/arch-x86_64/syscalls/pause.S new file mode 100644 index 000000000..118521faf --- /dev/null +++ b/libc/arch-x86_64/syscalls/pause.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(pause) + movl $__NR_pause, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(pause) diff --git a/libc/arch-x86_64/syscalls/perf_event_open.S b/libc/arch-x86_64/syscalls/perf_event_open.S new file mode 100644 index 000000000..4cc6deac7 --- /dev/null +++ b/libc/arch-x86_64/syscalls/perf_event_open.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(perf_event_open) + movq %rcx, %r10 + movl $__NR_perf_event_open, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(perf_event_open) diff --git a/libc/arch-x86_64/syscalls/personality.S b/libc/arch-x86_64/syscalls/personality.S new file mode 100644 index 000000000..b98f1b93e --- /dev/null +++ b/libc/arch-x86_64/syscalls/personality.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(personality) + movl $__NR_personality, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(personality) diff --git a/libc/arch-x86_64/syscalls/pipe.S b/libc/arch-x86_64/syscalls/pipe.S new file mode 100644 index 000000000..3279a802f --- /dev/null +++ b/libc/arch-x86_64/syscalls/pipe.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(pipe) + movl $__NR_pipe, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(pipe) diff --git a/libc/arch-x86_64/syscalls/pipe2.S b/libc/arch-x86_64/syscalls/pipe2.S new file mode 100644 index 000000000..569df4ff8 --- /dev/null +++ b/libc/arch-x86_64/syscalls/pipe2.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(pipe2) + movl $__NR_pipe2, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(pipe2) diff --git a/libc/arch-x86_64/syscalls/poll.S b/libc/arch-x86_64/syscalls/poll.S new file mode 100644 index 000000000..48462bda1 --- /dev/null +++ b/libc/arch-x86_64/syscalls/poll.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(poll) + movl $__NR_poll, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(poll) diff --git a/libc/arch-x86_64/syscalls/prctl.S b/libc/arch-x86_64/syscalls/prctl.S new file mode 100644 index 000000000..712c556c0 --- /dev/null +++ b/libc/arch-x86_64/syscalls/prctl.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(prctl) + movq %rcx, %r10 + movl $__NR_prctl, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(prctl) diff --git a/libc/arch-x86_64/syscalls/pread64.S b/libc/arch-x86_64/syscalls/pread64.S new file mode 100644 index 000000000..26c252241 --- /dev/null +++ b/libc/arch-x86_64/syscalls/pread64.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(pread64) + movq %rcx, %r10 + movl $__NR_pread64, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(pread64) diff --git a/libc/arch-x86_64/syscalls/pwrite64.S b/libc/arch-x86_64/syscalls/pwrite64.S new file mode 100644 index 000000000..0d8d85171 --- /dev/null +++ b/libc/arch-x86_64/syscalls/pwrite64.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(pwrite64) + movq %rcx, %r10 + movl $__NR_pwrite64, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(pwrite64) diff --git a/libc/arch-x86_64/syscalls/read.S b/libc/arch-x86_64/syscalls/read.S new file mode 100644 index 000000000..51ba898d3 --- /dev/null +++ b/libc/arch-x86_64/syscalls/read.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(read) + movl $__NR_read, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(read) diff --git a/libc/arch-x86_64/syscalls/readahead.S b/libc/arch-x86_64/syscalls/readahead.S new file mode 100644 index 000000000..6eb6084bc --- /dev/null +++ b/libc/arch-x86_64/syscalls/readahead.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(readahead) + movl $__NR_readahead, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(readahead) diff --git a/libc/arch-x86_64/syscalls/readlink.S b/libc/arch-x86_64/syscalls/readlink.S new file mode 100644 index 000000000..3183c776e --- /dev/null +++ b/libc/arch-x86_64/syscalls/readlink.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(readlink) + movl $__NR_readlink, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(readlink) diff --git a/libc/arch-x86_64/syscalls/readv.S b/libc/arch-x86_64/syscalls/readv.S new file mode 100644 index 000000000..3d9dfab95 --- /dev/null +++ b/libc/arch-x86_64/syscalls/readv.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(readv) + movl $__NR_readv, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(readv) diff --git a/libc/arch-x86_64/syscalls/recvfrom.S b/libc/arch-x86_64/syscalls/recvfrom.S new file mode 100644 index 000000000..7f4aab271 --- /dev/null +++ b/libc/arch-x86_64/syscalls/recvfrom.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(recvfrom) + movq %rcx, %r10 + movl $__NR_recvfrom, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(recvfrom) diff --git a/libc/arch-x86_64/syscalls/recvmsg.S b/libc/arch-x86_64/syscalls/recvmsg.S new file mode 100644 index 000000000..759b5b55a --- /dev/null +++ b/libc/arch-x86_64/syscalls/recvmsg.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(recvmsg) + movl $__NR_recvmsg, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(recvmsg) diff --git a/libc/arch-x86_64/syscalls/removexattr.S b/libc/arch-x86_64/syscalls/removexattr.S new file mode 100644 index 000000000..4c73eafa5 --- /dev/null +++ b/libc/arch-x86_64/syscalls/removexattr.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(removexattr) + movl $__NR_removexattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(removexattr) diff --git a/libc/arch-x86_64/syscalls/rename.S b/libc/arch-x86_64/syscalls/rename.S new file mode 100644 index 000000000..c1704db2a --- /dev/null +++ b/libc/arch-x86_64/syscalls/rename.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(rename) + movl $__NR_rename, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(rename) diff --git a/libc/arch-x86_64/syscalls/renameat.S b/libc/arch-x86_64/syscalls/renameat.S new file mode 100644 index 000000000..a68d2cf0a --- /dev/null +++ b/libc/arch-x86_64/syscalls/renameat.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(renameat) + movq %rcx, %r10 + movl $__NR_renameat, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(renameat) diff --git a/libc/arch-x86_64/syscalls/rmdir.S b/libc/arch-x86_64/syscalls/rmdir.S new file mode 100644 index 000000000..6cfcb71dd --- /dev/null +++ b/libc/arch-x86_64/syscalls/rmdir.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(rmdir) + movl $__NR_rmdir, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(rmdir) diff --git a/libc/arch-x86_64/syscalls/sched_get_priority_max.S b/libc/arch-x86_64/syscalls/sched_get_priority_max.S new file mode 100644 index 000000000..d2ce51ff0 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sched_get_priority_max.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sched_get_priority_max) + movl $__NR_sched_get_priority_max, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sched_get_priority_max) diff --git a/libc/arch-x86_64/syscalls/sched_get_priority_min.S b/libc/arch-x86_64/syscalls/sched_get_priority_min.S new file mode 100644 index 000000000..743503b16 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sched_get_priority_min.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sched_get_priority_min) + movl $__NR_sched_get_priority_min, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sched_get_priority_min) diff --git a/libc/arch-x86_64/syscalls/sched_getparam.S b/libc/arch-x86_64/syscalls/sched_getparam.S new file mode 100644 index 000000000..6aa0a082b --- /dev/null +++ b/libc/arch-x86_64/syscalls/sched_getparam.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sched_getparam) + movl $__NR_sched_getparam, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sched_getparam) diff --git a/libc/arch-x86_64/syscalls/sched_getscheduler.S b/libc/arch-x86_64/syscalls/sched_getscheduler.S new file mode 100644 index 000000000..57e440075 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sched_getscheduler.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sched_getscheduler) + movl $__NR_sched_getscheduler, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sched_getscheduler) diff --git a/libc/arch-x86_64/syscalls/sched_rr_get_interval.S b/libc/arch-x86_64/syscalls/sched_rr_get_interval.S new file mode 100644 index 000000000..d46c0545e --- /dev/null +++ b/libc/arch-x86_64/syscalls/sched_rr_get_interval.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sched_rr_get_interval) + movl $__NR_sched_rr_get_interval, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sched_rr_get_interval) diff --git a/libc/arch-x86_64/syscalls/sched_setaffinity.S b/libc/arch-x86_64/syscalls/sched_setaffinity.S new file mode 100644 index 000000000..d3fb89b00 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sched_setaffinity.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sched_setaffinity) + movl $__NR_sched_setaffinity, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sched_setaffinity) diff --git a/libc/arch-x86_64/syscalls/sched_setparam.S b/libc/arch-x86_64/syscalls/sched_setparam.S new file mode 100644 index 000000000..c5dd029d8 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sched_setparam.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sched_setparam) + movl $__NR_sched_setparam, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sched_setparam) diff --git a/libc/arch-x86_64/syscalls/sched_setscheduler.S b/libc/arch-x86_64/syscalls/sched_setscheduler.S new file mode 100644 index 000000000..90d013d12 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sched_setscheduler.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sched_setscheduler) + movl $__NR_sched_setscheduler, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sched_setscheduler) diff --git a/libc/arch-x86_64/syscalls/sched_yield.S b/libc/arch-x86_64/syscalls/sched_yield.S new file mode 100644 index 000000000..5191560f4 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sched_yield.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sched_yield) + movl $__NR_sched_yield, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sched_yield) diff --git a/libc/arch-x86_64/syscalls/select.S b/libc/arch-x86_64/syscalls/select.S new file mode 100644 index 000000000..91c3a723e --- /dev/null +++ b/libc/arch-x86_64/syscalls/select.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(select) + movq %rcx, %r10 + movl $__NR_select, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(select) diff --git a/libc/arch-x86_64/syscalls/sendfile.S b/libc/arch-x86_64/syscalls/sendfile.S new file mode 100644 index 000000000..37a7bcd91 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sendfile.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sendfile) + movq %rcx, %r10 + movl $__NR_sendfile, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sendfile) diff --git a/libc/arch-x86_64/syscalls/sendmsg.S b/libc/arch-x86_64/syscalls/sendmsg.S new file mode 100644 index 000000000..24c5534e2 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sendmsg.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sendmsg) + movl $__NR_sendmsg, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sendmsg) diff --git a/libc/arch-x86_64/syscalls/sendto.S b/libc/arch-x86_64/syscalls/sendto.S new file mode 100644 index 000000000..a03094cc4 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sendto.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sendto) + movq %rcx, %r10 + movl $__NR_sendto, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sendto) diff --git a/libc/arch-x86_64/syscalls/setgid.S b/libc/arch-x86_64/syscalls/setgid.S new file mode 100644 index 000000000..5b0cb6cd4 --- /dev/null +++ b/libc/arch-x86_64/syscalls/setgid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(setgid) + movl $__NR_setgid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setgid) diff --git a/libc/arch-x86_64/syscalls/setgroups.S b/libc/arch-x86_64/syscalls/setgroups.S new file mode 100644 index 000000000..e797bae8f --- /dev/null +++ b/libc/arch-x86_64/syscalls/setgroups.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(setgroups) + movl $__NR_setgroups, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setgroups) diff --git a/libc/arch-x86_64/syscalls/setitimer.S b/libc/arch-x86_64/syscalls/setitimer.S new file mode 100644 index 000000000..3227745f7 --- /dev/null +++ b/libc/arch-x86_64/syscalls/setitimer.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(setitimer) + movl $__NR_setitimer, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setitimer) diff --git a/libc/arch-x86_64/syscalls/setpgid.S b/libc/arch-x86_64/syscalls/setpgid.S new file mode 100644 index 000000000..2e9ed273e --- /dev/null +++ b/libc/arch-x86_64/syscalls/setpgid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(setpgid) + movl $__NR_setpgid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setpgid) diff --git a/libc/arch-x86_64/syscalls/setpriority.S b/libc/arch-x86_64/syscalls/setpriority.S new file mode 100644 index 000000000..98048ae15 --- /dev/null +++ b/libc/arch-x86_64/syscalls/setpriority.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(setpriority) + movl $__NR_setpriority, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setpriority) diff --git a/libc/arch-x86_64/syscalls/setregid.S b/libc/arch-x86_64/syscalls/setregid.S new file mode 100644 index 000000000..713dd68f7 --- /dev/null +++ b/libc/arch-x86_64/syscalls/setregid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(setregid) + movl $__NR_setregid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setregid) diff --git a/libc/arch-x86_64/syscalls/setresgid.S b/libc/arch-x86_64/syscalls/setresgid.S new file mode 100644 index 000000000..eadc312ee --- /dev/null +++ b/libc/arch-x86_64/syscalls/setresgid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(setresgid) + movl $__NR_setresgid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setresgid) diff --git a/libc/arch-x86_64/syscalls/setrlimit.S b/libc/arch-x86_64/syscalls/setrlimit.S new file mode 100644 index 000000000..cee245112 --- /dev/null +++ b/libc/arch-x86_64/syscalls/setrlimit.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(setrlimit) + movl $__NR_setrlimit, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setrlimit) diff --git a/libc/arch-x86_64/syscalls/setsid.S b/libc/arch-x86_64/syscalls/setsid.S new file mode 100644 index 000000000..882b8ee4e --- /dev/null +++ b/libc/arch-x86_64/syscalls/setsid.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(setsid) + movl $__NR_setsid, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setsid) diff --git a/libc/arch-x86_64/syscalls/setsockopt.S b/libc/arch-x86_64/syscalls/setsockopt.S new file mode 100644 index 000000000..37de9c0cf --- /dev/null +++ b/libc/arch-x86_64/syscalls/setsockopt.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(setsockopt) + movq %rcx, %r10 + movl $__NR_setsockopt, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setsockopt) diff --git a/libc/arch-x86_64/syscalls/settimeofday.S b/libc/arch-x86_64/syscalls/settimeofday.S new file mode 100644 index 000000000..d5644bdf6 --- /dev/null +++ b/libc/arch-x86_64/syscalls/settimeofday.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(settimeofday) + movl $__NR_settimeofday, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(settimeofday) diff --git a/libc/arch-x86_64/syscalls/setxattr.S b/libc/arch-x86_64/syscalls/setxattr.S new file mode 100644 index 000000000..ffc3b1c63 --- /dev/null +++ b/libc/arch-x86_64/syscalls/setxattr.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(setxattr) + movq %rcx, %r10 + movl $__NR_setxattr, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(setxattr) diff --git a/libc/arch-x86_64/syscalls/shutdown.S b/libc/arch-x86_64/syscalls/shutdown.S new file mode 100644 index 000000000..471593b3f --- /dev/null +++ b/libc/arch-x86_64/syscalls/shutdown.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(shutdown) + movl $__NR_shutdown, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(shutdown) diff --git a/libc/arch-x86_64/syscalls/sigaltstack.S b/libc/arch-x86_64/syscalls/sigaltstack.S new file mode 100644 index 000000000..71fd0663c --- /dev/null +++ b/libc/arch-x86_64/syscalls/sigaltstack.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sigaltstack) + movl $__NR_sigaltstack, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sigaltstack) diff --git a/libc/arch-x86_64/syscalls/signalfd4.S b/libc/arch-x86_64/syscalls/signalfd4.S new file mode 100644 index 000000000..545b957b7 --- /dev/null +++ b/libc/arch-x86_64/syscalls/signalfd4.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(signalfd4) + movq %rcx, %r10 + movl $__NR_signalfd4, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(signalfd4) diff --git a/libc/arch-x86_64/syscalls/socket.S b/libc/arch-x86_64/syscalls/socket.S new file mode 100644 index 000000000..7407a40e3 --- /dev/null +++ b/libc/arch-x86_64/syscalls/socket.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(socket) + movl $__NR_socket, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(socket) diff --git a/libc/arch-x86_64/syscalls/socketpair.S b/libc/arch-x86_64/syscalls/socketpair.S new file mode 100644 index 000000000..06bb13776 --- /dev/null +++ b/libc/arch-x86_64/syscalls/socketpair.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(socketpair) + movq %rcx, %r10 + movl $__NR_socketpair, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(socketpair) diff --git a/libc/arch-x86_64/syscalls/stat.S b/libc/arch-x86_64/syscalls/stat.S new file mode 100644 index 000000000..c71d1beb9 --- /dev/null +++ b/libc/arch-x86_64/syscalls/stat.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(stat) + movl $__NR_stat, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(stat) diff --git a/libc/arch-x86_64/syscalls/statfs.S b/libc/arch-x86_64/syscalls/statfs.S new file mode 100644 index 000000000..b0c386181 --- /dev/null +++ b/libc/arch-x86_64/syscalls/statfs.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(statfs) + movl $__NR_statfs, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(statfs) diff --git a/libc/arch-x86_64/syscalls/swapoff.S b/libc/arch-x86_64/syscalls/swapoff.S new file mode 100644 index 000000000..75a7a8227 --- /dev/null +++ b/libc/arch-x86_64/syscalls/swapoff.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(swapoff) + movl $__NR_swapoff, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(swapoff) diff --git a/libc/arch-x86_64/syscalls/swapon.S b/libc/arch-x86_64/syscalls/swapon.S new file mode 100644 index 000000000..bd2aa081f --- /dev/null +++ b/libc/arch-x86_64/syscalls/swapon.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(swapon) + movl $__NR_swapon, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(swapon) diff --git a/libc/arch-x86_64/syscalls/symlink.S b/libc/arch-x86_64/syscalls/symlink.S new file mode 100644 index 000000000..285b680a0 --- /dev/null +++ b/libc/arch-x86_64/syscalls/symlink.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(symlink) + movl $__NR_symlink, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(symlink) diff --git a/libc/arch-x86_64/syscalls/sync.S b/libc/arch-x86_64/syscalls/sync.S new file mode 100644 index 000000000..d1f632f18 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sync.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sync) + movl $__NR_sync, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sync) diff --git a/libc/arch-x86_64/syscalls/sysinfo.S b/libc/arch-x86_64/syscalls/sysinfo.S new file mode 100644 index 000000000..5f852bdf1 --- /dev/null +++ b/libc/arch-x86_64/syscalls/sysinfo.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(sysinfo) + movl $__NR_sysinfo, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(sysinfo) diff --git a/libc/arch-x86_64/syscalls/tgkill.S b/libc/arch-x86_64/syscalls/tgkill.S new file mode 100644 index 000000000..f49409853 --- /dev/null +++ b/libc/arch-x86_64/syscalls/tgkill.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(tgkill) + movl $__NR_tgkill, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(tgkill) diff --git a/libc/arch-x86_64/syscalls/timerfd_create.S b/libc/arch-x86_64/syscalls/timerfd_create.S new file mode 100644 index 000000000..98d4ec369 --- /dev/null +++ b/libc/arch-x86_64/syscalls/timerfd_create.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(timerfd_create) + movl $__NR_timerfd_create, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(timerfd_create) diff --git a/libc/arch-x86_64/syscalls/timerfd_gettime.S b/libc/arch-x86_64/syscalls/timerfd_gettime.S new file mode 100644 index 000000000..75f7effa8 --- /dev/null +++ b/libc/arch-x86_64/syscalls/timerfd_gettime.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(timerfd_gettime) + movl $__NR_timerfd_gettime, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(timerfd_gettime) diff --git a/libc/arch-x86_64/syscalls/timerfd_settime.S b/libc/arch-x86_64/syscalls/timerfd_settime.S new file mode 100644 index 000000000..3c3d7bbd5 --- /dev/null +++ b/libc/arch-x86_64/syscalls/timerfd_settime.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(timerfd_settime) + movq %rcx, %r10 + movl $__NR_timerfd_settime, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(timerfd_settime) diff --git a/libc/arch-x86_64/syscalls/times.S b/libc/arch-x86_64/syscalls/times.S new file mode 100644 index 000000000..a4a76aca8 --- /dev/null +++ b/libc/arch-x86_64/syscalls/times.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(times) + movl $__NR_times, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(times) diff --git a/libc/arch-x86_64/syscalls/tkill.S b/libc/arch-x86_64/syscalls/tkill.S new file mode 100644 index 000000000..62894797a --- /dev/null +++ b/libc/arch-x86_64/syscalls/tkill.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(tkill) + movl $__NR_tkill, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(tkill) diff --git a/libc/arch-x86_64/syscalls/truncate.S b/libc/arch-x86_64/syscalls/truncate.S new file mode 100644 index 000000000..0e1571b3b --- /dev/null +++ b/libc/arch-x86_64/syscalls/truncate.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(truncate) + movl $__NR_truncate, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(truncate) diff --git a/libc/arch-x86_64/syscalls/umask.S b/libc/arch-x86_64/syscalls/umask.S new file mode 100644 index 000000000..e301c716f --- /dev/null +++ b/libc/arch-x86_64/syscalls/umask.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(umask) + movl $__NR_umask, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(umask) diff --git a/libc/arch-x86_64/syscalls/umount2.S b/libc/arch-x86_64/syscalls/umount2.S new file mode 100644 index 000000000..c2c0e4c05 --- /dev/null +++ b/libc/arch-x86_64/syscalls/umount2.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(umount2) + movl $__NR_umount2, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(umount2) diff --git a/libc/arch-x86_64/syscalls/uname.S b/libc/arch-x86_64/syscalls/uname.S new file mode 100644 index 000000000..829963a32 --- /dev/null +++ b/libc/arch-x86_64/syscalls/uname.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(uname) + movl $__NR_uname, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(uname) diff --git a/libc/arch-x86_64/syscalls/unlink.S b/libc/arch-x86_64/syscalls/unlink.S new file mode 100644 index 000000000..033828be2 --- /dev/null +++ b/libc/arch-x86_64/syscalls/unlink.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(unlink) + movl $__NR_unlink, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(unlink) diff --git a/libc/arch-x86_64/syscalls/unlinkat.S b/libc/arch-x86_64/syscalls/unlinkat.S new file mode 100644 index 000000000..54ac28a59 --- /dev/null +++ b/libc/arch-x86_64/syscalls/unlinkat.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(unlinkat) + movl $__NR_unlinkat, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(unlinkat) diff --git a/libc/arch-x86_64/syscalls/unshare.S b/libc/arch-x86_64/syscalls/unshare.S new file mode 100644 index 000000000..706e31ac4 --- /dev/null +++ b/libc/arch-x86_64/syscalls/unshare.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(unshare) + movl $__NR_unshare, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(unshare) diff --git a/libc/arch-x86_64/syscalls/utimensat.S b/libc/arch-x86_64/syscalls/utimensat.S new file mode 100644 index 000000000..426f7fdef --- /dev/null +++ b/libc/arch-x86_64/syscalls/utimensat.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(utimensat) + movq %rcx, %r10 + movl $__NR_utimensat, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(utimensat) diff --git a/libc/arch-x86_64/syscalls/utimes.S b/libc/arch-x86_64/syscalls/utimes.S new file mode 100644 index 000000000..5eef3eb85 --- /dev/null +++ b/libc/arch-x86_64/syscalls/utimes.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(utimes) + movl $__NR_utimes, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(utimes) diff --git a/libc/arch-x86_64/syscalls/vfork.S b/libc/arch-x86_64/syscalls/vfork.S new file mode 100644 index 000000000..eb6956245 --- /dev/null +++ b/libc/arch-x86_64/syscalls/vfork.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(vfork) + movl $__NR_vfork, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(vfork) diff --git a/libc/arch-x86_64/syscalls/wait4.S b/libc/arch-x86_64/syscalls/wait4.S new file mode 100644 index 000000000..1608a596f --- /dev/null +++ b/libc/arch-x86_64/syscalls/wait4.S @@ -0,0 +1,18 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(wait4) + movq %rcx, %r10 + movl $__NR_wait4, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(wait4) diff --git a/libc/arch-x86_64/syscalls/write.S b/libc/arch-x86_64/syscalls/write.S new file mode 100644 index 000000000..f1d18cbc4 --- /dev/null +++ b/libc/arch-x86_64/syscalls/write.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(write) + movl $__NR_write, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(write) diff --git a/libc/arch-x86_64/syscalls/writev.S b/libc/arch-x86_64/syscalls/writev.S new file mode 100644 index 000000000..c4727f854 --- /dev/null +++ b/libc/arch-x86_64/syscalls/writev.S @@ -0,0 +1,17 @@ +/* autogenerated by gensyscalls.py */ +#include +#include +#include + +ENTRY(writev) + movl $__NR_writev, %eax + syscall + cmpq $-MAX_ERRNO, %rax + jb 1f + negl %eax + movl %eax, %edi + call __set_errno + orq $-1, %rax +1: + ret +END(writev) diff --git a/libc/include/sys/glibc-syscalls.h b/libc/include/sys/glibc-syscalls.h index 44f37c897..8a88c75c2 100644 --- a/libc/include/sys/glibc-syscalls.h +++ b/libc/include/sys/glibc-syscalls.h @@ -1046,5 +1046,317 @@ #define SYS_waitpid __NR_waitpid #define SYS_write __NR_write #define SYS_writev __NR_writev +#elif defined(__x86_64__) +#define SYS_accept __NR_accept +#define SYS_accept4 __NR_accept4 +#define SYS_access __NR_access +#define SYS_acct __NR_acct +#define SYS_add_key __NR_add_key +#define SYS_adjtimex __NR_adjtimex +#define SYS_afs_syscall __NR_afs_syscall +#define SYS_alarm __NR_alarm +#define SYS_arch_prctl __NR_arch_prctl +#define SYS_bind __NR_bind +#define SYS_brk __NR_brk +#define SYS_capget __NR_capget +#define SYS_capset __NR_capset +#define SYS_chdir __NR_chdir +#define SYS_chmod __NR_chmod +#define SYS_chown __NR_chown +#define SYS_chroot __NR_chroot +#define SYS_clock_adjtime __NR_clock_adjtime +#define SYS_clock_getres __NR_clock_getres +#define SYS_clock_gettime __NR_clock_gettime +#define SYS_clock_nanosleep __NR_clock_nanosleep +#define SYS_clock_settime __NR_clock_settime +#define SYS_clone __NR_clone +#define SYS_close __NR_close +#define SYS_connect __NR_connect +#define SYS_creat __NR_creat +#define SYS_create_module __NR_create_module +#define SYS_delete_module __NR_delete_module +#define SYS_dup __NR_dup +#define SYS_dup2 __NR_dup2 +#define SYS_dup3 __NR_dup3 +#define SYS_epoll_create __NR_epoll_create +#define SYS_epoll_create1 __NR_epoll_create1 +#define SYS_epoll_ctl __NR_epoll_ctl +#define SYS_epoll_ctl_old __NR_epoll_ctl_old +#define SYS_epoll_pwait __NR_epoll_pwait +#define SYS_epoll_wait __NR_epoll_wait +#define SYS_epoll_wait_old __NR_epoll_wait_old +#define SYS_eventfd __NR_eventfd +#define SYS_eventfd2 __NR_eventfd2 +#define SYS_execve __NR_execve +#define SYS_exit __NR_exit +#define SYS_exit_group __NR_exit_group +#define SYS_faccessat __NR_faccessat +#define SYS_fadvise64 __NR_fadvise64 +#define SYS_fallocate __NR_fallocate +#define SYS_fanotify_init __NR_fanotify_init +#define SYS_fanotify_mark __NR_fanotify_mark +#define SYS_fchdir __NR_fchdir +#define SYS_fchmod __NR_fchmod +#define SYS_fchmodat __NR_fchmodat +#define SYS_fchown __NR_fchown +#define SYS_fchownat __NR_fchownat +#define SYS_fcntl __NR_fcntl +#define SYS_fdatasync __NR_fdatasync +#define SYS_fgetxattr __NR_fgetxattr +#define SYS_flistxattr __NR_flistxattr +#define SYS_flock __NR_flock +#define SYS_fork __NR_fork +#define SYS_fremovexattr __NR_fremovexattr +#define SYS_fsetxattr __NR_fsetxattr +#define SYS_fstat __NR_fstat +#define SYS_fstatfs __NR_fstatfs +#define SYS_fsync __NR_fsync +#define SYS_ftruncate __NR_ftruncate +#define SYS_futex __NR_futex +#define SYS_futimesat __NR_futimesat +#define SYS_get_kernel_syms __NR_get_kernel_syms +#define SYS_get_mempolicy __NR_get_mempolicy +#define SYS_get_robust_list __NR_get_robust_list +#define SYS_get_thread_area __NR_get_thread_area +#define SYS_getcpu __NR_getcpu +#define SYS_getcwd __NR_getcwd +#define SYS_getdents __NR_getdents +#define SYS_getdents64 __NR_getdents64 +#define SYS_getegid __NR_getegid +#define SYS_geteuid __NR_geteuid +#define SYS_getgid __NR_getgid +#define SYS_getgroups __NR_getgroups +#define SYS_getitimer __NR_getitimer +#define SYS_getpeername __NR_getpeername +#define SYS_getpgid __NR_getpgid +#define SYS_getpgrp __NR_getpgrp +#define SYS_getpid __NR_getpid +#define SYS_getpmsg __NR_getpmsg +#define SYS_getppid __NR_getppid +#define SYS_getpriority __NR_getpriority +#define SYS_getresgid __NR_getresgid +#define SYS_getresuid __NR_getresuid +#define SYS_getrlimit __NR_getrlimit +#define SYS_getrusage __NR_getrusage +#define SYS_getsid __NR_getsid +#define SYS_getsockname __NR_getsockname +#define SYS_getsockopt __NR_getsockopt +#define SYS_gettid __NR_gettid +#define SYS_gettimeofday __NR_gettimeofday +#define SYS_getuid __NR_getuid +#define SYS_getxattr __NR_getxattr +#define SYS_init_module __NR_init_module +#define SYS_inotify_add_watch __NR_inotify_add_watch +#define SYS_inotify_init __NR_inotify_init +#define SYS_inotify_init1 __NR_inotify_init1 +#define SYS_inotify_rm_watch __NR_inotify_rm_watch +#define SYS_io_cancel __NR_io_cancel +#define SYS_io_destroy __NR_io_destroy +#define SYS_io_getevents __NR_io_getevents +#define SYS_io_setup __NR_io_setup +#define SYS_io_submit __NR_io_submit +#define SYS_ioctl __NR_ioctl +#define SYS_ioperm __NR_ioperm +#define SYS_iopl __NR_iopl +#define SYS_ioprio_get __NR_ioprio_get +#define SYS_ioprio_set __NR_ioprio_set +#define SYS_kexec_load __NR_kexec_load +#define SYS_keyctl __NR_keyctl +#define SYS_kill __NR_kill +#define SYS_lchown __NR_lchown +#define SYS_lgetxattr __NR_lgetxattr +#define SYS_link __NR_link +#define SYS_linkat __NR_linkat +#define SYS_listen __NR_listen +#define SYS_listxattr __NR_listxattr +#define SYS_llistxattr __NR_llistxattr +#define SYS_lookup_dcookie __NR_lookup_dcookie +#define SYS_lremovexattr __NR_lremovexattr +#define SYS_lseek __NR_lseek +#define SYS_lsetxattr __NR_lsetxattr +#define SYS_lstat __NR_lstat +#define SYS_madvise __NR_madvise +#define SYS_mbind __NR_mbind +#define SYS_migrate_pages __NR_migrate_pages +#define SYS_mincore __NR_mincore +#define SYS_mkdir __NR_mkdir +#define SYS_mkdirat __NR_mkdirat +#define SYS_mknod __NR_mknod +#define SYS_mknodat __NR_mknodat +#define SYS_mlock __NR_mlock +#define SYS_mlockall __NR_mlockall +#define SYS_mmap __NR_mmap +#define SYS_modify_ldt __NR_modify_ldt +#define SYS_mount __NR_mount +#define SYS_move_pages __NR_move_pages +#define SYS_mprotect __NR_mprotect +#define SYS_mq_getsetattr __NR_mq_getsetattr +#define SYS_mq_notify __NR_mq_notify +#define SYS_mq_open __NR_mq_open +#define SYS_mq_timedreceive __NR_mq_timedreceive +#define SYS_mq_timedsend __NR_mq_timedsend +#define SYS_mq_unlink __NR_mq_unlink +#define SYS_mremap __NR_mremap +#define SYS_msgctl __NR_msgctl +#define SYS_msgget __NR_msgget +#define SYS_msgrcv __NR_msgrcv +#define SYS_msgsnd __NR_msgsnd +#define SYS_msync __NR_msync +#define SYS_munlock __NR_munlock +#define SYS_munlockall __NR_munlockall +#define SYS_munmap __NR_munmap +#define SYS_name_to_handle_at __NR_name_to_handle_at +#define SYS_nanosleep __NR_nanosleep +#define SYS_newfstatat __NR_newfstatat +#define SYS_nfsservctl __NR_nfsservctl +#define SYS_open __NR_open +#define SYS_open_by_handle_at __NR_open_by_handle_at +#define SYS_openat __NR_openat +#define SYS_pause __NR_pause +#define SYS_perf_event_open __NR_perf_event_open +#define SYS_personality __NR_personality +#define SYS_pipe __NR_pipe +#define SYS_pipe2 __NR_pipe2 +#define SYS_pivot_root __NR_pivot_root +#define SYS_poll __NR_poll +#define SYS_ppoll __NR_ppoll +#define SYS_prctl __NR_prctl +#define SYS_pread64 __NR_pread64 +#define SYS_preadv __NR_preadv +#define SYS_prlimit64 __NR_prlimit64 +#define SYS_process_vm_readv __NR_process_vm_readv +#define SYS_process_vm_writev __NR_process_vm_writev +#define SYS_pselect6 __NR_pselect6 +#define SYS_ptrace __NR_ptrace +#define SYS_putpmsg __NR_putpmsg +#define SYS_pwrite64 __NR_pwrite64 +#define SYS_pwritev __NR_pwritev +#define SYS_query_module __NR_query_module +#define SYS_quotactl __NR_quotactl +#define SYS_read __NR_read +#define SYS_readahead __NR_readahead +#define SYS_readlink __NR_readlink +#define SYS_readlinkat __NR_readlinkat +#define SYS_readv __NR_readv +#define SYS_reboot __NR_reboot +#define SYS_recvfrom __NR_recvfrom +#define SYS_recvmmsg __NR_recvmmsg +#define SYS_recvmsg __NR_recvmsg +#define SYS_remap_file_pages __NR_remap_file_pages +#define SYS_removexattr __NR_removexattr +#define SYS_rename __NR_rename +#define SYS_renameat __NR_renameat +#define SYS_request_key __NR_request_key +#define SYS_restart_syscall __NR_restart_syscall +#define SYS_rmdir __NR_rmdir +#define SYS_rt_sigaction __NR_rt_sigaction +#define SYS_rt_sigpending __NR_rt_sigpending +#define SYS_rt_sigprocmask __NR_rt_sigprocmask +#define SYS_rt_sigqueueinfo __NR_rt_sigqueueinfo +#define SYS_rt_sigreturn __NR_rt_sigreturn +#define SYS_rt_sigsuspend __NR_rt_sigsuspend +#define SYS_rt_sigtimedwait __NR_rt_sigtimedwait +#define SYS_rt_tgsigqueueinfo __NR_rt_tgsigqueueinfo +#define SYS_sched_get_priority_max __NR_sched_get_priority_max +#define SYS_sched_get_priority_min __NR_sched_get_priority_min +#define SYS_sched_getaffinity __NR_sched_getaffinity +#define SYS_sched_getparam __NR_sched_getparam +#define SYS_sched_getscheduler __NR_sched_getscheduler +#define SYS_sched_rr_get_interval __NR_sched_rr_get_interval +#define SYS_sched_setaffinity __NR_sched_setaffinity +#define SYS_sched_setparam __NR_sched_setparam +#define SYS_sched_setscheduler __NR_sched_setscheduler +#define SYS_sched_yield __NR_sched_yield +#define SYS_security __NR_security +#define SYS_select __NR_select +#define SYS_semctl __NR_semctl +#define SYS_semget __NR_semget +#define SYS_semop __NR_semop +#define SYS_semtimedop __NR_semtimedop +#define SYS_sendfile __NR_sendfile +#define SYS_sendmmsg __NR_sendmmsg +#define SYS_sendmsg __NR_sendmsg +#define SYS_sendto __NR_sendto +#define SYS_set_mempolicy __NR_set_mempolicy +#define SYS_set_robust_list __NR_set_robust_list +#define SYS_set_thread_area __NR_set_thread_area +#define SYS_set_tid_address __NR_set_tid_address +#define SYS_setdomainname __NR_setdomainname +#define SYS_setfsgid __NR_setfsgid +#define SYS_setfsuid __NR_setfsuid +#define SYS_setgid __NR_setgid +#define SYS_setgroups __NR_setgroups +#define SYS_sethostname __NR_sethostname +#define SYS_setitimer __NR_setitimer +#define SYS_setns __NR_setns +#define SYS_setpgid __NR_setpgid +#define SYS_setpriority __NR_setpriority +#define SYS_setregid __NR_setregid +#define SYS_setresgid __NR_setresgid +#define SYS_setresuid __NR_setresuid +#define SYS_setreuid __NR_setreuid +#define SYS_setrlimit __NR_setrlimit +#define SYS_setsid __NR_setsid +#define SYS_setsockopt __NR_setsockopt +#define SYS_settimeofday __NR_settimeofday +#define SYS_setuid __NR_setuid +#define SYS_setxattr __NR_setxattr +#define SYS_shmat __NR_shmat +#define SYS_shmctl __NR_shmctl +#define SYS_shmdt __NR_shmdt +#define SYS_shmget __NR_shmget +#define SYS_shutdown __NR_shutdown +#define SYS_sigaltstack __NR_sigaltstack +#define SYS_signalfd __NR_signalfd +#define SYS_signalfd4 __NR_signalfd4 +#define SYS_socket __NR_socket +#define SYS_socketpair __NR_socketpair +#define SYS_splice __NR_splice +#define SYS_stat __NR_stat +#define SYS_statfs __NR_statfs +#define SYS_swapoff __NR_swapoff +#define SYS_swapon __NR_swapon +#define SYS_symlink __NR_symlink +#define SYS_symlinkat __NR_symlinkat +#define SYS_sync __NR_sync +#define SYS_sync_file_range __NR_sync_file_range +#define SYS_syncfs __NR_syncfs +#define SYS_sysfs __NR_sysfs +#define SYS_sysinfo __NR_sysinfo +#define SYS_syslog __NR_syslog +#define SYS_tee __NR_tee +#define SYS_tgkill __NR_tgkill +#define SYS_time __NR_time +#define SYS_timer_create __NR_timer_create +#define SYS_timer_delete __NR_timer_delete +#define SYS_timer_getoverrun __NR_timer_getoverrun +#define SYS_timer_gettime __NR_timer_gettime +#define SYS_timer_settime __NR_timer_settime +#define SYS_timerfd_create __NR_timerfd_create +#define SYS_timerfd_gettime __NR_timerfd_gettime +#define SYS_timerfd_settime __NR_timerfd_settime +#define SYS_times __NR_times +#define SYS_tkill __NR_tkill +#define SYS_truncate __NR_truncate +#define SYS_tuxcall __NR_tuxcall +#define SYS_umask __NR_umask +#define SYS_umount2 __NR_umount2 +#define SYS_uname __NR_uname +#define SYS_unlink __NR_unlink +#define SYS_unlinkat __NR_unlinkat +#define SYS_unshare __NR_unshare +#define SYS_uselib __NR_uselib +#define SYS_ustat __NR_ustat +#define SYS_utime __NR_utime +#define SYS_utimensat __NR_utimensat +#define SYS_utimes __NR_utimes +#define SYS_vfork __NR_vfork +#define SYS_vhangup __NR_vhangup +#define SYS_vmsplice __NR_vmsplice +#define SYS_vserver __NR_vserver +#define SYS_wait4 __NR_wait4 +#define SYS_waitid __NR_waitid +#define SYS_write __NR_write +#define SYS_writev __NR_writev #endif #endif /* _BIONIC_GLIBC_SYSCALLS_H_ */