From cda62094ef6ab44d3804954fff75be1246725c36 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 22 Mar 2013 13:50:44 -0700 Subject: [PATCH] Use the correct names for the __ARM_NR_* syscalls. This lets us move all the ARM syscall stubs over to the kernel . Our generated is now unused, but I'll remove that in a later change. Change-Id: Ie5ff2cc4abce1938576af7cbaef615a79c7f310d --- libc/SYSCALLS.TXT | 4 +-- libc/arch-arm/syscalls/__brk.S | 2 +- libc/arch-arm/syscalls/__fcntl.S | 2 +- libc/arch-arm/syscalls/__fcntl64.S | 2 +- libc/arch-arm/syscalls/__fork.S | 2 +- libc/arch-arm/syscalls/__fstatfs64.S | 2 +- libc/arch-arm/syscalls/__getcpu.S | 2 +- libc/arch-arm/syscalls/__getcwd.S | 2 +- libc/arch-arm/syscalls/__getpriority.S | 2 +- libc/arch-arm/syscalls/__ioctl.S | 2 +- libc/arch-arm/syscalls/__llseek.S | 2 +- libc/arch-arm/syscalls/__mmap2.S | 2 +- libc/arch-arm/syscalls/__open.S | 2 +- libc/arch-arm/syscalls/__openat.S | 2 +- libc/arch-arm/syscalls/__ptrace.S | 2 +- libc/arch-arm/syscalls/__reboot.S | 2 +- libc/arch-arm/syscalls/__rt_sigaction.S | 2 +- libc/arch-arm/syscalls/__rt_sigprocmask.S | 2 +- libc/arch-arm/syscalls/__rt_sigtimedwait.S | 2 +- libc/arch-arm/syscalls/__sched_getaffinity.S | 2 +- libc/arch-arm/syscalls/__set_tls.S | 4 +-- libc/arch-arm/syscalls/__setresuid.S | 2 +- libc/arch-arm/syscalls/__setreuid.S | 2 +- libc/arch-arm/syscalls/__setuid.S | 2 +- libc/arch-arm/syscalls/__sigsuspend.S | 2 +- libc/arch-arm/syscalls/__statfs64.S | 2 +- libc/arch-arm/syscalls/__sys_clone.S | 2 +- libc/arch-arm/syscalls/__syslog.S | 2 +- libc/arch-arm/syscalls/__timer_create.S | 2 +- libc/arch-arm/syscalls/__timer_delete.S | 2 +- libc/arch-arm/syscalls/__timer_getoverrun.S | 2 +- libc/arch-arm/syscalls/__timer_gettime.S | 2 +- libc/arch-arm/syscalls/__timer_settime.S | 2 +- libc/arch-arm/syscalls/__waitid.S | 2 +- libc/arch-arm/syscalls/_exit.S | 2 +- libc/arch-arm/syscalls/_exit_thread.S | 2 +- libc/arch-arm/syscalls/accept.S | 2 +- libc/arch-arm/syscalls/access.S | 2 +- libc/arch-arm/syscalls/acct.S | 2 +- libc/arch-arm/syscalls/bind.S | 2 +- libc/arch-arm/syscalls/cacheflush.S | 4 +-- libc/arch-arm/syscalls/capget.S | 2 +- libc/arch-arm/syscalls/capset.S | 2 +- libc/arch-arm/syscalls/chdir.S | 2 +- libc/arch-arm/syscalls/chmod.S | 2 +- libc/arch-arm/syscalls/chown.S | 2 +- libc/arch-arm/syscalls/chroot.S | 2 +- libc/arch-arm/syscalls/clock_getres.S | 2 +- libc/arch-arm/syscalls/clock_gettime.S | 2 +- libc/arch-arm/syscalls/clock_nanosleep.S | 2 +- libc/arch-arm/syscalls/clock_settime.S | 2 +- libc/arch-arm/syscalls/close.S | 2 +- libc/arch-arm/syscalls/connect.S | 2 +- libc/arch-arm/syscalls/delete_module.S | 2 +- libc/arch-arm/syscalls/dup.S | 2 +- libc/arch-arm/syscalls/dup2.S | 2 +- libc/arch-arm/syscalls/epoll_create.S | 2 +- libc/arch-arm/syscalls/epoll_ctl.S | 2 +- libc/arch-arm/syscalls/epoll_wait.S | 2 +- libc/arch-arm/syscalls/eventfd.S | 2 +- libc/arch-arm/syscalls/execve.S | 2 +- libc/arch-arm/syscalls/faccessat.S | 2 +- libc/arch-arm/syscalls/fchdir.S | 2 +- libc/arch-arm/syscalls/fchmod.S | 2 +- libc/arch-arm/syscalls/fchmodat.S | 2 +- libc/arch-arm/syscalls/fchown.S | 2 +- libc/arch-arm/syscalls/fchownat.S | 2 +- libc/arch-arm/syscalls/fdatasync.S | 2 +- libc/arch-arm/syscalls/fgetxattr.S | 2 +- libc/arch-arm/syscalls/flistxattr.S | 2 +- libc/arch-arm/syscalls/flock.S | 2 +- libc/arch-arm/syscalls/fremovexattr.S | 2 +- libc/arch-arm/syscalls/fsetxattr.S | 2 +- libc/arch-arm/syscalls/fstat.S | 2 +- libc/arch-arm/syscalls/fstatat.S | 2 +- libc/arch-arm/syscalls/fsync.S | 2 +- libc/arch-arm/syscalls/ftruncate.S | 2 +- libc/arch-arm/syscalls/ftruncate64.S | 2 +- libc/arch-arm/syscalls/futex.S | 2 +- libc/arch-arm/syscalls/getdents.S | 2 +- libc/arch-arm/syscalls/getegid.S | 2 +- libc/arch-arm/syscalls/geteuid.S | 2 +- libc/arch-arm/syscalls/getgid.S | 2 +- libc/arch-arm/syscalls/getgroups.S | 2 +- libc/arch-arm/syscalls/getitimer.S | 2 +- libc/arch-arm/syscalls/getpeername.S | 2 +- libc/arch-arm/syscalls/getpgid.S | 2 +- libc/arch-arm/syscalls/getpid.S | 2 +- libc/arch-arm/syscalls/getppid.S | 2 +- libc/arch-arm/syscalls/getresgid.S | 2 +- libc/arch-arm/syscalls/getresuid.S | 2 +- libc/arch-arm/syscalls/getrlimit.S | 2 +- libc/arch-arm/syscalls/getrusage.S | 2 +- libc/arch-arm/syscalls/getsid.S | 2 +- libc/arch-arm/syscalls/getsockname.S | 2 +- libc/arch-arm/syscalls/getsockopt.S | 2 +- libc/arch-arm/syscalls/gettid.S | 2 +- libc/arch-arm/syscalls/gettimeofday.S | 2 +- libc/arch-arm/syscalls/getuid.S | 2 +- libc/arch-arm/syscalls/getxattr.S | 2 +- libc/arch-arm/syscalls/init_module.S | 2 +- libc/arch-arm/syscalls/inotify_add_watch.S | 2 +- libc/arch-arm/syscalls/inotify_init.S | 2 +- libc/arch-arm/syscalls/inotify_rm_watch.S | 2 +- libc/arch-arm/syscalls/ioprio_get.S | 2 +- libc/arch-arm/syscalls/ioprio_set.S | 2 +- libc/arch-arm/syscalls/klogctl.S | 2 +- libc/arch-arm/syscalls/lchown.S | 2 +- libc/arch-arm/syscalls/lgetxattr.S | 2 +- libc/arch-arm/syscalls/link.S | 2 +- libc/arch-arm/syscalls/listen.S | 2 +- libc/arch-arm/syscalls/listxattr.S | 2 +- libc/arch-arm/syscalls/llistxattr.S | 2 +- libc/arch-arm/syscalls/lremovexattr.S | 2 +- libc/arch-arm/syscalls/lseek.S | 2 +- libc/arch-arm/syscalls/lsetxattr.S | 2 +- libc/arch-arm/syscalls/lstat.S | 2 +- libc/arch-arm/syscalls/madvise.S | 2 +- libc/arch-arm/syscalls/mincore.S | 2 +- libc/arch-arm/syscalls/mkdir.S | 2 +- libc/arch-arm/syscalls/mkdirat.S | 2 +- libc/arch-arm/syscalls/mknod.S | 2 +- libc/arch-arm/syscalls/mlock.S | 2 +- libc/arch-arm/syscalls/mlockall.S | 2 +- libc/arch-arm/syscalls/mount.S | 2 +- libc/arch-arm/syscalls/mprotect.S | 2 +- libc/arch-arm/syscalls/mremap.S | 2 +- libc/arch-arm/syscalls/msync.S | 2 +- libc/arch-arm/syscalls/munlock.S | 2 +- libc/arch-arm/syscalls/munlockall.S | 2 +- libc/arch-arm/syscalls/munmap.S | 2 +- libc/arch-arm/syscalls/nanosleep.S | 2 +- libc/arch-arm/syscalls/pause.S | 2 +- libc/arch-arm/syscalls/perf_event_open.S | 2 +- libc/arch-arm/syscalls/personality.S | 2 +- libc/arch-arm/syscalls/pipe.S | 2 +- libc/arch-arm/syscalls/pipe2.S | 2 +- libc/arch-arm/syscalls/poll.S | 2 +- libc/arch-arm/syscalls/prctl.S | 2 +- libc/arch-arm/syscalls/pread64.S | 2 +- libc/arch-arm/syscalls/pwrite64.S | 2 +- libc/arch-arm/syscalls/read.S | 2 +- libc/arch-arm/syscalls/readahead.S | 2 +- libc/arch-arm/syscalls/readlink.S | 2 +- libc/arch-arm/syscalls/readv.S | 2 +- libc/arch-arm/syscalls/recvfrom.S | 2 +- libc/arch-arm/syscalls/recvmsg.S | 2 +- libc/arch-arm/syscalls/removexattr.S | 2 +- libc/arch-arm/syscalls/rename.S | 2 +- libc/arch-arm/syscalls/renameat.S | 2 +- libc/arch-arm/syscalls/rmdir.S | 2 +- .../syscalls/sched_get_priority_max.S | 2 +- .../syscalls/sched_get_priority_min.S | 2 +- libc/arch-arm/syscalls/sched_getparam.S | 2 +- libc/arch-arm/syscalls/sched_getscheduler.S | 2 +- .../arch-arm/syscalls/sched_rr_get_interval.S | 2 +- libc/arch-arm/syscalls/sched_setaffinity.S | 2 +- libc/arch-arm/syscalls/sched_setparam.S | 2 +- libc/arch-arm/syscalls/sched_setscheduler.S | 2 +- libc/arch-arm/syscalls/sched_yield.S | 2 +- libc/arch-arm/syscalls/select.S | 2 +- libc/arch-arm/syscalls/sendfile.S | 2 +- libc/arch-arm/syscalls/sendmsg.S | 2 +- libc/arch-arm/syscalls/sendto.S | 2 +- libc/arch-arm/syscalls/setgid.S | 2 +- libc/arch-arm/syscalls/setgroups.S | 2 +- libc/arch-arm/syscalls/setitimer.S | 2 +- libc/arch-arm/syscalls/setpgid.S | 2 +- libc/arch-arm/syscalls/setpriority.S | 2 +- libc/arch-arm/syscalls/setregid.S | 2 +- libc/arch-arm/syscalls/setresgid.S | 2 +- libc/arch-arm/syscalls/setrlimit.S | 2 +- libc/arch-arm/syscalls/setsid.S | 2 +- libc/arch-arm/syscalls/setsockopt.S | 2 +- libc/arch-arm/syscalls/settimeofday.S | 2 +- libc/arch-arm/syscalls/setxattr.S | 2 +- libc/arch-arm/syscalls/shutdown.S | 2 +- libc/arch-arm/syscalls/sigaction.S | 2 +- libc/arch-arm/syscalls/sigaltstack.S | 2 +- libc/arch-arm/syscalls/signalfd4.S | 2 +- libc/arch-arm/syscalls/sigpending.S | 2 +- libc/arch-arm/syscalls/sigprocmask.S | 2 +- libc/arch-arm/syscalls/socket.S | 2 +- libc/arch-arm/syscalls/socketpair.S | 2 +- libc/arch-arm/syscalls/stat.S | 2 +- libc/arch-arm/syscalls/symlink.S | 2 +- libc/arch-arm/syscalls/sync.S | 2 +- libc/arch-arm/syscalls/sysinfo.S | 2 +- libc/arch-arm/syscalls/times.S | 2 +- libc/arch-arm/syscalls/truncate.S | 2 +- libc/arch-arm/syscalls/umask.S | 2 +- libc/arch-arm/syscalls/umount2.S | 2 +- libc/arch-arm/syscalls/uname.S | 2 +- libc/arch-arm/syscalls/unlink.S | 2 +- libc/arch-arm/syscalls/unlinkat.S | 2 +- libc/arch-arm/syscalls/unshare.S | 2 +- libc/arch-arm/syscalls/utimensat.S | 2 +- libc/arch-arm/syscalls/utimes.S | 2 +- libc/arch-arm/syscalls/vfork.S | 2 +- libc/arch-arm/syscalls/wait4.S | 2 +- libc/arch-arm/syscalls/write.S | 2 +- libc/arch-arm/syscalls/writev.S | 2 +- libc/include/sys/linux-syscalls.h | 8 ++--- libc/tools/gensyscalls.py | 29 ++++++++++++------- 204 files changed, 227 insertions(+), 220 deletions(-) diff --git a/libc/SYSCALLS.TXT b/libc/SYSCALLS.TXT index ff4874e25..bf56ffe48 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 1cc6a172c..40fa49ad9 100644 --- a/libc/arch-arm/syscalls/__brk.S +++ b/libc/arch-arm/syscalls/__brk.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__brk) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__fcntl.S b/libc/arch-arm/syscalls/__fcntl.S index c15ad66e5..126fb0f9c 100644 --- a/libc/arch-arm/syscalls/__fcntl.S +++ b/libc/arch-arm/syscalls/__fcntl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__fcntl) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__fcntl64.S b/libc/arch-arm/syscalls/__fcntl64.S index ea47a601d..b7bc87b18 100644 --- a/libc/arch-arm/syscalls/__fcntl64.S +++ b/libc/arch-arm/syscalls/__fcntl64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__fcntl64) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__fork.S b/libc/arch-arm/syscalls/__fork.S index 279155aa7..3bb2fb80e 100644 --- a/libc/arch-arm/syscalls/__fork.S +++ b/libc/arch-arm/syscalls/__fork.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__fork) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__fstatfs64.S b/libc/arch-arm/syscalls/__fstatfs64.S index e8bc40886..afbad246c 100644 --- a/libc/arch-arm/syscalls/__fstatfs64.S +++ b/libc/arch-arm/syscalls/__fstatfs64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__fstatfs64) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__getcpu.S b/libc/arch-arm/syscalls/__getcpu.S index 83387d525..3b2cbd94e 100644 --- a/libc/arch-arm/syscalls/__getcpu.S +++ b/libc/arch-arm/syscalls/__getcpu.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__getcpu) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__getcwd.S b/libc/arch-arm/syscalls/__getcwd.S index 781f7d242..7783e03a2 100644 --- a/libc/arch-arm/syscalls/__getcwd.S +++ b/libc/arch-arm/syscalls/__getcwd.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__getcwd) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__getpriority.S b/libc/arch-arm/syscalls/__getpriority.S index 8c16fd85a..7a6ebec0d 100644 --- a/libc/arch-arm/syscalls/__getpriority.S +++ b/libc/arch-arm/syscalls/__getpriority.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__getpriority) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__ioctl.S b/libc/arch-arm/syscalls/__ioctl.S index 4aef590ba..ce20a7191 100644 --- a/libc/arch-arm/syscalls/__ioctl.S +++ b/libc/arch-arm/syscalls/__ioctl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__ioctl) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__llseek.S b/libc/arch-arm/syscalls/__llseek.S index 5891b136e..af3b38c8b 100644 --- a/libc/arch-arm/syscalls/__llseek.S +++ b/libc/arch-arm/syscalls/__llseek.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__llseek) mov ip, sp diff --git a/libc/arch-arm/syscalls/__mmap2.S b/libc/arch-arm/syscalls/__mmap2.S index dfaa0c4b5..c0c5b5579 100644 --- a/libc/arch-arm/syscalls/__mmap2.S +++ b/libc/arch-arm/syscalls/__mmap2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__mmap2) mov ip, sp diff --git a/libc/arch-arm/syscalls/__open.S b/libc/arch-arm/syscalls/__open.S index 9622a9185..a3f35be49 100644 --- a/libc/arch-arm/syscalls/__open.S +++ b/libc/arch-arm/syscalls/__open.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__open) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__openat.S b/libc/arch-arm/syscalls/__openat.S index 2c7b472a9..ea1a3a7c6 100644 --- a/libc/arch-arm/syscalls/__openat.S +++ b/libc/arch-arm/syscalls/__openat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__openat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__ptrace.S b/libc/arch-arm/syscalls/__ptrace.S index 984d499bf..b1abf870b 100644 --- a/libc/arch-arm/syscalls/__ptrace.S +++ b/libc/arch-arm/syscalls/__ptrace.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__ptrace) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__reboot.S b/libc/arch-arm/syscalls/__reboot.S index 8dd57d6b8..ad2bc8d87 100644 --- a/libc/arch-arm/syscalls/__reboot.S +++ b/libc/arch-arm/syscalls/__reboot.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__reboot) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__rt_sigaction.S b/libc/arch-arm/syscalls/__rt_sigaction.S index 7955e13b1..0a4be2a7e 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 #include #include -#include 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 c40ace8c9..0008da220 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 #include #include -#include 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 dfd23e8a8..02c4d18b2 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 #include #include -#include 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 5c241b5a9..c02f7fdf0 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 #include #include -#include 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 909c4b344..73142baa4 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 #include #include -#include 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 baa5f30fd..0fd8ae623 100644 --- a/libc/arch-arm/syscalls/__setresuid.S +++ b/libc/arch-arm/syscalls/__setresuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__setresuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__setreuid.S b/libc/arch-arm/syscalls/__setreuid.S index 660bd2e58..bc2fe84ed 100644 --- a/libc/arch-arm/syscalls/__setreuid.S +++ b/libc/arch-arm/syscalls/__setreuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__setreuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__setuid.S b/libc/arch-arm/syscalls/__setuid.S index fa9843238..f7b94da9a 100644 --- a/libc/arch-arm/syscalls/__setuid.S +++ b/libc/arch-arm/syscalls/__setuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__setuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__sigsuspend.S b/libc/arch-arm/syscalls/__sigsuspend.S index 0ef0c54d0..dc519d281 100644 --- a/libc/arch-arm/syscalls/__sigsuspend.S +++ b/libc/arch-arm/syscalls/__sigsuspend.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__sigsuspend) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__statfs64.S b/libc/arch-arm/syscalls/__statfs64.S index 577700a02..4ba592eca 100644 --- a/libc/arch-arm/syscalls/__statfs64.S +++ b/libc/arch-arm/syscalls/__statfs64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__statfs64) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__sys_clone.S b/libc/arch-arm/syscalls/__sys_clone.S index 56712e40e..7308c2126 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 #include #include -#include ENTRY(__sys_clone) mov ip, sp diff --git a/libc/arch-arm/syscalls/__syslog.S b/libc/arch-arm/syscalls/__syslog.S index dbd326851..158890333 100644 --- a/libc/arch-arm/syscalls/__syslog.S +++ b/libc/arch-arm/syscalls/__syslog.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__syslog) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__timer_create.S b/libc/arch-arm/syscalls/__timer_create.S index 6e5e64701..eedff93a0 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 #include #include -#include 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 ff6c76256..be29c404a 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 #include #include -#include 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 39b075525..11dd91cc0 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 #include #include -#include 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 d079ffdad..46f9a5e9c 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 #include #include -#include 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 663082b4c..f5ada7653 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 #include #include -#include ENTRY(__timer_settime) mov ip, r7 diff --git a/libc/arch-arm/syscalls/__waitid.S b/libc/arch-arm/syscalls/__waitid.S index d98d9d663..8db2812fb 100644 --- a/libc/arch-arm/syscalls/__waitid.S +++ b/libc/arch-arm/syscalls/__waitid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(__waitid) mov ip, sp diff --git a/libc/arch-arm/syscalls/_exit.S b/libc/arch-arm/syscalls/_exit.S index 9c3a9f8b5..069a4ec09 100644 --- a/libc/arch-arm/syscalls/_exit.S +++ b/libc/arch-arm/syscalls/_exit.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(_exit) mov ip, r7 diff --git a/libc/arch-arm/syscalls/_exit_thread.S b/libc/arch-arm/syscalls/_exit_thread.S index 4e017006d..b41d7b4c9 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 #include #include -#include ENTRY(_exit_thread) mov ip, r7 diff --git a/libc/arch-arm/syscalls/accept.S b/libc/arch-arm/syscalls/accept.S index 17e17effc..674bafed4 100644 --- a/libc/arch-arm/syscalls/accept.S +++ b/libc/arch-arm/syscalls/accept.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(accept) mov ip, r7 diff --git a/libc/arch-arm/syscalls/access.S b/libc/arch-arm/syscalls/access.S index 2604c0c84..6eaeca989 100644 --- a/libc/arch-arm/syscalls/access.S +++ b/libc/arch-arm/syscalls/access.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(access) mov ip, r7 diff --git a/libc/arch-arm/syscalls/acct.S b/libc/arch-arm/syscalls/acct.S index a8f7e5c85..27a4136d8 100644 --- a/libc/arch-arm/syscalls/acct.S +++ b/libc/arch-arm/syscalls/acct.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(acct) mov ip, r7 diff --git a/libc/arch-arm/syscalls/bind.S b/libc/arch-arm/syscalls/bind.S index 4e071eb2a..641405f28 100644 --- a/libc/arch-arm/syscalls/bind.S +++ b/libc/arch-arm/syscalls/bind.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(bind) mov ip, r7 diff --git a/libc/arch-arm/syscalls/cacheflush.S b/libc/arch-arm/syscalls/cacheflush.S index ed233e84d..35512746e 100644 --- a/libc/arch-arm/syscalls/cacheflush.S +++ b/libc/arch-arm/syscalls/cacheflush.S @@ -1,11 +1,11 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include 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 ac297ede8..08c0f3806 100644 --- a/libc/arch-arm/syscalls/capget.S +++ b/libc/arch-arm/syscalls/capget.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(capget) mov ip, r7 diff --git a/libc/arch-arm/syscalls/capset.S b/libc/arch-arm/syscalls/capset.S index c6b043fa8..90aa34332 100644 --- a/libc/arch-arm/syscalls/capset.S +++ b/libc/arch-arm/syscalls/capset.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(capset) mov ip, r7 diff --git a/libc/arch-arm/syscalls/chdir.S b/libc/arch-arm/syscalls/chdir.S index e59c3a011..e6485a67c 100644 --- a/libc/arch-arm/syscalls/chdir.S +++ b/libc/arch-arm/syscalls/chdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(chdir) mov ip, r7 diff --git a/libc/arch-arm/syscalls/chmod.S b/libc/arch-arm/syscalls/chmod.S index fb0489e4d..4b98ca6a7 100644 --- a/libc/arch-arm/syscalls/chmod.S +++ b/libc/arch-arm/syscalls/chmod.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(chmod) mov ip, r7 diff --git a/libc/arch-arm/syscalls/chown.S b/libc/arch-arm/syscalls/chown.S index 41c90a611..7838a2a7e 100644 --- a/libc/arch-arm/syscalls/chown.S +++ b/libc/arch-arm/syscalls/chown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(chown) mov ip, r7 diff --git a/libc/arch-arm/syscalls/chroot.S b/libc/arch-arm/syscalls/chroot.S index a68f5137b..f3534b670 100644 --- a/libc/arch-arm/syscalls/chroot.S +++ b/libc/arch-arm/syscalls/chroot.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(chroot) mov ip, r7 diff --git a/libc/arch-arm/syscalls/clock_getres.S b/libc/arch-arm/syscalls/clock_getres.S index bf6226cf0..81a2cdc50 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 #include #include -#include 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 35bfe0a24..e26d7009e 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 #include #include -#include 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 34137ab6b..dc0584fcc 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 #include #include -#include 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 94c0fbe04..2596f5306 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 #include #include -#include ENTRY(clock_settime) mov ip, r7 diff --git a/libc/arch-arm/syscalls/close.S b/libc/arch-arm/syscalls/close.S index f595025f7..222592936 100644 --- a/libc/arch-arm/syscalls/close.S +++ b/libc/arch-arm/syscalls/close.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(close) mov ip, r7 diff --git a/libc/arch-arm/syscalls/connect.S b/libc/arch-arm/syscalls/connect.S index 1e7b7f9ea..0d4682afd 100644 --- a/libc/arch-arm/syscalls/connect.S +++ b/libc/arch-arm/syscalls/connect.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(connect) mov ip, r7 diff --git a/libc/arch-arm/syscalls/delete_module.S b/libc/arch-arm/syscalls/delete_module.S index 122a3400f..345c012f4 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 #include #include -#include ENTRY(delete_module) mov ip, r7 diff --git a/libc/arch-arm/syscalls/dup.S b/libc/arch-arm/syscalls/dup.S index e8272a765..060d555a5 100644 --- a/libc/arch-arm/syscalls/dup.S +++ b/libc/arch-arm/syscalls/dup.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(dup) mov ip, r7 diff --git a/libc/arch-arm/syscalls/dup2.S b/libc/arch-arm/syscalls/dup2.S index b0ec0071e..94658600b 100644 --- a/libc/arch-arm/syscalls/dup2.S +++ b/libc/arch-arm/syscalls/dup2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(dup2) mov ip, r7 diff --git a/libc/arch-arm/syscalls/epoll_create.S b/libc/arch-arm/syscalls/epoll_create.S index bb8d288c5..b2894e601 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 #include #include -#include 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 255ac6f2d..7a56b9976 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 #include #include -#include 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 1ebeaabdc..11252be87 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 #include #include -#include ENTRY(epoll_wait) mov ip, r7 diff --git a/libc/arch-arm/syscalls/eventfd.S b/libc/arch-arm/syscalls/eventfd.S index 96ead5121..602aecdfc 100644 --- a/libc/arch-arm/syscalls/eventfd.S +++ b/libc/arch-arm/syscalls/eventfd.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(eventfd) mov ip, r7 diff --git a/libc/arch-arm/syscalls/execve.S b/libc/arch-arm/syscalls/execve.S index 5b74109a5..00de4b88d 100644 --- a/libc/arch-arm/syscalls/execve.S +++ b/libc/arch-arm/syscalls/execve.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(execve) mov ip, r7 diff --git a/libc/arch-arm/syscalls/faccessat.S b/libc/arch-arm/syscalls/faccessat.S index abc895f1b..567451edc 100644 --- a/libc/arch-arm/syscalls/faccessat.S +++ b/libc/arch-arm/syscalls/faccessat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(faccessat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fchdir.S b/libc/arch-arm/syscalls/fchdir.S index b52627aca..170324e75 100644 --- a/libc/arch-arm/syscalls/fchdir.S +++ b/libc/arch-arm/syscalls/fchdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fchdir) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fchmod.S b/libc/arch-arm/syscalls/fchmod.S index 6acd482f4..657a5659b 100644 --- a/libc/arch-arm/syscalls/fchmod.S +++ b/libc/arch-arm/syscalls/fchmod.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fchmod) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fchmodat.S b/libc/arch-arm/syscalls/fchmodat.S index 09a35690b..acdf6c8b7 100644 --- a/libc/arch-arm/syscalls/fchmodat.S +++ b/libc/arch-arm/syscalls/fchmodat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fchmodat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fchown.S b/libc/arch-arm/syscalls/fchown.S index 08d996ec5..6d75eb4b1 100644 --- a/libc/arch-arm/syscalls/fchown.S +++ b/libc/arch-arm/syscalls/fchown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fchown) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fchownat.S b/libc/arch-arm/syscalls/fchownat.S index f5061ec6b..31864ec74 100644 --- a/libc/arch-arm/syscalls/fchownat.S +++ b/libc/arch-arm/syscalls/fchownat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fchownat) mov ip, sp diff --git a/libc/arch-arm/syscalls/fdatasync.S b/libc/arch-arm/syscalls/fdatasync.S index b456fb473..62b89cc56 100644 --- a/libc/arch-arm/syscalls/fdatasync.S +++ b/libc/arch-arm/syscalls/fdatasync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fdatasync) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fgetxattr.S b/libc/arch-arm/syscalls/fgetxattr.S index 6cabf9f29..e8cc8d37c 100644 --- a/libc/arch-arm/syscalls/fgetxattr.S +++ b/libc/arch-arm/syscalls/fgetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fgetxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/flistxattr.S b/libc/arch-arm/syscalls/flistxattr.S index e912e91c4..fe8d87689 100644 --- a/libc/arch-arm/syscalls/flistxattr.S +++ b/libc/arch-arm/syscalls/flistxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(flistxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/flock.S b/libc/arch-arm/syscalls/flock.S index 572d28cc1..2e28b1b35 100644 --- a/libc/arch-arm/syscalls/flock.S +++ b/libc/arch-arm/syscalls/flock.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(flock) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fremovexattr.S b/libc/arch-arm/syscalls/fremovexattr.S index 485886de3..9fab8f382 100644 --- a/libc/arch-arm/syscalls/fremovexattr.S +++ b/libc/arch-arm/syscalls/fremovexattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fremovexattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fsetxattr.S b/libc/arch-arm/syscalls/fsetxattr.S index 29526e75e..87ed83515 100644 --- a/libc/arch-arm/syscalls/fsetxattr.S +++ b/libc/arch-arm/syscalls/fsetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fsetxattr) mov ip, sp diff --git a/libc/arch-arm/syscalls/fstat.S b/libc/arch-arm/syscalls/fstat.S index 903c5c22c..6ad558940 100644 --- a/libc/arch-arm/syscalls/fstat.S +++ b/libc/arch-arm/syscalls/fstat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fstat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fstatat.S b/libc/arch-arm/syscalls/fstatat.S index 030ee31f2..f4577dccf 100644 --- a/libc/arch-arm/syscalls/fstatat.S +++ b/libc/arch-arm/syscalls/fstatat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fstatat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/fsync.S b/libc/arch-arm/syscalls/fsync.S index 144b64bd8..54f7d578a 100644 --- a/libc/arch-arm/syscalls/fsync.S +++ b/libc/arch-arm/syscalls/fsync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(fsync) mov ip, r7 diff --git a/libc/arch-arm/syscalls/ftruncate.S b/libc/arch-arm/syscalls/ftruncate.S index e2c5e79cc..659bfbfe6 100644 --- a/libc/arch-arm/syscalls/ftruncate.S +++ b/libc/arch-arm/syscalls/ftruncate.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(ftruncate) mov ip, r7 diff --git a/libc/arch-arm/syscalls/ftruncate64.S b/libc/arch-arm/syscalls/ftruncate64.S index 19b02b685..123897dc3 100644 --- a/libc/arch-arm/syscalls/ftruncate64.S +++ b/libc/arch-arm/syscalls/ftruncate64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(ftruncate64) mov ip, r7 diff --git a/libc/arch-arm/syscalls/futex.S b/libc/arch-arm/syscalls/futex.S index b012cd7dd..27b15b794 100644 --- a/libc/arch-arm/syscalls/futex.S +++ b/libc/arch-arm/syscalls/futex.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(futex) mov ip, sp diff --git a/libc/arch-arm/syscalls/getdents.S b/libc/arch-arm/syscalls/getdents.S index cb240eadd..8506f2954 100644 --- a/libc/arch-arm/syscalls/getdents.S +++ b/libc/arch-arm/syscalls/getdents.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getdents) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getegid.S b/libc/arch-arm/syscalls/getegid.S index 4386c2efd..7dc524eb9 100644 --- a/libc/arch-arm/syscalls/getegid.S +++ b/libc/arch-arm/syscalls/getegid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getegid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/geteuid.S b/libc/arch-arm/syscalls/geteuid.S index afe99ee6e..64cc074b7 100644 --- a/libc/arch-arm/syscalls/geteuid.S +++ b/libc/arch-arm/syscalls/geteuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(geteuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getgid.S b/libc/arch-arm/syscalls/getgid.S index f9b6c9ed5..a56a16082 100644 --- a/libc/arch-arm/syscalls/getgid.S +++ b/libc/arch-arm/syscalls/getgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getgroups.S b/libc/arch-arm/syscalls/getgroups.S index ab8e8a1f9..3ed236d4b 100644 --- a/libc/arch-arm/syscalls/getgroups.S +++ b/libc/arch-arm/syscalls/getgroups.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getgroups) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getitimer.S b/libc/arch-arm/syscalls/getitimer.S index 6300cdb88..091450ff5 100644 --- a/libc/arch-arm/syscalls/getitimer.S +++ b/libc/arch-arm/syscalls/getitimer.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getitimer) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getpeername.S b/libc/arch-arm/syscalls/getpeername.S index f031470cf..8b956bf2b 100644 --- a/libc/arch-arm/syscalls/getpeername.S +++ b/libc/arch-arm/syscalls/getpeername.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getpeername) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getpgid.S b/libc/arch-arm/syscalls/getpgid.S index 60e4589ff..cbc510fcc 100644 --- a/libc/arch-arm/syscalls/getpgid.S +++ b/libc/arch-arm/syscalls/getpgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getpgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getpid.S b/libc/arch-arm/syscalls/getpid.S index ff8eebb63..ecb125bba 100644 --- a/libc/arch-arm/syscalls/getpid.S +++ b/libc/arch-arm/syscalls/getpid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getpid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getppid.S b/libc/arch-arm/syscalls/getppid.S index b770e8dfa..4a775e789 100644 --- a/libc/arch-arm/syscalls/getppid.S +++ b/libc/arch-arm/syscalls/getppid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getppid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getresgid.S b/libc/arch-arm/syscalls/getresgid.S index 2e7949a4a..e574ef302 100644 --- a/libc/arch-arm/syscalls/getresgid.S +++ b/libc/arch-arm/syscalls/getresgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getresgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getresuid.S b/libc/arch-arm/syscalls/getresuid.S index e006c8bde..9c8b0bfd9 100644 --- a/libc/arch-arm/syscalls/getresuid.S +++ b/libc/arch-arm/syscalls/getresuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getresuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getrlimit.S b/libc/arch-arm/syscalls/getrlimit.S index 73efb8da6..21380f934 100644 --- a/libc/arch-arm/syscalls/getrlimit.S +++ b/libc/arch-arm/syscalls/getrlimit.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getrlimit) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getrusage.S b/libc/arch-arm/syscalls/getrusage.S index 56596127c..131c58f82 100644 --- a/libc/arch-arm/syscalls/getrusage.S +++ b/libc/arch-arm/syscalls/getrusage.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getrusage) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getsid.S b/libc/arch-arm/syscalls/getsid.S index 3e63e5099..e5ffd5f74 100644 --- a/libc/arch-arm/syscalls/getsid.S +++ b/libc/arch-arm/syscalls/getsid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getsid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getsockname.S b/libc/arch-arm/syscalls/getsockname.S index 08d86a9a9..ec0f9306b 100644 --- a/libc/arch-arm/syscalls/getsockname.S +++ b/libc/arch-arm/syscalls/getsockname.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getsockname) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getsockopt.S b/libc/arch-arm/syscalls/getsockopt.S index 5a18c52be..95f79affc 100644 --- a/libc/arch-arm/syscalls/getsockopt.S +++ b/libc/arch-arm/syscalls/getsockopt.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getsockopt) mov ip, sp diff --git a/libc/arch-arm/syscalls/gettid.S b/libc/arch-arm/syscalls/gettid.S index 36e015a65..b8dd120d5 100644 --- a/libc/arch-arm/syscalls/gettid.S +++ b/libc/arch-arm/syscalls/gettid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(gettid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/gettimeofday.S b/libc/arch-arm/syscalls/gettimeofday.S index d880224b2..9f43b98ae 100644 --- a/libc/arch-arm/syscalls/gettimeofday.S +++ b/libc/arch-arm/syscalls/gettimeofday.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(gettimeofday) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getuid.S b/libc/arch-arm/syscalls/getuid.S index 27ee92308..02fb6fc9a 100644 --- a/libc/arch-arm/syscalls/getuid.S +++ b/libc/arch-arm/syscalls/getuid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getuid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/getxattr.S b/libc/arch-arm/syscalls/getxattr.S index c6c74418f..354d948f5 100644 --- a/libc/arch-arm/syscalls/getxattr.S +++ b/libc/arch-arm/syscalls/getxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(getxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/init_module.S b/libc/arch-arm/syscalls/init_module.S index a18762939..c72c34cba 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 #include #include -#include 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 48eb8d838..c9946773f 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 #include #include -#include 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 9a11610ff..3713303c5 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 #include #include -#include 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 2d96f62e2..d740de0a3 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 #include #include -#include 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 58c6909d7..bb1dd1a4d 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 #include #include -#include 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 3afcfa188..064a399a6 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 #include #include -#include ENTRY(ioprio_set) mov ip, r7 diff --git a/libc/arch-arm/syscalls/klogctl.S b/libc/arch-arm/syscalls/klogctl.S index d3db0d212..f97cf1a53 100644 --- a/libc/arch-arm/syscalls/klogctl.S +++ b/libc/arch-arm/syscalls/klogctl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(klogctl) mov ip, r7 diff --git a/libc/arch-arm/syscalls/lchown.S b/libc/arch-arm/syscalls/lchown.S index 1b0ab5346..e5738b50e 100644 --- a/libc/arch-arm/syscalls/lchown.S +++ b/libc/arch-arm/syscalls/lchown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lchown) mov ip, r7 diff --git a/libc/arch-arm/syscalls/lgetxattr.S b/libc/arch-arm/syscalls/lgetxattr.S index a9a04274c..7af744eeb 100644 --- a/libc/arch-arm/syscalls/lgetxattr.S +++ b/libc/arch-arm/syscalls/lgetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lgetxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/link.S b/libc/arch-arm/syscalls/link.S index 6bcaa7723..e074ed067 100644 --- a/libc/arch-arm/syscalls/link.S +++ b/libc/arch-arm/syscalls/link.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(link) mov ip, r7 diff --git a/libc/arch-arm/syscalls/listen.S b/libc/arch-arm/syscalls/listen.S index 33da94cce..21f42710c 100644 --- a/libc/arch-arm/syscalls/listen.S +++ b/libc/arch-arm/syscalls/listen.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(listen) mov ip, r7 diff --git a/libc/arch-arm/syscalls/listxattr.S b/libc/arch-arm/syscalls/listxattr.S index 33af17bf8..9094a6ca1 100644 --- a/libc/arch-arm/syscalls/listxattr.S +++ b/libc/arch-arm/syscalls/listxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(listxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/llistxattr.S b/libc/arch-arm/syscalls/llistxattr.S index 332af2ad2..72d790f6f 100644 --- a/libc/arch-arm/syscalls/llistxattr.S +++ b/libc/arch-arm/syscalls/llistxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(llistxattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/lremovexattr.S b/libc/arch-arm/syscalls/lremovexattr.S index 57ae42439..729c4fa3c 100644 --- a/libc/arch-arm/syscalls/lremovexattr.S +++ b/libc/arch-arm/syscalls/lremovexattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lremovexattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/lseek.S b/libc/arch-arm/syscalls/lseek.S index 0b9dda27c..91f802993 100644 --- a/libc/arch-arm/syscalls/lseek.S +++ b/libc/arch-arm/syscalls/lseek.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lseek) mov ip, r7 diff --git a/libc/arch-arm/syscalls/lsetxattr.S b/libc/arch-arm/syscalls/lsetxattr.S index af5dce866..c0177ee9c 100644 --- a/libc/arch-arm/syscalls/lsetxattr.S +++ b/libc/arch-arm/syscalls/lsetxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lsetxattr) mov ip, sp diff --git a/libc/arch-arm/syscalls/lstat.S b/libc/arch-arm/syscalls/lstat.S index f90ab738d..be9ebaa42 100644 --- a/libc/arch-arm/syscalls/lstat.S +++ b/libc/arch-arm/syscalls/lstat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(lstat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/madvise.S b/libc/arch-arm/syscalls/madvise.S index 33f1b3d3e..d7f77760b 100644 --- a/libc/arch-arm/syscalls/madvise.S +++ b/libc/arch-arm/syscalls/madvise.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(madvise) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mincore.S b/libc/arch-arm/syscalls/mincore.S index 921ad007c..744b1e428 100644 --- a/libc/arch-arm/syscalls/mincore.S +++ b/libc/arch-arm/syscalls/mincore.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mincore) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mkdir.S b/libc/arch-arm/syscalls/mkdir.S index d71f9c27a..416331877 100644 --- a/libc/arch-arm/syscalls/mkdir.S +++ b/libc/arch-arm/syscalls/mkdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mkdir) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mkdirat.S b/libc/arch-arm/syscalls/mkdirat.S index ac12d8f57..da583caac 100644 --- a/libc/arch-arm/syscalls/mkdirat.S +++ b/libc/arch-arm/syscalls/mkdirat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mkdirat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mknod.S b/libc/arch-arm/syscalls/mknod.S index 077af76d2..15716d342 100644 --- a/libc/arch-arm/syscalls/mknod.S +++ b/libc/arch-arm/syscalls/mknod.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mknod) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mlock.S b/libc/arch-arm/syscalls/mlock.S index edc6077a3..d00ea01a6 100644 --- a/libc/arch-arm/syscalls/mlock.S +++ b/libc/arch-arm/syscalls/mlock.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mlock) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mlockall.S b/libc/arch-arm/syscalls/mlockall.S index 42285bbda..44940f15c 100644 --- a/libc/arch-arm/syscalls/mlockall.S +++ b/libc/arch-arm/syscalls/mlockall.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mlockall) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mount.S b/libc/arch-arm/syscalls/mount.S index b1f41007d..b2ef6f81a 100644 --- a/libc/arch-arm/syscalls/mount.S +++ b/libc/arch-arm/syscalls/mount.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mount) mov ip, sp diff --git a/libc/arch-arm/syscalls/mprotect.S b/libc/arch-arm/syscalls/mprotect.S index 47692a109..e5258fde0 100644 --- a/libc/arch-arm/syscalls/mprotect.S +++ b/libc/arch-arm/syscalls/mprotect.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mprotect) mov ip, r7 diff --git a/libc/arch-arm/syscalls/mremap.S b/libc/arch-arm/syscalls/mremap.S index 3b6a75526..04ba2bce9 100644 --- a/libc/arch-arm/syscalls/mremap.S +++ b/libc/arch-arm/syscalls/mremap.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(mremap) mov ip, r7 diff --git a/libc/arch-arm/syscalls/msync.S b/libc/arch-arm/syscalls/msync.S index 6100d7a14..bcd892dca 100644 --- a/libc/arch-arm/syscalls/msync.S +++ b/libc/arch-arm/syscalls/msync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(msync) mov ip, r7 diff --git a/libc/arch-arm/syscalls/munlock.S b/libc/arch-arm/syscalls/munlock.S index 52e4f935a..deed69740 100644 --- a/libc/arch-arm/syscalls/munlock.S +++ b/libc/arch-arm/syscalls/munlock.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(munlock) mov ip, r7 diff --git a/libc/arch-arm/syscalls/munlockall.S b/libc/arch-arm/syscalls/munlockall.S index 6c250e193..18881f4a3 100644 --- a/libc/arch-arm/syscalls/munlockall.S +++ b/libc/arch-arm/syscalls/munlockall.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(munlockall) mov ip, r7 diff --git a/libc/arch-arm/syscalls/munmap.S b/libc/arch-arm/syscalls/munmap.S index d07a849c5..3f52da44f 100644 --- a/libc/arch-arm/syscalls/munmap.S +++ b/libc/arch-arm/syscalls/munmap.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(munmap) mov ip, r7 diff --git a/libc/arch-arm/syscalls/nanosleep.S b/libc/arch-arm/syscalls/nanosleep.S index 3bd69a9bb..de826eab0 100644 --- a/libc/arch-arm/syscalls/nanosleep.S +++ b/libc/arch-arm/syscalls/nanosleep.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(nanosleep) mov ip, r7 diff --git a/libc/arch-arm/syscalls/pause.S b/libc/arch-arm/syscalls/pause.S index 7714fd1ff..de54834ce 100644 --- a/libc/arch-arm/syscalls/pause.S +++ b/libc/arch-arm/syscalls/pause.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include 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 0d055876c..7b997e6c5 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 #include #include -#include ENTRY(perf_event_open) mov ip, sp diff --git a/libc/arch-arm/syscalls/personality.S b/libc/arch-arm/syscalls/personality.S index f506ed8d9..e4e8e408f 100644 --- a/libc/arch-arm/syscalls/personality.S +++ b/libc/arch-arm/syscalls/personality.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(personality) mov ip, r7 diff --git a/libc/arch-arm/syscalls/pipe.S b/libc/arch-arm/syscalls/pipe.S index 5a6034c42..62cc9c76c 100644 --- a/libc/arch-arm/syscalls/pipe.S +++ b/libc/arch-arm/syscalls/pipe.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(pipe) mov ip, r7 diff --git a/libc/arch-arm/syscalls/pipe2.S b/libc/arch-arm/syscalls/pipe2.S index a586f495b..bb7228990 100644 --- a/libc/arch-arm/syscalls/pipe2.S +++ b/libc/arch-arm/syscalls/pipe2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(pipe2) mov ip, r7 diff --git a/libc/arch-arm/syscalls/poll.S b/libc/arch-arm/syscalls/poll.S index 23cb0a8e4..71d4c814c 100644 --- a/libc/arch-arm/syscalls/poll.S +++ b/libc/arch-arm/syscalls/poll.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(poll) mov ip, r7 diff --git a/libc/arch-arm/syscalls/prctl.S b/libc/arch-arm/syscalls/prctl.S index c650752fc..ae32ba5ed 100644 --- a/libc/arch-arm/syscalls/prctl.S +++ b/libc/arch-arm/syscalls/prctl.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(prctl) mov ip, sp diff --git a/libc/arch-arm/syscalls/pread64.S b/libc/arch-arm/syscalls/pread64.S index 04d36f978..962669542 100644 --- a/libc/arch-arm/syscalls/pread64.S +++ b/libc/arch-arm/syscalls/pread64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(pread64) mov ip, sp diff --git a/libc/arch-arm/syscalls/pwrite64.S b/libc/arch-arm/syscalls/pwrite64.S index 8a812b336..e7dc09cca 100644 --- a/libc/arch-arm/syscalls/pwrite64.S +++ b/libc/arch-arm/syscalls/pwrite64.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(pwrite64) mov ip, sp diff --git a/libc/arch-arm/syscalls/read.S b/libc/arch-arm/syscalls/read.S index d5e8d081a..2b12305fa 100644 --- a/libc/arch-arm/syscalls/read.S +++ b/libc/arch-arm/syscalls/read.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(read) mov ip, r7 diff --git a/libc/arch-arm/syscalls/readahead.S b/libc/arch-arm/syscalls/readahead.S index 90603a4bd..7ed2ddac5 100644 --- a/libc/arch-arm/syscalls/readahead.S +++ b/libc/arch-arm/syscalls/readahead.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(readahead) mov ip, sp diff --git a/libc/arch-arm/syscalls/readlink.S b/libc/arch-arm/syscalls/readlink.S index c223e1cda..1085db625 100644 --- a/libc/arch-arm/syscalls/readlink.S +++ b/libc/arch-arm/syscalls/readlink.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(readlink) mov ip, r7 diff --git a/libc/arch-arm/syscalls/readv.S b/libc/arch-arm/syscalls/readv.S index d85c90c31..7857c43c6 100644 --- a/libc/arch-arm/syscalls/readv.S +++ b/libc/arch-arm/syscalls/readv.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(readv) mov ip, r7 diff --git a/libc/arch-arm/syscalls/recvfrom.S b/libc/arch-arm/syscalls/recvfrom.S index c43d2c317..c105a4ab4 100644 --- a/libc/arch-arm/syscalls/recvfrom.S +++ b/libc/arch-arm/syscalls/recvfrom.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(recvfrom) mov ip, sp diff --git a/libc/arch-arm/syscalls/recvmsg.S b/libc/arch-arm/syscalls/recvmsg.S index 393667b5c..f8ad7062c 100644 --- a/libc/arch-arm/syscalls/recvmsg.S +++ b/libc/arch-arm/syscalls/recvmsg.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(recvmsg) mov ip, r7 diff --git a/libc/arch-arm/syscalls/removexattr.S b/libc/arch-arm/syscalls/removexattr.S index d1e9310fa..2da9be8e6 100644 --- a/libc/arch-arm/syscalls/removexattr.S +++ b/libc/arch-arm/syscalls/removexattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(removexattr) mov ip, r7 diff --git a/libc/arch-arm/syscalls/rename.S b/libc/arch-arm/syscalls/rename.S index 6e5de6cee..654623c7c 100644 --- a/libc/arch-arm/syscalls/rename.S +++ b/libc/arch-arm/syscalls/rename.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(rename) mov ip, r7 diff --git a/libc/arch-arm/syscalls/renameat.S b/libc/arch-arm/syscalls/renameat.S index 082620c54..9ec5937f8 100644 --- a/libc/arch-arm/syscalls/renameat.S +++ b/libc/arch-arm/syscalls/renameat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(renameat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/rmdir.S b/libc/arch-arm/syscalls/rmdir.S index 36277534e..89985ecb8 100644 --- a/libc/arch-arm/syscalls/rmdir.S +++ b/libc/arch-arm/syscalls/rmdir.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include 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 d556b1b91..d90afe72b 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 #include #include -#include 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 4df227d86..4fbddfe83 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 #include #include -#include 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 2c2a5bcde..1d9406ab9 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 #include #include -#include 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 4dcd72e15..f34fb9854 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 #include #include -#include 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 fda67f5da..cbd6288e3 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 #include #include -#include 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 df29a9997..2a718ea10 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 #include #include -#include 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 f6b95a0e2..e5b3fe657 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 #include #include -#include 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 0d1ab1f77..287c08d54 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 #include #include -#include 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 a61deadb9..7652ff15a 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 #include #include -#include ENTRY(sched_yield) mov ip, r7 diff --git a/libc/arch-arm/syscalls/select.S b/libc/arch-arm/syscalls/select.S index 7b956d4d0..09fb52bad 100644 --- a/libc/arch-arm/syscalls/select.S +++ b/libc/arch-arm/syscalls/select.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(select) mov ip, sp diff --git a/libc/arch-arm/syscalls/sendfile.S b/libc/arch-arm/syscalls/sendfile.S index 02db7f750..fb4b38c9c 100644 --- a/libc/arch-arm/syscalls/sendfile.S +++ b/libc/arch-arm/syscalls/sendfile.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sendfile) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sendmsg.S b/libc/arch-arm/syscalls/sendmsg.S index a269e7888..21c022338 100644 --- a/libc/arch-arm/syscalls/sendmsg.S +++ b/libc/arch-arm/syscalls/sendmsg.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sendmsg) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sendto.S b/libc/arch-arm/syscalls/sendto.S index d8afde949..7f6429336 100644 --- a/libc/arch-arm/syscalls/sendto.S +++ b/libc/arch-arm/syscalls/sendto.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sendto) mov ip, sp diff --git a/libc/arch-arm/syscalls/setgid.S b/libc/arch-arm/syscalls/setgid.S index e544fd739..0084688e2 100644 --- a/libc/arch-arm/syscalls/setgid.S +++ b/libc/arch-arm/syscalls/setgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setgroups.S b/libc/arch-arm/syscalls/setgroups.S index 7f73d85d1..3c1d94f2d 100644 --- a/libc/arch-arm/syscalls/setgroups.S +++ b/libc/arch-arm/syscalls/setgroups.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setgroups) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setitimer.S b/libc/arch-arm/syscalls/setitimer.S index 7b835f7f4..903887817 100644 --- a/libc/arch-arm/syscalls/setitimer.S +++ b/libc/arch-arm/syscalls/setitimer.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setitimer) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setpgid.S b/libc/arch-arm/syscalls/setpgid.S index 2fda4fe4f..bf639a2f1 100644 --- a/libc/arch-arm/syscalls/setpgid.S +++ b/libc/arch-arm/syscalls/setpgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setpgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setpriority.S b/libc/arch-arm/syscalls/setpriority.S index fe0326b6e..b16158b60 100644 --- a/libc/arch-arm/syscalls/setpriority.S +++ b/libc/arch-arm/syscalls/setpriority.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setpriority) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setregid.S b/libc/arch-arm/syscalls/setregid.S index 48745b3d1..efc20a583 100644 --- a/libc/arch-arm/syscalls/setregid.S +++ b/libc/arch-arm/syscalls/setregid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setregid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setresgid.S b/libc/arch-arm/syscalls/setresgid.S index 3e2d9fbd4..55c804dcc 100644 --- a/libc/arch-arm/syscalls/setresgid.S +++ b/libc/arch-arm/syscalls/setresgid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setresgid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setrlimit.S b/libc/arch-arm/syscalls/setrlimit.S index 480445945..23974f7cf 100644 --- a/libc/arch-arm/syscalls/setrlimit.S +++ b/libc/arch-arm/syscalls/setrlimit.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setrlimit) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setsid.S b/libc/arch-arm/syscalls/setsid.S index f383a388c..5cd27c2cb 100644 --- a/libc/arch-arm/syscalls/setsid.S +++ b/libc/arch-arm/syscalls/setsid.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setsid) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setsockopt.S b/libc/arch-arm/syscalls/setsockopt.S index ffb99f47a..2d185d9a3 100644 --- a/libc/arch-arm/syscalls/setsockopt.S +++ b/libc/arch-arm/syscalls/setsockopt.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setsockopt) mov ip, sp diff --git a/libc/arch-arm/syscalls/settimeofday.S b/libc/arch-arm/syscalls/settimeofday.S index abb2c01f9..f71f139e0 100644 --- a/libc/arch-arm/syscalls/settimeofday.S +++ b/libc/arch-arm/syscalls/settimeofday.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(settimeofday) mov ip, r7 diff --git a/libc/arch-arm/syscalls/setxattr.S b/libc/arch-arm/syscalls/setxattr.S index e7422d940..702be8936 100644 --- a/libc/arch-arm/syscalls/setxattr.S +++ b/libc/arch-arm/syscalls/setxattr.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(setxattr) mov ip, sp diff --git a/libc/arch-arm/syscalls/shutdown.S b/libc/arch-arm/syscalls/shutdown.S index 4c82ee8e8..2f521dc1c 100644 --- a/libc/arch-arm/syscalls/shutdown.S +++ b/libc/arch-arm/syscalls/shutdown.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(shutdown) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sigaction.S b/libc/arch-arm/syscalls/sigaction.S index e5ce66a9d..375ec04b1 100644 --- a/libc/arch-arm/syscalls/sigaction.S +++ b/libc/arch-arm/syscalls/sigaction.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sigaction) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sigaltstack.S b/libc/arch-arm/syscalls/sigaltstack.S index 13d69dad0..ca680043a 100644 --- a/libc/arch-arm/syscalls/sigaltstack.S +++ b/libc/arch-arm/syscalls/sigaltstack.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sigaltstack) mov ip, r7 diff --git a/libc/arch-arm/syscalls/signalfd4.S b/libc/arch-arm/syscalls/signalfd4.S index c2d70caf7..a3dce34b8 100644 --- a/libc/arch-arm/syscalls/signalfd4.S +++ b/libc/arch-arm/syscalls/signalfd4.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(signalfd4) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sigpending.S b/libc/arch-arm/syscalls/sigpending.S index 35c37c230..ba667a027 100644 --- a/libc/arch-arm/syscalls/sigpending.S +++ b/libc/arch-arm/syscalls/sigpending.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sigpending) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sigprocmask.S b/libc/arch-arm/syscalls/sigprocmask.S index 8f8e3dcf3..f93534065 100644 --- a/libc/arch-arm/syscalls/sigprocmask.S +++ b/libc/arch-arm/syscalls/sigprocmask.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sigprocmask) mov ip, r7 diff --git a/libc/arch-arm/syscalls/socket.S b/libc/arch-arm/syscalls/socket.S index 560859703..3caae09ca 100644 --- a/libc/arch-arm/syscalls/socket.S +++ b/libc/arch-arm/syscalls/socket.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(socket) mov ip, r7 diff --git a/libc/arch-arm/syscalls/socketpair.S b/libc/arch-arm/syscalls/socketpair.S index da40cd662..0e4db778c 100644 --- a/libc/arch-arm/syscalls/socketpair.S +++ b/libc/arch-arm/syscalls/socketpair.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(socketpair) mov ip, r7 diff --git a/libc/arch-arm/syscalls/stat.S b/libc/arch-arm/syscalls/stat.S index 0baade6ed..c5c310c65 100644 --- a/libc/arch-arm/syscalls/stat.S +++ b/libc/arch-arm/syscalls/stat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(stat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/symlink.S b/libc/arch-arm/syscalls/symlink.S index e72df7851..406d7b23f 100644 --- a/libc/arch-arm/syscalls/symlink.S +++ b/libc/arch-arm/syscalls/symlink.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(symlink) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sync.S b/libc/arch-arm/syscalls/sync.S index cc8c7cdf3..3efe26377 100644 --- a/libc/arch-arm/syscalls/sync.S +++ b/libc/arch-arm/syscalls/sync.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sync) mov ip, r7 diff --git a/libc/arch-arm/syscalls/sysinfo.S b/libc/arch-arm/syscalls/sysinfo.S index b02859e75..056c03eae 100644 --- a/libc/arch-arm/syscalls/sysinfo.S +++ b/libc/arch-arm/syscalls/sysinfo.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(sysinfo) mov ip, r7 diff --git a/libc/arch-arm/syscalls/times.S b/libc/arch-arm/syscalls/times.S index f5305c40d..b60f7d2bb 100644 --- a/libc/arch-arm/syscalls/times.S +++ b/libc/arch-arm/syscalls/times.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(times) mov ip, r7 diff --git a/libc/arch-arm/syscalls/truncate.S b/libc/arch-arm/syscalls/truncate.S index 7885be78f..697700cf1 100644 --- a/libc/arch-arm/syscalls/truncate.S +++ b/libc/arch-arm/syscalls/truncate.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(truncate) mov ip, r7 diff --git a/libc/arch-arm/syscalls/umask.S b/libc/arch-arm/syscalls/umask.S index 4e5ab81cc..df7544da3 100644 --- a/libc/arch-arm/syscalls/umask.S +++ b/libc/arch-arm/syscalls/umask.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(umask) mov ip, r7 diff --git a/libc/arch-arm/syscalls/umount2.S b/libc/arch-arm/syscalls/umount2.S index ba98b98cb..60bf7b2fb 100644 --- a/libc/arch-arm/syscalls/umount2.S +++ b/libc/arch-arm/syscalls/umount2.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(umount2) mov ip, r7 diff --git a/libc/arch-arm/syscalls/uname.S b/libc/arch-arm/syscalls/uname.S index 52736f263..5182c3f58 100644 --- a/libc/arch-arm/syscalls/uname.S +++ b/libc/arch-arm/syscalls/uname.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(uname) mov ip, r7 diff --git a/libc/arch-arm/syscalls/unlink.S b/libc/arch-arm/syscalls/unlink.S index 2fb111b46..1a74ee403 100644 --- a/libc/arch-arm/syscalls/unlink.S +++ b/libc/arch-arm/syscalls/unlink.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(unlink) mov ip, r7 diff --git a/libc/arch-arm/syscalls/unlinkat.S b/libc/arch-arm/syscalls/unlinkat.S index 888e89342..66d734d97 100644 --- a/libc/arch-arm/syscalls/unlinkat.S +++ b/libc/arch-arm/syscalls/unlinkat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(unlinkat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/unshare.S b/libc/arch-arm/syscalls/unshare.S index 682c77ab7..e5515c751 100644 --- a/libc/arch-arm/syscalls/unshare.S +++ b/libc/arch-arm/syscalls/unshare.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(unshare) mov ip, r7 diff --git a/libc/arch-arm/syscalls/utimensat.S b/libc/arch-arm/syscalls/utimensat.S index cc2266a00..a13feac67 100644 --- a/libc/arch-arm/syscalls/utimensat.S +++ b/libc/arch-arm/syscalls/utimensat.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(utimensat) mov ip, r7 diff --git a/libc/arch-arm/syscalls/utimes.S b/libc/arch-arm/syscalls/utimes.S index 436012548..65acb25ec 100644 --- a/libc/arch-arm/syscalls/utimes.S +++ b/libc/arch-arm/syscalls/utimes.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(utimes) mov ip, r7 diff --git a/libc/arch-arm/syscalls/vfork.S b/libc/arch-arm/syscalls/vfork.S index 23367f597..e8a10222f 100644 --- a/libc/arch-arm/syscalls/vfork.S +++ b/libc/arch-arm/syscalls/vfork.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(vfork) mov ip, r7 diff --git a/libc/arch-arm/syscalls/wait4.S b/libc/arch-arm/syscalls/wait4.S index 7011099d9..f895acf12 100644 --- a/libc/arch-arm/syscalls/wait4.S +++ b/libc/arch-arm/syscalls/wait4.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(wait4) mov ip, r7 diff --git a/libc/arch-arm/syscalls/write.S b/libc/arch-arm/syscalls/write.S index 974e28b4e..1302febe5 100644 --- a/libc/arch-arm/syscalls/write.S +++ b/libc/arch-arm/syscalls/write.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(write) mov ip, r7 diff --git a/libc/arch-arm/syscalls/writev.S b/libc/arch-arm/syscalls/writev.S index d52fc1b02..bcf352182 100644 --- a/libc/arch-arm/syscalls/writev.S +++ b/libc/arch-arm/syscalls/writev.S @@ -1,7 +1,7 @@ /* autogenerated by gensyscalls.py */ +#include #include #include -#include ENTRY(writev) mov ip, r7 diff --git a/libc/include/sys/linux-syscalls.h b/libc/include/sys/linux-syscalls.h index 2e6421f4a..a11a9a3cb 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 26cf3a573..2e87e036d 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 #include #include -#include 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" )