am ec706c24: Merge "Use the kernel\'s MAX_ERRNO in the syscall stubs."

* commit 'ec706c24acb4d1db6a583a57b76adfb9250d39eb':
  Use the kernel's MAX_ERRNO in the syscall stubs.
This commit is contained in:
Elliott Hughes 2013-03-12 17:54:00 -07:00 committed by Android Git Automerger
commit 2f44c05bc5
412 changed files with 1459 additions and 847 deletions

View file

@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -45,10 +46,12 @@ ENTRY(__pthread_clone)
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
@ -94,10 +97,12 @@ ENTRY(__bionic_clone)
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]

View file

@ -32,6 +32,8 @@
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>
@ -44,7 +46,8 @@ ENTRY(kill)
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)

View file

@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -39,7 +40,8 @@ ENTRY(syscall)
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)

View file

@ -33,6 +33,7 @@
of a corrupted malloc heap).
*/
#include <linux/err.h>
#include <sys/linux-syscalls.h>
#include <machine/asm.h>
@ -45,7 +46,8 @@ ENTRY(tgkill)
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)

View file

@ -33,6 +33,7 @@
of a corrupted malloc heap).
*/
#include <linux/err.h>
#include <sys/linux-syscalls.h>
#include <machine/asm.h>
@ -45,7 +46,8 @@ ENTRY(tkill)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__brk)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__fcntl)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__fcntl64)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__fork)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__fstatfs64)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__getcpu)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__getcwd)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__getpriority)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__ioctl)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -10,7 +11,8 @@ ENTRY(__llseek)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -10,7 +11,8 @@ ENTRY(__mmap2)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__open)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__openat)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__ptrace)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__reboot)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__rt_sigaction)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__rt_sigprocmask)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__rt_sigtimedwait)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__sched_getaffinity)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__set_tls)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__setresuid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__setreuid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__setuid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__sigsuspend)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__statfs64)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -10,7 +11,8 @@ ENTRY(__sys_clone)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__syslog)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__timer_create)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__timer_delete)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__timer_getoverrun)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__timer_gettime)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__timer_settime)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(__wait4)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -10,7 +11,8 @@ ENTRY(__waitid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(_exit)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(_exit_thread)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(accept)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(access)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(acct)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(bind)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(cacheflush)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(capget)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(capset)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(chdir)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(chmod)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(chown)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(chroot)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(clock_getres)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(clock_gettime)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(clock_nanosleep)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(clock_settime)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(close)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(connect)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(delete_module)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(dup)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(dup2)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(epoll_create)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(epoll_ctl)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(epoll_wait)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(eventfd)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(execve)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(faccessat)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(fchdir)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(fchmod)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(fchmodat)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(fchown)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -10,7 +11,8 @@ ENTRY(fchownat)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(fdatasync)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(fgetxattr)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(flistxattr)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(flock)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(fremovexattr)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -10,7 +11,8 @@ ENTRY(fsetxattr)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(fstat)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(fstatat)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(fsync)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(ftruncate)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(ftruncate64)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -10,7 +11,8 @@ ENTRY(futex)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getdents)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getegid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(geteuid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getgid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getgroups)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getitimer)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getpeername)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getpgid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getpid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getppid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getresgid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getresuid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getrlimit)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getrusage)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getsid)
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)

View file

@ -1,4 +1,5 @@
/* autogenerated by gensyscalls.py */
#include <linux/err.h>
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
@ -7,7 +8,8 @@ ENTRY(getsockname)
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)

Some files were not shown because too many files have changed in this diff Show more