diff options
author | Elliott Hughes <enh@google.com> | 2014-09-08 15:25:01 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-09-08 15:36:21 -0700 |
commit | 7efad83d430f4d824f2aaa75edea5106f6ff8aae (patch) | |
tree | 5bc18249730f5d714eb12b877db4a601ed96fefe /libc/arch-arm | |
parent | c8f6b82f87d9e4ea385ce6d634220b369b76845a (diff) | |
download | bionic-7efad83d430f4d824f2aaa75edea5106f6ff8aae.zip bionic-7efad83d430f4d824f2aaa75edea5106f6ff8aae.tar.gz bionic-7efad83d430f4d824f2aaa75edea5106f6ff8aae.tar.bz2 |
Ensure __set_errno is still visible on LP32.
The use of the .hidden directive to avoid going via the PLT for
__set_errno had the side-effect of actually making __set_errno
hidden (which is odd because assembler directives don't usually
affect symbols defined in a different file --- you can't even
create a weak reference to a symbol that's defined in a different
file).
This change switches the system call stubs over to a new always-hidden
__set_errno_internal and has a visible __set_errno on LP32 just for
binary compatibility with old NDK apps.
Bug: 17423135
Change-Id: I6b6d7a05dda85f923d22e5ffd169a91e23499b7b
Diffstat (limited to 'libc/arch-arm')
199 files changed, 199 insertions, 593 deletions
diff --git a/libc/arch-arm/bionic/__bionic_clone.S b/libc/arch-arm/bionic/__bionic_clone.S index 48f2f98..f5cf9e0 100644 --- a/libc/arch-arm/bionic/__bionic_clone.S +++ b/libc/arch-arm/bionic/__bionic_clone.S @@ -57,7 +57,7 @@ ENTRY(__bionic_clone) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal 1: # The child. # Setting lr to 0 will make the unwinder stop at __start_thread diff --git a/libc/arch-arm/bionic/syscall.S b/libc/arch-arm/bionic/syscall.S index 8647718..d0df379 100644 --- a/libc/arch-arm/bionic/syscall.S +++ b/libc/arch-arm/bionic/syscall.S @@ -47,5 +47,5 @@ ENTRY(syscall) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(syscall) diff --git a/libc/arch-arm/syscalls/__accept4.S b/libc/arch-arm/syscalls/__accept4.S index 2b1eb28..dca5699 100644 --- a/libc/arch-arm/syscalls/__accept4.S +++ b/libc/arch-arm/syscalls/__accept4.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__accept4) mov ip, r7 ldr r7, =__NR_accept4 @@ -12,5 +10,5 @@ ENTRY(__accept4) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__accept4) diff --git a/libc/arch-arm/syscalls/__brk.S b/libc/arch-arm/syscalls/__brk.S index 0987f0e..be304da 100644 --- a/libc/arch-arm/syscalls/__brk.S +++ b/libc/arch-arm/syscalls/__brk.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__brk) mov ip, r7 ldr r7, =__NR_brk @@ -12,5 +10,5 @@ ENTRY(__brk) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__brk) diff --git a/libc/arch-arm/syscalls/__connect.S b/libc/arch-arm/syscalls/__connect.S index 510af95..a2a997e 100644 --- a/libc/arch-arm/syscalls/__connect.S +++ b/libc/arch-arm/syscalls/__connect.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__connect) mov ip, r7 ldr r7, =__NR_connect @@ -12,5 +10,5 @@ ENTRY(__connect) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__connect) diff --git a/libc/arch-arm/syscalls/__epoll_pwait.S b/libc/arch-arm/syscalls/__epoll_pwait.S index bbba2e1..3642ee3 100644 --- a/libc/arch-arm/syscalls/__epoll_pwait.S +++ b/libc/arch-arm/syscalls/__epoll_pwait.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__epoll_pwait) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(__epoll_pwait) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__epoll_pwait) diff --git a/libc/arch-arm/syscalls/__exit.S b/libc/arch-arm/syscalls/__exit.S index ceef94e..6ebd5b3 100644 --- a/libc/arch-arm/syscalls/__exit.S +++ b/libc/arch-arm/syscalls/__exit.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__exit) mov ip, r7 ldr r7, =__NR_exit @@ -12,5 +10,5 @@ ENTRY(__exit) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__exit) diff --git a/libc/arch-arm/syscalls/__fcntl64.S b/libc/arch-arm/syscalls/__fcntl64.S index bb2068d..229c5c6 100644 --- a/libc/arch-arm/syscalls/__fcntl64.S +++ b/libc/arch-arm/syscalls/__fcntl64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__fcntl64) mov ip, r7 ldr r7, =__NR_fcntl64 @@ -12,5 +10,5 @@ ENTRY(__fcntl64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__fcntl64) diff --git a/libc/arch-arm/syscalls/__fstatfs64.S b/libc/arch-arm/syscalls/__fstatfs64.S index b493aa0..9c0c439 100644 --- a/libc/arch-arm/syscalls/__fstatfs64.S +++ b/libc/arch-arm/syscalls/__fstatfs64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__fstatfs64) mov ip, r7 ldr r7, =__NR_fstatfs64 @@ -12,5 +10,5 @@ ENTRY(__fstatfs64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__fstatfs64) diff --git a/libc/arch-arm/syscalls/__getcpu.S b/libc/arch-arm/syscalls/__getcpu.S index 1b3fc46..d523d8e 100644 --- a/libc/arch-arm/syscalls/__getcpu.S +++ b/libc/arch-arm/syscalls/__getcpu.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__getcpu) mov ip, r7 ldr r7, =__NR_getcpu @@ -12,5 +10,5 @@ ENTRY(__getcpu) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__getcpu) diff --git a/libc/arch-arm/syscalls/__getcwd.S b/libc/arch-arm/syscalls/__getcwd.S index d91b3ca..4ff6667 100644 --- a/libc/arch-arm/syscalls/__getcwd.S +++ b/libc/arch-arm/syscalls/__getcwd.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__getcwd) mov ip, r7 ldr r7, =__NR_getcwd @@ -12,5 +10,5 @@ ENTRY(__getcwd) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__getcwd) diff --git a/libc/arch-arm/syscalls/__getdents64.S b/libc/arch-arm/syscalls/__getdents64.S index 7d3d81c..dac3bfc 100644 --- a/libc/arch-arm/syscalls/__getdents64.S +++ b/libc/arch-arm/syscalls/__getdents64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__getdents64) mov ip, r7 ldr r7, =__NR_getdents64 @@ -12,5 +10,5 @@ ENTRY(__getdents64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__getdents64) diff --git a/libc/arch-arm/syscalls/__getpid.S b/libc/arch-arm/syscalls/__getpid.S index ede0865..dbb192e 100644 --- a/libc/arch-arm/syscalls/__getpid.S +++ b/libc/arch-arm/syscalls/__getpid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__getpid) mov ip, r7 ldr r7, =__NR_getpid @@ -12,5 +10,5 @@ ENTRY(__getpid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__getpid) diff --git a/libc/arch-arm/syscalls/__getpriority.S b/libc/arch-arm/syscalls/__getpriority.S index d3a6468..e637d6f 100644 --- a/libc/arch-arm/syscalls/__getpriority.S +++ b/libc/arch-arm/syscalls/__getpriority.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__getpriority) mov ip, r7 ldr r7, =__NR_getpriority @@ -12,5 +10,5 @@ ENTRY(__getpriority) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__getpriority) diff --git a/libc/arch-arm/syscalls/__ioctl.S b/libc/arch-arm/syscalls/__ioctl.S index b3ac82f..fcd1157 100644 --- a/libc/arch-arm/syscalls/__ioctl.S +++ b/libc/arch-arm/syscalls/__ioctl.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__ioctl) mov ip, r7 ldr r7, =__NR_ioctl @@ -12,5 +10,5 @@ ENTRY(__ioctl) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__ioctl) diff --git a/libc/arch-arm/syscalls/__llseek.S b/libc/arch-arm/syscalls/__llseek.S index b36164c..3cff318 100644 --- a/libc/arch-arm/syscalls/__llseek.S +++ b/libc/arch-arm/syscalls/__llseek.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__llseek) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(__llseek) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__llseek) diff --git a/libc/arch-arm/syscalls/__mmap2.S b/libc/arch-arm/syscalls/__mmap2.S index ba74716..f11e467 100644 --- a/libc/arch-arm/syscalls/__mmap2.S +++ b/libc/arch-arm/syscalls/__mmap2.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__mmap2) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(__mmap2) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__mmap2) diff --git a/libc/arch-arm/syscalls/__openat.S b/libc/arch-arm/syscalls/__openat.S index 6b119e1..9b774db 100644 --- a/libc/arch-arm/syscalls/__openat.S +++ b/libc/arch-arm/syscalls/__openat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__openat) mov ip, r7 ldr r7, =__NR_openat @@ -12,5 +10,5 @@ ENTRY(__openat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__openat) diff --git a/libc/arch-arm/syscalls/__ppoll.S b/libc/arch-arm/syscalls/__ppoll.S index 3a0e80c..02de8a8 100644 --- a/libc/arch-arm/syscalls/__ppoll.S +++ b/libc/arch-arm/syscalls/__ppoll.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__ppoll) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(__ppoll) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__ppoll) diff --git a/libc/arch-arm/syscalls/__pselect6.S b/libc/arch-arm/syscalls/__pselect6.S index 1417be8..8f31e1b 100644 --- a/libc/arch-arm/syscalls/__pselect6.S +++ b/libc/arch-arm/syscalls/__pselect6.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__pselect6) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(__pselect6) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__pselect6) diff --git a/libc/arch-arm/syscalls/__ptrace.S b/libc/arch-arm/syscalls/__ptrace.S index bc03232..975ab0f 100644 --- a/libc/arch-arm/syscalls/__ptrace.S +++ b/libc/arch-arm/syscalls/__ptrace.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__ptrace) mov ip, r7 ldr r7, =__NR_ptrace @@ -12,5 +10,5 @@ ENTRY(__ptrace) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__ptrace) diff --git a/libc/arch-arm/syscalls/__reboot.S b/libc/arch-arm/syscalls/__reboot.S index 91bbf7c..03f8c89 100644 --- a/libc/arch-arm/syscalls/__reboot.S +++ b/libc/arch-arm/syscalls/__reboot.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__reboot) mov ip, r7 ldr r7, =__NR_reboot @@ -12,5 +10,5 @@ ENTRY(__reboot) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__reboot) diff --git a/libc/arch-arm/syscalls/__rt_sigaction.S b/libc/arch-arm/syscalls/__rt_sigaction.S index 6a5e058..2c21012 100644 --- a/libc/arch-arm/syscalls/__rt_sigaction.S +++ b/libc/arch-arm/syscalls/__rt_sigaction.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__rt_sigaction) mov ip, r7 ldr r7, =__NR_rt_sigaction @@ -12,5 +10,5 @@ ENTRY(__rt_sigaction) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__rt_sigaction) diff --git a/libc/arch-arm/syscalls/__rt_sigpending.S b/libc/arch-arm/syscalls/__rt_sigpending.S index 44da9b2..6a32e50 100644 --- a/libc/arch-arm/syscalls/__rt_sigpending.S +++ b/libc/arch-arm/syscalls/__rt_sigpending.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__rt_sigpending) mov ip, r7 ldr r7, =__NR_rt_sigpending @@ -12,5 +10,5 @@ ENTRY(__rt_sigpending) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__rt_sigpending) diff --git a/libc/arch-arm/syscalls/__rt_sigprocmask.S b/libc/arch-arm/syscalls/__rt_sigprocmask.S index 81cdb85..136dc79 100644 --- a/libc/arch-arm/syscalls/__rt_sigprocmask.S +++ b/libc/arch-arm/syscalls/__rt_sigprocmask.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__rt_sigprocmask) mov ip, r7 ldr r7, =__NR_rt_sigprocmask @@ -12,5 +10,5 @@ ENTRY(__rt_sigprocmask) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__rt_sigprocmask) diff --git a/libc/arch-arm/syscalls/__rt_sigsuspend.S b/libc/arch-arm/syscalls/__rt_sigsuspend.S index a9a3903..2cef4a4 100644 --- a/libc/arch-arm/syscalls/__rt_sigsuspend.S +++ b/libc/arch-arm/syscalls/__rt_sigsuspend.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__rt_sigsuspend) mov ip, r7 ldr r7, =__NR_rt_sigsuspend @@ -12,5 +10,5 @@ ENTRY(__rt_sigsuspend) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__rt_sigsuspend) diff --git a/libc/arch-arm/syscalls/__rt_sigtimedwait.S b/libc/arch-arm/syscalls/__rt_sigtimedwait.S index 7b78a43..cb43ad1 100644 --- a/libc/arch-arm/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-arm/syscalls/__rt_sigtimedwait.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__rt_sigtimedwait) mov ip, r7 ldr r7, =__NR_rt_sigtimedwait @@ -12,5 +10,5 @@ ENTRY(__rt_sigtimedwait) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__rt_sigtimedwait) diff --git a/libc/arch-arm/syscalls/__sched_getaffinity.S b/libc/arch-arm/syscalls/__sched_getaffinity.S index a22c55e..6613ea5 100644 --- a/libc/arch-arm/syscalls/__sched_getaffinity.S +++ b/libc/arch-arm/syscalls/__sched_getaffinity.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__sched_getaffinity) mov ip, r7 ldr r7, =__NR_sched_getaffinity @@ -12,5 +10,5 @@ ENTRY(__sched_getaffinity) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__sched_getaffinity) diff --git a/libc/arch-arm/syscalls/__set_tid_address.S b/libc/arch-arm/syscalls/__set_tid_address.S index 0838c8b..d3558f5 100644 --- a/libc/arch-arm/syscalls/__set_tid_address.S +++ b/libc/arch-arm/syscalls/__set_tid_address.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__set_tid_address) mov ip, r7 ldr r7, =__NR_set_tid_address @@ -12,5 +10,5 @@ ENTRY(__set_tid_address) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__set_tid_address) diff --git a/libc/arch-arm/syscalls/__set_tls.S b/libc/arch-arm/syscalls/__set_tls.S index c4c2eb7..4d5d963 100644 --- a/libc/arch-arm/syscalls/__set_tls.S +++ b/libc/arch-arm/syscalls/__set_tls.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__set_tls) mov ip, r7 ldr r7, =__ARM_NR_set_tls @@ -12,5 +10,5 @@ ENTRY(__set_tls) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__set_tls) diff --git a/libc/arch-arm/syscalls/__sigaction.S b/libc/arch-arm/syscalls/__sigaction.S index 869b4c8..600593d 100644 --- a/libc/arch-arm/syscalls/__sigaction.S +++ b/libc/arch-arm/syscalls/__sigaction.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__sigaction) mov ip, r7 ldr r7, =__NR_sigaction @@ -12,5 +10,5 @@ ENTRY(__sigaction) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__sigaction) diff --git a/libc/arch-arm/syscalls/__signalfd4.S b/libc/arch-arm/syscalls/__signalfd4.S index 3bcf031..630a71f 100644 --- a/libc/arch-arm/syscalls/__signalfd4.S +++ b/libc/arch-arm/syscalls/__signalfd4.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__signalfd4) mov ip, r7 ldr r7, =__NR_signalfd4 @@ -12,5 +10,5 @@ ENTRY(__signalfd4) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__signalfd4) diff --git a/libc/arch-arm/syscalls/__socket.S b/libc/arch-arm/syscalls/__socket.S index a655b5b..fffe0cc 100644 --- a/libc/arch-arm/syscalls/__socket.S +++ b/libc/arch-arm/syscalls/__socket.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__socket) mov ip, r7 ldr r7, =__NR_socket @@ -12,5 +10,5 @@ ENTRY(__socket) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__socket) diff --git a/libc/arch-arm/syscalls/__statfs64.S b/libc/arch-arm/syscalls/__statfs64.S index 80ea6ce..ec43218 100644 --- a/libc/arch-arm/syscalls/__statfs64.S +++ b/libc/arch-arm/syscalls/__statfs64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__statfs64) mov ip, r7 ldr r7, =__NR_statfs64 @@ -12,5 +10,5 @@ ENTRY(__statfs64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__statfs64) diff --git a/libc/arch-arm/syscalls/__timer_create.S b/libc/arch-arm/syscalls/__timer_create.S index 75fc347..2e4c634 100644 --- a/libc/arch-arm/syscalls/__timer_create.S +++ b/libc/arch-arm/syscalls/__timer_create.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__timer_create) mov ip, r7 ldr r7, =__NR_timer_create @@ -12,5 +10,5 @@ ENTRY(__timer_create) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__timer_create) diff --git a/libc/arch-arm/syscalls/__timer_delete.S b/libc/arch-arm/syscalls/__timer_delete.S index ad5ec36..237024c 100644 --- a/libc/arch-arm/syscalls/__timer_delete.S +++ b/libc/arch-arm/syscalls/__timer_delete.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__timer_delete) mov ip, r7 ldr r7, =__NR_timer_delete @@ -12,5 +10,5 @@ ENTRY(__timer_delete) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__timer_delete) diff --git a/libc/arch-arm/syscalls/__timer_getoverrun.S b/libc/arch-arm/syscalls/__timer_getoverrun.S index 529712c..f29d5b3 100644 --- a/libc/arch-arm/syscalls/__timer_getoverrun.S +++ b/libc/arch-arm/syscalls/__timer_getoverrun.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__timer_getoverrun) mov ip, r7 ldr r7, =__NR_timer_getoverrun @@ -12,5 +10,5 @@ ENTRY(__timer_getoverrun) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__timer_getoverrun) diff --git a/libc/arch-arm/syscalls/__timer_gettime.S b/libc/arch-arm/syscalls/__timer_gettime.S index 180da39..e6dc2ed 100644 --- a/libc/arch-arm/syscalls/__timer_gettime.S +++ b/libc/arch-arm/syscalls/__timer_gettime.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__timer_gettime) mov ip, r7 ldr r7, =__NR_timer_gettime @@ -12,5 +10,5 @@ ENTRY(__timer_gettime) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__timer_gettime) diff --git a/libc/arch-arm/syscalls/__timer_settime.S b/libc/arch-arm/syscalls/__timer_settime.S index e2950dd..4aea279 100644 --- a/libc/arch-arm/syscalls/__timer_settime.S +++ b/libc/arch-arm/syscalls/__timer_settime.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__timer_settime) mov ip, r7 ldr r7, =__NR_timer_settime @@ -12,5 +10,5 @@ ENTRY(__timer_settime) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__timer_settime) diff --git a/libc/arch-arm/syscalls/__waitid.S b/libc/arch-arm/syscalls/__waitid.S index 8c6ba66..f4dfa59 100644 --- a/libc/arch-arm/syscalls/__waitid.S +++ b/libc/arch-arm/syscalls/__waitid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(__waitid) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(__waitid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(__waitid) diff --git a/libc/arch-arm/syscalls/_exit.S b/libc/arch-arm/syscalls/_exit.S index fd072c3..328a5ce 100644 --- a/libc/arch-arm/syscalls/_exit.S +++ b/libc/arch-arm/syscalls/_exit.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(_exit) mov ip, r7 ldr r7, =__NR_exit_group @@ -12,7 +10,7 @@ ENTRY(_exit) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(_exit) .globl _Exit diff --git a/libc/arch-arm/syscalls/acct.S b/libc/arch-arm/syscalls/acct.S index 156db48..dbc5d58 100644 --- a/libc/arch-arm/syscalls/acct.S +++ b/libc/arch-arm/syscalls/acct.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(acct) mov ip, r7 ldr r7, =__NR_acct @@ -12,5 +10,5 @@ ENTRY(acct) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(acct) diff --git a/libc/arch-arm/syscalls/bind.S b/libc/arch-arm/syscalls/bind.S index 892c77f..c901417 100644 --- a/libc/arch-arm/syscalls/bind.S +++ b/libc/arch-arm/syscalls/bind.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(bind) mov ip, r7 ldr r7, =__NR_bind @@ -12,5 +10,5 @@ ENTRY(bind) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(bind) diff --git a/libc/arch-arm/syscalls/cacheflush.S b/libc/arch-arm/syscalls/cacheflush.S index 0739c32..76f4623 100644 --- a/libc/arch-arm/syscalls/cacheflush.S +++ b/libc/arch-arm/syscalls/cacheflush.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(cacheflush) mov ip, r7 ldr r7, =__ARM_NR_cacheflush @@ -12,5 +10,5 @@ ENTRY(cacheflush) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(cacheflush) diff --git a/libc/arch-arm/syscalls/capget.S b/libc/arch-arm/syscalls/capget.S index 6fd0f7c..59a5a3c 100644 --- a/libc/arch-arm/syscalls/capget.S +++ b/libc/arch-arm/syscalls/capget.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(capget) mov ip, r7 ldr r7, =__NR_capget @@ -12,5 +10,5 @@ ENTRY(capget) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(capget) diff --git a/libc/arch-arm/syscalls/capset.S b/libc/arch-arm/syscalls/capset.S index 2708ff6..af284ab 100644 --- a/libc/arch-arm/syscalls/capset.S +++ b/libc/arch-arm/syscalls/capset.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(capset) mov ip, r7 ldr r7, =__NR_capset @@ -12,5 +10,5 @@ ENTRY(capset) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(capset) diff --git a/libc/arch-arm/syscalls/chdir.S b/libc/arch-arm/syscalls/chdir.S index 0b86a0f..25f27ba 100644 --- a/libc/arch-arm/syscalls/chdir.S +++ b/libc/arch-arm/syscalls/chdir.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(chdir) mov ip, r7 ldr r7, =__NR_chdir @@ -12,5 +10,5 @@ ENTRY(chdir) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(chdir) diff --git a/libc/arch-arm/syscalls/chroot.S b/libc/arch-arm/syscalls/chroot.S index 15aa392..6f829a6 100644 --- a/libc/arch-arm/syscalls/chroot.S +++ b/libc/arch-arm/syscalls/chroot.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(chroot) mov ip, r7 ldr r7, =__NR_chroot @@ -12,5 +10,5 @@ ENTRY(chroot) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(chroot) diff --git a/libc/arch-arm/syscalls/clock_getres.S b/libc/arch-arm/syscalls/clock_getres.S index b92289a..48fa07c 100644 --- a/libc/arch-arm/syscalls/clock_getres.S +++ b/libc/arch-arm/syscalls/clock_getres.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(clock_getres) mov ip, r7 ldr r7, =__NR_clock_getres @@ -12,5 +10,5 @@ ENTRY(clock_getres) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(clock_getres) diff --git a/libc/arch-arm/syscalls/clock_gettime.S b/libc/arch-arm/syscalls/clock_gettime.S index 203db8f..317481d 100644 --- a/libc/arch-arm/syscalls/clock_gettime.S +++ b/libc/arch-arm/syscalls/clock_gettime.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(clock_gettime) mov ip, r7 ldr r7, =__NR_clock_gettime @@ -12,5 +10,5 @@ ENTRY(clock_gettime) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(clock_gettime) diff --git a/libc/arch-arm/syscalls/clock_nanosleep.S b/libc/arch-arm/syscalls/clock_nanosleep.S index 5de2267..80295bb 100644 --- a/libc/arch-arm/syscalls/clock_nanosleep.S +++ b/libc/arch-arm/syscalls/clock_nanosleep.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(clock_nanosleep) mov ip, r7 ldr r7, =__NR_clock_nanosleep @@ -12,5 +10,5 @@ ENTRY(clock_nanosleep) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(clock_nanosleep) diff --git a/libc/arch-arm/syscalls/clock_settime.S b/libc/arch-arm/syscalls/clock_settime.S index 71e61f8..bf54702 100644 --- a/libc/arch-arm/syscalls/clock_settime.S +++ b/libc/arch-arm/syscalls/clock_settime.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(clock_settime) mov ip, r7 ldr r7, =__NR_clock_settime @@ -12,5 +10,5 @@ ENTRY(clock_settime) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(clock_settime) diff --git a/libc/arch-arm/syscalls/close.S b/libc/arch-arm/syscalls/close.S index 3e0fd32..ec05445 100644 --- a/libc/arch-arm/syscalls/close.S +++ b/libc/arch-arm/syscalls/close.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(close) mov ip, r7 ldr r7, =__NR_close @@ -12,5 +10,5 @@ ENTRY(close) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(close) diff --git a/libc/arch-arm/syscalls/delete_module.S b/libc/arch-arm/syscalls/delete_module.S index 0af2520..57580c9 100644 --- a/libc/arch-arm/syscalls/delete_module.S +++ b/libc/arch-arm/syscalls/delete_module.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(delete_module) mov ip, r7 ldr r7, =__NR_delete_module @@ -12,5 +10,5 @@ ENTRY(delete_module) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(delete_module) diff --git a/libc/arch-arm/syscalls/dup.S b/libc/arch-arm/syscalls/dup.S index 4105438..2cd69d7 100644 --- a/libc/arch-arm/syscalls/dup.S +++ b/libc/arch-arm/syscalls/dup.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(dup) mov ip, r7 ldr r7, =__NR_dup @@ -12,5 +10,5 @@ ENTRY(dup) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(dup) diff --git a/libc/arch-arm/syscalls/dup3.S b/libc/arch-arm/syscalls/dup3.S index 409e8f9..4613d63 100644 --- a/libc/arch-arm/syscalls/dup3.S +++ b/libc/arch-arm/syscalls/dup3.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(dup3) mov ip, r7 ldr r7, =__NR_dup3 @@ -12,5 +10,5 @@ ENTRY(dup3) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(dup3) diff --git a/libc/arch-arm/syscalls/epoll_create1.S b/libc/arch-arm/syscalls/epoll_create1.S index 631afab..108c24f 100644 --- a/libc/arch-arm/syscalls/epoll_create1.S +++ b/libc/arch-arm/syscalls/epoll_create1.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(epoll_create1) mov ip, r7 ldr r7, =__NR_epoll_create1 @@ -12,5 +10,5 @@ ENTRY(epoll_create1) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(epoll_create1) diff --git a/libc/arch-arm/syscalls/epoll_ctl.S b/libc/arch-arm/syscalls/epoll_ctl.S index 187fe0a..473af6a 100644 --- a/libc/arch-arm/syscalls/epoll_ctl.S +++ b/libc/arch-arm/syscalls/epoll_ctl.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(epoll_ctl) mov ip, r7 ldr r7, =__NR_epoll_ctl @@ -12,5 +10,5 @@ ENTRY(epoll_ctl) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(epoll_ctl) diff --git a/libc/arch-arm/syscalls/eventfd.S b/libc/arch-arm/syscalls/eventfd.S index c35f537..ca6bcee 100644 --- a/libc/arch-arm/syscalls/eventfd.S +++ b/libc/arch-arm/syscalls/eventfd.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(eventfd) mov ip, r7 ldr r7, =__NR_eventfd2 @@ -12,5 +10,5 @@ ENTRY(eventfd) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(eventfd) diff --git a/libc/arch-arm/syscalls/execve.S b/libc/arch-arm/syscalls/execve.S index 1b24f76..3eca810 100644 --- a/libc/arch-arm/syscalls/execve.S +++ b/libc/arch-arm/syscalls/execve.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(execve) mov ip, r7 ldr r7, =__NR_execve @@ -12,5 +10,5 @@ ENTRY(execve) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(execve) diff --git a/libc/arch-arm/syscalls/faccessat.S b/libc/arch-arm/syscalls/faccessat.S index 3f663e3..a1df5c0 100644 --- a/libc/arch-arm/syscalls/faccessat.S +++ b/libc/arch-arm/syscalls/faccessat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(faccessat) mov ip, r7 ldr r7, =__NR_faccessat @@ -12,5 +10,5 @@ ENTRY(faccessat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(faccessat) diff --git a/libc/arch-arm/syscalls/fallocate64.S b/libc/arch-arm/syscalls/fallocate64.S index fd90637..4bfd5e3 100644 --- a/libc/arch-arm/syscalls/fallocate64.S +++ b/libc/arch-arm/syscalls/fallocate64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fallocate64) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(fallocate64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fallocate64) diff --git a/libc/arch-arm/syscalls/fchdir.S b/libc/arch-arm/syscalls/fchdir.S index c109718..705ad32 100644 --- a/libc/arch-arm/syscalls/fchdir.S +++ b/libc/arch-arm/syscalls/fchdir.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fchdir) mov ip, r7 ldr r7, =__NR_fchdir @@ -12,5 +10,5 @@ ENTRY(fchdir) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fchdir) diff --git a/libc/arch-arm/syscalls/fchmod.S b/libc/arch-arm/syscalls/fchmod.S index 4b598a2..5675f0a 100644 --- a/libc/arch-arm/syscalls/fchmod.S +++ b/libc/arch-arm/syscalls/fchmod.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fchmod) mov ip, r7 ldr r7, =__NR_fchmod @@ -12,5 +10,5 @@ ENTRY(fchmod) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fchmod) diff --git a/libc/arch-arm/syscalls/fchmodat.S b/libc/arch-arm/syscalls/fchmodat.S index 8e43118..3f7e0ee 100644 --- a/libc/arch-arm/syscalls/fchmodat.S +++ b/libc/arch-arm/syscalls/fchmodat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fchmodat) mov ip, r7 ldr r7, =__NR_fchmodat @@ -12,5 +10,5 @@ ENTRY(fchmodat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fchmodat) diff --git a/libc/arch-arm/syscalls/fchown.S b/libc/arch-arm/syscalls/fchown.S index 24a38f6..45ad9bf 100644 --- a/libc/arch-arm/syscalls/fchown.S +++ b/libc/arch-arm/syscalls/fchown.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fchown) mov ip, r7 ldr r7, =__NR_fchown32 @@ -12,5 +10,5 @@ ENTRY(fchown) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fchown) diff --git a/libc/arch-arm/syscalls/fchownat.S b/libc/arch-arm/syscalls/fchownat.S index 8fd76a3..2aac0fe 100644 --- a/libc/arch-arm/syscalls/fchownat.S +++ b/libc/arch-arm/syscalls/fchownat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fchownat) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(fchownat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fchownat) diff --git a/libc/arch-arm/syscalls/fdatasync.S b/libc/arch-arm/syscalls/fdatasync.S index 9556665..7fefd22 100644 --- a/libc/arch-arm/syscalls/fdatasync.S +++ b/libc/arch-arm/syscalls/fdatasync.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fdatasync) mov ip, r7 ldr r7, =__NR_fdatasync @@ -12,5 +10,5 @@ ENTRY(fdatasync) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fdatasync) diff --git a/libc/arch-arm/syscalls/fgetxattr.S b/libc/arch-arm/syscalls/fgetxattr.S index 95e2809..3f1e5fc 100644 --- a/libc/arch-arm/syscalls/fgetxattr.S +++ b/libc/arch-arm/syscalls/fgetxattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fgetxattr) mov ip, r7 ldr r7, =__NR_fgetxattr @@ -12,5 +10,5 @@ ENTRY(fgetxattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fgetxattr) diff --git a/libc/arch-arm/syscalls/flistxattr.S b/libc/arch-arm/syscalls/flistxattr.S index 0d411b1..ee09295 100644 --- a/libc/arch-arm/syscalls/flistxattr.S +++ b/libc/arch-arm/syscalls/flistxattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(flistxattr) mov ip, r7 ldr r7, =__NR_flistxattr @@ -12,5 +10,5 @@ ENTRY(flistxattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(flistxattr) diff --git a/libc/arch-arm/syscalls/flock.S b/libc/arch-arm/syscalls/flock.S index e59d4f6..c946fe9 100644 --- a/libc/arch-arm/syscalls/flock.S +++ b/libc/arch-arm/syscalls/flock.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(flock) mov ip, r7 ldr r7, =__NR_flock @@ -12,5 +10,5 @@ ENTRY(flock) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(flock) diff --git a/libc/arch-arm/syscalls/fremovexattr.S b/libc/arch-arm/syscalls/fremovexattr.S index 3ec647f..f4e950b 100644 --- a/libc/arch-arm/syscalls/fremovexattr.S +++ b/libc/arch-arm/syscalls/fremovexattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fremovexattr) mov ip, r7 ldr r7, =__NR_fremovexattr @@ -12,5 +10,5 @@ ENTRY(fremovexattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fremovexattr) diff --git a/libc/arch-arm/syscalls/fsetxattr.S b/libc/arch-arm/syscalls/fsetxattr.S index 225e64b..0e33ad2 100644 --- a/libc/arch-arm/syscalls/fsetxattr.S +++ b/libc/arch-arm/syscalls/fsetxattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fsetxattr) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(fsetxattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fsetxattr) diff --git a/libc/arch-arm/syscalls/fstat64.S b/libc/arch-arm/syscalls/fstat64.S index 560bb94..c60e7ee 100644 --- a/libc/arch-arm/syscalls/fstat64.S +++ b/libc/arch-arm/syscalls/fstat64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fstat64) mov ip, r7 ldr r7, =__NR_fstat64 @@ -12,7 +10,7 @@ ENTRY(fstat64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fstat64) .globl fstat diff --git a/libc/arch-arm/syscalls/fstatat64.S b/libc/arch-arm/syscalls/fstatat64.S index cda5845..ce56c36 100644 --- a/libc/arch-arm/syscalls/fstatat64.S +++ b/libc/arch-arm/syscalls/fstatat64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fstatat64) mov ip, r7 ldr r7, =__NR_fstatat64 @@ -12,7 +10,7 @@ ENTRY(fstatat64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fstatat64) .globl fstatat diff --git a/libc/arch-arm/syscalls/fsync.S b/libc/arch-arm/syscalls/fsync.S index c6ba47b..1dfff05 100644 --- a/libc/arch-arm/syscalls/fsync.S +++ b/libc/arch-arm/syscalls/fsync.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(fsync) mov ip, r7 ldr r7, =__NR_fsync @@ -12,5 +10,5 @@ ENTRY(fsync) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(fsync) diff --git a/libc/arch-arm/syscalls/ftruncate.S b/libc/arch-arm/syscalls/ftruncate.S index 168d722..1bfe2f3 100644 --- a/libc/arch-arm/syscalls/ftruncate.S +++ b/libc/arch-arm/syscalls/ftruncate.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(ftruncate) mov ip, r7 ldr r7, =__NR_ftruncate @@ -12,5 +10,5 @@ ENTRY(ftruncate) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(ftruncate) diff --git a/libc/arch-arm/syscalls/ftruncate64.S b/libc/arch-arm/syscalls/ftruncate64.S index a2b73b8..ac0caa8 100644 --- a/libc/arch-arm/syscalls/ftruncate64.S +++ b/libc/arch-arm/syscalls/ftruncate64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(ftruncate64) mov ip, r7 ldr r7, =__NR_ftruncate64 @@ -12,5 +10,5 @@ ENTRY(ftruncate64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(ftruncate64) diff --git a/libc/arch-arm/syscalls/getegid.S b/libc/arch-arm/syscalls/getegid.S index e2f9fe9..afa9cc8 100644 --- a/libc/arch-arm/syscalls/getegid.S +++ b/libc/arch-arm/syscalls/getegid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getegid) mov ip, r7 ldr r7, =__NR_getegid32 @@ -12,5 +10,5 @@ ENTRY(getegid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getegid) diff --git a/libc/arch-arm/syscalls/geteuid.S b/libc/arch-arm/syscalls/geteuid.S index 1d55320..10c8a25 100644 --- a/libc/arch-arm/syscalls/geteuid.S +++ b/libc/arch-arm/syscalls/geteuid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(geteuid) mov ip, r7 ldr r7, =__NR_geteuid32 @@ -12,5 +10,5 @@ ENTRY(geteuid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(geteuid) diff --git a/libc/arch-arm/syscalls/getgid.S b/libc/arch-arm/syscalls/getgid.S index 9d81d73..8772762 100644 --- a/libc/arch-arm/syscalls/getgid.S +++ b/libc/arch-arm/syscalls/getgid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getgid) mov ip, r7 ldr r7, =__NR_getgid32 @@ -12,5 +10,5 @@ ENTRY(getgid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getgid) diff --git a/libc/arch-arm/syscalls/getgroups.S b/libc/arch-arm/syscalls/getgroups.S index 23aafaf..366299b 100644 --- a/libc/arch-arm/syscalls/getgroups.S +++ b/libc/arch-arm/syscalls/getgroups.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getgroups) mov ip, r7 ldr r7, =__NR_getgroups32 @@ -12,5 +10,5 @@ ENTRY(getgroups) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getgroups) diff --git a/libc/arch-arm/syscalls/getitimer.S b/libc/arch-arm/syscalls/getitimer.S index 095cf8f..80fb0f2 100644 --- a/libc/arch-arm/syscalls/getitimer.S +++ b/libc/arch-arm/syscalls/getitimer.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getitimer) mov ip, r7 ldr r7, =__NR_getitimer @@ -12,5 +10,5 @@ ENTRY(getitimer) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getitimer) diff --git a/libc/arch-arm/syscalls/getpeername.S b/libc/arch-arm/syscalls/getpeername.S index 760f6fb..25f0026 100644 --- a/libc/arch-arm/syscalls/getpeername.S +++ b/libc/arch-arm/syscalls/getpeername.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getpeername) mov ip, r7 ldr r7, =__NR_getpeername @@ -12,5 +10,5 @@ ENTRY(getpeername) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getpeername) diff --git a/libc/arch-arm/syscalls/getpgid.S b/libc/arch-arm/syscalls/getpgid.S index d07b058..36c4c19 100644 --- a/libc/arch-arm/syscalls/getpgid.S +++ b/libc/arch-arm/syscalls/getpgid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getpgid) mov ip, r7 ldr r7, =__NR_getpgid @@ -12,5 +10,5 @@ ENTRY(getpgid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getpgid) diff --git a/libc/arch-arm/syscalls/getppid.S b/libc/arch-arm/syscalls/getppid.S index bcc13a8..606b2e0 100644 --- a/libc/arch-arm/syscalls/getppid.S +++ b/libc/arch-arm/syscalls/getppid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getppid) mov ip, r7 ldr r7, =__NR_getppid @@ -12,5 +10,5 @@ ENTRY(getppid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getppid) diff --git a/libc/arch-arm/syscalls/getresgid.S b/libc/arch-arm/syscalls/getresgid.S index 9a87eaa..a5e4689 100644 --- a/libc/arch-arm/syscalls/getresgid.S +++ b/libc/arch-arm/syscalls/getresgid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getresgid) mov ip, r7 ldr r7, =__NR_getresgid32 @@ -12,5 +10,5 @@ ENTRY(getresgid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getresgid) diff --git a/libc/arch-arm/syscalls/getresuid.S b/libc/arch-arm/syscalls/getresuid.S index a332928..74c26a7 100644 --- a/libc/arch-arm/syscalls/getresuid.S +++ b/libc/arch-arm/syscalls/getresuid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getresuid) mov ip, r7 ldr r7, =__NR_getresuid32 @@ -12,5 +10,5 @@ ENTRY(getresuid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getresuid) diff --git a/libc/arch-arm/syscalls/getrlimit.S b/libc/arch-arm/syscalls/getrlimit.S index 4a9c62a..166da63 100644 --- a/libc/arch-arm/syscalls/getrlimit.S +++ b/libc/arch-arm/syscalls/getrlimit.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getrlimit) mov ip, r7 ldr r7, =__NR_ugetrlimit @@ -12,5 +10,5 @@ ENTRY(getrlimit) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getrlimit) diff --git a/libc/arch-arm/syscalls/getrusage.S b/libc/arch-arm/syscalls/getrusage.S index 4799b69..93979c6 100644 --- a/libc/arch-arm/syscalls/getrusage.S +++ b/libc/arch-arm/syscalls/getrusage.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getrusage) mov ip, r7 ldr r7, =__NR_getrusage @@ -12,5 +10,5 @@ ENTRY(getrusage) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getrusage) diff --git a/libc/arch-arm/syscalls/getsid.S b/libc/arch-arm/syscalls/getsid.S index 5a26e94..87d38fb 100644 --- a/libc/arch-arm/syscalls/getsid.S +++ b/libc/arch-arm/syscalls/getsid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getsid) mov ip, r7 ldr r7, =__NR_getsid @@ -12,5 +10,5 @@ ENTRY(getsid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getsid) diff --git a/libc/arch-arm/syscalls/getsockname.S b/libc/arch-arm/syscalls/getsockname.S index 78e0752..5dc4eab 100644 --- a/libc/arch-arm/syscalls/getsockname.S +++ b/libc/arch-arm/syscalls/getsockname.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getsockname) mov ip, r7 ldr r7, =__NR_getsockname @@ -12,5 +10,5 @@ ENTRY(getsockname) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getsockname) diff --git a/libc/arch-arm/syscalls/getsockopt.S b/libc/arch-arm/syscalls/getsockopt.S index e1badfb..4143bbd 100644 --- a/libc/arch-arm/syscalls/getsockopt.S +++ b/libc/arch-arm/syscalls/getsockopt.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getsockopt) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(getsockopt) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getsockopt) diff --git a/libc/arch-arm/syscalls/gettimeofday.S b/libc/arch-arm/syscalls/gettimeofday.S index 611c0d4..174f94b 100644 --- a/libc/arch-arm/syscalls/gettimeofday.S +++ b/libc/arch-arm/syscalls/gettimeofday.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(gettimeofday) mov ip, r7 ldr r7, =__NR_gettimeofday @@ -12,5 +10,5 @@ ENTRY(gettimeofday) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(gettimeofday) diff --git a/libc/arch-arm/syscalls/getuid.S b/libc/arch-arm/syscalls/getuid.S index 2e97c55..3d07d3c 100644 --- a/libc/arch-arm/syscalls/getuid.S +++ b/libc/arch-arm/syscalls/getuid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getuid) mov ip, r7 ldr r7, =__NR_getuid32 @@ -12,5 +10,5 @@ ENTRY(getuid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getuid) diff --git a/libc/arch-arm/syscalls/getxattr.S b/libc/arch-arm/syscalls/getxattr.S index da0e86d..6661aaf 100644 --- a/libc/arch-arm/syscalls/getxattr.S +++ b/libc/arch-arm/syscalls/getxattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(getxattr) mov ip, r7 ldr r7, =__NR_getxattr @@ -12,5 +10,5 @@ ENTRY(getxattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(getxattr) diff --git a/libc/arch-arm/syscalls/init_module.S b/libc/arch-arm/syscalls/init_module.S index bf30b03..8251533 100644 --- a/libc/arch-arm/syscalls/init_module.S +++ b/libc/arch-arm/syscalls/init_module.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(init_module) mov ip, r7 ldr r7, =__NR_init_module @@ -12,5 +10,5 @@ ENTRY(init_module) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(init_module) diff --git a/libc/arch-arm/syscalls/inotify_add_watch.S b/libc/arch-arm/syscalls/inotify_add_watch.S index 982d338..b945bd1 100644 --- a/libc/arch-arm/syscalls/inotify_add_watch.S +++ b/libc/arch-arm/syscalls/inotify_add_watch.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(inotify_add_watch) mov ip, r7 ldr r7, =__NR_inotify_add_watch @@ -12,5 +10,5 @@ ENTRY(inotify_add_watch) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(inotify_add_watch) diff --git a/libc/arch-arm/syscalls/inotify_init1.S b/libc/arch-arm/syscalls/inotify_init1.S index 2253ec8..32090de 100644 --- a/libc/arch-arm/syscalls/inotify_init1.S +++ b/libc/arch-arm/syscalls/inotify_init1.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(inotify_init1) mov ip, r7 ldr r7, =__NR_inotify_init1 @@ -12,5 +10,5 @@ ENTRY(inotify_init1) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(inotify_init1) diff --git a/libc/arch-arm/syscalls/inotify_rm_watch.S b/libc/arch-arm/syscalls/inotify_rm_watch.S index 9d7e6ae..e8230e2 100644 --- a/libc/arch-arm/syscalls/inotify_rm_watch.S +++ b/libc/arch-arm/syscalls/inotify_rm_watch.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(inotify_rm_watch) mov ip, r7 ldr r7, =__NR_inotify_rm_watch @@ -12,5 +10,5 @@ ENTRY(inotify_rm_watch) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(inotify_rm_watch) diff --git a/libc/arch-arm/syscalls/kill.S b/libc/arch-arm/syscalls/kill.S index 7e4d6c4..0b5f4a4 100644 --- a/libc/arch-arm/syscalls/kill.S +++ b/libc/arch-arm/syscalls/kill.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(kill) mov ip, r7 ldr r7, =__NR_kill @@ -12,5 +10,5 @@ ENTRY(kill) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(kill) diff --git a/libc/arch-arm/syscalls/klogctl.S b/libc/arch-arm/syscalls/klogctl.S index f5fe27f..b76b2b5 100644 --- a/libc/arch-arm/syscalls/klogctl.S +++ b/libc/arch-arm/syscalls/klogctl.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(klogctl) mov ip, r7 ldr r7, =__NR_syslog @@ -12,5 +10,5 @@ ENTRY(klogctl) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(klogctl) diff --git a/libc/arch-arm/syscalls/lgetxattr.S b/libc/arch-arm/syscalls/lgetxattr.S index 70b7235..b033a9a 100644 --- a/libc/arch-arm/syscalls/lgetxattr.S +++ b/libc/arch-arm/syscalls/lgetxattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(lgetxattr) mov ip, r7 ldr r7, =__NR_lgetxattr @@ -12,5 +10,5 @@ ENTRY(lgetxattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(lgetxattr) diff --git a/libc/arch-arm/syscalls/linkat.S b/libc/arch-arm/syscalls/linkat.S index 7a578f8..6e74d06 100644 --- a/libc/arch-arm/syscalls/linkat.S +++ b/libc/arch-arm/syscalls/linkat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(linkat) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(linkat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(linkat) diff --git a/libc/arch-arm/syscalls/listen.S b/libc/arch-arm/syscalls/listen.S index 5c33912..3aaa801 100644 --- a/libc/arch-arm/syscalls/listen.S +++ b/libc/arch-arm/syscalls/listen.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(listen) mov ip, r7 ldr r7, =__NR_listen @@ -12,5 +10,5 @@ ENTRY(listen) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(listen) diff --git a/libc/arch-arm/syscalls/listxattr.S b/libc/arch-arm/syscalls/listxattr.S index ea8f5d8..51ff267 100644 --- a/libc/arch-arm/syscalls/listxattr.S +++ b/libc/arch-arm/syscalls/listxattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(listxattr) mov ip, r7 ldr r7, =__NR_listxattr @@ -12,5 +10,5 @@ ENTRY(listxattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(listxattr) diff --git a/libc/arch-arm/syscalls/llistxattr.S b/libc/arch-arm/syscalls/llistxattr.S index b7f3375..46e8116 100644 --- a/libc/arch-arm/syscalls/llistxattr.S +++ b/libc/arch-arm/syscalls/llistxattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(llistxattr) mov ip, r7 ldr r7, =__NR_llistxattr @@ -12,5 +10,5 @@ ENTRY(llistxattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(llistxattr) diff --git a/libc/arch-arm/syscalls/lremovexattr.S b/libc/arch-arm/syscalls/lremovexattr.S index a8d0d2d..a945062 100644 --- a/libc/arch-arm/syscalls/lremovexattr.S +++ b/libc/arch-arm/syscalls/lremovexattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(lremovexattr) mov ip, r7 ldr r7, =__NR_lremovexattr @@ -12,5 +10,5 @@ ENTRY(lremovexattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(lremovexattr) diff --git a/libc/arch-arm/syscalls/lseek.S b/libc/arch-arm/syscalls/lseek.S index 17697d4..00aeab3 100644 --- a/libc/arch-arm/syscalls/lseek.S +++ b/libc/arch-arm/syscalls/lseek.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(lseek) mov ip, r7 ldr r7, =__NR_lseek @@ -12,5 +10,5 @@ ENTRY(lseek) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(lseek) diff --git a/libc/arch-arm/syscalls/lsetxattr.S b/libc/arch-arm/syscalls/lsetxattr.S index 166ef7f..c41fb88 100644 --- a/libc/arch-arm/syscalls/lsetxattr.S +++ b/libc/arch-arm/syscalls/lsetxattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(lsetxattr) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(lsetxattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(lsetxattr) diff --git a/libc/arch-arm/syscalls/madvise.S b/libc/arch-arm/syscalls/madvise.S index ffa71c4..4d3cdcd 100644 --- a/libc/arch-arm/syscalls/madvise.S +++ b/libc/arch-arm/syscalls/madvise.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(madvise) mov ip, r7 ldr r7, =__NR_madvise @@ -12,5 +10,5 @@ ENTRY(madvise) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(madvise) diff --git a/libc/arch-arm/syscalls/mincore.S b/libc/arch-arm/syscalls/mincore.S index 5eb5f10..f1154d0 100644 --- a/libc/arch-arm/syscalls/mincore.S +++ b/libc/arch-arm/syscalls/mincore.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(mincore) mov ip, r7 ldr r7, =__NR_mincore @@ -12,5 +10,5 @@ ENTRY(mincore) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(mincore) diff --git a/libc/arch-arm/syscalls/mkdirat.S b/libc/arch-arm/syscalls/mkdirat.S index d9c58ad..1f8957b 100644 --- a/libc/arch-arm/syscalls/mkdirat.S +++ b/libc/arch-arm/syscalls/mkdirat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(mkdirat) mov ip, r7 ldr r7, =__NR_mkdirat @@ -12,5 +10,5 @@ ENTRY(mkdirat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(mkdirat) diff --git a/libc/arch-arm/syscalls/mknodat.S b/libc/arch-arm/syscalls/mknodat.S index d6296f1..1a2bf6f 100644 --- a/libc/arch-arm/syscalls/mknodat.S +++ b/libc/arch-arm/syscalls/mknodat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(mknodat) mov ip, r7 ldr r7, =__NR_mknodat @@ -12,5 +10,5 @@ ENTRY(mknodat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(mknodat) diff --git a/libc/arch-arm/syscalls/mlock.S b/libc/arch-arm/syscalls/mlock.S index 21fd5f9..8a4fc7a 100644 --- a/libc/arch-arm/syscalls/mlock.S +++ b/libc/arch-arm/syscalls/mlock.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(mlock) mov ip, r7 ldr r7, =__NR_mlock @@ -12,5 +10,5 @@ ENTRY(mlock) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(mlock) diff --git a/libc/arch-arm/syscalls/mlockall.S b/libc/arch-arm/syscalls/mlockall.S index 750b7ec..b49ca05 100644 --- a/libc/arch-arm/syscalls/mlockall.S +++ b/libc/arch-arm/syscalls/mlockall.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(mlockall) mov ip, r7 ldr r7, =__NR_mlockall @@ -12,5 +10,5 @@ ENTRY(mlockall) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(mlockall) diff --git a/libc/arch-arm/syscalls/mount.S b/libc/arch-arm/syscalls/mount.S index d2fa20e..ed28ab2 100644 --- a/libc/arch-arm/syscalls/mount.S +++ b/libc/arch-arm/syscalls/mount.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(mount) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(mount) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(mount) diff --git a/libc/arch-arm/syscalls/mprotect.S b/libc/arch-arm/syscalls/mprotect.S index dfc6f08..cb51306 100644 --- a/libc/arch-arm/syscalls/mprotect.S +++ b/libc/arch-arm/syscalls/mprotect.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(mprotect) mov ip, r7 ldr r7, =__NR_mprotect @@ -12,5 +10,5 @@ ENTRY(mprotect) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(mprotect) diff --git a/libc/arch-arm/syscalls/mremap.S b/libc/arch-arm/syscalls/mremap.S index a674571..505ea3c 100644 --- a/libc/arch-arm/syscalls/mremap.S +++ b/libc/arch-arm/syscalls/mremap.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(mremap) mov ip, r7 ldr r7, =__NR_mremap @@ -12,5 +10,5 @@ ENTRY(mremap) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(mremap) diff --git a/libc/arch-arm/syscalls/msync.S b/libc/arch-arm/syscalls/msync.S index e062a5e..220fb4d 100644 --- a/libc/arch-arm/syscalls/msync.S +++ b/libc/arch-arm/syscalls/msync.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(msync) mov ip, r7 ldr r7, =__NR_msync @@ -12,5 +10,5 @@ ENTRY(msync) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(msync) diff --git a/libc/arch-arm/syscalls/munlock.S b/libc/arch-arm/syscalls/munlock.S index c44d147..05bf941 100644 --- a/libc/arch-arm/syscalls/munlock.S +++ b/libc/arch-arm/syscalls/munlock.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(munlock) mov ip, r7 ldr r7, =__NR_munlock @@ -12,5 +10,5 @@ ENTRY(munlock) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(munlock) diff --git a/libc/arch-arm/syscalls/munlockall.S b/libc/arch-arm/syscalls/munlockall.S index 3a36b7e..e2c5dd5 100644 --- a/libc/arch-arm/syscalls/munlockall.S +++ b/libc/arch-arm/syscalls/munlockall.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(munlockall) mov ip, r7 ldr r7, =__NR_munlockall @@ -12,5 +10,5 @@ ENTRY(munlockall) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(munlockall) diff --git a/libc/arch-arm/syscalls/munmap.S b/libc/arch-arm/syscalls/munmap.S index a94e4e5..740c360 100644 --- a/libc/arch-arm/syscalls/munmap.S +++ b/libc/arch-arm/syscalls/munmap.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(munmap) mov ip, r7 ldr r7, =__NR_munmap @@ -12,5 +10,5 @@ ENTRY(munmap) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(munmap) diff --git a/libc/arch-arm/syscalls/nanosleep.S b/libc/arch-arm/syscalls/nanosleep.S index 743adc2..fcd6e90 100644 --- a/libc/arch-arm/syscalls/nanosleep.S +++ b/libc/arch-arm/syscalls/nanosleep.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(nanosleep) mov ip, r7 ldr r7, =__NR_nanosleep @@ -12,5 +10,5 @@ ENTRY(nanosleep) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(nanosleep) diff --git a/libc/arch-arm/syscalls/personality.S b/libc/arch-arm/syscalls/personality.S index 90dfe22..d43d763 100644 --- a/libc/arch-arm/syscalls/personality.S +++ b/libc/arch-arm/syscalls/personality.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(personality) mov ip, r7 ldr r7, =__NR_personality @@ -12,5 +10,5 @@ ENTRY(personality) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(personality) diff --git a/libc/arch-arm/syscalls/pipe2.S b/libc/arch-arm/syscalls/pipe2.S index b295df5..1cbdfb2 100644 --- a/libc/arch-arm/syscalls/pipe2.S +++ b/libc/arch-arm/syscalls/pipe2.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(pipe2) mov ip, r7 ldr r7, =__NR_pipe2 @@ -12,5 +10,5 @@ ENTRY(pipe2) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(pipe2) diff --git a/libc/arch-arm/syscalls/prctl.S b/libc/arch-arm/syscalls/prctl.S index c8f68d3..a2d869c 100644 --- a/libc/arch-arm/syscalls/prctl.S +++ b/libc/arch-arm/syscalls/prctl.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(prctl) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(prctl) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(prctl) diff --git a/libc/arch-arm/syscalls/pread64.S b/libc/arch-arm/syscalls/pread64.S index 3eeae3d..dc07bb3 100644 --- a/libc/arch-arm/syscalls/pread64.S +++ b/libc/arch-arm/syscalls/pread64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(pread64) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(pread64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(pread64) diff --git a/libc/arch-arm/syscalls/prlimit64.S b/libc/arch-arm/syscalls/prlimit64.S index 87c53d5..3ae9e1b 100644 --- a/libc/arch-arm/syscalls/prlimit64.S +++ b/libc/arch-arm/syscalls/prlimit64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(prlimit64) mov ip, r7 ldr r7, =__NR_prlimit64 @@ -12,5 +10,5 @@ ENTRY(prlimit64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(prlimit64) diff --git a/libc/arch-arm/syscalls/pwrite64.S b/libc/arch-arm/syscalls/pwrite64.S index c63b835..5749f6b 100644 --- a/libc/arch-arm/syscalls/pwrite64.S +++ b/libc/arch-arm/syscalls/pwrite64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(pwrite64) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(pwrite64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(pwrite64) diff --git a/libc/arch-arm/syscalls/read.S b/libc/arch-arm/syscalls/read.S index 9de525c..1c3b395 100644 --- a/libc/arch-arm/syscalls/read.S +++ b/libc/arch-arm/syscalls/read.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(read) mov ip, r7 ldr r7, =__NR_read @@ -12,5 +10,5 @@ ENTRY(read) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(read) diff --git a/libc/arch-arm/syscalls/readahead.S b/libc/arch-arm/syscalls/readahead.S index 995f00e..6952b4e 100644 --- a/libc/arch-arm/syscalls/readahead.S +++ b/libc/arch-arm/syscalls/readahead.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(readahead) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(readahead) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(readahead) diff --git a/libc/arch-arm/syscalls/readlinkat.S b/libc/arch-arm/syscalls/readlinkat.S index f865de5..e7cc8ff 100644 --- a/libc/arch-arm/syscalls/readlinkat.S +++ b/libc/arch-arm/syscalls/readlinkat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(readlinkat) mov ip, r7 ldr r7, =__NR_readlinkat @@ -12,5 +10,5 @@ ENTRY(readlinkat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(readlinkat) diff --git a/libc/arch-arm/syscalls/readv.S b/libc/arch-arm/syscalls/readv.S index 9401687..c7807bd 100644 --- a/libc/arch-arm/syscalls/readv.S +++ b/libc/arch-arm/syscalls/readv.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(readv) mov ip, r7 ldr r7, =__NR_readv @@ -12,5 +10,5 @@ ENTRY(readv) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(readv) diff --git a/libc/arch-arm/syscalls/recvfrom.S b/libc/arch-arm/syscalls/recvfrom.S index 6390a82..115a09c 100644 --- a/libc/arch-arm/syscalls/recvfrom.S +++ b/libc/arch-arm/syscalls/recvfrom.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(recvfrom) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(recvfrom) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(recvfrom) diff --git a/libc/arch-arm/syscalls/recvmmsg.S b/libc/arch-arm/syscalls/recvmmsg.S index 067ed1e..6cf2b92 100644 --- a/libc/arch-arm/syscalls/recvmmsg.S +++ b/libc/arch-arm/syscalls/recvmmsg.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(recvmmsg) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(recvmmsg) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(recvmmsg) diff --git a/libc/arch-arm/syscalls/recvmsg.S b/libc/arch-arm/syscalls/recvmsg.S index f688481..995a9e3 100644 --- a/libc/arch-arm/syscalls/recvmsg.S +++ b/libc/arch-arm/syscalls/recvmsg.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(recvmsg) mov ip, r7 ldr r7, =__NR_recvmsg @@ -12,5 +10,5 @@ ENTRY(recvmsg) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(recvmsg) diff --git a/libc/arch-arm/syscalls/removexattr.S b/libc/arch-arm/syscalls/removexattr.S index 59d0e2f..3a32e5c 100644 --- a/libc/arch-arm/syscalls/removexattr.S +++ b/libc/arch-arm/syscalls/removexattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(removexattr) mov ip, r7 ldr r7, =__NR_removexattr @@ -12,5 +10,5 @@ ENTRY(removexattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(removexattr) diff --git a/libc/arch-arm/syscalls/renameat.S b/libc/arch-arm/syscalls/renameat.S index 7a4d268..98e86dc 100644 --- a/libc/arch-arm/syscalls/renameat.S +++ b/libc/arch-arm/syscalls/renameat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(renameat) mov ip, r7 ldr r7, =__NR_renameat @@ -12,5 +10,5 @@ ENTRY(renameat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(renameat) diff --git a/libc/arch-arm/syscalls/sched_get_priority_max.S b/libc/arch-arm/syscalls/sched_get_priority_max.S index 2aafafc..187e680 100644 --- a/libc/arch-arm/syscalls/sched_get_priority_max.S +++ b/libc/arch-arm/syscalls/sched_get_priority_max.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sched_get_priority_max) mov ip, r7 ldr r7, =__NR_sched_get_priority_max @@ -12,5 +10,5 @@ ENTRY(sched_get_priority_max) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sched_get_priority_max) diff --git a/libc/arch-arm/syscalls/sched_get_priority_min.S b/libc/arch-arm/syscalls/sched_get_priority_min.S index 40e14ef..68bf7df 100644 --- a/libc/arch-arm/syscalls/sched_get_priority_min.S +++ b/libc/arch-arm/syscalls/sched_get_priority_min.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sched_get_priority_min) mov ip, r7 ldr r7, =__NR_sched_get_priority_min @@ -12,5 +10,5 @@ ENTRY(sched_get_priority_min) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sched_get_priority_min) diff --git a/libc/arch-arm/syscalls/sched_getparam.S b/libc/arch-arm/syscalls/sched_getparam.S index 3d58651..32b97b8 100644 --- a/libc/arch-arm/syscalls/sched_getparam.S +++ b/libc/arch-arm/syscalls/sched_getparam.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sched_getparam) mov ip, r7 ldr r7, =__NR_sched_getparam @@ -12,5 +10,5 @@ ENTRY(sched_getparam) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sched_getparam) diff --git a/libc/arch-arm/syscalls/sched_getscheduler.S b/libc/arch-arm/syscalls/sched_getscheduler.S index e9478ca..330c208 100644 --- a/libc/arch-arm/syscalls/sched_getscheduler.S +++ b/libc/arch-arm/syscalls/sched_getscheduler.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sched_getscheduler) mov ip, r7 ldr r7, =__NR_sched_getscheduler @@ -12,5 +10,5 @@ ENTRY(sched_getscheduler) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sched_getscheduler) diff --git a/libc/arch-arm/syscalls/sched_rr_get_interval.S b/libc/arch-arm/syscalls/sched_rr_get_interval.S index ed90b73..5d176ac 100644 --- a/libc/arch-arm/syscalls/sched_rr_get_interval.S +++ b/libc/arch-arm/syscalls/sched_rr_get_interval.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sched_rr_get_interval) mov ip, r7 ldr r7, =__NR_sched_rr_get_interval @@ -12,5 +10,5 @@ ENTRY(sched_rr_get_interval) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sched_rr_get_interval) diff --git a/libc/arch-arm/syscalls/sched_setaffinity.S b/libc/arch-arm/syscalls/sched_setaffinity.S index d5f72a9..6653471 100644 --- a/libc/arch-arm/syscalls/sched_setaffinity.S +++ b/libc/arch-arm/syscalls/sched_setaffinity.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sched_setaffinity) mov ip, r7 ldr r7, =__NR_sched_setaffinity @@ -12,5 +10,5 @@ ENTRY(sched_setaffinity) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sched_setaffinity) diff --git a/libc/arch-arm/syscalls/sched_setparam.S b/libc/arch-arm/syscalls/sched_setparam.S index 3ec06c0..16e1997 100644 --- a/libc/arch-arm/syscalls/sched_setparam.S +++ b/libc/arch-arm/syscalls/sched_setparam.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sched_setparam) mov ip, r7 ldr r7, =__NR_sched_setparam @@ -12,5 +10,5 @@ ENTRY(sched_setparam) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sched_setparam) diff --git a/libc/arch-arm/syscalls/sched_setscheduler.S b/libc/arch-arm/syscalls/sched_setscheduler.S index 0e61ffb..2ec9fec 100644 --- a/libc/arch-arm/syscalls/sched_setscheduler.S +++ b/libc/arch-arm/syscalls/sched_setscheduler.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sched_setscheduler) mov ip, r7 ldr r7, =__NR_sched_setscheduler @@ -12,5 +10,5 @@ ENTRY(sched_setscheduler) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sched_setscheduler) diff --git a/libc/arch-arm/syscalls/sched_yield.S b/libc/arch-arm/syscalls/sched_yield.S index f26297e..1ec328f 100644 --- a/libc/arch-arm/syscalls/sched_yield.S +++ b/libc/arch-arm/syscalls/sched_yield.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sched_yield) mov ip, r7 ldr r7, =__NR_sched_yield @@ -12,5 +10,5 @@ ENTRY(sched_yield) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sched_yield) diff --git a/libc/arch-arm/syscalls/sendfile.S b/libc/arch-arm/syscalls/sendfile.S index e4df8ff..afae021 100644 --- a/libc/arch-arm/syscalls/sendfile.S +++ b/libc/arch-arm/syscalls/sendfile.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sendfile) mov ip, r7 ldr r7, =__NR_sendfile @@ -12,5 +10,5 @@ ENTRY(sendfile) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sendfile) diff --git a/libc/arch-arm/syscalls/sendfile64.S b/libc/arch-arm/syscalls/sendfile64.S index ab48963..d0ad0b8 100644 --- a/libc/arch-arm/syscalls/sendfile64.S +++ b/libc/arch-arm/syscalls/sendfile64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sendfile64) mov ip, r7 ldr r7, =__NR_sendfile64 @@ -12,5 +10,5 @@ ENTRY(sendfile64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sendfile64) diff --git a/libc/arch-arm/syscalls/sendmmsg.S b/libc/arch-arm/syscalls/sendmmsg.S index 998e6c7..8bb5f80 100644 --- a/libc/arch-arm/syscalls/sendmmsg.S +++ b/libc/arch-arm/syscalls/sendmmsg.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sendmmsg) mov ip, r7 ldr r7, =__NR_sendmmsg @@ -12,5 +10,5 @@ ENTRY(sendmmsg) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sendmmsg) diff --git a/libc/arch-arm/syscalls/sendmsg.S b/libc/arch-arm/syscalls/sendmsg.S index d25d6b4..fd38140 100644 --- a/libc/arch-arm/syscalls/sendmsg.S +++ b/libc/arch-arm/syscalls/sendmsg.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sendmsg) mov ip, r7 ldr r7, =__NR_sendmsg @@ -12,5 +10,5 @@ ENTRY(sendmsg) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sendmsg) diff --git a/libc/arch-arm/syscalls/sendto.S b/libc/arch-arm/syscalls/sendto.S index b5e8de9..29b7b0b 100644 --- a/libc/arch-arm/syscalls/sendto.S +++ b/libc/arch-arm/syscalls/sendto.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sendto) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(sendto) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sendto) diff --git a/libc/arch-arm/syscalls/setfsgid.S b/libc/arch-arm/syscalls/setfsgid.S index 7cdb610..f677a94 100644 --- a/libc/arch-arm/syscalls/setfsgid.S +++ b/libc/arch-arm/syscalls/setfsgid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setfsgid) mov ip, r7 ldr r7, =__NR_setfsgid @@ -12,5 +10,5 @@ ENTRY(setfsgid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setfsgid) diff --git a/libc/arch-arm/syscalls/setfsuid.S b/libc/arch-arm/syscalls/setfsuid.S index ae65298..5d27a4d 100644 --- a/libc/arch-arm/syscalls/setfsuid.S +++ b/libc/arch-arm/syscalls/setfsuid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setfsuid) mov ip, r7 ldr r7, =__NR_setfsuid @@ -12,5 +10,5 @@ ENTRY(setfsuid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setfsuid) diff --git a/libc/arch-arm/syscalls/setgid.S b/libc/arch-arm/syscalls/setgid.S index 15583ac..d9b2b88 100644 --- a/libc/arch-arm/syscalls/setgid.S +++ b/libc/arch-arm/syscalls/setgid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setgid) mov ip, r7 ldr r7, =__NR_setgid32 @@ -12,5 +10,5 @@ ENTRY(setgid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setgid) diff --git a/libc/arch-arm/syscalls/setgroups.S b/libc/arch-arm/syscalls/setgroups.S index eb610b1..169de73 100644 --- a/libc/arch-arm/syscalls/setgroups.S +++ b/libc/arch-arm/syscalls/setgroups.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setgroups) mov ip, r7 ldr r7, =__NR_setgroups32 @@ -12,5 +10,5 @@ ENTRY(setgroups) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setgroups) diff --git a/libc/arch-arm/syscalls/setitimer.S b/libc/arch-arm/syscalls/setitimer.S index 4da2b40..31b277b 100644 --- a/libc/arch-arm/syscalls/setitimer.S +++ b/libc/arch-arm/syscalls/setitimer.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setitimer) mov ip, r7 ldr r7, =__NR_setitimer @@ -12,5 +10,5 @@ ENTRY(setitimer) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setitimer) diff --git a/libc/arch-arm/syscalls/setns.S b/libc/arch-arm/syscalls/setns.S index 891a0ac..59203ef 100644 --- a/libc/arch-arm/syscalls/setns.S +++ b/libc/arch-arm/syscalls/setns.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setns) mov ip, r7 ldr r7, =__NR_setns @@ -12,5 +10,5 @@ ENTRY(setns) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setns) diff --git a/libc/arch-arm/syscalls/setpgid.S b/libc/arch-arm/syscalls/setpgid.S index e4edcdf..4a91520 100644 --- a/libc/arch-arm/syscalls/setpgid.S +++ b/libc/arch-arm/syscalls/setpgid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setpgid) mov ip, r7 ldr r7, =__NR_setpgid @@ -12,5 +10,5 @@ ENTRY(setpgid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setpgid) diff --git a/libc/arch-arm/syscalls/setpriority.S b/libc/arch-arm/syscalls/setpriority.S index 80d0d82..2053ce1 100644 --- a/libc/arch-arm/syscalls/setpriority.S +++ b/libc/arch-arm/syscalls/setpriority.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setpriority) mov ip, r7 ldr r7, =__NR_setpriority @@ -12,5 +10,5 @@ ENTRY(setpriority) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setpriority) diff --git a/libc/arch-arm/syscalls/setregid.S b/libc/arch-arm/syscalls/setregid.S index b2cd345..f1bdc60 100644 --- a/libc/arch-arm/syscalls/setregid.S +++ b/libc/arch-arm/syscalls/setregid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setregid) mov ip, r7 ldr r7, =__NR_setregid32 @@ -12,5 +10,5 @@ ENTRY(setregid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setregid) diff --git a/libc/arch-arm/syscalls/setresgid.S b/libc/arch-arm/syscalls/setresgid.S index 75a9f75..9b8968a 100644 --- a/libc/arch-arm/syscalls/setresgid.S +++ b/libc/arch-arm/syscalls/setresgid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setresgid) mov ip, r7 ldr r7, =__NR_setresgid32 @@ -12,5 +10,5 @@ ENTRY(setresgid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setresgid) diff --git a/libc/arch-arm/syscalls/setresuid.S b/libc/arch-arm/syscalls/setresuid.S index f3382f2..c26a955 100644 --- a/libc/arch-arm/syscalls/setresuid.S +++ b/libc/arch-arm/syscalls/setresuid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setresuid) mov ip, r7 ldr r7, =__NR_setresuid32 @@ -12,5 +10,5 @@ ENTRY(setresuid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setresuid) diff --git a/libc/arch-arm/syscalls/setreuid.S b/libc/arch-arm/syscalls/setreuid.S index 1d866e9..796191a 100644 --- a/libc/arch-arm/syscalls/setreuid.S +++ b/libc/arch-arm/syscalls/setreuid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setreuid) mov ip, r7 ldr r7, =__NR_setreuid32 @@ -12,5 +10,5 @@ ENTRY(setreuid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setreuid) diff --git a/libc/arch-arm/syscalls/setrlimit.S b/libc/arch-arm/syscalls/setrlimit.S index 0ddd711..c87b21b 100644 --- a/libc/arch-arm/syscalls/setrlimit.S +++ b/libc/arch-arm/syscalls/setrlimit.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setrlimit) mov ip, r7 ldr r7, =__NR_setrlimit @@ -12,5 +10,5 @@ ENTRY(setrlimit) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setrlimit) diff --git a/libc/arch-arm/syscalls/setsid.S b/libc/arch-arm/syscalls/setsid.S index 69b351f..83bda1b 100644 --- a/libc/arch-arm/syscalls/setsid.S +++ b/libc/arch-arm/syscalls/setsid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setsid) mov ip, r7 ldr r7, =__NR_setsid @@ -12,5 +10,5 @@ ENTRY(setsid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setsid) diff --git a/libc/arch-arm/syscalls/setsockopt.S b/libc/arch-arm/syscalls/setsockopt.S index 87df622..8ea3893 100644 --- a/libc/arch-arm/syscalls/setsockopt.S +++ b/libc/arch-arm/syscalls/setsockopt.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setsockopt) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(setsockopt) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setsockopt) diff --git a/libc/arch-arm/syscalls/settimeofday.S b/libc/arch-arm/syscalls/settimeofday.S index 76697fc..5763f40 100644 --- a/libc/arch-arm/syscalls/settimeofday.S +++ b/libc/arch-arm/syscalls/settimeofday.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(settimeofday) mov ip, r7 ldr r7, =__NR_settimeofday @@ -12,5 +10,5 @@ ENTRY(settimeofday) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(settimeofday) diff --git a/libc/arch-arm/syscalls/setuid.S b/libc/arch-arm/syscalls/setuid.S index 26d3ed1..55b349c 100644 --- a/libc/arch-arm/syscalls/setuid.S +++ b/libc/arch-arm/syscalls/setuid.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setuid) mov ip, r7 ldr r7, =__NR_setuid32 @@ -12,5 +10,5 @@ ENTRY(setuid) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setuid) diff --git a/libc/arch-arm/syscalls/setxattr.S b/libc/arch-arm/syscalls/setxattr.S index ec948ce..8ba4b77 100644 --- a/libc/arch-arm/syscalls/setxattr.S +++ b/libc/arch-arm/syscalls/setxattr.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(setxattr) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(setxattr) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(setxattr) diff --git a/libc/arch-arm/syscalls/shutdown.S b/libc/arch-arm/syscalls/shutdown.S index e9a27d4..889934a 100644 --- a/libc/arch-arm/syscalls/shutdown.S +++ b/libc/arch-arm/syscalls/shutdown.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(shutdown) mov ip, r7 ldr r7, =__NR_shutdown @@ -12,5 +10,5 @@ ENTRY(shutdown) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(shutdown) diff --git a/libc/arch-arm/syscalls/sigaltstack.S b/libc/arch-arm/syscalls/sigaltstack.S index 18a1ffe..b61b25d 100644 --- a/libc/arch-arm/syscalls/sigaltstack.S +++ b/libc/arch-arm/syscalls/sigaltstack.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sigaltstack) mov ip, r7 ldr r7, =__NR_sigaltstack @@ -12,5 +10,5 @@ ENTRY(sigaltstack) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sigaltstack) diff --git a/libc/arch-arm/syscalls/socketpair.S b/libc/arch-arm/syscalls/socketpair.S index 66f0c32..f3c8a4b 100644 --- a/libc/arch-arm/syscalls/socketpair.S +++ b/libc/arch-arm/syscalls/socketpair.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(socketpair) mov ip, r7 ldr r7, =__NR_socketpair @@ -12,5 +10,5 @@ ENTRY(socketpair) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(socketpair) diff --git a/libc/arch-arm/syscalls/splice.S b/libc/arch-arm/syscalls/splice.S index 6273138..6bc3f0d 100644 --- a/libc/arch-arm/syscalls/splice.S +++ b/libc/arch-arm/syscalls/splice.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(splice) mov ip, sp stmfd sp!, {r4, r5, r6, r7} @@ -20,5 +18,5 @@ ENTRY(splice) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(splice) diff --git a/libc/arch-arm/syscalls/swapoff.S b/libc/arch-arm/syscalls/swapoff.S index a497aad..a7aaa82 100644 --- a/libc/arch-arm/syscalls/swapoff.S +++ b/libc/arch-arm/syscalls/swapoff.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(swapoff) mov ip, r7 ldr r7, =__NR_swapoff @@ -12,5 +10,5 @@ ENTRY(swapoff) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(swapoff) diff --git a/libc/arch-arm/syscalls/swapon.S b/libc/arch-arm/syscalls/swapon.S index ded2abc..6ea93c3 100644 --- a/libc/arch-arm/syscalls/swapon.S +++ b/libc/arch-arm/syscalls/swapon.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(swapon) mov ip, r7 ldr r7, =__NR_swapon @@ -12,5 +10,5 @@ ENTRY(swapon) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(swapon) diff --git a/libc/arch-arm/syscalls/symlinkat.S b/libc/arch-arm/syscalls/symlinkat.S index cc91b88..d330a54 100644 --- a/libc/arch-arm/syscalls/symlinkat.S +++ b/libc/arch-arm/syscalls/symlinkat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(symlinkat) mov ip, r7 ldr r7, =__NR_symlinkat @@ -12,5 +10,5 @@ ENTRY(symlinkat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(symlinkat) diff --git a/libc/arch-arm/syscalls/sync.S b/libc/arch-arm/syscalls/sync.S index ab22855..48ecfc0 100644 --- a/libc/arch-arm/syscalls/sync.S +++ b/libc/arch-arm/syscalls/sync.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sync) mov ip, r7 ldr r7, =__NR_sync @@ -12,5 +10,5 @@ ENTRY(sync) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sync) diff --git a/libc/arch-arm/syscalls/sysinfo.S b/libc/arch-arm/syscalls/sysinfo.S index f5fb4e6..709478e 100644 --- a/libc/arch-arm/syscalls/sysinfo.S +++ b/libc/arch-arm/syscalls/sysinfo.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(sysinfo) mov ip, r7 ldr r7, =__NR_sysinfo @@ -12,5 +10,5 @@ ENTRY(sysinfo) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(sysinfo) diff --git a/libc/arch-arm/syscalls/tee.S b/libc/arch-arm/syscalls/tee.S index 7e155df..a019c00 100644 --- a/libc/arch-arm/syscalls/tee.S +++ b/libc/arch-arm/syscalls/tee.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(tee) mov ip, r7 ldr r7, =__NR_tee @@ -12,5 +10,5 @@ ENTRY(tee) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(tee) diff --git a/libc/arch-arm/syscalls/tgkill.S b/libc/arch-arm/syscalls/tgkill.S index 98440b1..2068465 100644 --- a/libc/arch-arm/syscalls/tgkill.S +++ b/libc/arch-arm/syscalls/tgkill.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(tgkill) mov ip, r7 ldr r7, =__NR_tgkill @@ -12,5 +10,5 @@ ENTRY(tgkill) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(tgkill) diff --git a/libc/arch-arm/syscalls/timerfd_create.S b/libc/arch-arm/syscalls/timerfd_create.S index 9211b54..89a80cd 100644 --- a/libc/arch-arm/syscalls/timerfd_create.S +++ b/libc/arch-arm/syscalls/timerfd_create.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(timerfd_create) mov ip, r7 ldr r7, =__NR_timerfd_create @@ -12,5 +10,5 @@ ENTRY(timerfd_create) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(timerfd_create) diff --git a/libc/arch-arm/syscalls/timerfd_gettime.S b/libc/arch-arm/syscalls/timerfd_gettime.S index c27e008..4a7df76 100644 --- a/libc/arch-arm/syscalls/timerfd_gettime.S +++ b/libc/arch-arm/syscalls/timerfd_gettime.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(timerfd_gettime) mov ip, r7 ldr r7, =__NR_timerfd_gettime @@ -12,5 +10,5 @@ ENTRY(timerfd_gettime) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(timerfd_gettime) diff --git a/libc/arch-arm/syscalls/timerfd_settime.S b/libc/arch-arm/syscalls/timerfd_settime.S index 7acd408..2e0fe93 100644 --- a/libc/arch-arm/syscalls/timerfd_settime.S +++ b/libc/arch-arm/syscalls/timerfd_settime.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(timerfd_settime) mov ip, r7 ldr r7, =__NR_timerfd_settime @@ -12,5 +10,5 @@ ENTRY(timerfd_settime) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(timerfd_settime) diff --git a/libc/arch-arm/syscalls/times.S b/libc/arch-arm/syscalls/times.S index b5695c4..289c185 100644 --- a/libc/arch-arm/syscalls/times.S +++ b/libc/arch-arm/syscalls/times.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(times) mov ip, r7 ldr r7, =__NR_times @@ -12,5 +10,5 @@ ENTRY(times) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(times) diff --git a/libc/arch-arm/syscalls/truncate.S b/libc/arch-arm/syscalls/truncate.S index 7915722..bb33beb 100644 --- a/libc/arch-arm/syscalls/truncate.S +++ b/libc/arch-arm/syscalls/truncate.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(truncate) mov ip, r7 ldr r7, =__NR_truncate @@ -12,5 +10,5 @@ ENTRY(truncate) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(truncate) diff --git a/libc/arch-arm/syscalls/truncate64.S b/libc/arch-arm/syscalls/truncate64.S index d59374a..9cafbb5 100644 --- a/libc/arch-arm/syscalls/truncate64.S +++ b/libc/arch-arm/syscalls/truncate64.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(truncate64) mov ip, r7 ldr r7, =__NR_truncate64 @@ -12,5 +10,5 @@ ENTRY(truncate64) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(truncate64) diff --git a/libc/arch-arm/syscalls/umask.S b/libc/arch-arm/syscalls/umask.S index 5b03fb3..5dc4461 100644 --- a/libc/arch-arm/syscalls/umask.S +++ b/libc/arch-arm/syscalls/umask.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(umask) mov ip, r7 ldr r7, =__NR_umask @@ -12,5 +10,5 @@ ENTRY(umask) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(umask) diff --git a/libc/arch-arm/syscalls/umount2.S b/libc/arch-arm/syscalls/umount2.S index 841eb97..435eda4 100644 --- a/libc/arch-arm/syscalls/umount2.S +++ b/libc/arch-arm/syscalls/umount2.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(umount2) mov ip, r7 ldr r7, =__NR_umount2 @@ -12,5 +10,5 @@ ENTRY(umount2) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(umount2) diff --git a/libc/arch-arm/syscalls/uname.S b/libc/arch-arm/syscalls/uname.S index 76480b4..8af6123 100644 --- a/libc/arch-arm/syscalls/uname.S +++ b/libc/arch-arm/syscalls/uname.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(uname) mov ip, r7 ldr r7, =__NR_uname @@ -12,5 +10,5 @@ ENTRY(uname) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(uname) diff --git a/libc/arch-arm/syscalls/unlinkat.S b/libc/arch-arm/syscalls/unlinkat.S index 6759768..96257e6 100644 --- a/libc/arch-arm/syscalls/unlinkat.S +++ b/libc/arch-arm/syscalls/unlinkat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(unlinkat) mov ip, r7 ldr r7, =__NR_unlinkat @@ -12,5 +10,5 @@ ENTRY(unlinkat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(unlinkat) diff --git a/libc/arch-arm/syscalls/unshare.S b/libc/arch-arm/syscalls/unshare.S index 19a5b6a..8054171 100644 --- a/libc/arch-arm/syscalls/unshare.S +++ b/libc/arch-arm/syscalls/unshare.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(unshare) mov ip, r7 ldr r7, =__NR_unshare @@ -12,5 +10,5 @@ ENTRY(unshare) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(unshare) diff --git a/libc/arch-arm/syscalls/utimensat.S b/libc/arch-arm/syscalls/utimensat.S index 6d50688..f3c2fa2 100644 --- a/libc/arch-arm/syscalls/utimensat.S +++ b/libc/arch-arm/syscalls/utimensat.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(utimensat) mov ip, r7 ldr r7, =__NR_utimensat @@ -12,5 +10,5 @@ ENTRY(utimensat) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(utimensat) diff --git a/libc/arch-arm/syscalls/vfork.S b/libc/arch-arm/syscalls/vfork.S index 8543986..5f4cb3d 100644 --- a/libc/arch-arm/syscalls/vfork.S +++ b/libc/arch-arm/syscalls/vfork.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(vfork) mov ip, r7 ldr r7, =__NR_vfork @@ -12,5 +10,5 @@ ENTRY(vfork) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(vfork) diff --git a/libc/arch-arm/syscalls/vmsplice.S b/libc/arch-arm/syscalls/vmsplice.S index 8239158..cc12ca5 100644 --- a/libc/arch-arm/syscalls/vmsplice.S +++ b/libc/arch-arm/syscalls/vmsplice.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(vmsplice) mov ip, r7 ldr r7, =__NR_vmsplice @@ -12,5 +10,5 @@ ENTRY(vmsplice) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(vmsplice) diff --git a/libc/arch-arm/syscalls/wait4.S b/libc/arch-arm/syscalls/wait4.S index ffb2587..26a4929 100644 --- a/libc/arch-arm/syscalls/wait4.S +++ b/libc/arch-arm/syscalls/wait4.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(wait4) mov ip, r7 ldr r7, =__NR_wait4 @@ -12,5 +10,5 @@ ENTRY(wait4) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(wait4) diff --git a/libc/arch-arm/syscalls/write.S b/libc/arch-arm/syscalls/write.S index 8da1176..bf89d7f 100644 --- a/libc/arch-arm/syscalls/write.S +++ b/libc/arch-arm/syscalls/write.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(write) mov ip, r7 ldr r7, =__NR_write @@ -12,5 +10,5 @@ ENTRY(write) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(write) diff --git a/libc/arch-arm/syscalls/writev.S b/libc/arch-arm/syscalls/writev.S index f17ad94..15b5275 100644 --- a/libc/arch-arm/syscalls/writev.S +++ b/libc/arch-arm/syscalls/writev.S @@ -2,8 +2,6 @@ #include <private/bionic_asm.h> - .hidden __set_errno - ENTRY(writev) mov ip, r7 ldr r7, =__NR_writev @@ -12,5 +10,5 @@ ENTRY(writev) cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(writev) |