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