diff options
author | Dan Albert <danalbert@google.com> | 2014-08-08 15:19:20 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-08-08 15:35:47 -0700 |
commit | bc9f9f25bf1247a6a638a2a2df8441bdd9fabad7 (patch) | |
tree | 17328616c29a98aa2eb16b6cb3a7b7b1c93c0322 /libc/arch-x86_64 | |
parent | 3788a1ee8eae4180117010bb9302334acfe1d218 (diff) | |
download | bionic-bc9f9f25bf1247a6a638a2a2df8441bdd9fabad7.zip bionic-bc9f9f25bf1247a6a638a2a2df8441bdd9fabad7.tar.gz bionic-bc9f9f25bf1247a6a638a2a2df8441bdd9fabad7.tar.bz2 |
Make __set_errno hidden in asm.
This fixes the build after the -Bsymbolic change.
Bug: 16853291
Change-Id: I989c9fec3c32e0289ea257a3bd2b7fd2709b6ce2
Diffstat (limited to 'libc/arch-x86_64')
190 files changed, 380 insertions, 0 deletions
diff --git a/libc/arch-x86_64/syscalls/__accept4.S b/libc/arch-x86_64/syscalls/__accept4.S index 375a78b..774cdd5 100644 --- a/libc/arch-x86_64/syscalls/__accept4.S +++ b/libc/arch-x86_64/syscalls/__accept4.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__accept4) movq %rcx, %r10 movl $__NR_accept4, %eax diff --git a/libc/arch-x86_64/syscalls/__arch_prctl.S b/libc/arch-x86_64/syscalls/__arch_prctl.S index 6c72a6c..c0dad45 100644 --- a/libc/arch-x86_64/syscalls/__arch_prctl.S +++ b/libc/arch-x86_64/syscalls/__arch_prctl.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__arch_prctl) movl $__NR_arch_prctl, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__brk.S b/libc/arch-x86_64/syscalls/__brk.S index 18ebc10..df942a1 100644 --- a/libc/arch-x86_64/syscalls/__brk.S +++ b/libc/arch-x86_64/syscalls/__brk.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__brk) movl $__NR_brk, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__clock_gettime.S b/libc/arch-x86_64/syscalls/__clock_gettime.S index 7e553b8..6c11fb6 100644 --- a/libc/arch-x86_64/syscalls/__clock_gettime.S +++ b/libc/arch-x86_64/syscalls/__clock_gettime.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__clock_gettime) movl $__NR_clock_gettime, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__connect.S b/libc/arch-x86_64/syscalls/__connect.S index a7d2e93..05a8202 100644 --- a/libc/arch-x86_64/syscalls/__connect.S +++ b/libc/arch-x86_64/syscalls/__connect.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__connect) movl $__NR_connect, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__epoll_pwait.S b/libc/arch-x86_64/syscalls/__epoll_pwait.S index 4271b53..b0aee80 100644 --- a/libc/arch-x86_64/syscalls/__epoll_pwait.S +++ b/libc/arch-x86_64/syscalls/__epoll_pwait.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__epoll_pwait) movq %rcx, %r10 movl $__NR_epoll_pwait, %eax diff --git a/libc/arch-x86_64/syscalls/__exit.S b/libc/arch-x86_64/syscalls/__exit.S index bcbaffc..e552f04 100644 --- a/libc/arch-x86_64/syscalls/__exit.S +++ b/libc/arch-x86_64/syscalls/__exit.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__exit) movl $__NR_exit, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__getcpu.S b/libc/arch-x86_64/syscalls/__getcpu.S index c25f294..c415fd7 100644 --- a/libc/arch-x86_64/syscalls/__getcpu.S +++ b/libc/arch-x86_64/syscalls/__getcpu.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__getcpu) movl $__NR_getcpu, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__getcwd.S b/libc/arch-x86_64/syscalls/__getcwd.S index 1743838..1ea5651 100644 --- a/libc/arch-x86_64/syscalls/__getcwd.S +++ b/libc/arch-x86_64/syscalls/__getcwd.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__getcwd) movl $__NR_getcwd, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__getdents64.S b/libc/arch-x86_64/syscalls/__getdents64.S index 64f82fd..42c130c 100644 --- a/libc/arch-x86_64/syscalls/__getdents64.S +++ b/libc/arch-x86_64/syscalls/__getdents64.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__getdents64) movl $__NR_getdents64, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__getpid.S b/libc/arch-x86_64/syscalls/__getpid.S index bd1bf1e..ae6bb49 100644 --- a/libc/arch-x86_64/syscalls/__getpid.S +++ b/libc/arch-x86_64/syscalls/__getpid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__getpid) movl $__NR_getpid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__getpriority.S b/libc/arch-x86_64/syscalls/__getpriority.S index 349f574..c82b008 100644 --- a/libc/arch-x86_64/syscalls/__getpriority.S +++ b/libc/arch-x86_64/syscalls/__getpriority.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__getpriority) movl $__NR_getpriority, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__gettimeofday.S b/libc/arch-x86_64/syscalls/__gettimeofday.S index a38eb64..e4b2409 100644 --- a/libc/arch-x86_64/syscalls/__gettimeofday.S +++ b/libc/arch-x86_64/syscalls/__gettimeofday.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__gettimeofday) movl $__NR_gettimeofday, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__ioctl.S b/libc/arch-x86_64/syscalls/__ioctl.S index 2775911..aa2f538 100644 --- a/libc/arch-x86_64/syscalls/__ioctl.S +++ b/libc/arch-x86_64/syscalls/__ioctl.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__ioctl) movl $__NR_ioctl, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__openat.S b/libc/arch-x86_64/syscalls/__openat.S index dce4c7c..e7f5dc4 100644 --- a/libc/arch-x86_64/syscalls/__openat.S +++ b/libc/arch-x86_64/syscalls/__openat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__openat) movq %rcx, %r10 movl $__NR_openat, %eax diff --git a/libc/arch-x86_64/syscalls/__ppoll.S b/libc/arch-x86_64/syscalls/__ppoll.S index 31ba7e9..eb741ce 100644 --- a/libc/arch-x86_64/syscalls/__ppoll.S +++ b/libc/arch-x86_64/syscalls/__ppoll.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__ppoll) movq %rcx, %r10 movl $__NR_ppoll, %eax diff --git a/libc/arch-x86_64/syscalls/__pselect6.S b/libc/arch-x86_64/syscalls/__pselect6.S index a212c4e..75ea416 100644 --- a/libc/arch-x86_64/syscalls/__pselect6.S +++ b/libc/arch-x86_64/syscalls/__pselect6.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__pselect6) movq %rcx, %r10 movl $__NR_pselect6, %eax diff --git a/libc/arch-x86_64/syscalls/__ptrace.S b/libc/arch-x86_64/syscalls/__ptrace.S index 0a64fee..45724e4 100644 --- a/libc/arch-x86_64/syscalls/__ptrace.S +++ b/libc/arch-x86_64/syscalls/__ptrace.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__ptrace) movq %rcx, %r10 movl $__NR_ptrace, %eax diff --git a/libc/arch-x86_64/syscalls/__reboot.S b/libc/arch-x86_64/syscalls/__reboot.S index 398d078..bbff3f2 100644 --- a/libc/arch-x86_64/syscalls/__reboot.S +++ b/libc/arch-x86_64/syscalls/__reboot.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__reboot) movq %rcx, %r10 movl $__NR_reboot, %eax diff --git a/libc/arch-x86_64/syscalls/__rt_sigaction.S b/libc/arch-x86_64/syscalls/__rt_sigaction.S index f146b02..7ce3d8c 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigaction.S +++ b/libc/arch-x86_64/syscalls/__rt_sigaction.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__rt_sigaction) movq %rcx, %r10 movl $__NR_rt_sigaction, %eax diff --git a/libc/arch-x86_64/syscalls/__rt_sigpending.S b/libc/arch-x86_64/syscalls/__rt_sigpending.S index 9d1698b..78c10ed 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigpending.S +++ b/libc/arch-x86_64/syscalls/__rt_sigpending.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__rt_sigpending) movl $__NR_rt_sigpending, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__rt_sigprocmask.S b/libc/arch-x86_64/syscalls/__rt_sigprocmask.S index 1ac9b81..bf2841c 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigprocmask.S +++ b/libc/arch-x86_64/syscalls/__rt_sigprocmask.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__rt_sigprocmask) movq %rcx, %r10 movl $__NR_rt_sigprocmask, %eax diff --git a/libc/arch-x86_64/syscalls/__rt_sigsuspend.S b/libc/arch-x86_64/syscalls/__rt_sigsuspend.S index 1059f0b..a82b052 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigsuspend.S +++ b/libc/arch-x86_64/syscalls/__rt_sigsuspend.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__rt_sigsuspend) movl $__NR_rt_sigsuspend, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S b/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S index de2e4cb..aceacb2 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__rt_sigtimedwait) movq %rcx, %r10 movl $__NR_rt_sigtimedwait, %eax diff --git a/libc/arch-x86_64/syscalls/__sched_getaffinity.S b/libc/arch-x86_64/syscalls/__sched_getaffinity.S index 410954c..fd1f607 100644 --- a/libc/arch-x86_64/syscalls/__sched_getaffinity.S +++ b/libc/arch-x86_64/syscalls/__sched_getaffinity.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__sched_getaffinity) movl $__NR_sched_getaffinity, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__set_tid_address.S b/libc/arch-x86_64/syscalls/__set_tid_address.S index c59c8b8..7e5226d 100644 --- a/libc/arch-x86_64/syscalls/__set_tid_address.S +++ b/libc/arch-x86_64/syscalls/__set_tid_address.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__set_tid_address) movl $__NR_set_tid_address, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__signalfd4.S b/libc/arch-x86_64/syscalls/__signalfd4.S index 6ddcf5a..d27f63c 100644 --- a/libc/arch-x86_64/syscalls/__signalfd4.S +++ b/libc/arch-x86_64/syscalls/__signalfd4.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__signalfd4) movq %rcx, %r10 movl $__NR_signalfd4, %eax diff --git a/libc/arch-x86_64/syscalls/__socket.S b/libc/arch-x86_64/syscalls/__socket.S index 209e329..3b573e8 100644 --- a/libc/arch-x86_64/syscalls/__socket.S +++ b/libc/arch-x86_64/syscalls/__socket.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__socket) movl $__NR_socket, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__timer_create.S b/libc/arch-x86_64/syscalls/__timer_create.S index 3450d2b..920c935 100644 --- a/libc/arch-x86_64/syscalls/__timer_create.S +++ b/libc/arch-x86_64/syscalls/__timer_create.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__timer_create) movl $__NR_timer_create, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__timer_delete.S b/libc/arch-x86_64/syscalls/__timer_delete.S index fd60a16..c76830e 100644 --- a/libc/arch-x86_64/syscalls/__timer_delete.S +++ b/libc/arch-x86_64/syscalls/__timer_delete.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__timer_delete) movl $__NR_timer_delete, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__timer_getoverrun.S b/libc/arch-x86_64/syscalls/__timer_getoverrun.S index f5309a3..e35ee93 100644 --- a/libc/arch-x86_64/syscalls/__timer_getoverrun.S +++ b/libc/arch-x86_64/syscalls/__timer_getoverrun.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__timer_getoverrun) movl $__NR_timer_getoverrun, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__timer_gettime.S b/libc/arch-x86_64/syscalls/__timer_gettime.S index 7e2bc92..8bb41d9 100644 --- a/libc/arch-x86_64/syscalls/__timer_gettime.S +++ b/libc/arch-x86_64/syscalls/__timer_gettime.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__timer_gettime) movl $__NR_timer_gettime, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__timer_settime.S b/libc/arch-x86_64/syscalls/__timer_settime.S index f5401a0..0eace4b 100644 --- a/libc/arch-x86_64/syscalls/__timer_settime.S +++ b/libc/arch-x86_64/syscalls/__timer_settime.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__timer_settime) movq %rcx, %r10 movl $__NR_timer_settime, %eax diff --git a/libc/arch-x86_64/syscalls/__waitid.S b/libc/arch-x86_64/syscalls/__waitid.S index 229f20c..47bf7b3 100644 --- a/libc/arch-x86_64/syscalls/__waitid.S +++ b/libc/arch-x86_64/syscalls/__waitid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(__waitid) movq %rcx, %r10 movl $__NR_waitid, %eax diff --git a/libc/arch-x86_64/syscalls/_exit.S b/libc/arch-x86_64/syscalls/_exit.S index 9c80f00..06465c4 100644 --- a/libc/arch-x86_64/syscalls/_exit.S +++ b/libc/arch-x86_64/syscalls/_exit.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(_exit) movl $__NR_exit_group, %eax syscall diff --git a/libc/arch-x86_64/syscalls/acct.S b/libc/arch-x86_64/syscalls/acct.S index 91ecf5b..6bf59e3 100644 --- a/libc/arch-x86_64/syscalls/acct.S +++ b/libc/arch-x86_64/syscalls/acct.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(acct) movl $__NR_acct, %eax syscall diff --git a/libc/arch-x86_64/syscalls/bind.S b/libc/arch-x86_64/syscalls/bind.S index 5d426cb..4300c00 100644 --- a/libc/arch-x86_64/syscalls/bind.S +++ b/libc/arch-x86_64/syscalls/bind.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(bind) movl $__NR_bind, %eax syscall diff --git a/libc/arch-x86_64/syscalls/capget.S b/libc/arch-x86_64/syscalls/capget.S index d3d151e..8ce1846 100644 --- a/libc/arch-x86_64/syscalls/capget.S +++ b/libc/arch-x86_64/syscalls/capget.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(capget) movl $__NR_capget, %eax syscall diff --git a/libc/arch-x86_64/syscalls/capset.S b/libc/arch-x86_64/syscalls/capset.S index 421f156..3aff07c 100644 --- a/libc/arch-x86_64/syscalls/capset.S +++ b/libc/arch-x86_64/syscalls/capset.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(capset) movl $__NR_capset, %eax syscall diff --git a/libc/arch-x86_64/syscalls/chdir.S b/libc/arch-x86_64/syscalls/chdir.S index 7a6f651..f22b40d 100644 --- a/libc/arch-x86_64/syscalls/chdir.S +++ b/libc/arch-x86_64/syscalls/chdir.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(chdir) movl $__NR_chdir, %eax syscall diff --git a/libc/arch-x86_64/syscalls/chroot.S b/libc/arch-x86_64/syscalls/chroot.S index 0f53fd9..eb8a463 100644 --- a/libc/arch-x86_64/syscalls/chroot.S +++ b/libc/arch-x86_64/syscalls/chroot.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(chroot) movl $__NR_chroot, %eax syscall diff --git a/libc/arch-x86_64/syscalls/clock_getres.S b/libc/arch-x86_64/syscalls/clock_getres.S index bad0d78..00b4ed6 100644 --- a/libc/arch-x86_64/syscalls/clock_getres.S +++ b/libc/arch-x86_64/syscalls/clock_getres.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(clock_getres) movl $__NR_clock_getres, %eax syscall diff --git a/libc/arch-x86_64/syscalls/clock_nanosleep.S b/libc/arch-x86_64/syscalls/clock_nanosleep.S index 2ef0d05..8bc87ae 100644 --- a/libc/arch-x86_64/syscalls/clock_nanosleep.S +++ b/libc/arch-x86_64/syscalls/clock_nanosleep.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(clock_nanosleep) movq %rcx, %r10 movl $__NR_clock_nanosleep, %eax diff --git a/libc/arch-x86_64/syscalls/clock_settime.S b/libc/arch-x86_64/syscalls/clock_settime.S index 6a3b75b..5225770 100644 --- a/libc/arch-x86_64/syscalls/clock_settime.S +++ b/libc/arch-x86_64/syscalls/clock_settime.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(clock_settime) movl $__NR_clock_settime, %eax syscall diff --git a/libc/arch-x86_64/syscalls/close.S b/libc/arch-x86_64/syscalls/close.S index 41c8403..029d09a 100644 --- a/libc/arch-x86_64/syscalls/close.S +++ b/libc/arch-x86_64/syscalls/close.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(close) movl $__NR_close, %eax syscall diff --git a/libc/arch-x86_64/syscalls/delete_module.S b/libc/arch-x86_64/syscalls/delete_module.S index d3f3862..fc146bb 100644 --- a/libc/arch-x86_64/syscalls/delete_module.S +++ b/libc/arch-x86_64/syscalls/delete_module.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(delete_module) movl $__NR_delete_module, %eax syscall diff --git a/libc/arch-x86_64/syscalls/dup.S b/libc/arch-x86_64/syscalls/dup.S index bf2ca51..53f06b0 100644 --- a/libc/arch-x86_64/syscalls/dup.S +++ b/libc/arch-x86_64/syscalls/dup.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(dup) movl $__NR_dup, %eax syscall diff --git a/libc/arch-x86_64/syscalls/dup3.S b/libc/arch-x86_64/syscalls/dup3.S index f5c929c..fb99941 100644 --- a/libc/arch-x86_64/syscalls/dup3.S +++ b/libc/arch-x86_64/syscalls/dup3.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(dup3) movl $__NR_dup3, %eax syscall diff --git a/libc/arch-x86_64/syscalls/epoll_create1.S b/libc/arch-x86_64/syscalls/epoll_create1.S index 196a3c7..6aa1915 100644 --- a/libc/arch-x86_64/syscalls/epoll_create1.S +++ b/libc/arch-x86_64/syscalls/epoll_create1.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(epoll_create1) movl $__NR_epoll_create1, %eax syscall diff --git a/libc/arch-x86_64/syscalls/epoll_ctl.S b/libc/arch-x86_64/syscalls/epoll_ctl.S index 2a3517c..c9dda01 100644 --- a/libc/arch-x86_64/syscalls/epoll_ctl.S +++ b/libc/arch-x86_64/syscalls/epoll_ctl.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(epoll_ctl) movq %rcx, %r10 movl $__NR_epoll_ctl, %eax diff --git a/libc/arch-x86_64/syscalls/eventfd.S b/libc/arch-x86_64/syscalls/eventfd.S index 3ed4baf..ac7537f 100644 --- a/libc/arch-x86_64/syscalls/eventfd.S +++ b/libc/arch-x86_64/syscalls/eventfd.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(eventfd) movl $__NR_eventfd2, %eax syscall diff --git a/libc/arch-x86_64/syscalls/execve.S b/libc/arch-x86_64/syscalls/execve.S index 1fe29c7..a699303 100644 --- a/libc/arch-x86_64/syscalls/execve.S +++ b/libc/arch-x86_64/syscalls/execve.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(execve) movl $__NR_execve, %eax syscall diff --git a/libc/arch-x86_64/syscalls/faccessat.S b/libc/arch-x86_64/syscalls/faccessat.S index 3ea905c..9426dd5 100644 --- a/libc/arch-x86_64/syscalls/faccessat.S +++ b/libc/arch-x86_64/syscalls/faccessat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(faccessat) movq %rcx, %r10 movl $__NR_faccessat, %eax diff --git a/libc/arch-x86_64/syscalls/fallocate.S b/libc/arch-x86_64/syscalls/fallocate.S index abaa303..91a2e65 100644 --- a/libc/arch-x86_64/syscalls/fallocate.S +++ b/libc/arch-x86_64/syscalls/fallocate.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fallocate) movq %rcx, %r10 movl $__NR_fallocate, %eax diff --git a/libc/arch-x86_64/syscalls/fchdir.S b/libc/arch-x86_64/syscalls/fchdir.S index b01bb57..01c5030 100644 --- a/libc/arch-x86_64/syscalls/fchdir.S +++ b/libc/arch-x86_64/syscalls/fchdir.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fchdir) movl $__NR_fchdir, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fchmod.S b/libc/arch-x86_64/syscalls/fchmod.S index 868638f..1f4d02b 100644 --- a/libc/arch-x86_64/syscalls/fchmod.S +++ b/libc/arch-x86_64/syscalls/fchmod.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fchmod) movl $__NR_fchmod, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fchmodat.S b/libc/arch-x86_64/syscalls/fchmodat.S index e045a13..cee05e3 100644 --- a/libc/arch-x86_64/syscalls/fchmodat.S +++ b/libc/arch-x86_64/syscalls/fchmodat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fchmodat) movq %rcx, %r10 movl $__NR_fchmodat, %eax diff --git a/libc/arch-x86_64/syscalls/fchown.S b/libc/arch-x86_64/syscalls/fchown.S index 9ba775b..1c43991 100644 --- a/libc/arch-x86_64/syscalls/fchown.S +++ b/libc/arch-x86_64/syscalls/fchown.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fchown) movl $__NR_fchown, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fchownat.S b/libc/arch-x86_64/syscalls/fchownat.S index 7789d2d..8f77888 100644 --- a/libc/arch-x86_64/syscalls/fchownat.S +++ b/libc/arch-x86_64/syscalls/fchownat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fchownat) movq %rcx, %r10 movl $__NR_fchownat, %eax diff --git a/libc/arch-x86_64/syscalls/fcntl.S b/libc/arch-x86_64/syscalls/fcntl.S index a20d938..d415467 100644 --- a/libc/arch-x86_64/syscalls/fcntl.S +++ b/libc/arch-x86_64/syscalls/fcntl.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fcntl) movl $__NR_fcntl, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fdatasync.S b/libc/arch-x86_64/syscalls/fdatasync.S index 5ea8ebd..8ec4193 100644 --- a/libc/arch-x86_64/syscalls/fdatasync.S +++ b/libc/arch-x86_64/syscalls/fdatasync.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fdatasync) movl $__NR_fdatasync, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fgetxattr.S b/libc/arch-x86_64/syscalls/fgetxattr.S index 096c30f..9aacdbd 100644 --- a/libc/arch-x86_64/syscalls/fgetxattr.S +++ b/libc/arch-x86_64/syscalls/fgetxattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fgetxattr) movq %rcx, %r10 movl $__NR_fgetxattr, %eax diff --git a/libc/arch-x86_64/syscalls/flistxattr.S b/libc/arch-x86_64/syscalls/flistxattr.S index e0e5b8b..53c58d0 100644 --- a/libc/arch-x86_64/syscalls/flistxattr.S +++ b/libc/arch-x86_64/syscalls/flistxattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(flistxattr) movl $__NR_flistxattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/flock.S b/libc/arch-x86_64/syscalls/flock.S index 981d86e..fe57b47 100644 --- a/libc/arch-x86_64/syscalls/flock.S +++ b/libc/arch-x86_64/syscalls/flock.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(flock) movl $__NR_flock, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fremovexattr.S b/libc/arch-x86_64/syscalls/fremovexattr.S index 655bdef..c37cc93 100644 --- a/libc/arch-x86_64/syscalls/fremovexattr.S +++ b/libc/arch-x86_64/syscalls/fremovexattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fremovexattr) movl $__NR_fremovexattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fsetxattr.S b/libc/arch-x86_64/syscalls/fsetxattr.S index fa2bddc..cc3d7b7 100644 --- a/libc/arch-x86_64/syscalls/fsetxattr.S +++ b/libc/arch-x86_64/syscalls/fsetxattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fsetxattr) movq %rcx, %r10 movl $__NR_fsetxattr, %eax diff --git a/libc/arch-x86_64/syscalls/fstat64.S b/libc/arch-x86_64/syscalls/fstat64.S index 9e7aa2d..dbc6760 100644 --- a/libc/arch-x86_64/syscalls/fstat64.S +++ b/libc/arch-x86_64/syscalls/fstat64.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fstat64) movl $__NR_fstat, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fstatat64.S b/libc/arch-x86_64/syscalls/fstatat64.S index 5418cd0..28b91fa 100644 --- a/libc/arch-x86_64/syscalls/fstatat64.S +++ b/libc/arch-x86_64/syscalls/fstatat64.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fstatat64) movq %rcx, %r10 movl $__NR_newfstatat, %eax diff --git a/libc/arch-x86_64/syscalls/fstatfs64.S b/libc/arch-x86_64/syscalls/fstatfs64.S index ee2daa2..4b12afb 100644 --- a/libc/arch-x86_64/syscalls/fstatfs64.S +++ b/libc/arch-x86_64/syscalls/fstatfs64.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fstatfs64) movl $__NR_fstatfs, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fsync.S b/libc/arch-x86_64/syscalls/fsync.S index 12eabd3..820502e 100644 --- a/libc/arch-x86_64/syscalls/fsync.S +++ b/libc/arch-x86_64/syscalls/fsync.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(fsync) movl $__NR_fsync, %eax syscall diff --git a/libc/arch-x86_64/syscalls/ftruncate.S b/libc/arch-x86_64/syscalls/ftruncate.S index 11161a7..0b14403 100644 --- a/libc/arch-x86_64/syscalls/ftruncate.S +++ b/libc/arch-x86_64/syscalls/ftruncate.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(ftruncate) movl $__NR_ftruncate, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getegid.S b/libc/arch-x86_64/syscalls/getegid.S index 6f9c2a8..155d37b 100644 --- a/libc/arch-x86_64/syscalls/getegid.S +++ b/libc/arch-x86_64/syscalls/getegid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getegid) movl $__NR_getegid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/geteuid.S b/libc/arch-x86_64/syscalls/geteuid.S index 88000ef..9ffa3cd 100644 --- a/libc/arch-x86_64/syscalls/geteuid.S +++ b/libc/arch-x86_64/syscalls/geteuid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(geteuid) movl $__NR_geteuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getgid.S b/libc/arch-x86_64/syscalls/getgid.S index 8f8eaa6..d9c9da9 100644 --- a/libc/arch-x86_64/syscalls/getgid.S +++ b/libc/arch-x86_64/syscalls/getgid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getgid) movl $__NR_getgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getgroups.S b/libc/arch-x86_64/syscalls/getgroups.S index 5358a3e..9f0701a 100644 --- a/libc/arch-x86_64/syscalls/getgroups.S +++ b/libc/arch-x86_64/syscalls/getgroups.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getgroups) movl $__NR_getgroups, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getitimer.S b/libc/arch-x86_64/syscalls/getitimer.S index b6a6e8e..2d76430 100644 --- a/libc/arch-x86_64/syscalls/getitimer.S +++ b/libc/arch-x86_64/syscalls/getitimer.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getitimer) movl $__NR_getitimer, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getpeername.S b/libc/arch-x86_64/syscalls/getpeername.S index 98e06fb..b6de183 100644 --- a/libc/arch-x86_64/syscalls/getpeername.S +++ b/libc/arch-x86_64/syscalls/getpeername.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getpeername) movl $__NR_getpeername, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getpgid.S b/libc/arch-x86_64/syscalls/getpgid.S index 158f14d..e321b66 100644 --- a/libc/arch-x86_64/syscalls/getpgid.S +++ b/libc/arch-x86_64/syscalls/getpgid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getpgid) movl $__NR_getpgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getppid.S b/libc/arch-x86_64/syscalls/getppid.S index e4853e0..4a238ad 100644 --- a/libc/arch-x86_64/syscalls/getppid.S +++ b/libc/arch-x86_64/syscalls/getppid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getppid) movl $__NR_getppid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getresgid.S b/libc/arch-x86_64/syscalls/getresgid.S index d65fb13..4727d29 100644 --- a/libc/arch-x86_64/syscalls/getresgid.S +++ b/libc/arch-x86_64/syscalls/getresgid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getresgid) movl $__NR_getresgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getresuid.S b/libc/arch-x86_64/syscalls/getresuid.S index 80d85c6..1098d56 100644 --- a/libc/arch-x86_64/syscalls/getresuid.S +++ b/libc/arch-x86_64/syscalls/getresuid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getresuid) movl $__NR_getresuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getrlimit.S b/libc/arch-x86_64/syscalls/getrlimit.S index ea0ca7d..60e5881 100644 --- a/libc/arch-x86_64/syscalls/getrlimit.S +++ b/libc/arch-x86_64/syscalls/getrlimit.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getrlimit) movl $__NR_getrlimit, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getrusage.S b/libc/arch-x86_64/syscalls/getrusage.S index 7a60738..0eb0176 100644 --- a/libc/arch-x86_64/syscalls/getrusage.S +++ b/libc/arch-x86_64/syscalls/getrusage.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getrusage) movl $__NR_getrusage, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getsid.S b/libc/arch-x86_64/syscalls/getsid.S index 75e3fad..2543b10 100644 --- a/libc/arch-x86_64/syscalls/getsid.S +++ b/libc/arch-x86_64/syscalls/getsid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getsid) movl $__NR_getsid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getsockname.S b/libc/arch-x86_64/syscalls/getsockname.S index 3c7c2f8..17cd5ea 100644 --- a/libc/arch-x86_64/syscalls/getsockname.S +++ b/libc/arch-x86_64/syscalls/getsockname.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getsockname) movl $__NR_getsockname, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getsockopt.S b/libc/arch-x86_64/syscalls/getsockopt.S index 725757c..988a2cb 100644 --- a/libc/arch-x86_64/syscalls/getsockopt.S +++ b/libc/arch-x86_64/syscalls/getsockopt.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getsockopt) movq %rcx, %r10 movl $__NR_getsockopt, %eax diff --git a/libc/arch-x86_64/syscalls/getuid.S b/libc/arch-x86_64/syscalls/getuid.S index d7306e1..9b7a1d9 100644 --- a/libc/arch-x86_64/syscalls/getuid.S +++ b/libc/arch-x86_64/syscalls/getuid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getuid) movl $__NR_getuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getxattr.S b/libc/arch-x86_64/syscalls/getxattr.S index 7c66b0e..4d6aecf 100644 --- a/libc/arch-x86_64/syscalls/getxattr.S +++ b/libc/arch-x86_64/syscalls/getxattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(getxattr) movq %rcx, %r10 movl $__NR_getxattr, %eax diff --git a/libc/arch-x86_64/syscalls/init_module.S b/libc/arch-x86_64/syscalls/init_module.S index 187f5a2..2c51414 100644 --- a/libc/arch-x86_64/syscalls/init_module.S +++ b/libc/arch-x86_64/syscalls/init_module.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(init_module) movl $__NR_init_module, %eax syscall diff --git a/libc/arch-x86_64/syscalls/inotify_add_watch.S b/libc/arch-x86_64/syscalls/inotify_add_watch.S index 47e15ab..da5aa36 100644 --- a/libc/arch-x86_64/syscalls/inotify_add_watch.S +++ b/libc/arch-x86_64/syscalls/inotify_add_watch.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(inotify_add_watch) movl $__NR_inotify_add_watch, %eax syscall diff --git a/libc/arch-x86_64/syscalls/inotify_init1.S b/libc/arch-x86_64/syscalls/inotify_init1.S index 160b0d5..46e5014 100644 --- a/libc/arch-x86_64/syscalls/inotify_init1.S +++ b/libc/arch-x86_64/syscalls/inotify_init1.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(inotify_init1) movl $__NR_inotify_init1, %eax syscall diff --git a/libc/arch-x86_64/syscalls/inotify_rm_watch.S b/libc/arch-x86_64/syscalls/inotify_rm_watch.S index 4c5874e..5920c9d 100644 --- a/libc/arch-x86_64/syscalls/inotify_rm_watch.S +++ b/libc/arch-x86_64/syscalls/inotify_rm_watch.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(inotify_rm_watch) movl $__NR_inotify_rm_watch, %eax syscall diff --git a/libc/arch-x86_64/syscalls/kill.S b/libc/arch-x86_64/syscalls/kill.S index f234585..dff2da6 100644 --- a/libc/arch-x86_64/syscalls/kill.S +++ b/libc/arch-x86_64/syscalls/kill.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(kill) movl $__NR_kill, %eax syscall diff --git a/libc/arch-x86_64/syscalls/klogctl.S b/libc/arch-x86_64/syscalls/klogctl.S index 057b066..8560d28 100644 --- a/libc/arch-x86_64/syscalls/klogctl.S +++ b/libc/arch-x86_64/syscalls/klogctl.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(klogctl) movl $__NR_syslog, %eax syscall diff --git a/libc/arch-x86_64/syscalls/lgetxattr.S b/libc/arch-x86_64/syscalls/lgetxattr.S index 525ee3b..b4bc204 100644 --- a/libc/arch-x86_64/syscalls/lgetxattr.S +++ b/libc/arch-x86_64/syscalls/lgetxattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(lgetxattr) movq %rcx, %r10 movl $__NR_lgetxattr, %eax diff --git a/libc/arch-x86_64/syscalls/linkat.S b/libc/arch-x86_64/syscalls/linkat.S index 815af86..509b579 100644 --- a/libc/arch-x86_64/syscalls/linkat.S +++ b/libc/arch-x86_64/syscalls/linkat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(linkat) movq %rcx, %r10 movl $__NR_linkat, %eax diff --git a/libc/arch-x86_64/syscalls/listen.S b/libc/arch-x86_64/syscalls/listen.S index d3d7103..6bd46a5 100644 --- a/libc/arch-x86_64/syscalls/listen.S +++ b/libc/arch-x86_64/syscalls/listen.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(listen) movl $__NR_listen, %eax syscall diff --git a/libc/arch-x86_64/syscalls/listxattr.S b/libc/arch-x86_64/syscalls/listxattr.S index 89fd63c..102518f 100644 --- a/libc/arch-x86_64/syscalls/listxattr.S +++ b/libc/arch-x86_64/syscalls/listxattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(listxattr) movl $__NR_listxattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/llistxattr.S b/libc/arch-x86_64/syscalls/llistxattr.S index cfff2e7..74d58a8 100644 --- a/libc/arch-x86_64/syscalls/llistxattr.S +++ b/libc/arch-x86_64/syscalls/llistxattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(llistxattr) movl $__NR_llistxattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/lremovexattr.S b/libc/arch-x86_64/syscalls/lremovexattr.S index 0b6994a..2566e33 100644 --- a/libc/arch-x86_64/syscalls/lremovexattr.S +++ b/libc/arch-x86_64/syscalls/lremovexattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(lremovexattr) movl $__NR_lremovexattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/lseek.S b/libc/arch-x86_64/syscalls/lseek.S index b2e8c16..93e5f0c 100644 --- a/libc/arch-x86_64/syscalls/lseek.S +++ b/libc/arch-x86_64/syscalls/lseek.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(lseek) movl $__NR_lseek, %eax syscall diff --git a/libc/arch-x86_64/syscalls/lsetxattr.S b/libc/arch-x86_64/syscalls/lsetxattr.S index fdaf98a..905bd3b 100644 --- a/libc/arch-x86_64/syscalls/lsetxattr.S +++ b/libc/arch-x86_64/syscalls/lsetxattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(lsetxattr) movq %rcx, %r10 movl $__NR_lsetxattr, %eax diff --git a/libc/arch-x86_64/syscalls/madvise.S b/libc/arch-x86_64/syscalls/madvise.S index 3f567fd..c565ca3 100644 --- a/libc/arch-x86_64/syscalls/madvise.S +++ b/libc/arch-x86_64/syscalls/madvise.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(madvise) movl $__NR_madvise, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mincore.S b/libc/arch-x86_64/syscalls/mincore.S index e6b2521..f8acdeb 100644 --- a/libc/arch-x86_64/syscalls/mincore.S +++ b/libc/arch-x86_64/syscalls/mincore.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(mincore) movl $__NR_mincore, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mkdirat.S b/libc/arch-x86_64/syscalls/mkdirat.S index abba2d5..b554d12 100644 --- a/libc/arch-x86_64/syscalls/mkdirat.S +++ b/libc/arch-x86_64/syscalls/mkdirat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(mkdirat) movl $__NR_mkdirat, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mknodat.S b/libc/arch-x86_64/syscalls/mknodat.S index d3d78c9..dd6496a 100644 --- a/libc/arch-x86_64/syscalls/mknodat.S +++ b/libc/arch-x86_64/syscalls/mknodat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(mknodat) movq %rcx, %r10 movl $__NR_mknodat, %eax diff --git a/libc/arch-x86_64/syscalls/mlock.S b/libc/arch-x86_64/syscalls/mlock.S index 0c69eb7..78389e2 100644 --- a/libc/arch-x86_64/syscalls/mlock.S +++ b/libc/arch-x86_64/syscalls/mlock.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(mlock) movl $__NR_mlock, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mlockall.S b/libc/arch-x86_64/syscalls/mlockall.S index 89ba9b6..3ac878a 100644 --- a/libc/arch-x86_64/syscalls/mlockall.S +++ b/libc/arch-x86_64/syscalls/mlockall.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(mlockall) movl $__NR_mlockall, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mmap.S b/libc/arch-x86_64/syscalls/mmap.S index 7b9f6e0..44189a9 100644 --- a/libc/arch-x86_64/syscalls/mmap.S +++ b/libc/arch-x86_64/syscalls/mmap.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(mmap) movq %rcx, %r10 movl $__NR_mmap, %eax diff --git a/libc/arch-x86_64/syscalls/mount.S b/libc/arch-x86_64/syscalls/mount.S index 04534c9..369e8df 100644 --- a/libc/arch-x86_64/syscalls/mount.S +++ b/libc/arch-x86_64/syscalls/mount.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(mount) movq %rcx, %r10 movl $__NR_mount, %eax diff --git a/libc/arch-x86_64/syscalls/mprotect.S b/libc/arch-x86_64/syscalls/mprotect.S index d849bb1..44888da 100644 --- a/libc/arch-x86_64/syscalls/mprotect.S +++ b/libc/arch-x86_64/syscalls/mprotect.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(mprotect) movl $__NR_mprotect, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mremap.S b/libc/arch-x86_64/syscalls/mremap.S index 8af367e..74a05e2 100644 --- a/libc/arch-x86_64/syscalls/mremap.S +++ b/libc/arch-x86_64/syscalls/mremap.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(mremap) movq %rcx, %r10 movl $__NR_mremap, %eax diff --git a/libc/arch-x86_64/syscalls/msync.S b/libc/arch-x86_64/syscalls/msync.S index c0ff0f9..1d0e785 100644 --- a/libc/arch-x86_64/syscalls/msync.S +++ b/libc/arch-x86_64/syscalls/msync.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(msync) movl $__NR_msync, %eax syscall diff --git a/libc/arch-x86_64/syscalls/munlock.S b/libc/arch-x86_64/syscalls/munlock.S index d669f54..17e368b 100644 --- a/libc/arch-x86_64/syscalls/munlock.S +++ b/libc/arch-x86_64/syscalls/munlock.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(munlock) movl $__NR_munlock, %eax syscall diff --git a/libc/arch-x86_64/syscalls/munlockall.S b/libc/arch-x86_64/syscalls/munlockall.S index b7a9abc..6bb7aa6 100644 --- a/libc/arch-x86_64/syscalls/munlockall.S +++ b/libc/arch-x86_64/syscalls/munlockall.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(munlockall) movl $__NR_munlockall, %eax syscall diff --git a/libc/arch-x86_64/syscalls/munmap.S b/libc/arch-x86_64/syscalls/munmap.S index 4360bd0..f423a66 100644 --- a/libc/arch-x86_64/syscalls/munmap.S +++ b/libc/arch-x86_64/syscalls/munmap.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(munmap) movl $__NR_munmap, %eax syscall diff --git a/libc/arch-x86_64/syscalls/nanosleep.S b/libc/arch-x86_64/syscalls/nanosleep.S index 2eced5b..caa1ae6 100644 --- a/libc/arch-x86_64/syscalls/nanosleep.S +++ b/libc/arch-x86_64/syscalls/nanosleep.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(nanosleep) movl $__NR_nanosleep, %eax syscall diff --git a/libc/arch-x86_64/syscalls/personality.S b/libc/arch-x86_64/syscalls/personality.S index 17ad7ee..a742dbf 100644 --- a/libc/arch-x86_64/syscalls/personality.S +++ b/libc/arch-x86_64/syscalls/personality.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(personality) movl $__NR_personality, %eax syscall diff --git a/libc/arch-x86_64/syscalls/pipe2.S b/libc/arch-x86_64/syscalls/pipe2.S index 83eb0a6..e34ca69 100644 --- a/libc/arch-x86_64/syscalls/pipe2.S +++ b/libc/arch-x86_64/syscalls/pipe2.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(pipe2) movl $__NR_pipe2, %eax syscall diff --git a/libc/arch-x86_64/syscalls/prctl.S b/libc/arch-x86_64/syscalls/prctl.S index c79220d..b4cdaa5 100644 --- a/libc/arch-x86_64/syscalls/prctl.S +++ b/libc/arch-x86_64/syscalls/prctl.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(prctl) movq %rcx, %r10 movl $__NR_prctl, %eax diff --git a/libc/arch-x86_64/syscalls/pread64.S b/libc/arch-x86_64/syscalls/pread64.S index 1c4dc68..1d042ef 100644 --- a/libc/arch-x86_64/syscalls/pread64.S +++ b/libc/arch-x86_64/syscalls/pread64.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(pread64) movq %rcx, %r10 movl $__NR_pread64, %eax diff --git a/libc/arch-x86_64/syscalls/prlimit64.S b/libc/arch-x86_64/syscalls/prlimit64.S index 823feba..52151a8 100644 --- a/libc/arch-x86_64/syscalls/prlimit64.S +++ b/libc/arch-x86_64/syscalls/prlimit64.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(prlimit64) movq %rcx, %r10 movl $__NR_prlimit64, %eax diff --git a/libc/arch-x86_64/syscalls/pwrite64.S b/libc/arch-x86_64/syscalls/pwrite64.S index 13bcb58..2fb0f16 100644 --- a/libc/arch-x86_64/syscalls/pwrite64.S +++ b/libc/arch-x86_64/syscalls/pwrite64.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(pwrite64) movq %rcx, %r10 movl $__NR_pwrite64, %eax diff --git a/libc/arch-x86_64/syscalls/read.S b/libc/arch-x86_64/syscalls/read.S index 400c87a..3f2862e 100644 --- a/libc/arch-x86_64/syscalls/read.S +++ b/libc/arch-x86_64/syscalls/read.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(read) movl $__NR_read, %eax syscall diff --git a/libc/arch-x86_64/syscalls/readahead.S b/libc/arch-x86_64/syscalls/readahead.S index 2a2978b..df3aba1 100644 --- a/libc/arch-x86_64/syscalls/readahead.S +++ b/libc/arch-x86_64/syscalls/readahead.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(readahead) movl $__NR_readahead, %eax syscall diff --git a/libc/arch-x86_64/syscalls/readlinkat.S b/libc/arch-x86_64/syscalls/readlinkat.S index 51d1f0c..554b8b6 100644 --- a/libc/arch-x86_64/syscalls/readlinkat.S +++ b/libc/arch-x86_64/syscalls/readlinkat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(readlinkat) movq %rcx, %r10 movl $__NR_readlinkat, %eax diff --git a/libc/arch-x86_64/syscalls/readv.S b/libc/arch-x86_64/syscalls/readv.S index 4199751..75d04e9 100644 --- a/libc/arch-x86_64/syscalls/readv.S +++ b/libc/arch-x86_64/syscalls/readv.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(readv) movl $__NR_readv, %eax syscall diff --git a/libc/arch-x86_64/syscalls/recvfrom.S b/libc/arch-x86_64/syscalls/recvfrom.S index 61ca1b2..4ee5631 100644 --- a/libc/arch-x86_64/syscalls/recvfrom.S +++ b/libc/arch-x86_64/syscalls/recvfrom.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(recvfrom) movq %rcx, %r10 movl $__NR_recvfrom, %eax diff --git a/libc/arch-x86_64/syscalls/recvmmsg.S b/libc/arch-x86_64/syscalls/recvmmsg.S index ce14ba5..3279325 100644 --- a/libc/arch-x86_64/syscalls/recvmmsg.S +++ b/libc/arch-x86_64/syscalls/recvmmsg.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(recvmmsg) movq %rcx, %r10 movl $__NR_recvmmsg, %eax diff --git a/libc/arch-x86_64/syscalls/recvmsg.S b/libc/arch-x86_64/syscalls/recvmsg.S index 8655d07..7c186fd 100644 --- a/libc/arch-x86_64/syscalls/recvmsg.S +++ b/libc/arch-x86_64/syscalls/recvmsg.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(recvmsg) movl $__NR_recvmsg, %eax syscall diff --git a/libc/arch-x86_64/syscalls/removexattr.S b/libc/arch-x86_64/syscalls/removexattr.S index 9736463..9091647 100644 --- a/libc/arch-x86_64/syscalls/removexattr.S +++ b/libc/arch-x86_64/syscalls/removexattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(removexattr) movl $__NR_removexattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/renameat.S b/libc/arch-x86_64/syscalls/renameat.S index 0be2ef9..7258712 100644 --- a/libc/arch-x86_64/syscalls/renameat.S +++ b/libc/arch-x86_64/syscalls/renameat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(renameat) movq %rcx, %r10 movl $__NR_renameat, %eax diff --git a/libc/arch-x86_64/syscalls/sched_get_priority_max.S b/libc/arch-x86_64/syscalls/sched_get_priority_max.S index 0f92739..604d6c8 100644 --- a/libc/arch-x86_64/syscalls/sched_get_priority_max.S +++ b/libc/arch-x86_64/syscalls/sched_get_priority_max.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sched_get_priority_max) movl $__NR_sched_get_priority_max, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_get_priority_min.S b/libc/arch-x86_64/syscalls/sched_get_priority_min.S index 8450e9d..eaeb765 100644 --- a/libc/arch-x86_64/syscalls/sched_get_priority_min.S +++ b/libc/arch-x86_64/syscalls/sched_get_priority_min.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sched_get_priority_min) movl $__NR_sched_get_priority_min, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_getparam.S b/libc/arch-x86_64/syscalls/sched_getparam.S index a784640..e269c7d 100644 --- a/libc/arch-x86_64/syscalls/sched_getparam.S +++ b/libc/arch-x86_64/syscalls/sched_getparam.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sched_getparam) movl $__NR_sched_getparam, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_getscheduler.S b/libc/arch-x86_64/syscalls/sched_getscheduler.S index 090b322..0cf3b54 100644 --- a/libc/arch-x86_64/syscalls/sched_getscheduler.S +++ b/libc/arch-x86_64/syscalls/sched_getscheduler.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sched_getscheduler) movl $__NR_sched_getscheduler, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_rr_get_interval.S b/libc/arch-x86_64/syscalls/sched_rr_get_interval.S index 0977f2e..662a28c 100644 --- a/libc/arch-x86_64/syscalls/sched_rr_get_interval.S +++ b/libc/arch-x86_64/syscalls/sched_rr_get_interval.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sched_rr_get_interval) movl $__NR_sched_rr_get_interval, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_setaffinity.S b/libc/arch-x86_64/syscalls/sched_setaffinity.S index af8e7a2..79b43fd 100644 --- a/libc/arch-x86_64/syscalls/sched_setaffinity.S +++ b/libc/arch-x86_64/syscalls/sched_setaffinity.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sched_setaffinity) movl $__NR_sched_setaffinity, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_setparam.S b/libc/arch-x86_64/syscalls/sched_setparam.S index 2964607..871b492 100644 --- a/libc/arch-x86_64/syscalls/sched_setparam.S +++ b/libc/arch-x86_64/syscalls/sched_setparam.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sched_setparam) movl $__NR_sched_setparam, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_setscheduler.S b/libc/arch-x86_64/syscalls/sched_setscheduler.S index 333d1b8..0dcb47d 100644 --- a/libc/arch-x86_64/syscalls/sched_setscheduler.S +++ b/libc/arch-x86_64/syscalls/sched_setscheduler.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sched_setscheduler) movl $__NR_sched_setscheduler, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_yield.S b/libc/arch-x86_64/syscalls/sched_yield.S index a972154..12de511 100644 --- a/libc/arch-x86_64/syscalls/sched_yield.S +++ b/libc/arch-x86_64/syscalls/sched_yield.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sched_yield) movl $__NR_sched_yield, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sendfile.S b/libc/arch-x86_64/syscalls/sendfile.S index c1b6497..0255bf2 100644 --- a/libc/arch-x86_64/syscalls/sendfile.S +++ b/libc/arch-x86_64/syscalls/sendfile.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sendfile) movq %rcx, %r10 movl $__NR_sendfile, %eax diff --git a/libc/arch-x86_64/syscalls/sendmmsg.S b/libc/arch-x86_64/syscalls/sendmmsg.S index 940c0b6..47b2e3a 100644 --- a/libc/arch-x86_64/syscalls/sendmmsg.S +++ b/libc/arch-x86_64/syscalls/sendmmsg.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sendmmsg) movq %rcx, %r10 movl $__NR_sendmmsg, %eax diff --git a/libc/arch-x86_64/syscalls/sendmsg.S b/libc/arch-x86_64/syscalls/sendmsg.S index 6d94bb6..e9eecf6 100644 --- a/libc/arch-x86_64/syscalls/sendmsg.S +++ b/libc/arch-x86_64/syscalls/sendmsg.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sendmsg) movl $__NR_sendmsg, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sendto.S b/libc/arch-x86_64/syscalls/sendto.S index bfe4636..f8cc149 100644 --- a/libc/arch-x86_64/syscalls/sendto.S +++ b/libc/arch-x86_64/syscalls/sendto.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sendto) movq %rcx, %r10 movl $__NR_sendto, %eax diff --git a/libc/arch-x86_64/syscalls/setfsgid.S b/libc/arch-x86_64/syscalls/setfsgid.S index e9f50b8..bfc9c5d 100644 --- a/libc/arch-x86_64/syscalls/setfsgid.S +++ b/libc/arch-x86_64/syscalls/setfsgid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setfsgid) movl $__NR_setfsgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setfsuid.S b/libc/arch-x86_64/syscalls/setfsuid.S index cfdb86c..2540a36 100644 --- a/libc/arch-x86_64/syscalls/setfsuid.S +++ b/libc/arch-x86_64/syscalls/setfsuid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setfsuid) movl $__NR_setfsuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setgid.S b/libc/arch-x86_64/syscalls/setgid.S index ef4fb31..8f9ce53 100644 --- a/libc/arch-x86_64/syscalls/setgid.S +++ b/libc/arch-x86_64/syscalls/setgid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setgid) movl $__NR_setgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setgroups.S b/libc/arch-x86_64/syscalls/setgroups.S index 65e6180..81023ab 100644 --- a/libc/arch-x86_64/syscalls/setgroups.S +++ b/libc/arch-x86_64/syscalls/setgroups.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setgroups) movl $__NR_setgroups, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setitimer.S b/libc/arch-x86_64/syscalls/setitimer.S index bee4996..6882564 100644 --- a/libc/arch-x86_64/syscalls/setitimer.S +++ b/libc/arch-x86_64/syscalls/setitimer.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setitimer) movl $__NR_setitimer, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setns.S b/libc/arch-x86_64/syscalls/setns.S index 521769b..15dc51c 100644 --- a/libc/arch-x86_64/syscalls/setns.S +++ b/libc/arch-x86_64/syscalls/setns.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setns) movl $__NR_setns, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setpgid.S b/libc/arch-x86_64/syscalls/setpgid.S index 348612b..0cbb9a3 100644 --- a/libc/arch-x86_64/syscalls/setpgid.S +++ b/libc/arch-x86_64/syscalls/setpgid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setpgid) movl $__NR_setpgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setpriority.S b/libc/arch-x86_64/syscalls/setpriority.S index 0940368..e2ee775 100644 --- a/libc/arch-x86_64/syscalls/setpriority.S +++ b/libc/arch-x86_64/syscalls/setpriority.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setpriority) movl $__NR_setpriority, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setregid.S b/libc/arch-x86_64/syscalls/setregid.S index 0338ecf..1d53e4c 100644 --- a/libc/arch-x86_64/syscalls/setregid.S +++ b/libc/arch-x86_64/syscalls/setregid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setregid) movl $__NR_setregid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setresgid.S b/libc/arch-x86_64/syscalls/setresgid.S index 10e1244..7663cc6 100644 --- a/libc/arch-x86_64/syscalls/setresgid.S +++ b/libc/arch-x86_64/syscalls/setresgid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setresgid) movl $__NR_setresgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setresuid.S b/libc/arch-x86_64/syscalls/setresuid.S index 229b11b..96e691f 100644 --- a/libc/arch-x86_64/syscalls/setresuid.S +++ b/libc/arch-x86_64/syscalls/setresuid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setresuid) movl $__NR_setresuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setreuid.S b/libc/arch-x86_64/syscalls/setreuid.S index e96e2d3..9ee7208 100644 --- a/libc/arch-x86_64/syscalls/setreuid.S +++ b/libc/arch-x86_64/syscalls/setreuid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setreuid) movl $__NR_setreuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setrlimit.S b/libc/arch-x86_64/syscalls/setrlimit.S index 662587d..393a5c1 100644 --- a/libc/arch-x86_64/syscalls/setrlimit.S +++ b/libc/arch-x86_64/syscalls/setrlimit.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setrlimit) movl $__NR_setrlimit, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setsid.S b/libc/arch-x86_64/syscalls/setsid.S index 293ecf5..bed06c9 100644 --- a/libc/arch-x86_64/syscalls/setsid.S +++ b/libc/arch-x86_64/syscalls/setsid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setsid) movl $__NR_setsid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setsockopt.S b/libc/arch-x86_64/syscalls/setsockopt.S index aee6613..3c12cd6 100644 --- a/libc/arch-x86_64/syscalls/setsockopt.S +++ b/libc/arch-x86_64/syscalls/setsockopt.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setsockopt) movq %rcx, %r10 movl $__NR_setsockopt, %eax diff --git a/libc/arch-x86_64/syscalls/settimeofday.S b/libc/arch-x86_64/syscalls/settimeofday.S index 0d00c89..317946a 100644 --- a/libc/arch-x86_64/syscalls/settimeofday.S +++ b/libc/arch-x86_64/syscalls/settimeofday.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(settimeofday) movl $__NR_settimeofday, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setuid.S b/libc/arch-x86_64/syscalls/setuid.S index 19e2a10..8da7d86 100644 --- a/libc/arch-x86_64/syscalls/setuid.S +++ b/libc/arch-x86_64/syscalls/setuid.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setuid) movl $__NR_setuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setxattr.S b/libc/arch-x86_64/syscalls/setxattr.S index 3e4d50b..2abaa76 100644 --- a/libc/arch-x86_64/syscalls/setxattr.S +++ b/libc/arch-x86_64/syscalls/setxattr.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(setxattr) movq %rcx, %r10 movl $__NR_setxattr, %eax diff --git a/libc/arch-x86_64/syscalls/shutdown.S b/libc/arch-x86_64/syscalls/shutdown.S index 346be33..b5840d7 100644 --- a/libc/arch-x86_64/syscalls/shutdown.S +++ b/libc/arch-x86_64/syscalls/shutdown.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(shutdown) movl $__NR_shutdown, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sigaltstack.S b/libc/arch-x86_64/syscalls/sigaltstack.S index 271fafc..2dd6aa4 100644 --- a/libc/arch-x86_64/syscalls/sigaltstack.S +++ b/libc/arch-x86_64/syscalls/sigaltstack.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sigaltstack) movl $__NR_sigaltstack, %eax syscall diff --git a/libc/arch-x86_64/syscalls/socketpair.S b/libc/arch-x86_64/syscalls/socketpair.S index 5466dc9..cb32a8a 100644 --- a/libc/arch-x86_64/syscalls/socketpair.S +++ b/libc/arch-x86_64/syscalls/socketpair.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(socketpair) movq %rcx, %r10 movl $__NR_socketpair, %eax diff --git a/libc/arch-x86_64/syscalls/splice.S b/libc/arch-x86_64/syscalls/splice.S index 3c245a5..351e1c7 100644 --- a/libc/arch-x86_64/syscalls/splice.S +++ b/libc/arch-x86_64/syscalls/splice.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(splice) movq %rcx, %r10 movl $__NR_splice, %eax diff --git a/libc/arch-x86_64/syscalls/statfs64.S b/libc/arch-x86_64/syscalls/statfs64.S index 6a2637c..26c3d53 100644 --- a/libc/arch-x86_64/syscalls/statfs64.S +++ b/libc/arch-x86_64/syscalls/statfs64.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(statfs64) movl $__NR_statfs, %eax syscall diff --git a/libc/arch-x86_64/syscalls/swapoff.S b/libc/arch-x86_64/syscalls/swapoff.S index 7e55758..1bf331c 100644 --- a/libc/arch-x86_64/syscalls/swapoff.S +++ b/libc/arch-x86_64/syscalls/swapoff.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(swapoff) movl $__NR_swapoff, %eax syscall diff --git a/libc/arch-x86_64/syscalls/swapon.S b/libc/arch-x86_64/syscalls/swapon.S index d2f5f66..7405ccb 100644 --- a/libc/arch-x86_64/syscalls/swapon.S +++ b/libc/arch-x86_64/syscalls/swapon.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(swapon) movl $__NR_swapon, %eax syscall diff --git a/libc/arch-x86_64/syscalls/symlinkat.S b/libc/arch-x86_64/syscalls/symlinkat.S index 5bbf1cb..bea2da8 100644 --- a/libc/arch-x86_64/syscalls/symlinkat.S +++ b/libc/arch-x86_64/syscalls/symlinkat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(symlinkat) movl $__NR_symlinkat, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sync.S b/libc/arch-x86_64/syscalls/sync.S index 9911715..97aa427 100644 --- a/libc/arch-x86_64/syscalls/sync.S +++ b/libc/arch-x86_64/syscalls/sync.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sync) movl $__NR_sync, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sysinfo.S b/libc/arch-x86_64/syscalls/sysinfo.S index 104bb2c..de8fb8f 100644 --- a/libc/arch-x86_64/syscalls/sysinfo.S +++ b/libc/arch-x86_64/syscalls/sysinfo.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(sysinfo) movl $__NR_sysinfo, %eax syscall diff --git a/libc/arch-x86_64/syscalls/tee.S b/libc/arch-x86_64/syscalls/tee.S index ad5698c..41e2370 100644 --- a/libc/arch-x86_64/syscalls/tee.S +++ b/libc/arch-x86_64/syscalls/tee.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(tee) movq %rcx, %r10 movl $__NR_tee, %eax diff --git a/libc/arch-x86_64/syscalls/tgkill.S b/libc/arch-x86_64/syscalls/tgkill.S index e3b9972..00b2b42 100644 --- a/libc/arch-x86_64/syscalls/tgkill.S +++ b/libc/arch-x86_64/syscalls/tgkill.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(tgkill) movl $__NR_tgkill, %eax syscall diff --git a/libc/arch-x86_64/syscalls/timerfd_create.S b/libc/arch-x86_64/syscalls/timerfd_create.S index 3f1b23a..eef3208 100644 --- a/libc/arch-x86_64/syscalls/timerfd_create.S +++ b/libc/arch-x86_64/syscalls/timerfd_create.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(timerfd_create) movl $__NR_timerfd_create, %eax syscall diff --git a/libc/arch-x86_64/syscalls/timerfd_gettime.S b/libc/arch-x86_64/syscalls/timerfd_gettime.S index b1017ad..9f11c5a 100644 --- a/libc/arch-x86_64/syscalls/timerfd_gettime.S +++ b/libc/arch-x86_64/syscalls/timerfd_gettime.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(timerfd_gettime) movl $__NR_timerfd_gettime, %eax syscall diff --git a/libc/arch-x86_64/syscalls/timerfd_settime.S b/libc/arch-x86_64/syscalls/timerfd_settime.S index 8610a1d..65a17e1 100644 --- a/libc/arch-x86_64/syscalls/timerfd_settime.S +++ b/libc/arch-x86_64/syscalls/timerfd_settime.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(timerfd_settime) movq %rcx, %r10 movl $__NR_timerfd_settime, %eax diff --git a/libc/arch-x86_64/syscalls/times.S b/libc/arch-x86_64/syscalls/times.S index 07590b9..5ee21be 100644 --- a/libc/arch-x86_64/syscalls/times.S +++ b/libc/arch-x86_64/syscalls/times.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(times) movl $__NR_times, %eax syscall diff --git a/libc/arch-x86_64/syscalls/truncate.S b/libc/arch-x86_64/syscalls/truncate.S index db2121f..2dc1793 100644 --- a/libc/arch-x86_64/syscalls/truncate.S +++ b/libc/arch-x86_64/syscalls/truncate.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(truncate) movl $__NR_truncate, %eax syscall diff --git a/libc/arch-x86_64/syscalls/umask.S b/libc/arch-x86_64/syscalls/umask.S index badea76..ad102bd 100644 --- a/libc/arch-x86_64/syscalls/umask.S +++ b/libc/arch-x86_64/syscalls/umask.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(umask) movl $__NR_umask, %eax syscall diff --git a/libc/arch-x86_64/syscalls/umount2.S b/libc/arch-x86_64/syscalls/umount2.S index 93e6fa0..31588de 100644 --- a/libc/arch-x86_64/syscalls/umount2.S +++ b/libc/arch-x86_64/syscalls/umount2.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(umount2) movl $__NR_umount2, %eax syscall diff --git a/libc/arch-x86_64/syscalls/uname.S b/libc/arch-x86_64/syscalls/uname.S index 4b0d1c5..ad2d8f4 100644 --- a/libc/arch-x86_64/syscalls/uname.S +++ b/libc/arch-x86_64/syscalls/uname.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(uname) movl $__NR_uname, %eax syscall diff --git a/libc/arch-x86_64/syscalls/unlinkat.S b/libc/arch-x86_64/syscalls/unlinkat.S index f322f7d..e6aac2e 100644 --- a/libc/arch-x86_64/syscalls/unlinkat.S +++ b/libc/arch-x86_64/syscalls/unlinkat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(unlinkat) movl $__NR_unlinkat, %eax syscall diff --git a/libc/arch-x86_64/syscalls/unshare.S b/libc/arch-x86_64/syscalls/unshare.S index b5395c1..6594df0 100644 --- a/libc/arch-x86_64/syscalls/unshare.S +++ b/libc/arch-x86_64/syscalls/unshare.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(unshare) movl $__NR_unshare, %eax syscall diff --git a/libc/arch-x86_64/syscalls/utimensat.S b/libc/arch-x86_64/syscalls/utimensat.S index f90caf2..5eaac1b 100644 --- a/libc/arch-x86_64/syscalls/utimensat.S +++ b/libc/arch-x86_64/syscalls/utimensat.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(utimensat) movq %rcx, %r10 movl $__NR_utimensat, %eax diff --git a/libc/arch-x86_64/syscalls/vmsplice.S b/libc/arch-x86_64/syscalls/vmsplice.S index cc94cc6..6f9e5d1 100644 --- a/libc/arch-x86_64/syscalls/vmsplice.S +++ b/libc/arch-x86_64/syscalls/vmsplice.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(vmsplice) movq %rcx, %r10 movl $__NR_vmsplice, %eax diff --git a/libc/arch-x86_64/syscalls/wait4.S b/libc/arch-x86_64/syscalls/wait4.S index 7948331..141fe19 100644 --- a/libc/arch-x86_64/syscalls/wait4.S +++ b/libc/arch-x86_64/syscalls/wait4.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(wait4) movq %rcx, %r10 movl $__NR_wait4, %eax diff --git a/libc/arch-x86_64/syscalls/write.S b/libc/arch-x86_64/syscalls/write.S index 7e3a563..498fca7 100644 --- a/libc/arch-x86_64/syscalls/write.S +++ b/libc/arch-x86_64/syscalls/write.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(write) movl $__NR_write, %eax syscall diff --git a/libc/arch-x86_64/syscalls/writev.S b/libc/arch-x86_64/syscalls/writev.S index 5fc040a..ef80eb8 100644 --- a/libc/arch-x86_64/syscalls/writev.S +++ b/libc/arch-x86_64/syscalls/writev.S @@ -2,6 +2,8 @@ #include <private/bionic_asm.h> + .hidden __set_errno + ENTRY(writev) movl $__NR_writev, %eax syscall |