diff options
204 files changed, 227 insertions, 220 deletions
diff --git a/libc/SYSCALLS.TXT b/libc/SYSCALLS.TXT index ff4874e..bf56ffe 100644 --- a/libc/SYSCALLS.TXT +++ b/libc/SYSCALLS.TXT @@ -311,8 +311,8 @@ int poll(struct pollfd *, unsigned int, long) 168,168,188 int eventfd:eventfd2(unsigned int, int) 356,328,325 # ARM-specific ARM_NR_BASE == 0x0f0000 == 983040 -int __set_tls:ARM_set_tls(void*) 983045,-1,-1 -int cacheflush:ARM_cacheflush(long start, long end, long flags) 983042,-1,-1 +int __set_tls:__ARM_NR_set_tls(void*) 983045,-1,-1 +int cacheflush:__ARM_NR_cacheflush(long start, long end, long flags) 983042,-1,-1 # MIPS-specific int _flush_cache:cacheflush(char *addr, const int nbytes, const int op) -1,-1,147 diff --git a/libc/arch-arm/syscalls/__brk.S b/libc/arch-arm/syscalls/__brk.S index 1cc6a17..40fa49a 100644 --- a/libc/arch-arm/syscalls/__brk.S +++ b/libc/arch-arm/syscalls/__brk.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__brk) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__fcntl.S b/libc/arch-arm/syscalls/__fcntl.S index c15ad66..126fb0f 100644 --- a/libc/arch-arm/syscalls/__fcntl.S +++ b/libc/arch-arm/syscalls/__fcntl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__fcntl) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__fcntl64.S b/libc/arch-arm/syscalls/__fcntl64.S index ea47a60..b7bc87b 100644 --- a/libc/arch-arm/syscalls/__fcntl64.S +++ b/libc/arch-arm/syscalls/__fcntl64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__fcntl64) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__fork.S b/libc/arch-arm/syscalls/__fork.S index 279155a..3bb2fb8 100644 --- a/libc/arch-arm/syscalls/__fork.S +++ b/libc/arch-arm/syscalls/__fork.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__fork) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__fstatfs64.S b/libc/arch-arm/syscalls/__fstatfs64.S index e8bc408..afbad24 100644 --- a/libc/arch-arm/syscalls/__fstatfs64.S +++ b/libc/arch-arm/syscalls/__fstatfs64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__fstatfs64) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__getcpu.S b/libc/arch-arm/syscalls/__getcpu.S index 83387d5..3b2cbd9 100644 --- a/libc/arch-arm/syscalls/__getcpu.S +++ b/libc/arch-arm/syscalls/__getcpu.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__getcpu) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__getcwd.S b/libc/arch-arm/syscalls/__getcwd.S index 781f7d2..7783e03 100644 --- a/libc/arch-arm/syscalls/__getcwd.S +++ b/libc/arch-arm/syscalls/__getcwd.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__getcwd) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__getpriority.S b/libc/arch-arm/syscalls/__getpriority.S index 8c16fd8..7a6ebec 100644 --- a/libc/arch-arm/syscalls/__getpriority.S +++ b/libc/arch-arm/syscalls/__getpriority.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__getpriority) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__ioctl.S b/libc/arch-arm/syscalls/__ioctl.S index 4aef590..ce20a71 100644 --- a/libc/arch-arm/syscalls/__ioctl.S +++ b/libc/arch-arm/syscalls/__ioctl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__ioctl) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__llseek.S b/libc/arch-arm/syscalls/__llseek.S index 5891b13..af3b38c 100644 --- a/libc/arch-arm/syscalls/__llseek.S +++ b/libc/arch-arm/syscalls/__llseek.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__llseek) mov ip, sp diff --git a/libc/arch-arm/syscalls/__mmap2.S b/libc/arch-arm/syscalls/__mmap2.S index dfaa0c4..c0c5b55 100644 --- a/libc/arch-arm/syscalls/__mmap2.S +++ b/libc/arch-arm/syscalls/__mmap2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__mmap2) mov ip, sp diff --git a/libc/arch-arm/syscalls/__open.S b/libc/arch-arm/syscalls/__open.S index 9622a91..a3f35be 100644 --- a/libc/arch-arm/syscalls/__open.S +++ b/libc/arch-arm/syscalls/__open.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__open) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__openat.S b/libc/arch-arm/syscalls/__openat.S index 2c7b472..ea1a3a7 100644 --- a/libc/arch-arm/syscalls/__openat.S +++ b/libc/arch-arm/syscalls/__openat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__openat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__ptrace.S b/libc/arch-arm/syscalls/__ptrace.S index 984d499..b1abf87 100644 --- a/libc/arch-arm/syscalls/__ptrace.S +++ b/libc/arch-arm/syscalls/__ptrace.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__ptrace) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__reboot.S b/libc/arch-arm/syscalls/__reboot.S index 8dd57d6..ad2bc8d 100644 --- a/libc/arch-arm/syscalls/__reboot.S +++ b/libc/arch-arm/syscalls/__reboot.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__reboot) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__rt_sigaction.S b/libc/arch-arm/syscalls/__rt_sigaction.S index 7955e13..0a4be2a 100644 --- a/libc/arch-arm/syscalls/__rt_sigaction.S +++ b/libc/arch-arm/syscalls/__rt_sigaction.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__rt_sigaction) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__rt_sigprocmask.S b/libc/arch-arm/syscalls/__rt_sigprocmask.S index c40ace8..0008da2 100644 --- a/libc/arch-arm/syscalls/__rt_sigprocmask.S +++ b/libc/arch-arm/syscalls/__rt_sigprocmask.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__rt_sigprocmask) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__rt_sigtimedwait.S b/libc/arch-arm/syscalls/__rt_sigtimedwait.S index dfd23e8..02c4d18 100644 --- a/libc/arch-arm/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-arm/syscalls/__rt_sigtimedwait.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__rt_sigtimedwait) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__sched_getaffinity.S b/libc/arch-arm/syscalls/__sched_getaffinity.S index 5c241b5..c02f7fd 100644 --- a/libc/arch-arm/syscalls/__sched_getaffinity.S +++ b/libc/arch-arm/syscalls/__sched_getaffinity.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__sched_getaffinity) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__set_tls.S b/libc/arch-arm/syscalls/__set_tls.S index 909c4b3..73142ba 100644 --- a/libc/arch-arm/syscalls/__set_tls.S +++ b/libc/arch-arm/syscalls/__set_tls.S @@ -1,11 +1,11 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__set_tls) mov ip, r7 - ldr r7, =__NR_ARM_set_tls + ldr r7, =__ARM_NR_set_tls swi #0 mov r7, ip cmn r0, #(MAX_ERRNO + 1) diff --git a/libc/arch-arm/syscalls/__setresuid.S b/libc/arch-arm/syscalls/__setresuid.S index baa5f30..0fd8ae6 100644 --- a/libc/arch-arm/syscalls/__setresuid.S +++ b/libc/arch-arm/syscalls/__setresuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__setresuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__setreuid.S b/libc/arch-arm/syscalls/__setreuid.S index 660bd2e..bc2fe84 100644 --- a/libc/arch-arm/syscalls/__setreuid.S +++ b/libc/arch-arm/syscalls/__setreuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__setreuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__setuid.S b/libc/arch-arm/syscalls/__setuid.S index fa98432..f7b94da 100644 --- a/libc/arch-arm/syscalls/__setuid.S +++ b/libc/arch-arm/syscalls/__setuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__setuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__sigsuspend.S b/libc/arch-arm/syscalls/__sigsuspend.S index 0ef0c54..dc519d2 100644 --- a/libc/arch-arm/syscalls/__sigsuspend.S +++ b/libc/arch-arm/syscalls/__sigsuspend.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__sigsuspend) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__statfs64.S b/libc/arch-arm/syscalls/__statfs64.S index 577700a..4ba592e 100644 --- a/libc/arch-arm/syscalls/__statfs64.S +++ b/libc/arch-arm/syscalls/__statfs64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__statfs64) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__sys_clone.S b/libc/arch-arm/syscalls/__sys_clone.S index 56712e4..7308c21 100644 --- a/libc/arch-arm/syscalls/__sys_clone.S +++ b/libc/arch-arm/syscalls/__sys_clone.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__sys_clone) mov ip, sp diff --git a/libc/arch-arm/syscalls/__syslog.S b/libc/arch-arm/syscalls/__syslog.S index dbd3268..1588903 100644 --- a/libc/arch-arm/syscalls/__syslog.S +++ b/libc/arch-arm/syscalls/__syslog.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__syslog) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__timer_create.S b/libc/arch-arm/syscalls/__timer_create.S index 6e5e647..eedff93 100644 --- a/libc/arch-arm/syscalls/__timer_create.S +++ b/libc/arch-arm/syscalls/__timer_create.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__timer_create) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__timer_delete.S b/libc/arch-arm/syscalls/__timer_delete.S index ff6c762..be29c40 100644 --- a/libc/arch-arm/syscalls/__timer_delete.S +++ b/libc/arch-arm/syscalls/__timer_delete.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__timer_delete) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__timer_getoverrun.S b/libc/arch-arm/syscalls/__timer_getoverrun.S index 39b0755..11dd91c 100644 --- a/libc/arch-arm/syscalls/__timer_getoverrun.S +++ b/libc/arch-arm/syscalls/__timer_getoverrun.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__timer_getoverrun) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__timer_gettime.S b/libc/arch-arm/syscalls/__timer_gettime.S index d079ffd..46f9a5e 100644 --- a/libc/arch-arm/syscalls/__timer_gettime.S +++ b/libc/arch-arm/syscalls/__timer_gettime.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__timer_gettime) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__timer_settime.S b/libc/arch-arm/syscalls/__timer_settime.S index 663082b..f5ada76 100644 --- a/libc/arch-arm/syscalls/__timer_settime.S +++ b/libc/arch-arm/syscalls/__timer_settime.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__timer_settime) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__waitid.S b/libc/arch-arm/syscalls/__waitid.S index d98d9d6..8db2812 100644 --- a/libc/arch-arm/syscalls/__waitid.S +++ b/libc/arch-arm/syscalls/__waitid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(__waitid) mov ip, sp diff --git a/libc/arch-arm/syscalls/_exit.S b/libc/arch-arm/syscalls/_exit.S index 9c3a9f8..069a4ec 100644 --- a/libc/arch-arm/syscalls/_exit.S +++ b/libc/arch-arm/syscalls/_exit.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(_exit) mov ip, r7 diff --git a/libc/arch-arm/syscalls/_exit_thread.S b/libc/arch-arm/syscalls/_exit_thread.S index 4e01700..b41d7b4 100644 --- a/libc/arch-arm/syscalls/_exit_thread.S +++ b/libc/arch-arm/syscalls/_exit_thread.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(_exit_thread) mov ip, r7 diff --git a/libc/arch-arm/syscalls/accept.S b/libc/arch-arm/syscalls/accept.S index 17e17ef..674bafe 100644 --- a/libc/arch-arm/syscalls/accept.S +++ b/libc/arch-arm/syscalls/accept.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(accept) mov ip, r7 diff --git a/libc/arch-arm/syscalls/access.S b/libc/arch-arm/syscalls/access.S index 2604c0c..6eaeca9 100644 --- a/libc/arch-arm/syscalls/access.S +++ b/libc/arch-arm/syscalls/access.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(access) mov ip, r7 diff --git a/libc/arch-arm/syscalls/acct.S b/libc/arch-arm/syscalls/acct.S index a8f7e5c..27a4136 100644 --- a/libc/arch-arm/syscalls/acct.S +++ b/libc/arch-arm/syscalls/acct.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(acct) mov ip, r7 diff --git a/libc/arch-arm/syscalls/bind.S b/libc/arch-arm/syscalls/bind.S index 4e071eb..641405f 100644 --- a/libc/arch-arm/syscalls/bind.S +++ b/libc/arch-arm/syscalls/bind.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(bind) mov ip, r7 diff --git a/libc/arch-arm/syscalls/cacheflush.S b/libc/arch-arm/syscalls/cacheflush.S index ed233e8..3551274 100644 --- a/libc/arch-arm/syscalls/cacheflush.S +++ b/libc/arch-arm/syscalls/cacheflush.S @@ -1,11 +1,11 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(cacheflush) mov ip, r7 - ldr r7, =__NR_ARM_cacheflush + ldr r7, =__ARM_NR_cacheflush swi #0 mov r7, ip cmn r0, #(MAX_ERRNO + 1) diff --git a/libc/arch-arm/syscalls/capget.S b/libc/arch-arm/syscalls/capget.S index ac297ed..08c0f38 100644 --- a/libc/arch-arm/syscalls/capget.S +++ b/libc/arch-arm/syscalls/capget.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(capget) mov ip, r7 diff --git a/libc/arch-arm/syscalls/capset.S b/libc/arch-arm/syscalls/capset.S index c6b043f..90aa343 100644 --- a/libc/arch-arm/syscalls/capset.S +++ b/libc/arch-arm/syscalls/capset.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(capset) mov ip, r7 diff --git a/libc/arch-arm/syscalls/chdir.S b/libc/arch-arm/syscalls/chdir.S index e59c3a0..e6485a6 100644 --- a/libc/arch-arm/syscalls/chdir.S +++ b/libc/arch-arm/syscalls/chdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(chdir) mov ip, r7 diff --git a/libc/arch-arm/syscalls/chmod.S b/libc/arch-arm/syscalls/chmod.S index fb0489e..4b98ca6 100644 --- a/libc/arch-arm/syscalls/chmod.S +++ b/libc/arch-arm/syscalls/chmod.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(chmod) mov ip, r7 diff --git a/libc/arch-arm/syscalls/chown.S b/libc/arch-arm/syscalls/chown.S index 41c90a6..7838a2a 100644 --- a/libc/arch-arm/syscalls/chown.S +++ b/libc/arch-arm/syscalls/chown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(chown) mov ip, r7 diff --git a/libc/arch-arm/syscalls/chroot.S b/libc/arch-arm/syscalls/chroot.S index a68f513..f3534b6 100644 --- a/libc/arch-arm/syscalls/chroot.S +++ b/libc/arch-arm/syscalls/chroot.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(chroot) mov ip, r7 diff --git a/libc/arch-arm/syscalls/clock_getres.S b/libc/arch-arm/syscalls/clock_getres.S index bf6226c..81a2cdc 100644 --- a/libc/arch-arm/syscalls/clock_getres.S +++ b/libc/arch-arm/syscalls/clock_getres.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(clock_getres) mov ip, r7 diff --git a/libc/arch-arm/syscalls/clock_gettime.S b/libc/arch-arm/syscalls/clock_gettime.S index 35bfe0a..e26d700 100644 --- a/libc/arch-arm/syscalls/clock_gettime.S +++ b/libc/arch-arm/syscalls/clock_gettime.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(clock_gettime) mov ip, r7 diff --git a/libc/arch-arm/syscalls/clock_nanosleep.S b/libc/arch-arm/syscalls/clock_nanosleep.S index 34137ab..dc0584f 100644 --- a/libc/arch-arm/syscalls/clock_nanosleep.S +++ b/libc/arch-arm/syscalls/clock_nanosleep.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(clock_nanosleep) mov ip, r7 diff --git a/libc/arch-arm/syscalls/clock_settime.S b/libc/arch-arm/syscalls/clock_settime.S index 94c0fbe..2596f53 100644 --- a/libc/arch-arm/syscalls/clock_settime.S +++ b/libc/arch-arm/syscalls/clock_settime.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(clock_settime) mov ip, r7 diff --git a/libc/arch-arm/syscalls/close.S b/libc/arch-arm/syscalls/close.S index f595025..2225929 100644 --- a/libc/arch-arm/syscalls/close.S +++ b/libc/arch-arm/syscalls/close.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(close) mov ip, r7 diff --git a/libc/arch-arm/syscalls/connect.S b/libc/arch-arm/syscalls/connect.S index 1e7b7f9..0d4682a 100644 --- a/libc/arch-arm/syscalls/connect.S +++ b/libc/arch-arm/syscalls/connect.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(connect) mov ip, r7 diff --git a/libc/arch-arm/syscalls/delete_module.S b/libc/arch-arm/syscalls/delete_module.S index 122a340..345c012 100644 --- a/libc/arch-arm/syscalls/delete_module.S +++ b/libc/arch-arm/syscalls/delete_module.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(delete_module) mov ip, r7 diff --git a/libc/arch-arm/syscalls/dup.S b/libc/arch-arm/syscalls/dup.S index e8272a7..060d555 100644 --- a/libc/arch-arm/syscalls/dup.S +++ b/libc/arch-arm/syscalls/dup.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(dup) mov ip, r7 diff --git a/libc/arch-arm/syscalls/dup2.S b/libc/arch-arm/syscalls/dup2.S index b0ec007..9465860 100644 --- a/libc/arch-arm/syscalls/dup2.S +++ b/libc/arch-arm/syscalls/dup2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(dup2) mov ip, r7 diff --git a/libc/arch-arm/syscalls/epoll_create.S b/libc/arch-arm/syscalls/epoll_create.S index bb8d288..b2894e6 100644 --- a/libc/arch-arm/syscalls/epoll_create.S +++ b/libc/arch-arm/syscalls/epoll_create.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(epoll_create) mov ip, r7 diff --git a/libc/arch-arm/syscalls/epoll_ctl.S b/libc/arch-arm/syscalls/epoll_ctl.S index 255ac6f..7a56b99 100644 --- a/libc/arch-arm/syscalls/epoll_ctl.S +++ b/libc/arch-arm/syscalls/epoll_ctl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(epoll_ctl) mov ip, r7 diff --git a/libc/arch-arm/syscalls/epoll_wait.S b/libc/arch-arm/syscalls/epoll_wait.S index 1ebeaab..11252be 100644 --- a/libc/arch-arm/syscalls/epoll_wait.S +++ b/libc/arch-arm/syscalls/epoll_wait.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(epoll_wait) mov ip, r7 diff --git a/libc/arch-arm/syscalls/eventfd.S b/libc/arch-arm/syscalls/eventfd.S index 96ead51..602aecd 100644 --- a/libc/arch-arm/syscalls/eventfd.S +++ b/libc/arch-arm/syscalls/eventfd.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(eventfd) mov ip, r7 diff --git a/libc/arch-arm/syscalls/execve.S b/libc/arch-arm/syscalls/execve.S index 5b74109..00de4b8 100644 --- a/libc/arch-arm/syscalls/execve.S +++ b/libc/arch-arm/syscalls/execve.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(execve) mov ip, r7 diff --git a/libc/arch-arm/syscalls/faccessat.S b/libc/arch-arm/syscalls/faccessat.S index abc895f..567451e 100644 --- a/libc/arch-arm/syscalls/faccessat.S +++ b/libc/arch-arm/syscalls/faccessat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(faccessat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fchdir.S b/libc/arch-arm/syscalls/fchdir.S index b52627a..170324e 100644 --- a/libc/arch-arm/syscalls/fchdir.S +++ b/libc/arch-arm/syscalls/fchdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fchdir) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fchmod.S b/libc/arch-arm/syscalls/fchmod.S index 6acd482..657a565 100644 --- a/libc/arch-arm/syscalls/fchmod.S +++ b/libc/arch-arm/syscalls/fchmod.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fchmod) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fchmodat.S b/libc/arch-arm/syscalls/fchmodat.S index 09a3569..acdf6c8 100644 --- a/libc/arch-arm/syscalls/fchmodat.S +++ b/libc/arch-arm/syscalls/fchmodat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fchmodat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fchown.S b/libc/arch-arm/syscalls/fchown.S index 08d996e..6d75eb4 100644 --- a/libc/arch-arm/syscalls/fchown.S +++ b/libc/arch-arm/syscalls/fchown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fchown) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fchownat.S b/libc/arch-arm/syscalls/fchownat.S index f5061ec..31864ec 100644 --- a/libc/arch-arm/syscalls/fchownat.S +++ b/libc/arch-arm/syscalls/fchownat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fchownat) mov ip, sp diff --git a/libc/arch-arm/syscalls/fdatasync.S b/libc/arch-arm/syscalls/fdatasync.S index b456fb4..62b89cc 100644 --- a/libc/arch-arm/syscalls/fdatasync.S +++ b/libc/arch-arm/syscalls/fdatasync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fdatasync) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fgetxattr.S b/libc/arch-arm/syscalls/fgetxattr.S index 6cabf9f..e8cc8d3 100644 --- a/libc/arch-arm/syscalls/fgetxattr.S +++ b/libc/arch-arm/syscalls/fgetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fgetxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/flistxattr.S b/libc/arch-arm/syscalls/flistxattr.S index e912e91..fe8d876 100644 --- a/libc/arch-arm/syscalls/flistxattr.S +++ b/libc/arch-arm/syscalls/flistxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(flistxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/flock.S b/libc/arch-arm/syscalls/flock.S index 572d28c..2e28b1b 100644 --- a/libc/arch-arm/syscalls/flock.S +++ b/libc/arch-arm/syscalls/flock.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(flock) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fremovexattr.S b/libc/arch-arm/syscalls/fremovexattr.S index 485886d..9fab8f3 100644 --- a/libc/arch-arm/syscalls/fremovexattr.S +++ b/libc/arch-arm/syscalls/fremovexattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fremovexattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fsetxattr.S b/libc/arch-arm/syscalls/fsetxattr.S index 29526e7..87ed835 100644 --- a/libc/arch-arm/syscalls/fsetxattr.S +++ b/libc/arch-arm/syscalls/fsetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fsetxattr) mov ip, sp diff --git a/libc/arch-arm/syscalls/fstat.S b/libc/arch-arm/syscalls/fstat.S index 903c5c2..6ad5589 100644 --- a/libc/arch-arm/syscalls/fstat.S +++ b/libc/arch-arm/syscalls/fstat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fstat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fstatat.S b/libc/arch-arm/syscalls/fstatat.S index 030ee31..f4577dc 100644 --- a/libc/arch-arm/syscalls/fstatat.S +++ b/libc/arch-arm/syscalls/fstatat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fstatat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fsync.S b/libc/arch-arm/syscalls/fsync.S index 144b64b..54f7d57 100644 --- a/libc/arch-arm/syscalls/fsync.S +++ b/libc/arch-arm/syscalls/fsync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(fsync) mov ip, r7 diff --git a/libc/arch-arm/syscalls/ftruncate.S b/libc/arch-arm/syscalls/ftruncate.S index e2c5e79..659bfbf 100644 --- a/libc/arch-arm/syscalls/ftruncate.S +++ b/libc/arch-arm/syscalls/ftruncate.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(ftruncate) mov ip, r7 diff --git a/libc/arch-arm/syscalls/ftruncate64.S b/libc/arch-arm/syscalls/ftruncate64.S index 19b02b6..123897d 100644 --- a/libc/arch-arm/syscalls/ftruncate64.S +++ b/libc/arch-arm/syscalls/ftruncate64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(ftruncate64) mov ip, r7 diff --git a/libc/arch-arm/syscalls/futex.S b/libc/arch-arm/syscalls/futex.S index b012cd7..27b15b7 100644 --- a/libc/arch-arm/syscalls/futex.S +++ b/libc/arch-arm/syscalls/futex.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(futex) mov ip, sp diff --git a/libc/arch-arm/syscalls/getdents.S b/libc/arch-arm/syscalls/getdents.S index cb240ea..8506f29 100644 --- a/libc/arch-arm/syscalls/getdents.S +++ b/libc/arch-arm/syscalls/getdents.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getdents) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getegid.S b/libc/arch-arm/syscalls/getegid.S index 4386c2e..7dc524e 100644 --- a/libc/arch-arm/syscalls/getegid.S +++ b/libc/arch-arm/syscalls/getegid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getegid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/geteuid.S b/libc/arch-arm/syscalls/geteuid.S index afe99ee..64cc074 100644 --- a/libc/arch-arm/syscalls/geteuid.S +++ b/libc/arch-arm/syscalls/geteuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(geteuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getgid.S b/libc/arch-arm/syscalls/getgid.S index f9b6c9e..a56a160 100644 --- a/libc/arch-arm/syscalls/getgid.S +++ b/libc/arch-arm/syscalls/getgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getgroups.S b/libc/arch-arm/syscalls/getgroups.S index ab8e8a1..3ed236d 100644 --- a/libc/arch-arm/syscalls/getgroups.S +++ b/libc/arch-arm/syscalls/getgroups.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getgroups) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getitimer.S b/libc/arch-arm/syscalls/getitimer.S index 6300cdb..091450f 100644 --- a/libc/arch-arm/syscalls/getitimer.S +++ b/libc/arch-arm/syscalls/getitimer.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getitimer) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getpeername.S b/libc/arch-arm/syscalls/getpeername.S index f031470..8b956bf 100644 --- a/libc/arch-arm/syscalls/getpeername.S +++ b/libc/arch-arm/syscalls/getpeername.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getpeername) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getpgid.S b/libc/arch-arm/syscalls/getpgid.S index 60e4589..cbc510f 100644 --- a/libc/arch-arm/syscalls/getpgid.S +++ b/libc/arch-arm/syscalls/getpgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getpgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getpid.S b/libc/arch-arm/syscalls/getpid.S index ff8eebb..ecb125b 100644 --- a/libc/arch-arm/syscalls/getpid.S +++ b/libc/arch-arm/syscalls/getpid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getpid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getppid.S b/libc/arch-arm/syscalls/getppid.S index b770e8d..4a775e7 100644 --- a/libc/arch-arm/syscalls/getppid.S +++ b/libc/arch-arm/syscalls/getppid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getppid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getresgid.S b/libc/arch-arm/syscalls/getresgid.S index 2e7949a..e574ef3 100644 --- a/libc/arch-arm/syscalls/getresgid.S +++ b/libc/arch-arm/syscalls/getresgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getresgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getresuid.S b/libc/arch-arm/syscalls/getresuid.S index e006c8b..9c8b0bf 100644 --- a/libc/arch-arm/syscalls/getresuid.S +++ b/libc/arch-arm/syscalls/getresuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getresuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getrlimit.S b/libc/arch-arm/syscalls/getrlimit.S index 73efb8d..21380f9 100644 --- a/libc/arch-arm/syscalls/getrlimit.S +++ b/libc/arch-arm/syscalls/getrlimit.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getrlimit) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getrusage.S b/libc/arch-arm/syscalls/getrusage.S index 5659612..131c58f 100644 --- a/libc/arch-arm/syscalls/getrusage.S +++ b/libc/arch-arm/syscalls/getrusage.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getrusage) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getsid.S b/libc/arch-arm/syscalls/getsid.S index 3e63e50..e5ffd5f 100644 --- a/libc/arch-arm/syscalls/getsid.S +++ b/libc/arch-arm/syscalls/getsid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getsid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getsockname.S b/libc/arch-arm/syscalls/getsockname.S index 08d86a9..ec0f930 100644 --- a/libc/arch-arm/syscalls/getsockname.S +++ b/libc/arch-arm/syscalls/getsockname.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getsockname) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getsockopt.S b/libc/arch-arm/syscalls/getsockopt.S index 5a18c52..95f79af 100644 --- a/libc/arch-arm/syscalls/getsockopt.S +++ b/libc/arch-arm/syscalls/getsockopt.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getsockopt) mov ip, sp diff --git a/libc/arch-arm/syscalls/gettid.S b/libc/arch-arm/syscalls/gettid.S index 36e015a..b8dd120 100644 --- a/libc/arch-arm/syscalls/gettid.S +++ b/libc/arch-arm/syscalls/gettid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(gettid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/gettimeofday.S b/libc/arch-arm/syscalls/gettimeofday.S index d880224..9f43b98 100644 --- a/libc/arch-arm/syscalls/gettimeofday.S +++ b/libc/arch-arm/syscalls/gettimeofday.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(gettimeofday) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getuid.S b/libc/arch-arm/syscalls/getuid.S index 27ee923..02fb6fc 100644 --- a/libc/arch-arm/syscalls/getuid.S +++ b/libc/arch-arm/syscalls/getuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getxattr.S b/libc/arch-arm/syscalls/getxattr.S index c6c7441..354d948 100644 --- a/libc/arch-arm/syscalls/getxattr.S +++ b/libc/arch-arm/syscalls/getxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(getxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/init_module.S b/libc/arch-arm/syscalls/init_module.S index a187629..c72c34c 100644 --- a/libc/arch-arm/syscalls/init_module.S +++ b/libc/arch-arm/syscalls/init_module.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(init_module) mov ip, r7 diff --git a/libc/arch-arm/syscalls/inotify_add_watch.S b/libc/arch-arm/syscalls/inotify_add_watch.S index 48eb8d8..c994677 100644 --- a/libc/arch-arm/syscalls/inotify_add_watch.S +++ b/libc/arch-arm/syscalls/inotify_add_watch.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(inotify_add_watch) mov ip, r7 diff --git a/libc/arch-arm/syscalls/inotify_init.S b/libc/arch-arm/syscalls/inotify_init.S index 9a11610..3713303 100644 --- a/libc/arch-arm/syscalls/inotify_init.S +++ b/libc/arch-arm/syscalls/inotify_init.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(inotify_init) mov ip, r7 diff --git a/libc/arch-arm/syscalls/inotify_rm_watch.S b/libc/arch-arm/syscalls/inotify_rm_watch.S index 2d96f62..d740de0 100644 --- a/libc/arch-arm/syscalls/inotify_rm_watch.S +++ b/libc/arch-arm/syscalls/inotify_rm_watch.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(inotify_rm_watch) mov ip, r7 diff --git a/libc/arch-arm/syscalls/ioprio_get.S b/libc/arch-arm/syscalls/ioprio_get.S index 58c6909..bb1dd1a 100644 --- a/libc/arch-arm/syscalls/ioprio_get.S +++ b/libc/arch-arm/syscalls/ioprio_get.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(ioprio_get) mov ip, r7 diff --git a/libc/arch-arm/syscalls/ioprio_set.S b/libc/arch-arm/syscalls/ioprio_set.S index 3afcfa1..064a399 100644 --- a/libc/arch-arm/syscalls/ioprio_set.S +++ b/libc/arch-arm/syscalls/ioprio_set.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(ioprio_set) mov ip, r7 diff --git a/libc/arch-arm/syscalls/klogctl.S b/libc/arch-arm/syscalls/klogctl.S index d3db0d2..f97cf1a 100644 --- a/libc/arch-arm/syscalls/klogctl.S +++ b/libc/arch-arm/syscalls/klogctl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(klogctl) mov ip, r7 diff --git a/libc/arch-arm/syscalls/lchown.S b/libc/arch-arm/syscalls/lchown.S index 1b0ab53..e5738b5 100644 --- a/libc/arch-arm/syscalls/lchown.S +++ b/libc/arch-arm/syscalls/lchown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(lchown) mov ip, r7 diff --git a/libc/arch-arm/syscalls/lgetxattr.S b/libc/arch-arm/syscalls/lgetxattr.S index a9a0427..7af744e 100644 --- a/libc/arch-arm/syscalls/lgetxattr.S +++ b/libc/arch-arm/syscalls/lgetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(lgetxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/link.S b/libc/arch-arm/syscalls/link.S index 6bcaa77..e074ed0 100644 --- a/libc/arch-arm/syscalls/link.S +++ b/libc/arch-arm/syscalls/link.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(link) mov ip, r7 diff --git a/libc/arch-arm/syscalls/listen.S b/libc/arch-arm/syscalls/listen.S index 33da94c..21f4271 100644 --- a/libc/arch-arm/syscalls/listen.S +++ b/libc/arch-arm/syscalls/listen.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(listen) mov ip, r7 diff --git a/libc/arch-arm/syscalls/listxattr.S b/libc/arch-arm/syscalls/listxattr.S index 33af17b..9094a6c 100644 --- a/libc/arch-arm/syscalls/listxattr.S +++ b/libc/arch-arm/syscalls/listxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(listxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/llistxattr.S b/libc/arch-arm/syscalls/llistxattr.S index 332af2a..72d790f 100644 --- a/libc/arch-arm/syscalls/llistxattr.S +++ b/libc/arch-arm/syscalls/llistxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(llistxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/lremovexattr.S b/libc/arch-arm/syscalls/lremovexattr.S index 57ae424..729c4fa 100644 --- a/libc/arch-arm/syscalls/lremovexattr.S +++ b/libc/arch-arm/syscalls/lremovexattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(lremovexattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/lseek.S b/libc/arch-arm/syscalls/lseek.S index 0b9dda2..91f8029 100644 --- a/libc/arch-arm/syscalls/lseek.S +++ b/libc/arch-arm/syscalls/lseek.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(lseek) mov ip, r7 diff --git a/libc/arch-arm/syscalls/lsetxattr.S b/libc/arch-arm/syscalls/lsetxattr.S index af5dce8..c0177ee 100644 --- a/libc/arch-arm/syscalls/lsetxattr.S +++ b/libc/arch-arm/syscalls/lsetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(lsetxattr) mov ip, sp diff --git a/libc/arch-arm/syscalls/lstat.S b/libc/arch-arm/syscalls/lstat.S index f90ab73..be9ebaa 100644 --- a/libc/arch-arm/syscalls/lstat.S +++ b/libc/arch-arm/syscalls/lstat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(lstat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/madvise.S b/libc/arch-arm/syscalls/madvise.S index 33f1b3d..d7f7776 100644 --- a/libc/arch-arm/syscalls/madvise.S +++ b/libc/arch-arm/syscalls/madvise.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(madvise) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mincore.S b/libc/arch-arm/syscalls/mincore.S index 921ad00..744b1e4 100644 --- a/libc/arch-arm/syscalls/mincore.S +++ b/libc/arch-arm/syscalls/mincore.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(mincore) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mkdir.S b/libc/arch-arm/syscalls/mkdir.S index d71f9c2..4163318 100644 --- a/libc/arch-arm/syscalls/mkdir.S +++ b/libc/arch-arm/syscalls/mkdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(mkdir) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mkdirat.S b/libc/arch-arm/syscalls/mkdirat.S index ac12d8f..da583ca 100644 --- a/libc/arch-arm/syscalls/mkdirat.S +++ b/libc/arch-arm/syscalls/mkdirat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(mkdirat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mknod.S b/libc/arch-arm/syscalls/mknod.S index 077af76..15716d3 100644 --- a/libc/arch-arm/syscalls/mknod.S +++ b/libc/arch-arm/syscalls/mknod.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(mknod) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mlock.S b/libc/arch-arm/syscalls/mlock.S index edc6077..d00ea01 100644 --- a/libc/arch-arm/syscalls/mlock.S +++ b/libc/arch-arm/syscalls/mlock.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(mlock) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mlockall.S b/libc/arch-arm/syscalls/mlockall.S index 42285bb..44940f1 100644 --- a/libc/arch-arm/syscalls/mlockall.S +++ b/libc/arch-arm/syscalls/mlockall.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(mlockall) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mount.S b/libc/arch-arm/syscalls/mount.S index b1f4100..b2ef6f8 100644 --- a/libc/arch-arm/syscalls/mount.S +++ b/libc/arch-arm/syscalls/mount.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(mount) mov ip, sp diff --git a/libc/arch-arm/syscalls/mprotect.S b/libc/arch-arm/syscalls/mprotect.S index 47692a1..e5258fd 100644 --- a/libc/arch-arm/syscalls/mprotect.S +++ b/libc/arch-arm/syscalls/mprotect.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(mprotect) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mremap.S b/libc/arch-arm/syscalls/mremap.S index 3b6a755..04ba2bc 100644 --- a/libc/arch-arm/syscalls/mremap.S +++ b/libc/arch-arm/syscalls/mremap.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(mremap) mov ip, r7 diff --git a/libc/arch-arm/syscalls/msync.S b/libc/arch-arm/syscalls/msync.S index 6100d7a..bcd892d 100644 --- a/libc/arch-arm/syscalls/msync.S +++ b/libc/arch-arm/syscalls/msync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(msync) mov ip, r7 diff --git a/libc/arch-arm/syscalls/munlock.S b/libc/arch-arm/syscalls/munlock.S index 52e4f93..deed697 100644 --- a/libc/arch-arm/syscalls/munlock.S +++ b/libc/arch-arm/syscalls/munlock.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(munlock) mov ip, r7 diff --git a/libc/arch-arm/syscalls/munlockall.S b/libc/arch-arm/syscalls/munlockall.S index 6c250e1..18881f4 100644 --- a/libc/arch-arm/syscalls/munlockall.S +++ b/libc/arch-arm/syscalls/munlockall.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(munlockall) mov ip, r7 diff --git a/libc/arch-arm/syscalls/munmap.S b/libc/arch-arm/syscalls/munmap.S index d07a849..3f52da4 100644 --- a/libc/arch-arm/syscalls/munmap.S +++ b/libc/arch-arm/syscalls/munmap.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(munmap) mov ip, r7 diff --git a/libc/arch-arm/syscalls/nanosleep.S b/libc/arch-arm/syscalls/nanosleep.S index 3bd69a9..de826ea 100644 --- a/libc/arch-arm/syscalls/nanosleep.S +++ b/libc/arch-arm/syscalls/nanosleep.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(nanosleep) mov ip, r7 diff --git a/libc/arch-arm/syscalls/pause.S b/libc/arch-arm/syscalls/pause.S index 7714fd1..de54834 100644 --- a/libc/arch-arm/syscalls/pause.S +++ b/libc/arch-arm/syscalls/pause.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(pause) mov ip, r7 diff --git a/libc/arch-arm/syscalls/perf_event_open.S b/libc/arch-arm/syscalls/perf_event_open.S index 0d05587..7b997e6 100644 --- a/libc/arch-arm/syscalls/perf_event_open.S +++ b/libc/arch-arm/syscalls/perf_event_open.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(perf_event_open) mov ip, sp diff --git a/libc/arch-arm/syscalls/personality.S b/libc/arch-arm/syscalls/personality.S index f506ed8..e4e8e40 100644 --- a/libc/arch-arm/syscalls/personality.S +++ b/libc/arch-arm/syscalls/personality.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(personality) mov ip, r7 diff --git a/libc/arch-arm/syscalls/pipe.S b/libc/arch-arm/syscalls/pipe.S index 5a6034c..62cc9c7 100644 --- a/libc/arch-arm/syscalls/pipe.S +++ b/libc/arch-arm/syscalls/pipe.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(pipe) mov ip, r7 diff --git a/libc/arch-arm/syscalls/pipe2.S b/libc/arch-arm/syscalls/pipe2.S index a586f49..bb72289 100644 --- a/libc/arch-arm/syscalls/pipe2.S +++ b/libc/arch-arm/syscalls/pipe2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(pipe2) mov ip, r7 diff --git a/libc/arch-arm/syscalls/poll.S b/libc/arch-arm/syscalls/poll.S index 23cb0a8..71d4c81 100644 --- a/libc/arch-arm/syscalls/poll.S +++ b/libc/arch-arm/syscalls/poll.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(poll) mov ip, r7 diff --git a/libc/arch-arm/syscalls/prctl.S b/libc/arch-arm/syscalls/prctl.S index c650752..ae32ba5 100644 --- a/libc/arch-arm/syscalls/prctl.S +++ b/libc/arch-arm/syscalls/prctl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(prctl) mov ip, sp diff --git a/libc/arch-arm/syscalls/pread64.S b/libc/arch-arm/syscalls/pread64.S index 04d36f9..9626695 100644 --- a/libc/arch-arm/syscalls/pread64.S +++ b/libc/arch-arm/syscalls/pread64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(pread64) mov ip, sp diff --git a/libc/arch-arm/syscalls/pwrite64.S b/libc/arch-arm/syscalls/pwrite64.S index 8a812b3..e7dc09c 100644 --- a/libc/arch-arm/syscalls/pwrite64.S +++ b/libc/arch-arm/syscalls/pwrite64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(pwrite64) mov ip, sp diff --git a/libc/arch-arm/syscalls/read.S b/libc/arch-arm/syscalls/read.S index d5e8d08..2b12305 100644 --- a/libc/arch-arm/syscalls/read.S +++ b/libc/arch-arm/syscalls/read.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(read) mov ip, r7 diff --git a/libc/arch-arm/syscalls/readahead.S b/libc/arch-arm/syscalls/readahead.S index 90603a4..7ed2dda 100644 --- a/libc/arch-arm/syscalls/readahead.S +++ b/libc/arch-arm/syscalls/readahead.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(readahead) mov ip, sp diff --git a/libc/arch-arm/syscalls/readlink.S b/libc/arch-arm/syscalls/readlink.S index c223e1c..1085db6 100644 --- a/libc/arch-arm/syscalls/readlink.S +++ b/libc/arch-arm/syscalls/readlink.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(readlink) mov ip, r7 diff --git a/libc/arch-arm/syscalls/readv.S b/libc/arch-arm/syscalls/readv.S index d85c90c..7857c43 100644 --- a/libc/arch-arm/syscalls/readv.S +++ b/libc/arch-arm/syscalls/readv.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(readv) mov ip, r7 diff --git a/libc/arch-arm/syscalls/recvfrom.S b/libc/arch-arm/syscalls/recvfrom.S index c43d2c3..c105a4a 100644 --- a/libc/arch-arm/syscalls/recvfrom.S +++ b/libc/arch-arm/syscalls/recvfrom.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(recvfrom) mov ip, sp diff --git a/libc/arch-arm/syscalls/recvmsg.S b/libc/arch-arm/syscalls/recvmsg.S index 393667b..f8ad706 100644 --- a/libc/arch-arm/syscalls/recvmsg.S +++ b/libc/arch-arm/syscalls/recvmsg.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(recvmsg) mov ip, r7 diff --git a/libc/arch-arm/syscalls/removexattr.S b/libc/arch-arm/syscalls/removexattr.S index d1e9310..2da9be8 100644 --- a/libc/arch-arm/syscalls/removexattr.S +++ b/libc/arch-arm/syscalls/removexattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(removexattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/rename.S b/libc/arch-arm/syscalls/rename.S index 6e5de6c..654623c 100644 --- a/libc/arch-arm/syscalls/rename.S +++ b/libc/arch-arm/syscalls/rename.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(rename) mov ip, r7 diff --git a/libc/arch-arm/syscalls/renameat.S b/libc/arch-arm/syscalls/renameat.S index 082620c..9ec5937 100644 --- a/libc/arch-arm/syscalls/renameat.S +++ b/libc/arch-arm/syscalls/renameat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(renameat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/rmdir.S b/libc/arch-arm/syscalls/rmdir.S index 3627753..89985ec 100644 --- a/libc/arch-arm/syscalls/rmdir.S +++ b/libc/arch-arm/syscalls/rmdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(rmdir) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sched_get_priority_max.S b/libc/arch-arm/syscalls/sched_get_priority_max.S index d556b1b..d90afe7 100644 --- a/libc/arch-arm/syscalls/sched_get_priority_max.S +++ b/libc/arch-arm/syscalls/sched_get_priority_max.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sched_get_priority_max) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sched_get_priority_min.S b/libc/arch-arm/syscalls/sched_get_priority_min.S index 4df227d..4fbddfe 100644 --- a/libc/arch-arm/syscalls/sched_get_priority_min.S +++ b/libc/arch-arm/syscalls/sched_get_priority_min.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sched_get_priority_min) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sched_getparam.S b/libc/arch-arm/syscalls/sched_getparam.S index 2c2a5bc..1d9406a 100644 --- a/libc/arch-arm/syscalls/sched_getparam.S +++ b/libc/arch-arm/syscalls/sched_getparam.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sched_getparam) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sched_getscheduler.S b/libc/arch-arm/syscalls/sched_getscheduler.S index 4dcd72e..f34fb98 100644 --- a/libc/arch-arm/syscalls/sched_getscheduler.S +++ b/libc/arch-arm/syscalls/sched_getscheduler.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sched_getscheduler) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sched_rr_get_interval.S b/libc/arch-arm/syscalls/sched_rr_get_interval.S index fda67f5..cbd6288 100644 --- a/libc/arch-arm/syscalls/sched_rr_get_interval.S +++ b/libc/arch-arm/syscalls/sched_rr_get_interval.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sched_rr_get_interval) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sched_setaffinity.S b/libc/arch-arm/syscalls/sched_setaffinity.S index df29a99..2a718ea 100644 --- a/libc/arch-arm/syscalls/sched_setaffinity.S +++ b/libc/arch-arm/syscalls/sched_setaffinity.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sched_setaffinity) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sched_setparam.S b/libc/arch-arm/syscalls/sched_setparam.S index f6b95a0..e5b3fe6 100644 --- a/libc/arch-arm/syscalls/sched_setparam.S +++ b/libc/arch-arm/syscalls/sched_setparam.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sched_setparam) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sched_setscheduler.S b/libc/arch-arm/syscalls/sched_setscheduler.S index 0d1ab1f..287c08d 100644 --- a/libc/arch-arm/syscalls/sched_setscheduler.S +++ b/libc/arch-arm/syscalls/sched_setscheduler.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sched_setscheduler) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sched_yield.S b/libc/arch-arm/syscalls/sched_yield.S index a61dead..7652ff1 100644 --- a/libc/arch-arm/syscalls/sched_yield.S +++ b/libc/arch-arm/syscalls/sched_yield.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sched_yield) mov ip, r7 diff --git a/libc/arch-arm/syscalls/select.S b/libc/arch-arm/syscalls/select.S index 7b956d4..09fb52b 100644 --- a/libc/arch-arm/syscalls/select.S +++ b/libc/arch-arm/syscalls/select.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(select) mov ip, sp diff --git a/libc/arch-arm/syscalls/sendfile.S b/libc/arch-arm/syscalls/sendfile.S index 02db7f7..fb4b38c 100644 --- a/libc/arch-arm/syscalls/sendfile.S +++ b/libc/arch-arm/syscalls/sendfile.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sendfile) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sendmsg.S b/libc/arch-arm/syscalls/sendmsg.S index a269e78..21c0223 100644 --- a/libc/arch-arm/syscalls/sendmsg.S +++ b/libc/arch-arm/syscalls/sendmsg.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sendmsg) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sendto.S b/libc/arch-arm/syscalls/sendto.S index d8afde9..7f64293 100644 --- a/libc/arch-arm/syscalls/sendto.S +++ b/libc/arch-arm/syscalls/sendto.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sendto) mov ip, sp diff --git a/libc/arch-arm/syscalls/setgid.S b/libc/arch-arm/syscalls/setgid.S index e544fd7..0084688 100644 --- a/libc/arch-arm/syscalls/setgid.S +++ b/libc/arch-arm/syscalls/setgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(setgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setgroups.S b/libc/arch-arm/syscalls/setgroups.S index 7f73d85..3c1d94f 100644 --- a/libc/arch-arm/syscalls/setgroups.S +++ b/libc/arch-arm/syscalls/setgroups.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(setgroups) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setitimer.S b/libc/arch-arm/syscalls/setitimer.S index 7b835f7..9038878 100644 --- a/libc/arch-arm/syscalls/setitimer.S +++ b/libc/arch-arm/syscalls/setitimer.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(setitimer) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setpgid.S b/libc/arch-arm/syscalls/setpgid.S index 2fda4fe..bf639a2 100644 --- a/libc/arch-arm/syscalls/setpgid.S +++ b/libc/arch-arm/syscalls/setpgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(setpgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setpriority.S b/libc/arch-arm/syscalls/setpriority.S index fe0326b..b16158b 100644 --- a/libc/arch-arm/syscalls/setpriority.S +++ b/libc/arch-arm/syscalls/setpriority.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(setpriority) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setregid.S b/libc/arch-arm/syscalls/setregid.S index 48745b3..efc20a5 100644 --- a/libc/arch-arm/syscalls/setregid.S +++ b/libc/arch-arm/syscalls/setregid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(setregid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setresgid.S b/libc/arch-arm/syscalls/setresgid.S index 3e2d9fb..55c804d 100644 --- a/libc/arch-arm/syscalls/setresgid.S +++ b/libc/arch-arm/syscalls/setresgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(setresgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setrlimit.S b/libc/arch-arm/syscalls/setrlimit.S index 4804459..23974f7 100644 --- a/libc/arch-arm/syscalls/setrlimit.S +++ b/libc/arch-arm/syscalls/setrlimit.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(setrlimit) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setsid.S b/libc/arch-arm/syscalls/setsid.S index f383a38..5cd27c2 100644 --- a/libc/arch-arm/syscalls/setsid.S +++ b/libc/arch-arm/syscalls/setsid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(setsid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setsockopt.S b/libc/arch-arm/syscalls/setsockopt.S index ffb99f4..2d185d9 100644 --- a/libc/arch-arm/syscalls/setsockopt.S +++ b/libc/arch-arm/syscalls/setsockopt.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(setsockopt) mov ip, sp diff --git a/libc/arch-arm/syscalls/settimeofday.S b/libc/arch-arm/syscalls/settimeofday.S index abb2c01..f71f139 100644 --- a/libc/arch-arm/syscalls/settimeofday.S +++ b/libc/arch-arm/syscalls/settimeofday.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(settimeofday) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setxattr.S b/libc/arch-arm/syscalls/setxattr.S index e7422d9..702be89 100644 --- a/libc/arch-arm/syscalls/setxattr.S +++ b/libc/arch-arm/syscalls/setxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(setxattr) mov ip, sp diff --git a/libc/arch-arm/syscalls/shutdown.S b/libc/arch-arm/syscalls/shutdown.S index 4c82ee8..2f521dc 100644 --- a/libc/arch-arm/syscalls/shutdown.S +++ b/libc/arch-arm/syscalls/shutdown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(shutdown) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sigaction.S b/libc/arch-arm/syscalls/sigaction.S index e5ce66a..375ec04 100644 --- a/libc/arch-arm/syscalls/sigaction.S +++ b/libc/arch-arm/syscalls/sigaction.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sigaction) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sigaltstack.S b/libc/arch-arm/syscalls/sigaltstack.S index 13d69da..ca68004 100644 --- a/libc/arch-arm/syscalls/sigaltstack.S +++ b/libc/arch-arm/syscalls/sigaltstack.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sigaltstack) mov ip, r7 diff --git a/libc/arch-arm/syscalls/signalfd4.S b/libc/arch-arm/syscalls/signalfd4.S index c2d70ca..a3dce34 100644 --- a/libc/arch-arm/syscalls/signalfd4.S +++ b/libc/arch-arm/syscalls/signalfd4.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(signalfd4) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sigpending.S b/libc/arch-arm/syscalls/sigpending.S index 35c37c2..ba667a0 100644 --- a/libc/arch-arm/syscalls/sigpending.S +++ b/libc/arch-arm/syscalls/sigpending.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sigpending) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sigprocmask.S b/libc/arch-arm/syscalls/sigprocmask.S index 8f8e3dc..f935340 100644 --- a/libc/arch-arm/syscalls/sigprocmask.S +++ b/libc/arch-arm/syscalls/sigprocmask.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sigprocmask) mov ip, r7 diff --git a/libc/arch-arm/syscalls/socket.S b/libc/arch-arm/syscalls/socket.S index 5608597..3caae09 100644 --- a/libc/arch-arm/syscalls/socket.S +++ b/libc/arch-arm/syscalls/socket.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(socket) mov ip, r7 diff --git a/libc/arch-arm/syscalls/socketpair.S b/libc/arch-arm/syscalls/socketpair.S index da40cd6..0e4db77 100644 --- a/libc/arch-arm/syscalls/socketpair.S +++ b/libc/arch-arm/syscalls/socketpair.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(socketpair) mov ip, r7 diff --git a/libc/arch-arm/syscalls/stat.S b/libc/arch-arm/syscalls/stat.S index 0baade6..c5c310c 100644 --- a/libc/arch-arm/syscalls/stat.S +++ b/libc/arch-arm/syscalls/stat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(stat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/symlink.S b/libc/arch-arm/syscalls/symlink.S index e72df78..406d7b2 100644 --- a/libc/arch-arm/syscalls/symlink.S +++ b/libc/arch-arm/syscalls/symlink.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(symlink) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sync.S b/libc/arch-arm/syscalls/sync.S index cc8c7cd..3efe263 100644 --- a/libc/arch-arm/syscalls/sync.S +++ b/libc/arch-arm/syscalls/sync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sync) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sysinfo.S b/libc/arch-arm/syscalls/sysinfo.S index b02859e..056c03e 100644 --- a/libc/arch-arm/syscalls/sysinfo.S +++ b/libc/arch-arm/syscalls/sysinfo.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(sysinfo) mov ip, r7 diff --git a/libc/arch-arm/syscalls/times.S b/libc/arch-arm/syscalls/times.S index f5305c4..b60f7d2 100644 --- a/libc/arch-arm/syscalls/times.S +++ b/libc/arch-arm/syscalls/times.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(times) mov ip, r7 diff --git a/libc/arch-arm/syscalls/truncate.S b/libc/arch-arm/syscalls/truncate.S index 7885be7..697700c 100644 --- a/libc/arch-arm/syscalls/truncate.S +++ b/libc/arch-arm/syscalls/truncate.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(truncate) mov ip, r7 diff --git a/libc/arch-arm/syscalls/umask.S b/libc/arch-arm/syscalls/umask.S index 4e5ab81..df7544d 100644 --- a/libc/arch-arm/syscalls/umask.S +++ b/libc/arch-arm/syscalls/umask.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(umask) mov ip, r7 diff --git a/libc/arch-arm/syscalls/umount2.S b/libc/arch-arm/syscalls/umount2.S index ba98b98..60bf7b2 100644 --- a/libc/arch-arm/syscalls/umount2.S +++ b/libc/arch-arm/syscalls/umount2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(umount2) mov ip, r7 diff --git a/libc/arch-arm/syscalls/uname.S b/libc/arch-arm/syscalls/uname.S index 52736f2..5182c3f 100644 --- a/libc/arch-arm/syscalls/uname.S +++ b/libc/arch-arm/syscalls/uname.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(uname) mov ip, r7 diff --git a/libc/arch-arm/syscalls/unlink.S b/libc/arch-arm/syscalls/unlink.S index 2fb111b..1a74ee4 100644 --- a/libc/arch-arm/syscalls/unlink.S +++ b/libc/arch-arm/syscalls/unlink.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(unlink) mov ip, r7 diff --git a/libc/arch-arm/syscalls/unlinkat.S b/libc/arch-arm/syscalls/unlinkat.S index 888e893..66d734d 100644 --- a/libc/arch-arm/syscalls/unlinkat.S +++ b/libc/arch-arm/syscalls/unlinkat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(unlinkat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/unshare.S b/libc/arch-arm/syscalls/unshare.S index 682c77a..e5515c7 100644 --- a/libc/arch-arm/syscalls/unshare.S +++ b/libc/arch-arm/syscalls/unshare.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(unshare) mov ip, r7 diff --git a/libc/arch-arm/syscalls/utimensat.S b/libc/arch-arm/syscalls/utimensat.S index cc2266a..a13feac 100644 --- a/libc/arch-arm/syscalls/utimensat.S +++ b/libc/arch-arm/syscalls/utimensat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(utimensat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/utimes.S b/libc/arch-arm/syscalls/utimes.S index 4360125..65acb25 100644 --- a/libc/arch-arm/syscalls/utimes.S +++ b/libc/arch-arm/syscalls/utimes.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(utimes) mov ip, r7 diff --git a/libc/arch-arm/syscalls/vfork.S b/libc/arch-arm/syscalls/vfork.S index 23367f5..e8a1022 100644 --- a/libc/arch-arm/syscalls/vfork.S +++ b/libc/arch-arm/syscalls/vfork.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(vfork) mov ip, r7 diff --git a/libc/arch-arm/syscalls/wait4.S b/libc/arch-arm/syscalls/wait4.S index 7011099..f895acf 100644 --- a/libc/arch-arm/syscalls/wait4.S +++ b/libc/arch-arm/syscalls/wait4.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(wait4) mov ip, r7 diff --git a/libc/arch-arm/syscalls/write.S b/libc/arch-arm/syscalls/write.S index 974e28b..1302feb 100644 --- a/libc/arch-arm/syscalls/write.S +++ b/libc/arch-arm/syscalls/write.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(write) mov ip, r7 diff --git a/libc/arch-arm/syscalls/writev.S b/libc/arch-arm/syscalls/writev.S index d52fc1b..bcf3521 100644 --- a/libc/arch-arm/syscalls/writev.S +++ b/libc/arch-arm/syscalls/writev.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(writev) mov ip, r7 diff --git a/libc/include/sys/linux-syscalls.h b/libc/include/sys/linux-syscalls.h index 2e6421f..a11a9a3 100644 --- a/libc/include/sys/linux-syscalls.h +++ b/libc/include/sys/linux-syscalls.h @@ -3,9 +3,7 @@ #define _BIONIC_LINUX_SYSCALLS_H_ #if !defined __ASM_ARM_UNISTD_H && !defined __ASM_I386_UNISTD_H && !defined __ASM_MIPS_UNISTD_H -#if defined __arm__ && !defined __ARM_EABI__ && !defined __thumb__ - # define __NR_SYSCALL_BASE 0x900000 -#elif defined(__mips__) +#if defined(__mips__) # define __NR_SYSCALL_BASE 4000 #else # define __NR_SYSCALL_BASE 0 @@ -212,8 +210,8 @@ #define __NR_inotify_rm_watch (__NR_SYSCALL_BASE + 318) #define __NR_poll (__NR_SYSCALL_BASE + 168) #define __NR_eventfd2 (__NR_SYSCALL_BASE + 356) -#define __NR_ARM_set_tls (__NR_SYSCALL_BASE + 983045) -#define __NR_ARM_cacheflush (__NR_SYSCALL_BASE + 983042) +#define __ARM_NR_set_tls (__NR_SYSCALL_BASE + 983045) +#define __ARM_NR_cacheflush (__NR_SYSCALL_BASE + 983042) #endif #ifdef __i386__ diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py index 26cf3a5..2e87e03 100755 --- a/libc/tools/gensyscalls.py +++ b/libc/tools/gensyscalls.py @@ -76,9 +76,9 @@ END(%(fname)s) # arm_header = """/* autogenerated by gensyscalls.py */ +#include <asm/unistd.h> #include <linux/err.h> #include <machine/asm.h> -#include <sys/linux-syscalls.h> ENTRY(%(fname)s) """ @@ -191,6 +191,14 @@ def count_generic_param_registers(params): count += 1 return count +# This lets us support regular system calls like __NR_write and also weird +# ones like __ARM_NR_cacheflush, where the NR doesn't come at the start. +def make__NR_name(name): + if name.startswith("__"): + return name + else: + return "__NR_%s" % (name) + class State: def __init__(self): self.old_stubs = [] @@ -286,25 +294,25 @@ class State: if t["common"] >= 0 or t["armid"] >= 0: num_regs = count_arm_param_registers(syscall_params) - t["asm-arm"] = self.arm_eabi_genstub(syscall_func,num_regs,"__NR_"+syscall_name) + t["asm-arm"] = self.arm_eabi_genstub(syscall_func, num_regs, make__NR_name(syscall_name)) if t["common"] >= 0 or t["x86id"] >= 0: num_regs = count_generic_param_registers(syscall_params) if t["cid"] >= 0: - t["asm-x86"] = self.x86_genstub_cid(syscall_func, num_regs, "__NR_"+syscall_name, t["cid"]) + t["asm-x86"] = self.x86_genstub_cid(syscall_func, num_regs, make__NR_name(syscall_name), t["cid"]) else: - t["asm-x86"] = self.x86_genstub(syscall_func, num_regs, "__NR_"+syscall_name) + t["asm-x86"] = self.x86_genstub(syscall_func, num_regs, make__NR_name(syscall_name)) elif t["cid"] >= 0: E("cid for dispatch syscalls is only supported for x86 in " "'%s'" % syscall_name) return if t["common"] >= 0 or t["mipsid"] >= 0: - t["asm-mips"] = self.mips_genstub(syscall_func,"__NR_"+syscall_name) + t["asm-mips"] = self.mips_genstub(syscall_func, make__NR_name(syscall_name)) def gen_NR_syscall(self, linux_fp, name, id): - linux_fp.write("#define __NR_%-25s (__NR_SYSCALL_BASE + %d)\n" % (name,id)) + linux_fp.write("#define %-30s (__NR_SYSCALL_BASE + %d)\n" % (make__NR_name(name),id)) def scan_linux_unistd_h(self, fp, path): @@ -315,10 +323,11 @@ class State: if m: syscalls.add(m.group(1)) for syscall in sorted(syscalls): - fp.write("#define SYS_%s __NR_%s\n" % (syscall, syscall)) + fp.write("#define SYS_%s %s\n" % (syscall, make__NR_name(syscall))) def gen_linux_syscalls_h(self): + # TODO: generate a separate file for each architecture, like glibc's bits/syscall.h. glibc_syscalls_h_path = "include/sys/glibc-syscalls.h" glibc_fp = create_file(glibc_syscalls_h_path) glibc_fp.write("/* Auto-generated by gensyscalls.py; do not edit. */\n") @@ -337,6 +346,7 @@ class State: glibc_fp.close() self.other_files.append(glibc_syscalls_h_path) + # TODO: stop generating this. it's useless. linux_syscalls_h_path = "include/sys/linux-syscalls.h" D("generating " + linux_syscalls_h_path) fp = create_file(linux_syscalls_h_path) @@ -344,9 +354,8 @@ class State: fp.write( "#ifndef _BIONIC_LINUX_SYSCALLS_H_\n" ) fp.write( "#define _BIONIC_LINUX_SYSCALLS_H_\n\n" ) fp.write( "#if !defined __ASM_ARM_UNISTD_H && !defined __ASM_I386_UNISTD_H && !defined __ASM_MIPS_UNISTD_H\n" ) - fp.write( "#if defined __arm__ && !defined __ARM_EABI__ && !defined __thumb__\n" ) - fp.write( " # define __NR_SYSCALL_BASE 0x900000\n" ) - fp.write( "#elif defined(__mips__)\n" ) + + fp.write( "#if defined(__mips__)\n" ) fp.write( " # define __NR_SYSCALL_BASE 4000\n" ) fp.write( "#else\n" ) fp.write( " # define __NR_SYSCALL_BASE 0\n" ) |