* SUCH DAMAGE.
*/
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
movs r0, r0
beq 1f
- # In parent, reload saved registers then either exit or set errno.
+ # In parent, reload saved registers then either return or set errno.
ldmfd sp!, {r4, r7}
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
1: # The child.
# pick the function arg and call address off the stack and jump
movs r0, r0
beq 1f
- # In the parent, reload saved registers then either exit or set errno.
+ # In the parent, reload saved registers then either return or set errno.
ldmfd sp!, {r4, r5, r6, r7}
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
1: # The child.
ldr r0, [sp, #-4]
abort due to a fatal runtime error (e.g. detection
of a corrupted malloc heap).
*/
+
+#include <linux/err.h>
#include <sys/linux-syscalls.h>
#include <machine/asm.h>
ldr r7, =__NR_kill
swi #0
ldmfd sp!, {r4-r7, ip, lr}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(kill)
* SUCH DAMAGE.
*/
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldmfd ip, {r3, r4, r5, r6}
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(syscall)
of a corrupted malloc heap).
*/
+#include <linux/err.h>
#include <sys/linux-syscalls.h>
#include <machine/asm.h>
ldr r7, =__NR_tgkill
swi #0
ldmfd sp!, {r4-r7, ip, lr}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(tgkill)
of a corrupted malloc heap).
*/
+#include <linux/err.h>
#include <sys/linux-syscalls.h>
#include <machine/asm.h>
ldr r7, =__NR_tkill
swi #0
ldmfd sp!, {r4-r7, ip, lr}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(tkill)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_brk
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__brk)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fcntl
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__fcntl)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fcntl64
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__fcntl64)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fork
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__fork)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fstatfs64
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__fstatfs64)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getcpu
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__getcpu)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getcwd
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__getcwd)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getpriority
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__getpriority)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_ioctl
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__ioctl)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR__llseek
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__llseek)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_mmap2
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__mmap2)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_open
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__open)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_openat
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__openat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_ptrace
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__ptrace)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_reboot
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__reboot)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_rt_sigaction
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__rt_sigaction)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_rt_sigprocmask
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__rt_sigprocmask)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_rt_sigtimedwait
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__rt_sigtimedwait)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sched_getaffinity
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__sched_getaffinity)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_ARM_set_tls
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__set_tls)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setresuid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__setresuid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setreuid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__setreuid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setuid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__setuid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sigsuspend
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__sigsuspend)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_statfs64
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__statfs64)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_clone
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__sys_clone)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_syslog
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__syslog)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_timer_create
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__timer_create)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_timer_delete
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__timer_delete)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_timer_getoverrun
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__timer_getoverrun)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_timer_gettime
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__timer_gettime)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_timer_settime
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__timer_settime)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_wait4
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__wait4)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_waitid
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(__waitid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_exit_group
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(_exit)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_exit
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(_exit_thread)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_accept
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(accept)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_access
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(access)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_acct
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(acct)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_bind
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(bind)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_ARM_cacheflush
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(cacheflush)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_capget
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(capget)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_capset
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(capset)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_chdir
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(chdir)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_chmod
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(chmod)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_chown32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(chown)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_chroot
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(chroot)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_clock_getres
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(clock_getres)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_clock_gettime
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(clock_gettime)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_clock_nanosleep
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(clock_nanosleep)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_clock_settime
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(clock_settime)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_close
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(close)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_connect
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(connect)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_delete_module
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(delete_module)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_dup
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(dup)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_dup2
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(dup2)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_epoll_create
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(epoll_create)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_epoll_ctl
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(epoll_ctl)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_epoll_wait
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(epoll_wait)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_eventfd2
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(eventfd)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_execve
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(execve)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_faccessat
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(faccessat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fchdir
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fchdir)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fchmod
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fchmod)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fchmodat
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fchmodat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fchown32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fchown)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fchownat
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fchownat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fdatasync
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fdatasync)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fgetxattr
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fgetxattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_flistxattr
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(flistxattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_flock
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(flock)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fremovexattr
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fremovexattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fsetxattr
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fsetxattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fstat64
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fstat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fstatat64
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fstatat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_fsync
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(fsync)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_ftruncate
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(ftruncate)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_ftruncate64
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(ftruncate64)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_futex
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(futex)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getdents64
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getdents)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getegid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getegid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_geteuid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(geteuid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getgid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getgid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getgroups32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getgroups)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getitimer
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getitimer)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getpeername
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getpeername)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getpgid
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getpgid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getpid
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getpid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getppid
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getppid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getresgid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getresgid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getresuid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getresuid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_ugetrlimit
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getrlimit)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getrusage
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getrusage)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getsid
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getsid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getsockname
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getsockname)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getsockopt
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getsockopt)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_gettid
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(gettid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_gettimeofday
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(gettimeofday)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getuid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getuid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_getxattr
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(getxattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_init_module
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(init_module)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_inotify_add_watch
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(inotify_add_watch)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_inotify_init
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(inotify_init)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_inotify_rm_watch
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(inotify_rm_watch)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_ioprio_get
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(ioprio_get)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_ioprio_set
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(ioprio_set)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_syslog
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(klogctl)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_lchown32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(lchown)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_lgetxattr
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(lgetxattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_link
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(link)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_listen
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(listen)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_listxattr
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(listxattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_llistxattr
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(llistxattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_lremovexattr
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(lremovexattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_lseek
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(lseek)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_lsetxattr
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(lsetxattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_lstat64
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(lstat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_madvise
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(madvise)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_mincore
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(mincore)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_mkdir
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(mkdir)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_mkdirat
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(mkdirat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_mknod
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(mknod)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_mlock
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(mlock)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_mlockall
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(mlockall)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_mount
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(mount)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_mprotect
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(mprotect)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_mremap
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(mremap)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_msync
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(msync)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_munlock
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(munlock)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_munlockall
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(munlockall)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_munmap
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(munmap)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_nanosleep
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(nanosleep)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_pause
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(pause)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_perf_event_open
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(perf_event_open)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_personality
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(personality)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_pipe
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(pipe)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_pipe2
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(pipe2)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_poll
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(poll)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_prctl
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(prctl)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_pread64
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(pread64)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_pwrite64
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(pwrite64)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_read
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(read)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_readahead
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(readahead)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_readlink
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(readlink)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_readv
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(readv)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_recvfrom
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(recvfrom)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_recvmsg
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(recvmsg)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_removexattr
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(removexattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_rename
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(rename)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_renameat
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(renameat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_rmdir
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(rmdir)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sched_get_priority_max
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sched_get_priority_max)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sched_get_priority_min
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sched_get_priority_min)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sched_getparam
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sched_getparam)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sched_getscheduler
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sched_getscheduler)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sched_rr_get_interval
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sched_rr_get_interval)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sched_setaffinity
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sched_setaffinity)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sched_setparam
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sched_setparam)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sched_setscheduler
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sched_setscheduler)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sched_yield
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sched_yield)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR__newselect
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(select)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sendfile
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sendfile)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sendmsg
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sendmsg)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sendto
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sendto)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setgid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(setgid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setgroups32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(setgroups)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setitimer
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(setitimer)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setpgid
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(setpgid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setpriority
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(setpriority)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setregid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(setregid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setresgid32
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(setresgid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setrlimit
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(setrlimit)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setsid
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(setsid)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setsockopt
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(setsockopt)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_settimeofday
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(settimeofday)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_setxattr
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(setxattr)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_shutdown
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(shutdown)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sigaction
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sigaction)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sigaltstack
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sigaltstack)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_signalfd4
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(signalfd4)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sigpending
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sigpending)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sigprocmask
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sigprocmask)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_socket
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(socket)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_socketpair
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(socketpair)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_stat64
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(stat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_symlink
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(symlink)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sync
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sync)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_sysinfo
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(sysinfo)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_times
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(times)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_truncate
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(truncate)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_umask
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(umask)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_umount2
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(umount2)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_uname
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(uname)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_unlink
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(unlink)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_unlinkat
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(unlinkat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_unshare
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(unshare)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_utimensat
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(utimensat)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_utimes
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(utimes)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_vfork
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(vfork)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_write
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(write)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =__NR_writev
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(writev)
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_brk, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_fcntl, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_fcntl64, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_fork, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_fstatfs64, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_getcpu, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_getcwd, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_getpriority, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_ioctl, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR__llseek, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 48(%esp), %ebp
movl $__NR_mmap2, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_open, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_openat, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_ptrace, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_reboot, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_rt_sigaction, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_rt_sigprocmask, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_rt_sigtimedwait, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_sched_getaffinity, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_set_thread_area, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_setresuid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_setreuid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_setuid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_sigsuspend, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_statfs64, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR_clone, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_syslog, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_timer_create, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_timer_delete, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_timer_getoverrun, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_timer_gettime, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_timer_settime, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_wait4, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR_waitid, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_exit_group, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_exit, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_waitpid, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_access, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_acct, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_capget, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_capset, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_chdir, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_chmod, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_chown32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_chroot, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_clock_getres, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_clock_gettime, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_clock_nanosleep, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_clock_settime, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_close, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_delete_module, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_dup, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_dup2, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_epoll_create, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_epoll_ctl, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_epoll_wait, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_eventfd2, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_execve, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_faccessat, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_fchdir, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_fchmod, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_fchmodat, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_fchown32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR_fchownat, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_fdatasync, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_fgetxattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_flistxattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_flock, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_fremovexattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR_fsetxattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_fstat64, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_fstatat64, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_fsync, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_ftruncate, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_ftruncate64, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 48(%esp), %ebp
movl $__NR_futex, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_getdents64, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(getegid)
movl $__NR_getegid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(geteuid)
movl $__NR_geteuid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(getgid)
movl $__NR_getgid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_getgroups32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_getitimer, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_getpgid, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(getpid)
movl $__NR_getpid, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(getppid)
movl $__NR_getppid, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_getresgid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_getresuid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_ugetrlimit, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_getrusage, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_getsid, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(gettid)
movl $__NR_gettid, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_gettimeofday, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(getuid)
movl $__NR_getuid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_getxattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_init_module, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_inotify_add_watch, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_inotify_init, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_inotify_rm_watch, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_ioprio_get, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_ioprio_set, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_kill, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_syslog, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_lchown32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_lgetxattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_link, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_listxattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_llistxattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_lremovexattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_lseek, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR_lsetxattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_lstat64, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_madvise, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_mincore, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_mkdir, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_mkdirat, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_mknod, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_mlock, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_mlockall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR_mount, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_mprotect, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_mremap, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_msync, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_munlock, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(munlockall)
movl $__NR_munlockall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_munmap, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_nanosleep, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(pause)
movl $__NR_pause, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR_perf_event_open, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_personality, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_pipe, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_pipe2, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_poll, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR_prctl, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR_pread64, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR_pwrite64, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_read, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_readahead, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_readlink, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_readv, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_removexattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_rename, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_renameat, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_rmdir, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_sched_get_priority_max, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_sched_get_priority_min, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_sched_getparam, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_sched_getscheduler, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_sched_rr_get_interval, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_sched_setaffinity, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_sched_setparam, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_sched_setscheduler, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_sched_yield, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR__newselect, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_sendfile, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_setgid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_setgroups32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_setitimer, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_setpgid, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_setpriority, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_setregid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_setresgid32, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_setrlimit, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ENTRY(setsid)
movl $__NR_setsid, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_settimeofday, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 40(%esp), %edi
movl $__NR_setxattr, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_sigaction, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_sigaltstack, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_signalfd4, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_sigpending, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_sigprocmask, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
addl $12, %ecx
movl $__NR_socketcall, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_stat64, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_symlink, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_sync, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_sysinfo, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_tgkill, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_times, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_tkill, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_truncate, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_umask, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_umount2, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_uname, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_unlink, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_unlinkat, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 8(%esp), %ebx
movl $__NR_unshare, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 32(%esp), %esi
movl $__NR_utimensat, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 16(%esp), %ecx
movl $__NR_utimes, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_write, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
mov 24(%esp), %edx
movl $__NR_writev, %eax
int $0x80
- cmpl $-129, %eax
+ cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
*/
#include <errno.h>
-#include <linux/err.h>
-#define unlikely(x) __builtin_expect((x), false) // Used but not defined by <linux/err.h>.
-
-// These functions are called from our assembler syscall stubs.
+// This function is called from our assembler syscall stubs.
// C/C++ code should just assign 'errno' instead.
-// TODO: should be __LIBC_HIDDEN__, but already exported by NDK :-(
-// TODO: this isn't used on ARM.
-extern "C" int __set_errno(int n) {
+extern "C" __LIBC_HIDDEN__ int __set_errno(int n) {
errno = n;
return -1;
}
-
-// TODO: this is only used on ARM, but is exported by NDK on all platforms :-(
-extern "C" __LIBC_HIDDEN__ int __set_syscall_errno(unsigned long n) {
- if (IS_ERR_VALUE(n)) {
- errno = -n;
- return -1;
- }
- return n;
-}
#include <asm/errno.h>
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#define MAX_ERRNO 4095
+#ifndef __ASSEMBLY__
#define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
#endif
+/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
+#endif
#
x86_header = """/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
x86_call = """ movl $%(idname)s, %%eax
int $0x80
- cmpl $-129, %%eax
+ cmpl $-MAX_ERRNO, %%eax
jb 1f
negl %%eax
pushl %%eax
#
arm_header = """/* autogenerated by gensyscalls.py */
+#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
ldr r7, =%(idname)s
swi #0
mov r7, ip
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(%(fname)s)
"""
ldr r7, =%(idname)s
swi #0
ldmfd sp!, {r4, r5, r6, r7}
- movs r0, r0
- bxpl lr
- b __set_syscall_errno
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
END(%(fname)s)
"""