From 7efad83d430f4d824f2aaa75edea5106f6ff8aae Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 8 Sep 2014 15:25:01 -0700 Subject: [PATCH] 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 --- libc/arch-arm/bionic/__bionic_clone.S | 2 +- libc/arch-arm/bionic/syscall.S | 2 +- libc/arch-arm/syscalls/__accept4.S | 4 +--- libc/arch-arm/syscalls/__brk.S | 4 +--- libc/arch-arm/syscalls/__connect.S | 4 +--- libc/arch-arm/syscalls/__epoll_pwait.S | 4 +--- libc/arch-arm/syscalls/__exit.S | 4 +--- libc/arch-arm/syscalls/__fcntl64.S | 4 +--- libc/arch-arm/syscalls/__fstatfs64.S | 4 +--- libc/arch-arm/syscalls/__getcpu.S | 4 +--- libc/arch-arm/syscalls/__getcwd.S | 4 +--- libc/arch-arm/syscalls/__getdents64.S | 4 +--- libc/arch-arm/syscalls/__getpid.S | 4 +--- libc/arch-arm/syscalls/__getpriority.S | 4 +--- libc/arch-arm/syscalls/__ioctl.S | 4 +--- libc/arch-arm/syscalls/__llseek.S | 4 +--- libc/arch-arm/syscalls/__mmap2.S | 4 +--- libc/arch-arm/syscalls/__openat.S | 4 +--- libc/arch-arm/syscalls/__ppoll.S | 4 +--- libc/arch-arm/syscalls/__pselect6.S | 4 +--- libc/arch-arm/syscalls/__ptrace.S | 4 +--- libc/arch-arm/syscalls/__reboot.S | 4 +--- libc/arch-arm/syscalls/__rt_sigaction.S | 4 +--- libc/arch-arm/syscalls/__rt_sigpending.S | 4 +--- libc/arch-arm/syscalls/__rt_sigprocmask.S | 4 +--- libc/arch-arm/syscalls/__rt_sigsuspend.S | 4 +--- libc/arch-arm/syscalls/__rt_sigtimedwait.S | 4 +--- libc/arch-arm/syscalls/__sched_getaffinity.S | 4 +--- libc/arch-arm/syscalls/__set_tid_address.S | 4 +--- libc/arch-arm/syscalls/__set_tls.S | 4 +--- libc/arch-arm/syscalls/__sigaction.S | 4 +--- libc/arch-arm/syscalls/__signalfd4.S | 4 +--- libc/arch-arm/syscalls/__socket.S | 4 +--- libc/arch-arm/syscalls/__statfs64.S | 4 +--- libc/arch-arm/syscalls/__timer_create.S | 4 +--- libc/arch-arm/syscalls/__timer_delete.S | 4 +--- libc/arch-arm/syscalls/__timer_getoverrun.S | 4 +--- libc/arch-arm/syscalls/__timer_gettime.S | 4 +--- libc/arch-arm/syscalls/__timer_settime.S | 4 +--- libc/arch-arm/syscalls/__waitid.S | 4 +--- libc/arch-arm/syscalls/_exit.S | 4 +--- libc/arch-arm/syscalls/acct.S | 4 +--- libc/arch-arm/syscalls/bind.S | 4 +--- libc/arch-arm/syscalls/cacheflush.S | 4 +--- libc/arch-arm/syscalls/capget.S | 4 +--- libc/arch-arm/syscalls/capset.S | 4 +--- libc/arch-arm/syscalls/chdir.S | 4 +--- libc/arch-arm/syscalls/chroot.S | 4 +--- libc/arch-arm/syscalls/clock_getres.S | 4 +--- libc/arch-arm/syscalls/clock_gettime.S | 4 +--- libc/arch-arm/syscalls/clock_nanosleep.S | 4 +--- libc/arch-arm/syscalls/clock_settime.S | 4 +--- libc/arch-arm/syscalls/close.S | 4 +--- libc/arch-arm/syscalls/delete_module.S | 4 +--- libc/arch-arm/syscalls/dup.S | 4 +--- libc/arch-arm/syscalls/dup3.S | 4 +--- libc/arch-arm/syscalls/epoll_create1.S | 4 +--- libc/arch-arm/syscalls/epoll_ctl.S | 4 +--- libc/arch-arm/syscalls/eventfd.S | 4 +--- libc/arch-arm/syscalls/execve.S | 4 +--- libc/arch-arm/syscalls/faccessat.S | 4 +--- libc/arch-arm/syscalls/fallocate64.S | 4 +--- libc/arch-arm/syscalls/fchdir.S | 4 +--- libc/arch-arm/syscalls/fchmod.S | 4 +--- libc/arch-arm/syscalls/fchmodat.S | 4 +--- libc/arch-arm/syscalls/fchown.S | 4 +--- libc/arch-arm/syscalls/fchownat.S | 4 +--- libc/arch-arm/syscalls/fdatasync.S | 4 +--- libc/arch-arm/syscalls/fgetxattr.S | 4 +--- libc/arch-arm/syscalls/flistxattr.S | 4 +--- libc/arch-arm/syscalls/flock.S | 4 +--- libc/arch-arm/syscalls/fremovexattr.S | 4 +--- libc/arch-arm/syscalls/fsetxattr.S | 4 +--- libc/arch-arm/syscalls/fstat64.S | 4 +--- libc/arch-arm/syscalls/fstatat64.S | 4 +--- libc/arch-arm/syscalls/fsync.S | 4 +--- libc/arch-arm/syscalls/ftruncate.S | 4 +--- libc/arch-arm/syscalls/ftruncate64.S | 4 +--- libc/arch-arm/syscalls/getegid.S | 4 +--- libc/arch-arm/syscalls/geteuid.S | 4 +--- libc/arch-arm/syscalls/getgid.S | 4 +--- libc/arch-arm/syscalls/getgroups.S | 4 +--- libc/arch-arm/syscalls/getitimer.S | 4 +--- libc/arch-arm/syscalls/getpeername.S | 4 +--- libc/arch-arm/syscalls/getpgid.S | 4 +--- libc/arch-arm/syscalls/getppid.S | 4 +--- libc/arch-arm/syscalls/getresgid.S | 4 +--- libc/arch-arm/syscalls/getresuid.S | 4 +--- libc/arch-arm/syscalls/getrlimit.S | 4 +--- libc/arch-arm/syscalls/getrusage.S | 4 +--- libc/arch-arm/syscalls/getsid.S | 4 +--- libc/arch-arm/syscalls/getsockname.S | 4 +--- libc/arch-arm/syscalls/getsockopt.S | 4 +--- libc/arch-arm/syscalls/gettimeofday.S | 4 +--- libc/arch-arm/syscalls/getuid.S | 4 +--- libc/arch-arm/syscalls/getxattr.S | 4 +--- libc/arch-arm/syscalls/init_module.S | 4 +--- libc/arch-arm/syscalls/inotify_add_watch.S | 4 +--- libc/arch-arm/syscalls/inotify_init1.S | 4 +--- libc/arch-arm/syscalls/inotify_rm_watch.S | 4 +--- libc/arch-arm/syscalls/kill.S | 4 +--- libc/arch-arm/syscalls/klogctl.S | 4 +--- libc/arch-arm/syscalls/lgetxattr.S | 4 +--- libc/arch-arm/syscalls/linkat.S | 4 +--- libc/arch-arm/syscalls/listen.S | 4 +--- libc/arch-arm/syscalls/listxattr.S | 4 +--- libc/arch-arm/syscalls/llistxattr.S | 4 +--- libc/arch-arm/syscalls/lremovexattr.S | 4 +--- libc/arch-arm/syscalls/lseek.S | 4 +--- libc/arch-arm/syscalls/lsetxattr.S | 4 +--- libc/arch-arm/syscalls/madvise.S | 4 +--- libc/arch-arm/syscalls/mincore.S | 4 +--- libc/arch-arm/syscalls/mkdirat.S | 4 +--- libc/arch-arm/syscalls/mknodat.S | 4 +--- libc/arch-arm/syscalls/mlock.S | 4 +--- libc/arch-arm/syscalls/mlockall.S | 4 +--- libc/arch-arm/syscalls/mount.S | 4 +--- libc/arch-arm/syscalls/mprotect.S | 4 +--- libc/arch-arm/syscalls/mremap.S | 4 +--- libc/arch-arm/syscalls/msync.S | 4 +--- libc/arch-arm/syscalls/munlock.S | 4 +--- libc/arch-arm/syscalls/munlockall.S | 4 +--- libc/arch-arm/syscalls/munmap.S | 4 +--- libc/arch-arm/syscalls/nanosleep.S | 4 +--- libc/arch-arm/syscalls/personality.S | 4 +--- libc/arch-arm/syscalls/pipe2.S | 4 +--- libc/arch-arm/syscalls/prctl.S | 4 +--- libc/arch-arm/syscalls/pread64.S | 4 +--- libc/arch-arm/syscalls/prlimit64.S | 4 +--- libc/arch-arm/syscalls/pwrite64.S | 4 +--- libc/arch-arm/syscalls/read.S | 4 +--- libc/arch-arm/syscalls/readahead.S | 4 +--- libc/arch-arm/syscalls/readlinkat.S | 4 +--- libc/arch-arm/syscalls/readv.S | 4 +--- libc/arch-arm/syscalls/recvfrom.S | 4 +--- libc/arch-arm/syscalls/recvmmsg.S | 4 +--- libc/arch-arm/syscalls/recvmsg.S | 4 +--- libc/arch-arm/syscalls/removexattr.S | 4 +--- libc/arch-arm/syscalls/renameat.S | 4 +--- .../arch-arm/syscalls/sched_get_priority_max.S | 4 +--- .../arch-arm/syscalls/sched_get_priority_min.S | 4 +--- libc/arch-arm/syscalls/sched_getparam.S | 4 +--- libc/arch-arm/syscalls/sched_getscheduler.S | 4 +--- libc/arch-arm/syscalls/sched_rr_get_interval.S | 4 +--- libc/arch-arm/syscalls/sched_setaffinity.S | 4 +--- libc/arch-arm/syscalls/sched_setparam.S | 4 +--- libc/arch-arm/syscalls/sched_setscheduler.S | 4 +--- libc/arch-arm/syscalls/sched_yield.S | 4 +--- libc/arch-arm/syscalls/sendfile.S | 4 +--- libc/arch-arm/syscalls/sendfile64.S | 4 +--- libc/arch-arm/syscalls/sendmmsg.S | 4 +--- libc/arch-arm/syscalls/sendmsg.S | 4 +--- libc/arch-arm/syscalls/sendto.S | 4 +--- libc/arch-arm/syscalls/setfsgid.S | 4 +--- libc/arch-arm/syscalls/setfsuid.S | 4 +--- libc/arch-arm/syscalls/setgid.S | 4 +--- libc/arch-arm/syscalls/setgroups.S | 4 +--- libc/arch-arm/syscalls/setitimer.S | 4 +--- libc/arch-arm/syscalls/setns.S | 4 +--- libc/arch-arm/syscalls/setpgid.S | 4 +--- libc/arch-arm/syscalls/setpriority.S | 4 +--- libc/arch-arm/syscalls/setregid.S | 4 +--- libc/arch-arm/syscalls/setresgid.S | 4 +--- libc/arch-arm/syscalls/setresuid.S | 4 +--- libc/arch-arm/syscalls/setreuid.S | 4 +--- libc/arch-arm/syscalls/setrlimit.S | 4 +--- libc/arch-arm/syscalls/setsid.S | 4 +--- libc/arch-arm/syscalls/setsockopt.S | 4 +--- libc/arch-arm/syscalls/settimeofday.S | 4 +--- libc/arch-arm/syscalls/setuid.S | 4 +--- libc/arch-arm/syscalls/setxattr.S | 4 +--- libc/arch-arm/syscalls/shutdown.S | 4 +--- libc/arch-arm/syscalls/sigaltstack.S | 4 +--- libc/arch-arm/syscalls/socketpair.S | 4 +--- libc/arch-arm/syscalls/splice.S | 4 +--- libc/arch-arm/syscalls/swapoff.S | 4 +--- libc/arch-arm/syscalls/swapon.S | 4 +--- libc/arch-arm/syscalls/symlinkat.S | 4 +--- libc/arch-arm/syscalls/sync.S | 4 +--- libc/arch-arm/syscalls/sysinfo.S | 4 +--- libc/arch-arm/syscalls/tee.S | 4 +--- libc/arch-arm/syscalls/tgkill.S | 4 +--- libc/arch-arm/syscalls/timerfd_create.S | 4 +--- libc/arch-arm/syscalls/timerfd_gettime.S | 4 +--- libc/arch-arm/syscalls/timerfd_settime.S | 4 +--- libc/arch-arm/syscalls/times.S | 4 +--- libc/arch-arm/syscalls/truncate.S | 4 +--- libc/arch-arm/syscalls/truncate64.S | 4 +--- libc/arch-arm/syscalls/umask.S | 4 +--- libc/arch-arm/syscalls/umount2.S | 4 +--- libc/arch-arm/syscalls/uname.S | 4 +--- libc/arch-arm/syscalls/unlinkat.S | 4 +--- libc/arch-arm/syscalls/unshare.S | 4 +--- libc/arch-arm/syscalls/utimensat.S | 4 +--- libc/arch-arm/syscalls/vfork.S | 4 +--- libc/arch-arm/syscalls/vmsplice.S | 4 +--- libc/arch-arm/syscalls/wait4.S | 4 +--- libc/arch-arm/syscalls/write.S | 4 +--- libc/arch-arm/syscalls/writev.S | 4 +--- libc/arch-arm64/bionic/__bionic_clone.S | 2 +- libc/arch-arm64/bionic/syscall.S | 2 +- libc/arch-arm64/bionic/vfork.S | 2 +- libc/arch-arm64/syscalls/__accept4.S | 4 +--- libc/arch-arm64/syscalls/__brk.S | 4 +--- libc/arch-arm64/syscalls/__clock_gettime.S | 4 +--- libc/arch-arm64/syscalls/__connect.S | 4 +--- libc/arch-arm64/syscalls/__epoll_pwait.S | 4 +--- libc/arch-arm64/syscalls/__exit.S | 4 +--- libc/arch-arm64/syscalls/__getcpu.S | 4 +--- libc/arch-arm64/syscalls/__getcwd.S | 4 +--- libc/arch-arm64/syscalls/__getdents64.S | 4 +--- libc/arch-arm64/syscalls/__getpid.S | 4 +--- libc/arch-arm64/syscalls/__getpriority.S | 4 +--- libc/arch-arm64/syscalls/__gettimeofday.S | 4 +--- libc/arch-arm64/syscalls/__ioctl.S | 4 +--- libc/arch-arm64/syscalls/__openat.S | 4 +--- libc/arch-arm64/syscalls/__ppoll.S | 4 +--- libc/arch-arm64/syscalls/__pselect6.S | 4 +--- libc/arch-arm64/syscalls/__ptrace.S | 4 +--- libc/arch-arm64/syscalls/__reboot.S | 4 +--- libc/arch-arm64/syscalls/__rt_sigaction.S | 4 +--- libc/arch-arm64/syscalls/__rt_sigpending.S | 4 +--- libc/arch-arm64/syscalls/__rt_sigprocmask.S | 4 +--- libc/arch-arm64/syscalls/__rt_sigsuspend.S | 4 +--- libc/arch-arm64/syscalls/__rt_sigtimedwait.S | 4 +--- libc/arch-arm64/syscalls/__sched_getaffinity.S | 4 +--- libc/arch-arm64/syscalls/__set_tid_address.S | 4 +--- libc/arch-arm64/syscalls/__signalfd4.S | 4 +--- libc/arch-arm64/syscalls/__socket.S | 4 +--- libc/arch-arm64/syscalls/__timer_create.S | 4 +--- libc/arch-arm64/syscalls/__timer_delete.S | 4 +--- libc/arch-arm64/syscalls/__timer_getoverrun.S | 4 +--- libc/arch-arm64/syscalls/__timer_gettime.S | 4 +--- libc/arch-arm64/syscalls/__timer_settime.S | 4 +--- libc/arch-arm64/syscalls/__waitid.S | 4 +--- libc/arch-arm64/syscalls/_exit.S | 4 +--- libc/arch-arm64/syscalls/acct.S | 4 +--- libc/arch-arm64/syscalls/bind.S | 4 +--- libc/arch-arm64/syscalls/capget.S | 4 +--- libc/arch-arm64/syscalls/capset.S | 4 +--- libc/arch-arm64/syscalls/chdir.S | 4 +--- libc/arch-arm64/syscalls/chroot.S | 4 +--- libc/arch-arm64/syscalls/clock_getres.S | 4 +--- libc/arch-arm64/syscalls/clock_nanosleep.S | 4 +--- libc/arch-arm64/syscalls/clock_settime.S | 4 +--- libc/arch-arm64/syscalls/close.S | 4 +--- libc/arch-arm64/syscalls/delete_module.S | 4 +--- libc/arch-arm64/syscalls/dup.S | 4 +--- libc/arch-arm64/syscalls/dup3.S | 4 +--- libc/arch-arm64/syscalls/epoll_create1.S | 4 +--- libc/arch-arm64/syscalls/epoll_ctl.S | 4 +--- libc/arch-arm64/syscalls/eventfd.S | 4 +--- libc/arch-arm64/syscalls/execve.S | 4 +--- libc/arch-arm64/syscalls/faccessat.S | 4 +--- libc/arch-arm64/syscalls/fallocate.S | 4 +--- libc/arch-arm64/syscalls/fchdir.S | 4 +--- libc/arch-arm64/syscalls/fchmod.S | 4 +--- libc/arch-arm64/syscalls/fchmodat.S | 4 +--- libc/arch-arm64/syscalls/fchown.S | 4 +--- libc/arch-arm64/syscalls/fchownat.S | 4 +--- libc/arch-arm64/syscalls/fcntl.S | 4 +--- libc/arch-arm64/syscalls/fdatasync.S | 4 +--- libc/arch-arm64/syscalls/fgetxattr.S | 4 +--- libc/arch-arm64/syscalls/flistxattr.S | 4 +--- libc/arch-arm64/syscalls/flock.S | 4 +--- libc/arch-arm64/syscalls/fremovexattr.S | 4 +--- libc/arch-arm64/syscalls/fsetxattr.S | 4 +--- libc/arch-arm64/syscalls/fstat64.S | 4 +--- libc/arch-arm64/syscalls/fstatat64.S | 4 +--- libc/arch-arm64/syscalls/fstatfs64.S | 4 +--- libc/arch-arm64/syscalls/fsync.S | 4 +--- libc/arch-arm64/syscalls/ftruncate.S | 4 +--- libc/arch-arm64/syscalls/getegid.S | 4 +--- libc/arch-arm64/syscalls/geteuid.S | 4 +--- libc/arch-arm64/syscalls/getgid.S | 4 +--- libc/arch-arm64/syscalls/getgroups.S | 4 +--- libc/arch-arm64/syscalls/getitimer.S | 4 +--- libc/arch-arm64/syscalls/getpeername.S | 4 +--- libc/arch-arm64/syscalls/getpgid.S | 4 +--- libc/arch-arm64/syscalls/getppid.S | 4 +--- libc/arch-arm64/syscalls/getresgid.S | 4 +--- libc/arch-arm64/syscalls/getresuid.S | 4 +--- libc/arch-arm64/syscalls/getrlimit.S | 4 +--- libc/arch-arm64/syscalls/getrusage.S | 4 +--- libc/arch-arm64/syscalls/getsid.S | 4 +--- libc/arch-arm64/syscalls/getsockname.S | 4 +--- libc/arch-arm64/syscalls/getsockopt.S | 4 +--- libc/arch-arm64/syscalls/getuid.S | 4 +--- libc/arch-arm64/syscalls/getxattr.S | 4 +--- libc/arch-arm64/syscalls/init_module.S | 4 +--- libc/arch-arm64/syscalls/inotify_add_watch.S | 4 +--- libc/arch-arm64/syscalls/inotify_init1.S | 4 +--- libc/arch-arm64/syscalls/inotify_rm_watch.S | 4 +--- libc/arch-arm64/syscalls/kill.S | 4 +--- libc/arch-arm64/syscalls/klogctl.S | 4 +--- libc/arch-arm64/syscalls/lgetxattr.S | 4 +--- libc/arch-arm64/syscalls/linkat.S | 4 +--- libc/arch-arm64/syscalls/listen.S | 4 +--- libc/arch-arm64/syscalls/listxattr.S | 4 +--- libc/arch-arm64/syscalls/llistxattr.S | 4 +--- libc/arch-arm64/syscalls/lremovexattr.S | 4 +--- libc/arch-arm64/syscalls/lseek.S | 4 +--- libc/arch-arm64/syscalls/lsetxattr.S | 4 +--- libc/arch-arm64/syscalls/madvise.S | 4 +--- libc/arch-arm64/syscalls/mincore.S | 4 +--- libc/arch-arm64/syscalls/mkdirat.S | 4 +--- libc/arch-arm64/syscalls/mknodat.S | 4 +--- libc/arch-arm64/syscalls/mlock.S | 4 +--- libc/arch-arm64/syscalls/mlockall.S | 4 +--- libc/arch-arm64/syscalls/mmap.S | 4 +--- libc/arch-arm64/syscalls/mount.S | 4 +--- libc/arch-arm64/syscalls/mprotect.S | 4 +--- libc/arch-arm64/syscalls/mremap.S | 4 +--- libc/arch-arm64/syscalls/msync.S | 4 +--- libc/arch-arm64/syscalls/munlock.S | 4 +--- libc/arch-arm64/syscalls/munlockall.S | 4 +--- libc/arch-arm64/syscalls/munmap.S | 4 +--- libc/arch-arm64/syscalls/nanosleep.S | 4 +--- libc/arch-arm64/syscalls/personality.S | 4 +--- libc/arch-arm64/syscalls/pipe2.S | 4 +--- libc/arch-arm64/syscalls/prctl.S | 4 +--- libc/arch-arm64/syscalls/pread64.S | 4 +--- libc/arch-arm64/syscalls/prlimit64.S | 4 +--- libc/arch-arm64/syscalls/pwrite64.S | 4 +--- libc/arch-arm64/syscalls/read.S | 4 +--- libc/arch-arm64/syscalls/readahead.S | 4 +--- libc/arch-arm64/syscalls/readlinkat.S | 4 +--- libc/arch-arm64/syscalls/readv.S | 4 +--- libc/arch-arm64/syscalls/recvfrom.S | 4 +--- libc/arch-arm64/syscalls/recvmmsg.S | 4 +--- libc/arch-arm64/syscalls/recvmsg.S | 4 +--- libc/arch-arm64/syscalls/removexattr.S | 4 +--- libc/arch-arm64/syscalls/renameat.S | 4 +--- .../syscalls/sched_get_priority_max.S | 4 +--- .../syscalls/sched_get_priority_min.S | 4 +--- libc/arch-arm64/syscalls/sched_getparam.S | 4 +--- libc/arch-arm64/syscalls/sched_getscheduler.S | 4 +--- .../syscalls/sched_rr_get_interval.S | 4 +--- libc/arch-arm64/syscalls/sched_setaffinity.S | 4 +--- libc/arch-arm64/syscalls/sched_setparam.S | 4 +--- libc/arch-arm64/syscalls/sched_setscheduler.S | 4 +--- libc/arch-arm64/syscalls/sched_yield.S | 4 +--- libc/arch-arm64/syscalls/sendfile.S | 4 +--- libc/arch-arm64/syscalls/sendmmsg.S | 4 +--- libc/arch-arm64/syscalls/sendmsg.S | 4 +--- libc/arch-arm64/syscalls/sendto.S | 4 +--- libc/arch-arm64/syscalls/setfsgid.S | 4 +--- libc/arch-arm64/syscalls/setfsuid.S | 4 +--- libc/arch-arm64/syscalls/setgid.S | 4 +--- libc/arch-arm64/syscalls/setgroups.S | 4 +--- libc/arch-arm64/syscalls/setitimer.S | 4 +--- libc/arch-arm64/syscalls/setns.S | 4 +--- libc/arch-arm64/syscalls/setpgid.S | 4 +--- libc/arch-arm64/syscalls/setpriority.S | 4 +--- libc/arch-arm64/syscalls/setregid.S | 4 +--- libc/arch-arm64/syscalls/setresgid.S | 4 +--- libc/arch-arm64/syscalls/setresuid.S | 4 +--- libc/arch-arm64/syscalls/setreuid.S | 4 +--- libc/arch-arm64/syscalls/setrlimit.S | 4 +--- libc/arch-arm64/syscalls/setsid.S | 4 +--- libc/arch-arm64/syscalls/setsockopt.S | 4 +--- libc/arch-arm64/syscalls/settimeofday.S | 4 +--- libc/arch-arm64/syscalls/setuid.S | 4 +--- libc/arch-arm64/syscalls/setxattr.S | 4 +--- libc/arch-arm64/syscalls/shutdown.S | 4 +--- libc/arch-arm64/syscalls/sigaltstack.S | 4 +--- libc/arch-arm64/syscalls/socketpair.S | 4 +--- libc/arch-arm64/syscalls/splice.S | 4 +--- libc/arch-arm64/syscalls/statfs64.S | 4 +--- libc/arch-arm64/syscalls/swapoff.S | 4 +--- libc/arch-arm64/syscalls/swapon.S | 4 +--- libc/arch-arm64/syscalls/symlinkat.S | 4 +--- libc/arch-arm64/syscalls/sync.S | 4 +--- libc/arch-arm64/syscalls/sysinfo.S | 4 +--- libc/arch-arm64/syscalls/tee.S | 4 +--- libc/arch-arm64/syscalls/tgkill.S | 4 +--- libc/arch-arm64/syscalls/timerfd_create.S | 4 +--- libc/arch-arm64/syscalls/timerfd_gettime.S | 4 +--- libc/arch-arm64/syscalls/timerfd_settime.S | 4 +--- libc/arch-arm64/syscalls/times.S | 4 +--- libc/arch-arm64/syscalls/truncate.S | 4 +--- libc/arch-arm64/syscalls/umask.S | 4 +--- libc/arch-arm64/syscalls/umount2.S | 4 +--- libc/arch-arm64/syscalls/uname.S | 4 +--- libc/arch-arm64/syscalls/unlinkat.S | 4 +--- libc/arch-arm64/syscalls/unshare.S | 4 +--- libc/arch-arm64/syscalls/utimensat.S | 4 +--- libc/arch-arm64/syscalls/vmsplice.S | 4 +--- libc/arch-arm64/syscalls/wait4.S | 4 +--- libc/arch-arm64/syscalls/write.S | 4 +--- libc/arch-arm64/syscalls/writev.S | 4 +--- libc/arch-mips/bionic/__bionic_clone.S | 2 +- libc/arch-mips/bionic/syscall.S | 2 +- libc/arch-mips/bionic/vfork.S | 2 +- libc/arch-mips/syscalls/__accept4.S | 4 +--- libc/arch-mips/syscalls/__brk.S | 4 +--- libc/arch-mips/syscalls/__connect.S | 4 +--- libc/arch-mips/syscalls/__epoll_pwait.S | 4 +--- libc/arch-mips/syscalls/__exit.S | 4 +--- libc/arch-mips/syscalls/__fcntl64.S | 4 +--- libc/arch-mips/syscalls/__fstatfs64.S | 4 +--- libc/arch-mips/syscalls/__getcpu.S | 4 +--- libc/arch-mips/syscalls/__getcwd.S | 4 +--- libc/arch-mips/syscalls/__getdents64.S | 4 +--- libc/arch-mips/syscalls/__getpid.S | 4 +--- libc/arch-mips/syscalls/__getpriority.S | 4 +--- libc/arch-mips/syscalls/__ioctl.S | 4 +--- libc/arch-mips/syscalls/__llseek.S | 4 +--- libc/arch-mips/syscalls/__mmap2.S | 4 +--- libc/arch-mips/syscalls/__openat.S | 4 +--- libc/arch-mips/syscalls/__ppoll.S | 4 +--- libc/arch-mips/syscalls/__pselect6.S | 4 +--- libc/arch-mips/syscalls/__ptrace.S | 4 +--- libc/arch-mips/syscalls/__reboot.S | 4 +--- libc/arch-mips/syscalls/__rt_sigaction.S | 4 +--- libc/arch-mips/syscalls/__rt_sigpending.S | 4 +--- libc/arch-mips/syscalls/__rt_sigprocmask.S | 4 +--- libc/arch-mips/syscalls/__rt_sigsuspend.S | 4 +--- libc/arch-mips/syscalls/__rt_sigtimedwait.S | 4 +--- libc/arch-mips/syscalls/__sched_getaffinity.S | 4 +--- libc/arch-mips/syscalls/__set_tid_address.S | 4 +--- libc/arch-mips/syscalls/__set_tls.S | 4 +--- libc/arch-mips/syscalls/__sigaction.S | 4 +--- libc/arch-mips/syscalls/__signalfd4.S | 4 +--- libc/arch-mips/syscalls/__socket.S | 4 +--- libc/arch-mips/syscalls/__statfs64.S | 4 +--- libc/arch-mips/syscalls/__timer_create.S | 4 +--- libc/arch-mips/syscalls/__timer_delete.S | 4 +--- libc/arch-mips/syscalls/__timer_getoverrun.S | 4 +--- libc/arch-mips/syscalls/__timer_gettime.S | 4 +--- libc/arch-mips/syscalls/__timer_settime.S | 4 +--- libc/arch-mips/syscalls/__waitid.S | 4 +--- libc/arch-mips/syscalls/_exit.S | 4 +--- libc/arch-mips/syscalls/_flush_cache.S | 4 +--- libc/arch-mips/syscalls/acct.S | 4 +--- libc/arch-mips/syscalls/bind.S | 4 +--- libc/arch-mips/syscalls/capget.S | 4 +--- libc/arch-mips/syscalls/capset.S | 4 +--- libc/arch-mips/syscalls/chdir.S | 4 +--- libc/arch-mips/syscalls/chroot.S | 4 +--- libc/arch-mips/syscalls/clock_getres.S | 4 +--- libc/arch-mips/syscalls/clock_gettime.S | 4 +--- libc/arch-mips/syscalls/clock_nanosleep.S | 4 +--- libc/arch-mips/syscalls/clock_settime.S | 4 +--- libc/arch-mips/syscalls/close.S | 4 +--- libc/arch-mips/syscalls/delete_module.S | 4 +--- libc/arch-mips/syscalls/dup.S | 4 +--- libc/arch-mips/syscalls/dup3.S | 4 +--- libc/arch-mips/syscalls/epoll_create1.S | 4 +--- libc/arch-mips/syscalls/epoll_ctl.S | 4 +--- libc/arch-mips/syscalls/eventfd.S | 4 +--- libc/arch-mips/syscalls/execve.S | 4 +--- libc/arch-mips/syscalls/faccessat.S | 4 +--- libc/arch-mips/syscalls/fallocate64.S | 4 +--- libc/arch-mips/syscalls/fchdir.S | 4 +--- libc/arch-mips/syscalls/fchmod.S | 4 +--- libc/arch-mips/syscalls/fchmodat.S | 4 +--- libc/arch-mips/syscalls/fchown.S | 4 +--- libc/arch-mips/syscalls/fchownat.S | 4 +--- libc/arch-mips/syscalls/fdatasync.S | 4 +--- libc/arch-mips/syscalls/fgetxattr.S | 4 +--- libc/arch-mips/syscalls/flistxattr.S | 4 +--- libc/arch-mips/syscalls/flock.S | 4 +--- libc/arch-mips/syscalls/fremovexattr.S | 4 +--- libc/arch-mips/syscalls/fsetxattr.S | 4 +--- libc/arch-mips/syscalls/fstat64.S | 4 +--- libc/arch-mips/syscalls/fstatat64.S | 4 +--- libc/arch-mips/syscalls/fsync.S | 4 +--- libc/arch-mips/syscalls/ftruncate.S | 4 +--- libc/arch-mips/syscalls/ftruncate64.S | 4 +--- libc/arch-mips/syscalls/getegid.S | 4 +--- libc/arch-mips/syscalls/geteuid.S | 4 +--- libc/arch-mips/syscalls/getgid.S | 4 +--- libc/arch-mips/syscalls/getgroups.S | 4 +--- libc/arch-mips/syscalls/getitimer.S | 4 +--- libc/arch-mips/syscalls/getpeername.S | 4 +--- libc/arch-mips/syscalls/getpgid.S | 4 +--- libc/arch-mips/syscalls/getppid.S | 4 +--- libc/arch-mips/syscalls/getresgid.S | 4 +--- libc/arch-mips/syscalls/getresuid.S | 4 +--- libc/arch-mips/syscalls/getrlimit.S | 4 +--- libc/arch-mips/syscalls/getrusage.S | 4 +--- libc/arch-mips/syscalls/getsid.S | 4 +--- libc/arch-mips/syscalls/getsockname.S | 4 +--- libc/arch-mips/syscalls/getsockopt.S | 4 +--- libc/arch-mips/syscalls/gettimeofday.S | 4 +--- libc/arch-mips/syscalls/getuid.S | 4 +--- libc/arch-mips/syscalls/getxattr.S | 4 +--- libc/arch-mips/syscalls/init_module.S | 4 +--- libc/arch-mips/syscalls/inotify_add_watch.S | 4 +--- libc/arch-mips/syscalls/inotify_init1.S | 4 +--- libc/arch-mips/syscalls/inotify_rm_watch.S | 4 +--- libc/arch-mips/syscalls/kill.S | 4 +--- libc/arch-mips/syscalls/klogctl.S | 4 +--- libc/arch-mips/syscalls/lgetxattr.S | 4 +--- libc/arch-mips/syscalls/linkat.S | 4 +--- libc/arch-mips/syscalls/listen.S | 4 +--- libc/arch-mips/syscalls/listxattr.S | 4 +--- libc/arch-mips/syscalls/llistxattr.S | 4 +--- libc/arch-mips/syscalls/lremovexattr.S | 4 +--- libc/arch-mips/syscalls/lseek.S | 4 +--- libc/arch-mips/syscalls/lsetxattr.S | 4 +--- libc/arch-mips/syscalls/madvise.S | 4 +--- libc/arch-mips/syscalls/mincore.S | 4 +--- libc/arch-mips/syscalls/mkdirat.S | 4 +--- libc/arch-mips/syscalls/mknodat.S | 4 +--- libc/arch-mips/syscalls/mlock.S | 4 +--- libc/arch-mips/syscalls/mlockall.S | 4 +--- libc/arch-mips/syscalls/mount.S | 4 +--- libc/arch-mips/syscalls/mprotect.S | 4 +--- libc/arch-mips/syscalls/mremap.S | 4 +--- libc/arch-mips/syscalls/msync.S | 4 +--- libc/arch-mips/syscalls/munlock.S | 4 +--- libc/arch-mips/syscalls/munlockall.S | 4 +--- libc/arch-mips/syscalls/munmap.S | 4 +--- libc/arch-mips/syscalls/nanosleep.S | 4 +--- libc/arch-mips/syscalls/personality.S | 4 +--- libc/arch-mips/syscalls/pipe2.S | 4 +--- libc/arch-mips/syscalls/prctl.S | 4 +--- libc/arch-mips/syscalls/pread64.S | 4 +--- libc/arch-mips/syscalls/prlimit64.S | 4 +--- libc/arch-mips/syscalls/pwrite64.S | 4 +--- libc/arch-mips/syscalls/read.S | 4 +--- libc/arch-mips/syscalls/readahead.S | 4 +--- libc/arch-mips/syscalls/readlinkat.S | 4 +--- libc/arch-mips/syscalls/readv.S | 4 +--- libc/arch-mips/syscalls/recvfrom.S | 4 +--- libc/arch-mips/syscalls/recvmmsg.S | 4 +--- libc/arch-mips/syscalls/recvmsg.S | 4 +--- libc/arch-mips/syscalls/removexattr.S | 4 +--- libc/arch-mips/syscalls/renameat.S | 4 +--- .../syscalls/sched_get_priority_max.S | 4 +--- .../syscalls/sched_get_priority_min.S | 4 +--- libc/arch-mips/syscalls/sched_getparam.S | 4 +--- libc/arch-mips/syscalls/sched_getscheduler.S | 4 +--- .../arch-mips/syscalls/sched_rr_get_interval.S | 4 +--- libc/arch-mips/syscalls/sched_setaffinity.S | 4 +--- libc/arch-mips/syscalls/sched_setparam.S | 4 +--- libc/arch-mips/syscalls/sched_setscheduler.S | 4 +--- libc/arch-mips/syscalls/sched_yield.S | 4 +--- libc/arch-mips/syscalls/sendfile.S | 4 +--- libc/arch-mips/syscalls/sendfile64.S | 4 +--- libc/arch-mips/syscalls/sendmmsg.S | 4 +--- libc/arch-mips/syscalls/sendmsg.S | 4 +--- libc/arch-mips/syscalls/sendto.S | 4 +--- libc/arch-mips/syscalls/setfsgid.S | 4 +--- libc/arch-mips/syscalls/setfsuid.S | 4 +--- libc/arch-mips/syscalls/setgid.S | 4 +--- libc/arch-mips/syscalls/setgroups.S | 4 +--- libc/arch-mips/syscalls/setitimer.S | 4 +--- libc/arch-mips/syscalls/setns.S | 4 +--- libc/arch-mips/syscalls/setpgid.S | 4 +--- libc/arch-mips/syscalls/setpriority.S | 4 +--- libc/arch-mips/syscalls/setregid.S | 4 +--- libc/arch-mips/syscalls/setresgid.S | 4 +--- libc/arch-mips/syscalls/setresuid.S | 4 +--- libc/arch-mips/syscalls/setreuid.S | 4 +--- libc/arch-mips/syscalls/setrlimit.S | 4 +--- libc/arch-mips/syscalls/setsid.S | 4 +--- libc/arch-mips/syscalls/setsockopt.S | 4 +--- libc/arch-mips/syscalls/settimeofday.S | 4 +--- libc/arch-mips/syscalls/setuid.S | 4 +--- libc/arch-mips/syscalls/setxattr.S | 4 +--- libc/arch-mips/syscalls/shutdown.S | 4 +--- libc/arch-mips/syscalls/sigaltstack.S | 4 +--- libc/arch-mips/syscalls/socketpair.S | 4 +--- libc/arch-mips/syscalls/splice.S | 4 +--- libc/arch-mips/syscalls/swapoff.S | 4 +--- libc/arch-mips/syscalls/swapon.S | 4 +--- libc/arch-mips/syscalls/symlinkat.S | 4 +--- libc/arch-mips/syscalls/sync.S | 4 +--- libc/arch-mips/syscalls/sysinfo.S | 4 +--- libc/arch-mips/syscalls/tee.S | 4 +--- libc/arch-mips/syscalls/tgkill.S | 4 +--- libc/arch-mips/syscalls/timerfd_create.S | 4 +--- libc/arch-mips/syscalls/timerfd_gettime.S | 4 +--- libc/arch-mips/syscalls/timerfd_settime.S | 4 +--- libc/arch-mips/syscalls/times.S | 4 +--- libc/arch-mips/syscalls/truncate.S | 4 +--- libc/arch-mips/syscalls/truncate64.S | 4 +--- libc/arch-mips/syscalls/umask.S | 4 +--- libc/arch-mips/syscalls/umount2.S | 4 +--- libc/arch-mips/syscalls/uname.S | 4 +--- libc/arch-mips/syscalls/unlinkat.S | 4 +--- libc/arch-mips/syscalls/unshare.S | 4 +--- libc/arch-mips/syscalls/utimensat.S | 4 +--- libc/arch-mips/syscalls/vmsplice.S | 4 +--- libc/arch-mips/syscalls/wait4.S | 4 +--- libc/arch-mips/syscalls/write.S | 4 +--- libc/arch-mips/syscalls/writev.S | 4 +--- libc/arch-mips64/bionic/__bionic_clone.S | 2 +- libc/arch-mips64/bionic/syscall.S | 2 +- libc/arch-mips64/bionic/vfork.S | 2 +- libc/arch-mips64/syscalls/__accept4.S | 4 +--- libc/arch-mips64/syscalls/__brk.S | 4 +--- libc/arch-mips64/syscalls/__connect.S | 4 +--- libc/arch-mips64/syscalls/__epoll_pwait.S | 4 +--- libc/arch-mips64/syscalls/__exit.S | 4 +--- libc/arch-mips64/syscalls/__getcpu.S | 4 +--- libc/arch-mips64/syscalls/__getcwd.S | 4 +--- libc/arch-mips64/syscalls/__getdents64.S | 4 +--- libc/arch-mips64/syscalls/__getpid.S | 4 +--- libc/arch-mips64/syscalls/__getpriority.S | 4 +--- libc/arch-mips64/syscalls/__ioctl.S | 4 +--- libc/arch-mips64/syscalls/__openat.S | 4 +--- libc/arch-mips64/syscalls/__ppoll.S | 4 +--- libc/arch-mips64/syscalls/__pselect6.S | 4 +--- libc/arch-mips64/syscalls/__ptrace.S | 4 +--- libc/arch-mips64/syscalls/__reboot.S | 4 +--- libc/arch-mips64/syscalls/__rt_sigaction.S | 4 +--- libc/arch-mips64/syscalls/__rt_sigpending.S | 4 +--- libc/arch-mips64/syscalls/__rt_sigprocmask.S | 4 +--- libc/arch-mips64/syscalls/__rt_sigsuspend.S | 4 +--- libc/arch-mips64/syscalls/__rt_sigtimedwait.S | 4 +--- .../arch-mips64/syscalls/__sched_getaffinity.S | 4 +--- libc/arch-mips64/syscalls/__set_tid_address.S | 4 +--- libc/arch-mips64/syscalls/__set_tls.S | 4 +--- libc/arch-mips64/syscalls/__signalfd4.S | 4 +--- libc/arch-mips64/syscalls/__socket.S | 4 +--- libc/arch-mips64/syscalls/__timer_create.S | 4 +--- libc/arch-mips64/syscalls/__timer_delete.S | 4 +--- libc/arch-mips64/syscalls/__timer_getoverrun.S | 4 +--- libc/arch-mips64/syscalls/__timer_gettime.S | 4 +--- libc/arch-mips64/syscalls/__timer_settime.S | 4 +--- libc/arch-mips64/syscalls/__waitid.S | 4 +--- libc/arch-mips64/syscalls/_exit.S | 4 +--- libc/arch-mips64/syscalls/_flush_cache.S | 4 +--- libc/arch-mips64/syscalls/acct.S | 4 +--- libc/arch-mips64/syscalls/bind.S | 4 +--- libc/arch-mips64/syscalls/capget.S | 4 +--- libc/arch-mips64/syscalls/capset.S | 4 +--- libc/arch-mips64/syscalls/chdir.S | 4 +--- libc/arch-mips64/syscalls/chroot.S | 4 +--- libc/arch-mips64/syscalls/clock_getres.S | 4 +--- libc/arch-mips64/syscalls/clock_gettime.S | 4 +--- libc/arch-mips64/syscalls/clock_nanosleep.S | 4 +--- libc/arch-mips64/syscalls/clock_settime.S | 4 +--- libc/arch-mips64/syscalls/close.S | 4 +--- libc/arch-mips64/syscalls/delete_module.S | 4 +--- libc/arch-mips64/syscalls/dup.S | 4 +--- libc/arch-mips64/syscalls/dup3.S | 4 +--- libc/arch-mips64/syscalls/epoll_create1.S | 4 +--- libc/arch-mips64/syscalls/epoll_ctl.S | 4 +--- libc/arch-mips64/syscalls/eventfd.S | 4 +--- libc/arch-mips64/syscalls/execve.S | 4 +--- libc/arch-mips64/syscalls/faccessat.S | 4 +--- libc/arch-mips64/syscalls/fallocate.S | 4 +--- libc/arch-mips64/syscalls/fchdir.S | 4 +--- libc/arch-mips64/syscalls/fchmod.S | 4 +--- libc/arch-mips64/syscalls/fchmodat.S | 4 +--- libc/arch-mips64/syscalls/fchown.S | 4 +--- libc/arch-mips64/syscalls/fchownat.S | 4 +--- libc/arch-mips64/syscalls/fcntl.S | 4 +--- libc/arch-mips64/syscalls/fdatasync.S | 4 +--- libc/arch-mips64/syscalls/fgetxattr.S | 4 +--- libc/arch-mips64/syscalls/flistxattr.S | 4 +--- libc/arch-mips64/syscalls/flock.S | 4 +--- libc/arch-mips64/syscalls/fremovexattr.S | 4 +--- libc/arch-mips64/syscalls/fsetxattr.S | 4 +--- libc/arch-mips64/syscalls/fstat64.S | 4 +--- libc/arch-mips64/syscalls/fstatat64.S | 4 +--- libc/arch-mips64/syscalls/fstatfs64.S | 4 +--- libc/arch-mips64/syscalls/fsync.S | 4 +--- libc/arch-mips64/syscalls/ftruncate.S | 4 +--- libc/arch-mips64/syscalls/getegid.S | 4 +--- libc/arch-mips64/syscalls/geteuid.S | 4 +--- libc/arch-mips64/syscalls/getgid.S | 4 +--- libc/arch-mips64/syscalls/getgroups.S | 4 +--- libc/arch-mips64/syscalls/getitimer.S | 4 +--- libc/arch-mips64/syscalls/getpeername.S | 4 +--- libc/arch-mips64/syscalls/getpgid.S | 4 +--- libc/arch-mips64/syscalls/getppid.S | 4 +--- libc/arch-mips64/syscalls/getresgid.S | 4 +--- libc/arch-mips64/syscalls/getresuid.S | 4 +--- libc/arch-mips64/syscalls/getrlimit.S | 4 +--- libc/arch-mips64/syscalls/getrusage.S | 4 +--- libc/arch-mips64/syscalls/getsid.S | 4 +--- libc/arch-mips64/syscalls/getsockname.S | 4 +--- libc/arch-mips64/syscalls/getsockopt.S | 4 +--- libc/arch-mips64/syscalls/gettimeofday.S | 4 +--- libc/arch-mips64/syscalls/getuid.S | 4 +--- libc/arch-mips64/syscalls/getxattr.S | 4 +--- libc/arch-mips64/syscalls/init_module.S | 4 +--- libc/arch-mips64/syscalls/inotify_add_watch.S | 4 +--- libc/arch-mips64/syscalls/inotify_init1.S | 4 +--- libc/arch-mips64/syscalls/inotify_rm_watch.S | 4 +--- libc/arch-mips64/syscalls/kill.S | 4 +--- libc/arch-mips64/syscalls/klogctl.S | 4 +--- libc/arch-mips64/syscalls/lgetxattr.S | 4 +--- libc/arch-mips64/syscalls/linkat.S | 4 +--- libc/arch-mips64/syscalls/listen.S | 4 +--- libc/arch-mips64/syscalls/listxattr.S | 4 +--- libc/arch-mips64/syscalls/llistxattr.S | 4 +--- libc/arch-mips64/syscalls/lremovexattr.S | 4 +--- libc/arch-mips64/syscalls/lseek.S | 4 +--- libc/arch-mips64/syscalls/lsetxattr.S | 4 +--- libc/arch-mips64/syscalls/madvise.S | 4 +--- libc/arch-mips64/syscalls/mincore.S | 4 +--- libc/arch-mips64/syscalls/mkdirat.S | 4 +--- libc/arch-mips64/syscalls/mknodat.S | 4 +--- libc/arch-mips64/syscalls/mlock.S | 4 +--- libc/arch-mips64/syscalls/mlockall.S | 4 +--- libc/arch-mips64/syscalls/mmap.S | 4 +--- libc/arch-mips64/syscalls/mount.S | 4 +--- libc/arch-mips64/syscalls/mprotect.S | 4 +--- libc/arch-mips64/syscalls/mremap.S | 4 +--- libc/arch-mips64/syscalls/msync.S | 4 +--- libc/arch-mips64/syscalls/munlock.S | 4 +--- libc/arch-mips64/syscalls/munlockall.S | 4 +--- libc/arch-mips64/syscalls/munmap.S | 4 +--- libc/arch-mips64/syscalls/nanosleep.S | 4 +--- libc/arch-mips64/syscalls/personality.S | 4 +--- libc/arch-mips64/syscalls/pipe2.S | 4 +--- libc/arch-mips64/syscalls/prctl.S | 4 +--- libc/arch-mips64/syscalls/pread64.S | 4 +--- libc/arch-mips64/syscalls/prlimit64.S | 4 +--- libc/arch-mips64/syscalls/pwrite64.S | 4 +--- libc/arch-mips64/syscalls/read.S | 4 +--- libc/arch-mips64/syscalls/readahead.S | 4 +--- libc/arch-mips64/syscalls/readlinkat.S | 4 +--- libc/arch-mips64/syscalls/readv.S | 4 +--- libc/arch-mips64/syscalls/recvfrom.S | 4 +--- libc/arch-mips64/syscalls/recvmmsg.S | 4 +--- libc/arch-mips64/syscalls/recvmsg.S | 4 +--- libc/arch-mips64/syscalls/removexattr.S | 4 +--- libc/arch-mips64/syscalls/renameat.S | 4 +--- .../syscalls/sched_get_priority_max.S | 4 +--- .../syscalls/sched_get_priority_min.S | 4 +--- libc/arch-mips64/syscalls/sched_getparam.S | 4 +--- libc/arch-mips64/syscalls/sched_getscheduler.S | 4 +--- .../syscalls/sched_rr_get_interval.S | 4 +--- libc/arch-mips64/syscalls/sched_setaffinity.S | 4 +--- libc/arch-mips64/syscalls/sched_setparam.S | 4 +--- libc/arch-mips64/syscalls/sched_setscheduler.S | 4 +--- libc/arch-mips64/syscalls/sched_yield.S | 4 +--- libc/arch-mips64/syscalls/sendfile.S | 4 +--- libc/arch-mips64/syscalls/sendmmsg.S | 4 +--- libc/arch-mips64/syscalls/sendmsg.S | 4 +--- libc/arch-mips64/syscalls/sendto.S | 4 +--- libc/arch-mips64/syscalls/setfsgid.S | 4 +--- libc/arch-mips64/syscalls/setfsuid.S | 4 +--- libc/arch-mips64/syscalls/setgid.S | 4 +--- libc/arch-mips64/syscalls/setgroups.S | 4 +--- libc/arch-mips64/syscalls/setitimer.S | 4 +--- libc/arch-mips64/syscalls/setns.S | 4 +--- libc/arch-mips64/syscalls/setpgid.S | 4 +--- libc/arch-mips64/syscalls/setpriority.S | 4 +--- libc/arch-mips64/syscalls/setregid.S | 4 +--- libc/arch-mips64/syscalls/setresgid.S | 4 +--- libc/arch-mips64/syscalls/setresuid.S | 4 +--- libc/arch-mips64/syscalls/setreuid.S | 4 +--- libc/arch-mips64/syscalls/setrlimit.S | 4 +--- libc/arch-mips64/syscalls/setsid.S | 4 +--- libc/arch-mips64/syscalls/setsockopt.S | 4 +--- libc/arch-mips64/syscalls/settimeofday.S | 4 +--- libc/arch-mips64/syscalls/setuid.S | 4 +--- libc/arch-mips64/syscalls/setxattr.S | 4 +--- libc/arch-mips64/syscalls/shutdown.S | 4 +--- libc/arch-mips64/syscalls/sigaltstack.S | 4 +--- libc/arch-mips64/syscalls/socketpair.S | 4 +--- libc/arch-mips64/syscalls/splice.S | 4 +--- libc/arch-mips64/syscalls/statfs64.S | 4 +--- libc/arch-mips64/syscalls/swapoff.S | 4 +--- libc/arch-mips64/syscalls/swapon.S | 4 +--- libc/arch-mips64/syscalls/symlinkat.S | 4 +--- libc/arch-mips64/syscalls/sync.S | 4 +--- libc/arch-mips64/syscalls/sysinfo.S | 4 +--- libc/arch-mips64/syscalls/tee.S | 4 +--- libc/arch-mips64/syscalls/tgkill.S | 4 +--- libc/arch-mips64/syscalls/timerfd_create.S | 4 +--- libc/arch-mips64/syscalls/timerfd_gettime.S | 4 +--- libc/arch-mips64/syscalls/timerfd_settime.S | 4 +--- libc/arch-mips64/syscalls/times.S | 4 +--- libc/arch-mips64/syscalls/truncate.S | 4 +--- libc/arch-mips64/syscalls/umask.S | 4 +--- libc/arch-mips64/syscalls/umount2.S | 4 +--- libc/arch-mips64/syscalls/uname.S | 4 +--- libc/arch-mips64/syscalls/unlinkat.S | 4 +--- libc/arch-mips64/syscalls/unshare.S | 4 +--- libc/arch-mips64/syscalls/utimensat.S | 4 +--- libc/arch-mips64/syscalls/vmsplice.S | 4 +--- libc/arch-mips64/syscalls/wait4.S | 4 +--- libc/arch-mips64/syscalls/write.S | 4 +--- libc/arch-mips64/syscalls/writev.S | 4 +--- libc/arch-x86/bionic/__bionic_clone.S | 2 +- libc/arch-x86/bionic/syscall.S | 2 +- libc/arch-x86/bionic/vfork.S | 2 +- libc/arch-x86/syscalls/__accept4.S | 4 +--- libc/arch-x86/syscalls/__brk.S | 4 +--- libc/arch-x86/syscalls/__connect.S | 4 +--- libc/arch-x86/syscalls/__epoll_pwait.S | 4 +--- libc/arch-x86/syscalls/__exit.S | 4 +--- libc/arch-x86/syscalls/__fcntl64.S | 4 +--- libc/arch-x86/syscalls/__fstatfs64.S | 4 +--- libc/arch-x86/syscalls/__getcpu.S | 4 +--- libc/arch-x86/syscalls/__getcwd.S | 4 +--- libc/arch-x86/syscalls/__getdents64.S | 4 +--- libc/arch-x86/syscalls/__getpid.S | 4 +--- libc/arch-x86/syscalls/__getpriority.S | 4 +--- libc/arch-x86/syscalls/__ioctl.S | 4 +--- libc/arch-x86/syscalls/__llseek.S | 4 +--- libc/arch-x86/syscalls/__mmap2.S | 4 +--- libc/arch-x86/syscalls/__openat.S | 4 +--- libc/arch-x86/syscalls/__ppoll.S | 4 +--- libc/arch-x86/syscalls/__pselect6.S | 4 +--- libc/arch-x86/syscalls/__ptrace.S | 4 +--- libc/arch-x86/syscalls/__reboot.S | 4 +--- libc/arch-x86/syscalls/__rt_sigaction.S | 4 +--- libc/arch-x86/syscalls/__rt_sigpending.S | 4 +--- libc/arch-x86/syscalls/__rt_sigprocmask.S | 4 +--- libc/arch-x86/syscalls/__rt_sigsuspend.S | 4 +--- libc/arch-x86/syscalls/__rt_sigtimedwait.S | 4 +--- libc/arch-x86/syscalls/__sched_getaffinity.S | 4 +--- libc/arch-x86/syscalls/__set_thread_area.S | 4 +--- libc/arch-x86/syscalls/__set_tid_address.S | 4 +--- libc/arch-x86/syscalls/__sigaction.S | 4 +--- libc/arch-x86/syscalls/__signalfd4.S | 4 +--- libc/arch-x86/syscalls/__socket.S | 4 +--- libc/arch-x86/syscalls/__statfs64.S | 4 +--- libc/arch-x86/syscalls/__timer_create.S | 4 +--- libc/arch-x86/syscalls/__timer_delete.S | 4 +--- libc/arch-x86/syscalls/__timer_getoverrun.S | 4 +--- libc/arch-x86/syscalls/__timer_gettime.S | 4 +--- libc/arch-x86/syscalls/__timer_settime.S | 4 +--- libc/arch-x86/syscalls/__waitid.S | 4 +--- libc/arch-x86/syscalls/_exit.S | 4 +--- libc/arch-x86/syscalls/acct.S | 4 +--- libc/arch-x86/syscalls/bind.S | 4 +--- libc/arch-x86/syscalls/capget.S | 4 +--- libc/arch-x86/syscalls/capset.S | 4 +--- libc/arch-x86/syscalls/chdir.S | 4 +--- libc/arch-x86/syscalls/chroot.S | 4 +--- libc/arch-x86/syscalls/clock_getres.S | 4 +--- libc/arch-x86/syscalls/clock_gettime.S | 4 +--- libc/arch-x86/syscalls/clock_nanosleep.S | 4 +--- libc/arch-x86/syscalls/clock_settime.S | 4 +--- libc/arch-x86/syscalls/close.S | 4 +--- libc/arch-x86/syscalls/delete_module.S | 4 +--- libc/arch-x86/syscalls/dup.S | 4 +--- libc/arch-x86/syscalls/dup3.S | 4 +--- libc/arch-x86/syscalls/epoll_create1.S | 4 +--- libc/arch-x86/syscalls/epoll_ctl.S | 4 +--- libc/arch-x86/syscalls/eventfd.S | 4 +--- libc/arch-x86/syscalls/execve.S | 4 +--- libc/arch-x86/syscalls/faccessat.S | 4 +--- libc/arch-x86/syscalls/fallocate64.S | 4 +--- libc/arch-x86/syscalls/fchdir.S | 4 +--- libc/arch-x86/syscalls/fchmod.S | 4 +--- libc/arch-x86/syscalls/fchmodat.S | 4 +--- libc/arch-x86/syscalls/fchown.S | 4 +--- libc/arch-x86/syscalls/fchownat.S | 4 +--- libc/arch-x86/syscalls/fdatasync.S | 4 +--- libc/arch-x86/syscalls/fgetxattr.S | 4 +--- libc/arch-x86/syscalls/flistxattr.S | 4 +--- libc/arch-x86/syscalls/flock.S | 4 +--- libc/arch-x86/syscalls/fremovexattr.S | 4 +--- libc/arch-x86/syscalls/fsetxattr.S | 4 +--- libc/arch-x86/syscalls/fstat64.S | 4 +--- libc/arch-x86/syscalls/fstatat64.S | 4 +--- libc/arch-x86/syscalls/fsync.S | 4 +--- libc/arch-x86/syscalls/ftruncate.S | 4 +--- libc/arch-x86/syscalls/ftruncate64.S | 4 +--- libc/arch-x86/syscalls/getegid.S | 4 +--- libc/arch-x86/syscalls/geteuid.S | 4 +--- libc/arch-x86/syscalls/getgid.S | 4 +--- libc/arch-x86/syscalls/getgroups.S | 4 +--- libc/arch-x86/syscalls/getitimer.S | 4 +--- libc/arch-x86/syscalls/getpeername.S | 4 +--- libc/arch-x86/syscalls/getpgid.S | 4 +--- libc/arch-x86/syscalls/getppid.S | 4 +--- libc/arch-x86/syscalls/getresgid.S | 4 +--- libc/arch-x86/syscalls/getresuid.S | 4 +--- libc/arch-x86/syscalls/getrlimit.S | 4 +--- libc/arch-x86/syscalls/getrusage.S | 4 +--- libc/arch-x86/syscalls/getsid.S | 4 +--- libc/arch-x86/syscalls/getsockname.S | 4 +--- libc/arch-x86/syscalls/getsockopt.S | 4 +--- libc/arch-x86/syscalls/gettimeofday.S | 4 +--- libc/arch-x86/syscalls/getuid.S | 4 +--- libc/arch-x86/syscalls/getxattr.S | 4 +--- libc/arch-x86/syscalls/init_module.S | 4 +--- libc/arch-x86/syscalls/inotify_add_watch.S | 4 +--- libc/arch-x86/syscalls/inotify_init1.S | 4 +--- libc/arch-x86/syscalls/inotify_rm_watch.S | 4 +--- libc/arch-x86/syscalls/kill.S | 4 +--- libc/arch-x86/syscalls/klogctl.S | 4 +--- libc/arch-x86/syscalls/lgetxattr.S | 4 +--- libc/arch-x86/syscalls/linkat.S | 4 +--- libc/arch-x86/syscalls/listen.S | 4 +--- libc/arch-x86/syscalls/listxattr.S | 4 +--- libc/arch-x86/syscalls/llistxattr.S | 4 +--- libc/arch-x86/syscalls/lremovexattr.S | 4 +--- libc/arch-x86/syscalls/lseek.S | 4 +--- libc/arch-x86/syscalls/lsetxattr.S | 4 +--- libc/arch-x86/syscalls/madvise.S | 4 +--- libc/arch-x86/syscalls/mincore.S | 4 +--- libc/arch-x86/syscalls/mkdirat.S | 4 +--- libc/arch-x86/syscalls/mknodat.S | 4 +--- libc/arch-x86/syscalls/mlock.S | 4 +--- libc/arch-x86/syscalls/mlockall.S | 4 +--- libc/arch-x86/syscalls/mount.S | 4 +--- libc/arch-x86/syscalls/mprotect.S | 4 +--- libc/arch-x86/syscalls/mremap.S | 4 +--- libc/arch-x86/syscalls/msync.S | 4 +--- libc/arch-x86/syscalls/munlock.S | 4 +--- libc/arch-x86/syscalls/munlockall.S | 4 +--- libc/arch-x86/syscalls/munmap.S | 4 +--- libc/arch-x86/syscalls/nanosleep.S | 4 +--- libc/arch-x86/syscalls/personality.S | 4 +--- libc/arch-x86/syscalls/pipe2.S | 4 +--- libc/arch-x86/syscalls/prctl.S | 4 +--- libc/arch-x86/syscalls/pread64.S | 4 +--- libc/arch-x86/syscalls/prlimit64.S | 4 +--- libc/arch-x86/syscalls/pwrite64.S | 4 +--- libc/arch-x86/syscalls/read.S | 4 +--- libc/arch-x86/syscalls/readahead.S | 4 +--- libc/arch-x86/syscalls/readlinkat.S | 4 +--- libc/arch-x86/syscalls/readv.S | 4 +--- libc/arch-x86/syscalls/recvfrom.S | 4 +--- libc/arch-x86/syscalls/recvmmsg.S | 4 +--- libc/arch-x86/syscalls/recvmsg.S | 4 +--- libc/arch-x86/syscalls/removexattr.S | 4 +--- libc/arch-x86/syscalls/renameat.S | 4 +--- .../arch-x86/syscalls/sched_get_priority_max.S | 4 +--- .../arch-x86/syscalls/sched_get_priority_min.S | 4 +--- libc/arch-x86/syscalls/sched_getparam.S | 4 +--- libc/arch-x86/syscalls/sched_getscheduler.S | 4 +--- libc/arch-x86/syscalls/sched_rr_get_interval.S | 4 +--- libc/arch-x86/syscalls/sched_setaffinity.S | 4 +--- libc/arch-x86/syscalls/sched_setparam.S | 4 +--- libc/arch-x86/syscalls/sched_setscheduler.S | 4 +--- libc/arch-x86/syscalls/sched_yield.S | 4 +--- libc/arch-x86/syscalls/sendfile.S | 4 +--- libc/arch-x86/syscalls/sendfile64.S | 4 +--- libc/arch-x86/syscalls/sendmmsg.S | 4 +--- libc/arch-x86/syscalls/sendmsg.S | 4 +--- libc/arch-x86/syscalls/sendto.S | 4 +--- libc/arch-x86/syscalls/setfsgid.S | 4 +--- libc/arch-x86/syscalls/setfsuid.S | 4 +--- libc/arch-x86/syscalls/setgid.S | 4 +--- libc/arch-x86/syscalls/setgroups.S | 4 +--- libc/arch-x86/syscalls/setitimer.S | 4 +--- libc/arch-x86/syscalls/setns.S | 4 +--- libc/arch-x86/syscalls/setpgid.S | 4 +--- libc/arch-x86/syscalls/setpriority.S | 4 +--- libc/arch-x86/syscalls/setregid.S | 4 +--- libc/arch-x86/syscalls/setresgid.S | 4 +--- libc/arch-x86/syscalls/setresuid.S | 4 +--- libc/arch-x86/syscalls/setreuid.S | 4 +--- libc/arch-x86/syscalls/setrlimit.S | 4 +--- libc/arch-x86/syscalls/setsid.S | 4 +--- libc/arch-x86/syscalls/setsockopt.S | 4 +--- libc/arch-x86/syscalls/settimeofday.S | 4 +--- libc/arch-x86/syscalls/setuid.S | 4 +--- libc/arch-x86/syscalls/setxattr.S | 4 +--- libc/arch-x86/syscalls/shutdown.S | 4 +--- libc/arch-x86/syscalls/sigaltstack.S | 4 +--- libc/arch-x86/syscalls/socketpair.S | 4 +--- libc/arch-x86/syscalls/splice.S | 4 +--- libc/arch-x86/syscalls/swapoff.S | 4 +--- libc/arch-x86/syscalls/swapon.S | 4 +--- libc/arch-x86/syscalls/symlinkat.S | 4 +--- libc/arch-x86/syscalls/sync.S | 4 +--- libc/arch-x86/syscalls/sysinfo.S | 4 +--- libc/arch-x86/syscalls/tee.S | 4 +--- libc/arch-x86/syscalls/tgkill.S | 4 +--- libc/arch-x86/syscalls/timerfd_create.S | 4 +--- libc/arch-x86/syscalls/timerfd_gettime.S | 4 +--- libc/arch-x86/syscalls/timerfd_settime.S | 4 +--- libc/arch-x86/syscalls/times.S | 4 +--- libc/arch-x86/syscalls/truncate.S | 4 +--- libc/arch-x86/syscalls/truncate64.S | 4 +--- libc/arch-x86/syscalls/umask.S | 4 +--- libc/arch-x86/syscalls/umount2.S | 4 +--- libc/arch-x86/syscalls/uname.S | 4 +--- libc/arch-x86/syscalls/unlinkat.S | 4 +--- libc/arch-x86/syscalls/unshare.S | 4 +--- libc/arch-x86/syscalls/utimensat.S | 4 +--- libc/arch-x86/syscalls/vmsplice.S | 4 +--- libc/arch-x86/syscalls/wait4.S | 4 +--- libc/arch-x86/syscalls/write.S | 4 +--- libc/arch-x86/syscalls/writev.S | 4 +--- libc/arch-x86_64/bionic/__bionic_clone.S | 2 +- libc/arch-x86_64/bionic/syscall.S | 2 +- libc/arch-x86_64/bionic/vfork.S | 2 +- libc/arch-x86_64/syscalls/__accept4.S | 4 +--- libc/arch-x86_64/syscalls/__arch_prctl.S | 4 +--- libc/arch-x86_64/syscalls/__brk.S | 4 +--- libc/arch-x86_64/syscalls/__clock_gettime.S | 4 +--- libc/arch-x86_64/syscalls/__connect.S | 4 +--- libc/arch-x86_64/syscalls/__epoll_pwait.S | 4 +--- libc/arch-x86_64/syscalls/__exit.S | 4 +--- libc/arch-x86_64/syscalls/__getcpu.S | 4 +--- libc/arch-x86_64/syscalls/__getcwd.S | 4 +--- libc/arch-x86_64/syscalls/__getdents64.S | 4 +--- libc/arch-x86_64/syscalls/__getpid.S | 4 +--- libc/arch-x86_64/syscalls/__getpriority.S | 4 +--- libc/arch-x86_64/syscalls/__gettimeofday.S | 4 +--- libc/arch-x86_64/syscalls/__ioctl.S | 4 +--- libc/arch-x86_64/syscalls/__openat.S | 4 +--- libc/arch-x86_64/syscalls/__ppoll.S | 4 +--- libc/arch-x86_64/syscalls/__pselect6.S | 4 +--- libc/arch-x86_64/syscalls/__ptrace.S | 4 +--- libc/arch-x86_64/syscalls/__reboot.S | 4 +--- libc/arch-x86_64/syscalls/__rt_sigaction.S | 4 +--- libc/arch-x86_64/syscalls/__rt_sigpending.S | 4 +--- libc/arch-x86_64/syscalls/__rt_sigprocmask.S | 4 +--- libc/arch-x86_64/syscalls/__rt_sigsuspend.S | 4 +--- libc/arch-x86_64/syscalls/__rt_sigtimedwait.S | 4 +--- .../arch-x86_64/syscalls/__sched_getaffinity.S | 4 +--- libc/arch-x86_64/syscalls/__set_tid_address.S | 4 +--- libc/arch-x86_64/syscalls/__signalfd4.S | 4 +--- libc/arch-x86_64/syscalls/__socket.S | 4 +--- libc/arch-x86_64/syscalls/__timer_create.S | 4 +--- libc/arch-x86_64/syscalls/__timer_delete.S | 4 +--- libc/arch-x86_64/syscalls/__timer_getoverrun.S | 4 +--- libc/arch-x86_64/syscalls/__timer_gettime.S | 4 +--- libc/arch-x86_64/syscalls/__timer_settime.S | 4 +--- libc/arch-x86_64/syscalls/__waitid.S | 4 +--- libc/arch-x86_64/syscalls/_exit.S | 4 +--- libc/arch-x86_64/syscalls/acct.S | 4 +--- libc/arch-x86_64/syscalls/bind.S | 4 +--- libc/arch-x86_64/syscalls/capget.S | 4 +--- libc/arch-x86_64/syscalls/capset.S | 4 +--- libc/arch-x86_64/syscalls/chdir.S | 4 +--- libc/arch-x86_64/syscalls/chroot.S | 4 +--- libc/arch-x86_64/syscalls/clock_getres.S | 4 +--- libc/arch-x86_64/syscalls/clock_nanosleep.S | 4 +--- libc/arch-x86_64/syscalls/clock_settime.S | 4 +--- libc/arch-x86_64/syscalls/close.S | 4 +--- libc/arch-x86_64/syscalls/delete_module.S | 4 +--- libc/arch-x86_64/syscalls/dup.S | 4 +--- libc/arch-x86_64/syscalls/dup3.S | 4 +--- libc/arch-x86_64/syscalls/epoll_create1.S | 4 +--- libc/arch-x86_64/syscalls/epoll_ctl.S | 4 +--- libc/arch-x86_64/syscalls/eventfd.S | 4 +--- libc/arch-x86_64/syscalls/execve.S | 4 +--- libc/arch-x86_64/syscalls/faccessat.S | 4 +--- libc/arch-x86_64/syscalls/fallocate.S | 4 +--- libc/arch-x86_64/syscalls/fchdir.S | 4 +--- libc/arch-x86_64/syscalls/fchmod.S | 4 +--- libc/arch-x86_64/syscalls/fchmodat.S | 4 +--- libc/arch-x86_64/syscalls/fchown.S | 4 +--- libc/arch-x86_64/syscalls/fchownat.S | 4 +--- libc/arch-x86_64/syscalls/fcntl.S | 4 +--- libc/arch-x86_64/syscalls/fdatasync.S | 4 +--- libc/arch-x86_64/syscalls/fgetxattr.S | 4 +--- libc/arch-x86_64/syscalls/flistxattr.S | 4 +--- libc/arch-x86_64/syscalls/flock.S | 4 +--- libc/arch-x86_64/syscalls/fremovexattr.S | 4 +--- libc/arch-x86_64/syscalls/fsetxattr.S | 4 +--- libc/arch-x86_64/syscalls/fstat64.S | 4 +--- libc/arch-x86_64/syscalls/fstatat64.S | 4 +--- libc/arch-x86_64/syscalls/fstatfs64.S | 4 +--- libc/arch-x86_64/syscalls/fsync.S | 4 +--- libc/arch-x86_64/syscalls/ftruncate.S | 4 +--- libc/arch-x86_64/syscalls/getegid.S | 4 +--- libc/arch-x86_64/syscalls/geteuid.S | 4 +--- libc/arch-x86_64/syscalls/getgid.S | 4 +--- libc/arch-x86_64/syscalls/getgroups.S | 4 +--- libc/arch-x86_64/syscalls/getitimer.S | 4 +--- libc/arch-x86_64/syscalls/getpeername.S | 4 +--- libc/arch-x86_64/syscalls/getpgid.S | 4 +--- libc/arch-x86_64/syscalls/getppid.S | 4 +--- libc/arch-x86_64/syscalls/getresgid.S | 4 +--- libc/arch-x86_64/syscalls/getresuid.S | 4 +--- libc/arch-x86_64/syscalls/getrlimit.S | 4 +--- libc/arch-x86_64/syscalls/getrusage.S | 4 +--- libc/arch-x86_64/syscalls/getsid.S | 4 +--- libc/arch-x86_64/syscalls/getsockname.S | 4 +--- libc/arch-x86_64/syscalls/getsockopt.S | 4 +--- libc/arch-x86_64/syscalls/getuid.S | 4 +--- libc/arch-x86_64/syscalls/getxattr.S | 4 +--- libc/arch-x86_64/syscalls/init_module.S | 4 +--- libc/arch-x86_64/syscalls/inotify_add_watch.S | 4 +--- libc/arch-x86_64/syscalls/inotify_init1.S | 4 +--- libc/arch-x86_64/syscalls/inotify_rm_watch.S | 4 +--- libc/arch-x86_64/syscalls/kill.S | 4 +--- libc/arch-x86_64/syscalls/klogctl.S | 4 +--- libc/arch-x86_64/syscalls/lgetxattr.S | 4 +--- libc/arch-x86_64/syscalls/linkat.S | 4 +--- libc/arch-x86_64/syscalls/listen.S | 4 +--- libc/arch-x86_64/syscalls/listxattr.S | 4 +--- libc/arch-x86_64/syscalls/llistxattr.S | 4 +--- libc/arch-x86_64/syscalls/lremovexattr.S | 4 +--- libc/arch-x86_64/syscalls/lseek.S | 4 +--- libc/arch-x86_64/syscalls/lsetxattr.S | 4 +--- libc/arch-x86_64/syscalls/madvise.S | 4 +--- libc/arch-x86_64/syscalls/mincore.S | 4 +--- libc/arch-x86_64/syscalls/mkdirat.S | 4 +--- libc/arch-x86_64/syscalls/mknodat.S | 4 +--- libc/arch-x86_64/syscalls/mlock.S | 4 +--- libc/arch-x86_64/syscalls/mlockall.S | 4 +--- libc/arch-x86_64/syscalls/mmap.S | 4 +--- libc/arch-x86_64/syscalls/mount.S | 4 +--- libc/arch-x86_64/syscalls/mprotect.S | 4 +--- libc/arch-x86_64/syscalls/mremap.S | 4 +--- libc/arch-x86_64/syscalls/msync.S | 4 +--- libc/arch-x86_64/syscalls/munlock.S | 4 +--- libc/arch-x86_64/syscalls/munlockall.S | 4 +--- libc/arch-x86_64/syscalls/munmap.S | 4 +--- libc/arch-x86_64/syscalls/nanosleep.S | 4 +--- libc/arch-x86_64/syscalls/personality.S | 4 +--- libc/arch-x86_64/syscalls/pipe2.S | 4 +--- libc/arch-x86_64/syscalls/prctl.S | 4 +--- libc/arch-x86_64/syscalls/pread64.S | 4 +--- libc/arch-x86_64/syscalls/prlimit64.S | 4 +--- libc/arch-x86_64/syscalls/pwrite64.S | 4 +--- libc/arch-x86_64/syscalls/read.S | 4 +--- libc/arch-x86_64/syscalls/readahead.S | 4 +--- libc/arch-x86_64/syscalls/readlinkat.S | 4 +--- libc/arch-x86_64/syscalls/readv.S | 4 +--- libc/arch-x86_64/syscalls/recvfrom.S | 4 +--- libc/arch-x86_64/syscalls/recvmmsg.S | 4 +--- libc/arch-x86_64/syscalls/recvmsg.S | 4 +--- libc/arch-x86_64/syscalls/removexattr.S | 4 +--- libc/arch-x86_64/syscalls/renameat.S | 4 +--- .../syscalls/sched_get_priority_max.S | 4 +--- .../syscalls/sched_get_priority_min.S | 4 +--- libc/arch-x86_64/syscalls/sched_getparam.S | 4 +--- libc/arch-x86_64/syscalls/sched_getscheduler.S | 4 +--- .../syscalls/sched_rr_get_interval.S | 4 +--- libc/arch-x86_64/syscalls/sched_setaffinity.S | 4 +--- libc/arch-x86_64/syscalls/sched_setparam.S | 4 +--- libc/arch-x86_64/syscalls/sched_setscheduler.S | 4 +--- libc/arch-x86_64/syscalls/sched_yield.S | 4 +--- libc/arch-x86_64/syscalls/sendfile.S | 4 +--- libc/arch-x86_64/syscalls/sendmmsg.S | 4 +--- libc/arch-x86_64/syscalls/sendmsg.S | 4 +--- libc/arch-x86_64/syscalls/sendto.S | 4 +--- libc/arch-x86_64/syscalls/setfsgid.S | 4 +--- libc/arch-x86_64/syscalls/setfsuid.S | 4 +--- libc/arch-x86_64/syscalls/setgid.S | 4 +--- libc/arch-x86_64/syscalls/setgroups.S | 4 +--- libc/arch-x86_64/syscalls/setitimer.S | 4 +--- libc/arch-x86_64/syscalls/setns.S | 4 +--- libc/arch-x86_64/syscalls/setpgid.S | 4 +--- libc/arch-x86_64/syscalls/setpriority.S | 4 +--- libc/arch-x86_64/syscalls/setregid.S | 4 +--- libc/arch-x86_64/syscalls/setresgid.S | 4 +--- libc/arch-x86_64/syscalls/setresuid.S | 4 +--- libc/arch-x86_64/syscalls/setreuid.S | 4 +--- libc/arch-x86_64/syscalls/setrlimit.S | 4 +--- libc/arch-x86_64/syscalls/setsid.S | 4 +--- libc/arch-x86_64/syscalls/setsockopt.S | 4 +--- libc/arch-x86_64/syscalls/settimeofday.S | 4 +--- libc/arch-x86_64/syscalls/setuid.S | 4 +--- libc/arch-x86_64/syscalls/setxattr.S | 4 +--- libc/arch-x86_64/syscalls/shutdown.S | 4 +--- libc/arch-x86_64/syscalls/sigaltstack.S | 4 +--- libc/arch-x86_64/syscalls/socketpair.S | 4 +--- libc/arch-x86_64/syscalls/splice.S | 4 +--- libc/arch-x86_64/syscalls/statfs64.S | 4 +--- libc/arch-x86_64/syscalls/swapoff.S | 4 +--- libc/arch-x86_64/syscalls/swapon.S | 4 +--- libc/arch-x86_64/syscalls/symlinkat.S | 4 +--- libc/arch-x86_64/syscalls/sync.S | 4 +--- libc/arch-x86_64/syscalls/sysinfo.S | 4 +--- libc/arch-x86_64/syscalls/tee.S | 4 +--- libc/arch-x86_64/syscalls/tgkill.S | 4 +--- libc/arch-x86_64/syscalls/timerfd_create.S | 4 +--- libc/arch-x86_64/syscalls/timerfd_gettime.S | 4 +--- libc/arch-x86_64/syscalls/timerfd_settime.S | 4 +--- libc/arch-x86_64/syscalls/times.S | 4 +--- libc/arch-x86_64/syscalls/truncate.S | 4 +--- libc/arch-x86_64/syscalls/umask.S | 4 +--- libc/arch-x86_64/syscalls/umount2.S | 4 +--- libc/arch-x86_64/syscalls/uname.S | 4 +--- libc/arch-x86_64/syscalls/unlinkat.S | 4 +--- libc/arch-x86_64/syscalls/unshare.S | 4 +--- libc/arch-x86_64/syscalls/utimensat.S | 4 +--- libc/arch-x86_64/syscalls/vmsplice.S | 4 +--- libc/arch-x86_64/syscalls/wait4.S | 4 +--- libc/arch-x86_64/syscalls/write.S | 4 +--- libc/arch-x86_64/syscalls/writev.S | 4 +--- libc/bionic/__set_errno.cpp | 18 ++++++++++++------ libc/tools/gensyscalls.py | 16 +++++++--------- 1177 files changed, 1194 insertions(+), 3506 deletions(-) diff --git a/libc/arch-arm/bionic/__bionic_clone.S b/libc/arch-arm/bionic/__bionic_clone.S index 48f2f98a5..f5cf9e0e3 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 864771841..d0df37977 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 2b1eb285f..dca5699e0 100644 --- a/libc/arch-arm/syscalls/__accept4.S +++ b/libc/arch-arm/syscalls/__accept4.S @@ -2,8 +2,6 @@ #include - .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 0987f0e28..be304da43 100644 --- a/libc/arch-arm/syscalls/__brk.S +++ b/libc/arch-arm/syscalls/__brk.S @@ -2,8 +2,6 @@ #include - .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 510af9591..a2a997ebe 100644 --- a/libc/arch-arm/syscalls/__connect.S +++ b/libc/arch-arm/syscalls/__connect.S @@ -2,8 +2,6 @@ #include - .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 bbba2e12a..3642ee38c 100644 --- a/libc/arch-arm/syscalls/__epoll_pwait.S +++ b/libc/arch-arm/syscalls/__epoll_pwait.S @@ -2,8 +2,6 @@ #include - .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 ceef94ed4..6ebd5b36b 100644 --- a/libc/arch-arm/syscalls/__exit.S +++ b/libc/arch-arm/syscalls/__exit.S @@ -2,8 +2,6 @@ #include - .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 bb2068d11..229c5c605 100644 --- a/libc/arch-arm/syscalls/__fcntl64.S +++ b/libc/arch-arm/syscalls/__fcntl64.S @@ -2,8 +2,6 @@ #include - .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 b493aa047..9c0c439ec 100644 --- a/libc/arch-arm/syscalls/__fstatfs64.S +++ b/libc/arch-arm/syscalls/__fstatfs64.S @@ -2,8 +2,6 @@ #include - .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 1b3fc4612..d523d8e68 100644 --- a/libc/arch-arm/syscalls/__getcpu.S +++ b/libc/arch-arm/syscalls/__getcpu.S @@ -2,8 +2,6 @@ #include - .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 d91b3ca19..4ff666732 100644 --- a/libc/arch-arm/syscalls/__getcwd.S +++ b/libc/arch-arm/syscalls/__getcwd.S @@ -2,8 +2,6 @@ #include - .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 7d3d81c43..dac3bfc82 100644 --- a/libc/arch-arm/syscalls/__getdents64.S +++ b/libc/arch-arm/syscalls/__getdents64.S @@ -2,8 +2,6 @@ #include - .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 ede0865bd..dbb192e74 100644 --- a/libc/arch-arm/syscalls/__getpid.S +++ b/libc/arch-arm/syscalls/__getpid.S @@ -2,8 +2,6 @@ #include - .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 d3a646885..e637d6fd4 100644 --- a/libc/arch-arm/syscalls/__getpriority.S +++ b/libc/arch-arm/syscalls/__getpriority.S @@ -2,8 +2,6 @@ #include - .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 b3ac82fac..fcd1157d4 100644 --- a/libc/arch-arm/syscalls/__ioctl.S +++ b/libc/arch-arm/syscalls/__ioctl.S @@ -2,8 +2,6 @@ #include - .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 b36164ca2..3cff31815 100644 --- a/libc/arch-arm/syscalls/__llseek.S +++ b/libc/arch-arm/syscalls/__llseek.S @@ -2,8 +2,6 @@ #include - .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 ba7471699..f11e46795 100644 --- a/libc/arch-arm/syscalls/__mmap2.S +++ b/libc/arch-arm/syscalls/__mmap2.S @@ -2,8 +2,6 @@ #include - .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 6b119e162..9b774dbb9 100644 --- a/libc/arch-arm/syscalls/__openat.S +++ b/libc/arch-arm/syscalls/__openat.S @@ -2,8 +2,6 @@ #include - .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 3a0e80ceb..02de8a8bc 100644 --- a/libc/arch-arm/syscalls/__ppoll.S +++ b/libc/arch-arm/syscalls/__ppoll.S @@ -2,8 +2,6 @@ #include - .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 1417be879..8f31e1b7f 100644 --- a/libc/arch-arm/syscalls/__pselect6.S +++ b/libc/arch-arm/syscalls/__pselect6.S @@ -2,8 +2,6 @@ #include - .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 bc0323261..975ab0fd8 100644 --- a/libc/arch-arm/syscalls/__ptrace.S +++ b/libc/arch-arm/syscalls/__ptrace.S @@ -2,8 +2,6 @@ #include - .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 91bbf7c4e..03f8c89c4 100644 --- a/libc/arch-arm/syscalls/__reboot.S +++ b/libc/arch-arm/syscalls/__reboot.S @@ -2,8 +2,6 @@ #include - .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 6a5e05864..2c210123d 100644 --- a/libc/arch-arm/syscalls/__rt_sigaction.S +++ b/libc/arch-arm/syscalls/__rt_sigaction.S @@ -2,8 +2,6 @@ #include - .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 44da9b2d1..6a32e5025 100644 --- a/libc/arch-arm/syscalls/__rt_sigpending.S +++ b/libc/arch-arm/syscalls/__rt_sigpending.S @@ -2,8 +2,6 @@ #include - .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 81cdb8546..136dc7956 100644 --- a/libc/arch-arm/syscalls/__rt_sigprocmask.S +++ b/libc/arch-arm/syscalls/__rt_sigprocmask.S @@ -2,8 +2,6 @@ #include - .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 a9a39032a..2cef4a4f8 100644 --- a/libc/arch-arm/syscalls/__rt_sigsuspend.S +++ b/libc/arch-arm/syscalls/__rt_sigsuspend.S @@ -2,8 +2,6 @@ #include - .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 7b78a43b8..cb43ad1c8 100644 --- a/libc/arch-arm/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-arm/syscalls/__rt_sigtimedwait.S @@ -2,8 +2,6 @@ #include - .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 a22c55e33..6613ea573 100644 --- a/libc/arch-arm/syscalls/__sched_getaffinity.S +++ b/libc/arch-arm/syscalls/__sched_getaffinity.S @@ -2,8 +2,6 @@ #include - .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 0838c8b3c..d3558f5ab 100644 --- a/libc/arch-arm/syscalls/__set_tid_address.S +++ b/libc/arch-arm/syscalls/__set_tid_address.S @@ -2,8 +2,6 @@ #include - .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 c4c2eb7cd..4d5d96330 100644 --- a/libc/arch-arm/syscalls/__set_tls.S +++ b/libc/arch-arm/syscalls/__set_tls.S @@ -2,8 +2,6 @@ #include - .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 869b4c8bd..600593d25 100644 --- a/libc/arch-arm/syscalls/__sigaction.S +++ b/libc/arch-arm/syscalls/__sigaction.S @@ -2,8 +2,6 @@ #include - .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 3bcf0319a..630a71f24 100644 --- a/libc/arch-arm/syscalls/__signalfd4.S +++ b/libc/arch-arm/syscalls/__signalfd4.S @@ -2,8 +2,6 @@ #include - .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 a655b5b2c..fffe0cc49 100644 --- a/libc/arch-arm/syscalls/__socket.S +++ b/libc/arch-arm/syscalls/__socket.S @@ -2,8 +2,6 @@ #include - .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 80ea6ce1d..ec4321864 100644 --- a/libc/arch-arm/syscalls/__statfs64.S +++ b/libc/arch-arm/syscalls/__statfs64.S @@ -2,8 +2,6 @@ #include - .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 75fc34781..2e4c63420 100644 --- a/libc/arch-arm/syscalls/__timer_create.S +++ b/libc/arch-arm/syscalls/__timer_create.S @@ -2,8 +2,6 @@ #include - .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 ad5ec361b..237024c7b 100644 --- a/libc/arch-arm/syscalls/__timer_delete.S +++ b/libc/arch-arm/syscalls/__timer_delete.S @@ -2,8 +2,6 @@ #include - .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 529712cd4..f29d5b361 100644 --- a/libc/arch-arm/syscalls/__timer_getoverrun.S +++ b/libc/arch-arm/syscalls/__timer_getoverrun.S @@ -2,8 +2,6 @@ #include - .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 180da3905..e6dc2edf1 100644 --- a/libc/arch-arm/syscalls/__timer_gettime.S +++ b/libc/arch-arm/syscalls/__timer_gettime.S @@ -2,8 +2,6 @@ #include - .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 e2950dd01..4aea279a6 100644 --- a/libc/arch-arm/syscalls/__timer_settime.S +++ b/libc/arch-arm/syscalls/__timer_settime.S @@ -2,8 +2,6 @@ #include - .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 8c6ba6625..f4dfa5968 100644 --- a/libc/arch-arm/syscalls/__waitid.S +++ b/libc/arch-arm/syscalls/__waitid.S @@ -2,8 +2,6 @@ #include - .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 fd072c3f6..328a5ce0b 100644 --- a/libc/arch-arm/syscalls/_exit.S +++ b/libc/arch-arm/syscalls/_exit.S @@ -2,8 +2,6 @@ #include - .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 156db4850..dbc5d5800 100644 --- a/libc/arch-arm/syscalls/acct.S +++ b/libc/arch-arm/syscalls/acct.S @@ -2,8 +2,6 @@ #include - .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 892c77fcb..c901417da 100644 --- a/libc/arch-arm/syscalls/bind.S +++ b/libc/arch-arm/syscalls/bind.S @@ -2,8 +2,6 @@ #include - .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 0739c32e8..76f4623b1 100644 --- a/libc/arch-arm/syscalls/cacheflush.S +++ b/libc/arch-arm/syscalls/cacheflush.S @@ -2,8 +2,6 @@ #include - .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 6fd0f7cad..59a5a3c70 100644 --- a/libc/arch-arm/syscalls/capget.S +++ b/libc/arch-arm/syscalls/capget.S @@ -2,8 +2,6 @@ #include - .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 2708ff6b9..af284ab70 100644 --- a/libc/arch-arm/syscalls/capset.S +++ b/libc/arch-arm/syscalls/capset.S @@ -2,8 +2,6 @@ #include - .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 0b86a0f14..25f27ba19 100644 --- a/libc/arch-arm/syscalls/chdir.S +++ b/libc/arch-arm/syscalls/chdir.S @@ -2,8 +2,6 @@ #include - .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 15aa392aa..6f829a6ac 100644 --- a/libc/arch-arm/syscalls/chroot.S +++ b/libc/arch-arm/syscalls/chroot.S @@ -2,8 +2,6 @@ #include - .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 b92289a12..48fa07cc4 100644 --- a/libc/arch-arm/syscalls/clock_getres.S +++ b/libc/arch-arm/syscalls/clock_getres.S @@ -2,8 +2,6 @@ #include - .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 203db8fbd..317481d46 100644 --- a/libc/arch-arm/syscalls/clock_gettime.S +++ b/libc/arch-arm/syscalls/clock_gettime.S @@ -2,8 +2,6 @@ #include - .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 5de2267cf..80295bb24 100644 --- a/libc/arch-arm/syscalls/clock_nanosleep.S +++ b/libc/arch-arm/syscalls/clock_nanosleep.S @@ -2,8 +2,6 @@ #include - .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 71e61f8cc..bf54702ee 100644 --- a/libc/arch-arm/syscalls/clock_settime.S +++ b/libc/arch-arm/syscalls/clock_settime.S @@ -2,8 +2,6 @@ #include - .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 3e0fd3268..ec0544565 100644 --- a/libc/arch-arm/syscalls/close.S +++ b/libc/arch-arm/syscalls/close.S @@ -2,8 +2,6 @@ #include - .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 0af25208a..57580c950 100644 --- a/libc/arch-arm/syscalls/delete_module.S +++ b/libc/arch-arm/syscalls/delete_module.S @@ -2,8 +2,6 @@ #include - .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 4105438fa..2cd69d769 100644 --- a/libc/arch-arm/syscalls/dup.S +++ b/libc/arch-arm/syscalls/dup.S @@ -2,8 +2,6 @@ #include - .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 409e8f976..4613d634d 100644 --- a/libc/arch-arm/syscalls/dup3.S +++ b/libc/arch-arm/syscalls/dup3.S @@ -2,8 +2,6 @@ #include - .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 631afab3d..108c24fe3 100644 --- a/libc/arch-arm/syscalls/epoll_create1.S +++ b/libc/arch-arm/syscalls/epoll_create1.S @@ -2,8 +2,6 @@ #include - .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 187fe0a0b..473af6a54 100644 --- a/libc/arch-arm/syscalls/epoll_ctl.S +++ b/libc/arch-arm/syscalls/epoll_ctl.S @@ -2,8 +2,6 @@ #include - .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 c35f537e8..ca6bceee7 100644 --- a/libc/arch-arm/syscalls/eventfd.S +++ b/libc/arch-arm/syscalls/eventfd.S @@ -2,8 +2,6 @@ #include - .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 1b24f765f..3eca81049 100644 --- a/libc/arch-arm/syscalls/execve.S +++ b/libc/arch-arm/syscalls/execve.S @@ -2,8 +2,6 @@ #include - .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 3f663e3ab..a1df5c09f 100644 --- a/libc/arch-arm/syscalls/faccessat.S +++ b/libc/arch-arm/syscalls/faccessat.S @@ -2,8 +2,6 @@ #include - .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 fd9063754..4bfd5e38f 100644 --- a/libc/arch-arm/syscalls/fallocate64.S +++ b/libc/arch-arm/syscalls/fallocate64.S @@ -2,8 +2,6 @@ #include - .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 c10971878..705ad32cb 100644 --- a/libc/arch-arm/syscalls/fchdir.S +++ b/libc/arch-arm/syscalls/fchdir.S @@ -2,8 +2,6 @@ #include - .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 4b598a29d..5675f0a33 100644 --- a/libc/arch-arm/syscalls/fchmod.S +++ b/libc/arch-arm/syscalls/fchmod.S @@ -2,8 +2,6 @@ #include - .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 8e4311810..3f7e0ee24 100644 --- a/libc/arch-arm/syscalls/fchmodat.S +++ b/libc/arch-arm/syscalls/fchmodat.S @@ -2,8 +2,6 @@ #include - .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 24a38f65f..45ad9bfe3 100644 --- a/libc/arch-arm/syscalls/fchown.S +++ b/libc/arch-arm/syscalls/fchown.S @@ -2,8 +2,6 @@ #include - .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 8fd76a3b8..2aac0fe98 100644 --- a/libc/arch-arm/syscalls/fchownat.S +++ b/libc/arch-arm/syscalls/fchownat.S @@ -2,8 +2,6 @@ #include - .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 955666524..7fefd22fa 100644 --- a/libc/arch-arm/syscalls/fdatasync.S +++ b/libc/arch-arm/syscalls/fdatasync.S @@ -2,8 +2,6 @@ #include - .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 95e2809bc..3f1e5fc4e 100644 --- a/libc/arch-arm/syscalls/fgetxattr.S +++ b/libc/arch-arm/syscalls/fgetxattr.S @@ -2,8 +2,6 @@ #include - .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 0d411b17b..ee09295f6 100644 --- a/libc/arch-arm/syscalls/flistxattr.S +++ b/libc/arch-arm/syscalls/flistxattr.S @@ -2,8 +2,6 @@ #include - .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 e59d4f682..c946fe994 100644 --- a/libc/arch-arm/syscalls/flock.S +++ b/libc/arch-arm/syscalls/flock.S @@ -2,8 +2,6 @@ #include - .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 3ec647fa2..f4e950b9c 100644 --- a/libc/arch-arm/syscalls/fremovexattr.S +++ b/libc/arch-arm/syscalls/fremovexattr.S @@ -2,8 +2,6 @@ #include - .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 225e64b9f..0e33ad29f 100644 --- a/libc/arch-arm/syscalls/fsetxattr.S +++ b/libc/arch-arm/syscalls/fsetxattr.S @@ -2,8 +2,6 @@ #include - .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 560bb94cc..c60e7eee5 100644 --- a/libc/arch-arm/syscalls/fstat64.S +++ b/libc/arch-arm/syscalls/fstat64.S @@ -2,8 +2,6 @@ #include - .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 cda584580..ce56c36fd 100644 --- a/libc/arch-arm/syscalls/fstatat64.S +++ b/libc/arch-arm/syscalls/fstatat64.S @@ -2,8 +2,6 @@ #include - .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 c6ba47bca..1dfff05f4 100644 --- a/libc/arch-arm/syscalls/fsync.S +++ b/libc/arch-arm/syscalls/fsync.S @@ -2,8 +2,6 @@ #include - .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 168d72296..1bfe2f39c 100644 --- a/libc/arch-arm/syscalls/ftruncate.S +++ b/libc/arch-arm/syscalls/ftruncate.S @@ -2,8 +2,6 @@ #include - .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 a2b73b838..ac0caa88f 100644 --- a/libc/arch-arm/syscalls/ftruncate64.S +++ b/libc/arch-arm/syscalls/ftruncate64.S @@ -2,8 +2,6 @@ #include - .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 e2f9fe976..afa9cc8f1 100644 --- a/libc/arch-arm/syscalls/getegid.S +++ b/libc/arch-arm/syscalls/getegid.S @@ -2,8 +2,6 @@ #include - .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 1d5532049..10c8a25f4 100644 --- a/libc/arch-arm/syscalls/geteuid.S +++ b/libc/arch-arm/syscalls/geteuid.S @@ -2,8 +2,6 @@ #include - .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 9d81d73ef..877276227 100644 --- a/libc/arch-arm/syscalls/getgid.S +++ b/libc/arch-arm/syscalls/getgid.S @@ -2,8 +2,6 @@ #include - .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 23aafaf7b..366299b60 100644 --- a/libc/arch-arm/syscalls/getgroups.S +++ b/libc/arch-arm/syscalls/getgroups.S @@ -2,8 +2,6 @@ #include - .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 095cf8fcb..80fb0f21d 100644 --- a/libc/arch-arm/syscalls/getitimer.S +++ b/libc/arch-arm/syscalls/getitimer.S @@ -2,8 +2,6 @@ #include - .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 760f6fb3c..25f00268c 100644 --- a/libc/arch-arm/syscalls/getpeername.S +++ b/libc/arch-arm/syscalls/getpeername.S @@ -2,8 +2,6 @@ #include - .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 d07b05824..36c4c19c5 100644 --- a/libc/arch-arm/syscalls/getpgid.S +++ b/libc/arch-arm/syscalls/getpgid.S @@ -2,8 +2,6 @@ #include - .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 bcc13a8a6..606b2e01a 100644 --- a/libc/arch-arm/syscalls/getppid.S +++ b/libc/arch-arm/syscalls/getppid.S @@ -2,8 +2,6 @@ #include - .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 9a87eaa3a..a5e4689f5 100644 --- a/libc/arch-arm/syscalls/getresgid.S +++ b/libc/arch-arm/syscalls/getresgid.S @@ -2,8 +2,6 @@ #include - .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 a332928fb..74c26a764 100644 --- a/libc/arch-arm/syscalls/getresuid.S +++ b/libc/arch-arm/syscalls/getresuid.S @@ -2,8 +2,6 @@ #include - .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 4a9c62aaa..166da6398 100644 --- a/libc/arch-arm/syscalls/getrlimit.S +++ b/libc/arch-arm/syscalls/getrlimit.S @@ -2,8 +2,6 @@ #include - .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 4799b6931..93979c668 100644 --- a/libc/arch-arm/syscalls/getrusage.S +++ b/libc/arch-arm/syscalls/getrusage.S @@ -2,8 +2,6 @@ #include - .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 5a26e94a1..87d38fbba 100644 --- a/libc/arch-arm/syscalls/getsid.S +++ b/libc/arch-arm/syscalls/getsid.S @@ -2,8 +2,6 @@ #include - .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 78e07524a..5dc4eab96 100644 --- a/libc/arch-arm/syscalls/getsockname.S +++ b/libc/arch-arm/syscalls/getsockname.S @@ -2,8 +2,6 @@ #include - .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 e1badfb45..4143bbde1 100644 --- a/libc/arch-arm/syscalls/getsockopt.S +++ b/libc/arch-arm/syscalls/getsockopt.S @@ -2,8 +2,6 @@ #include - .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 611c0d4ef..174f94b04 100644 --- a/libc/arch-arm/syscalls/gettimeofday.S +++ b/libc/arch-arm/syscalls/gettimeofday.S @@ -2,8 +2,6 @@ #include - .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 2e97c5509..3d07d3cb3 100644 --- a/libc/arch-arm/syscalls/getuid.S +++ b/libc/arch-arm/syscalls/getuid.S @@ -2,8 +2,6 @@ #include - .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 da0e86d4f..6661aaf84 100644 --- a/libc/arch-arm/syscalls/getxattr.S +++ b/libc/arch-arm/syscalls/getxattr.S @@ -2,8 +2,6 @@ #include - .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 bf30b03a2..82515336e 100644 --- a/libc/arch-arm/syscalls/init_module.S +++ b/libc/arch-arm/syscalls/init_module.S @@ -2,8 +2,6 @@ #include - .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 982d33857..b945bd17f 100644 --- a/libc/arch-arm/syscalls/inotify_add_watch.S +++ b/libc/arch-arm/syscalls/inotify_add_watch.S @@ -2,8 +2,6 @@ #include - .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 2253ec846..32090de97 100644 --- a/libc/arch-arm/syscalls/inotify_init1.S +++ b/libc/arch-arm/syscalls/inotify_init1.S @@ -2,8 +2,6 @@ #include - .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 9d7e6aefb..e8230e2f3 100644 --- a/libc/arch-arm/syscalls/inotify_rm_watch.S +++ b/libc/arch-arm/syscalls/inotify_rm_watch.S @@ -2,8 +2,6 @@ #include - .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 7e4d6c45f..0b5f4a4f8 100644 --- a/libc/arch-arm/syscalls/kill.S +++ b/libc/arch-arm/syscalls/kill.S @@ -2,8 +2,6 @@ #include - .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 f5fe27fe2..b76b2b58d 100644 --- a/libc/arch-arm/syscalls/klogctl.S +++ b/libc/arch-arm/syscalls/klogctl.S @@ -2,8 +2,6 @@ #include - .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 70b7235aa..b033a9afc 100644 --- a/libc/arch-arm/syscalls/lgetxattr.S +++ b/libc/arch-arm/syscalls/lgetxattr.S @@ -2,8 +2,6 @@ #include - .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 7a578f8ed..6e74d063b 100644 --- a/libc/arch-arm/syscalls/linkat.S +++ b/libc/arch-arm/syscalls/linkat.S @@ -2,8 +2,6 @@ #include - .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 5c33912ea..3aaa80154 100644 --- a/libc/arch-arm/syscalls/listen.S +++ b/libc/arch-arm/syscalls/listen.S @@ -2,8 +2,6 @@ #include - .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 ea8f5d832..51ff267b9 100644 --- a/libc/arch-arm/syscalls/listxattr.S +++ b/libc/arch-arm/syscalls/listxattr.S @@ -2,8 +2,6 @@ #include - .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 b7f337522..46e8116fc 100644 --- a/libc/arch-arm/syscalls/llistxattr.S +++ b/libc/arch-arm/syscalls/llistxattr.S @@ -2,8 +2,6 @@ #include - .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 a8d0d2d3b..a945062f2 100644 --- a/libc/arch-arm/syscalls/lremovexattr.S +++ b/libc/arch-arm/syscalls/lremovexattr.S @@ -2,8 +2,6 @@ #include - .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 17697d486..00aeab3aa 100644 --- a/libc/arch-arm/syscalls/lseek.S +++ b/libc/arch-arm/syscalls/lseek.S @@ -2,8 +2,6 @@ #include - .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 166ef7f1d..c41fb8806 100644 --- a/libc/arch-arm/syscalls/lsetxattr.S +++ b/libc/arch-arm/syscalls/lsetxattr.S @@ -2,8 +2,6 @@ #include - .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 ffa71c463..4d3cdcde9 100644 --- a/libc/arch-arm/syscalls/madvise.S +++ b/libc/arch-arm/syscalls/madvise.S @@ -2,8 +2,6 @@ #include - .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 5eb5f1010..f1154d0a1 100644 --- a/libc/arch-arm/syscalls/mincore.S +++ b/libc/arch-arm/syscalls/mincore.S @@ -2,8 +2,6 @@ #include - .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 d9c58ad08..1f8957beb 100644 --- a/libc/arch-arm/syscalls/mkdirat.S +++ b/libc/arch-arm/syscalls/mkdirat.S @@ -2,8 +2,6 @@ #include - .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 d6296f1fd..1a2bf6ff3 100644 --- a/libc/arch-arm/syscalls/mknodat.S +++ b/libc/arch-arm/syscalls/mknodat.S @@ -2,8 +2,6 @@ #include - .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 21fd5f9f3..8a4fc7aa3 100644 --- a/libc/arch-arm/syscalls/mlock.S +++ b/libc/arch-arm/syscalls/mlock.S @@ -2,8 +2,6 @@ #include - .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 750b7ece5..b49ca0540 100644 --- a/libc/arch-arm/syscalls/mlockall.S +++ b/libc/arch-arm/syscalls/mlockall.S @@ -2,8 +2,6 @@ #include - .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 d2fa20e38..ed28ab2e8 100644 --- a/libc/arch-arm/syscalls/mount.S +++ b/libc/arch-arm/syscalls/mount.S @@ -2,8 +2,6 @@ #include - .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 dfc6f0891..cb5130666 100644 --- a/libc/arch-arm/syscalls/mprotect.S +++ b/libc/arch-arm/syscalls/mprotect.S @@ -2,8 +2,6 @@ #include - .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 a67457156..505ea3c5d 100644 --- a/libc/arch-arm/syscalls/mremap.S +++ b/libc/arch-arm/syscalls/mremap.S @@ -2,8 +2,6 @@ #include - .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 e062a5ee7..220fb4d56 100644 --- a/libc/arch-arm/syscalls/msync.S +++ b/libc/arch-arm/syscalls/msync.S @@ -2,8 +2,6 @@ #include - .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 c44d14750..05bf94128 100644 --- a/libc/arch-arm/syscalls/munlock.S +++ b/libc/arch-arm/syscalls/munlock.S @@ -2,8 +2,6 @@ #include - .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 3a36b7e90..e2c5dd5fd 100644 --- a/libc/arch-arm/syscalls/munlockall.S +++ b/libc/arch-arm/syscalls/munlockall.S @@ -2,8 +2,6 @@ #include - .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 a94e4e5b2..740c3608e 100644 --- a/libc/arch-arm/syscalls/munmap.S +++ b/libc/arch-arm/syscalls/munmap.S @@ -2,8 +2,6 @@ #include - .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 743adc218..fcd6e90cb 100644 --- a/libc/arch-arm/syscalls/nanosleep.S +++ b/libc/arch-arm/syscalls/nanosleep.S @@ -2,8 +2,6 @@ #include - .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 90dfe224e..d43d76384 100644 --- a/libc/arch-arm/syscalls/personality.S +++ b/libc/arch-arm/syscalls/personality.S @@ -2,8 +2,6 @@ #include - .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 b295df57b..1cbdfb2d7 100644 --- a/libc/arch-arm/syscalls/pipe2.S +++ b/libc/arch-arm/syscalls/pipe2.S @@ -2,8 +2,6 @@ #include - .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 c8f68d36c..a2d869cc7 100644 --- a/libc/arch-arm/syscalls/prctl.S +++ b/libc/arch-arm/syscalls/prctl.S @@ -2,8 +2,6 @@ #include - .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 3eeae3db3..dc07bb310 100644 --- a/libc/arch-arm/syscalls/pread64.S +++ b/libc/arch-arm/syscalls/pread64.S @@ -2,8 +2,6 @@ #include - .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 87c53d582..3ae9e1b19 100644 --- a/libc/arch-arm/syscalls/prlimit64.S +++ b/libc/arch-arm/syscalls/prlimit64.S @@ -2,8 +2,6 @@ #include - .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 c63b835d2..5749f6b22 100644 --- a/libc/arch-arm/syscalls/pwrite64.S +++ b/libc/arch-arm/syscalls/pwrite64.S @@ -2,8 +2,6 @@ #include - .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 9de525c92..1c3b39578 100644 --- a/libc/arch-arm/syscalls/read.S +++ b/libc/arch-arm/syscalls/read.S @@ -2,8 +2,6 @@ #include - .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 995f00eb4..6952b4ed2 100644 --- a/libc/arch-arm/syscalls/readahead.S +++ b/libc/arch-arm/syscalls/readahead.S @@ -2,8 +2,6 @@ #include - .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 f865de52a..e7cc8ff23 100644 --- a/libc/arch-arm/syscalls/readlinkat.S +++ b/libc/arch-arm/syscalls/readlinkat.S @@ -2,8 +2,6 @@ #include - .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 9401687c8..c7807bde8 100644 --- a/libc/arch-arm/syscalls/readv.S +++ b/libc/arch-arm/syscalls/readv.S @@ -2,8 +2,6 @@ #include - .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 6390a82ca..115a09ca5 100644 --- a/libc/arch-arm/syscalls/recvfrom.S +++ b/libc/arch-arm/syscalls/recvfrom.S @@ -2,8 +2,6 @@ #include - .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 067ed1e15..6cf2b9285 100644 --- a/libc/arch-arm/syscalls/recvmmsg.S +++ b/libc/arch-arm/syscalls/recvmmsg.S @@ -2,8 +2,6 @@ #include - .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 f6884818d..995a9e348 100644 --- a/libc/arch-arm/syscalls/recvmsg.S +++ b/libc/arch-arm/syscalls/recvmsg.S @@ -2,8 +2,6 @@ #include - .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 59d0e2fa2..3a32e5cea 100644 --- a/libc/arch-arm/syscalls/removexattr.S +++ b/libc/arch-arm/syscalls/removexattr.S @@ -2,8 +2,6 @@ #include - .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 7a4d26882..98e86dc32 100644 --- a/libc/arch-arm/syscalls/renameat.S +++ b/libc/arch-arm/syscalls/renameat.S @@ -2,8 +2,6 @@ #include - .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 2aafafc61..187e68039 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 - .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 40e14ef66..68bf7dfc0 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 - .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 3d58651c8..32b97b850 100644 --- a/libc/arch-arm/syscalls/sched_getparam.S +++ b/libc/arch-arm/syscalls/sched_getparam.S @@ -2,8 +2,6 @@ #include - .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 e9478ca2c..330c2080f 100644 --- a/libc/arch-arm/syscalls/sched_getscheduler.S +++ b/libc/arch-arm/syscalls/sched_getscheduler.S @@ -2,8 +2,6 @@ #include - .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 ed90b73db..5d176ac2b 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 - .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 d5f72a94c..6653471f5 100644 --- a/libc/arch-arm/syscalls/sched_setaffinity.S +++ b/libc/arch-arm/syscalls/sched_setaffinity.S @@ -2,8 +2,6 @@ #include - .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 3ec06c006..16e1997a8 100644 --- a/libc/arch-arm/syscalls/sched_setparam.S +++ b/libc/arch-arm/syscalls/sched_setparam.S @@ -2,8 +2,6 @@ #include - .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 0e61ffb37..2ec9fecf1 100644 --- a/libc/arch-arm/syscalls/sched_setscheduler.S +++ b/libc/arch-arm/syscalls/sched_setscheduler.S @@ -2,8 +2,6 @@ #include - .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 f26297ef6..1ec328f3c 100644 --- a/libc/arch-arm/syscalls/sched_yield.S +++ b/libc/arch-arm/syscalls/sched_yield.S @@ -2,8 +2,6 @@ #include - .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 e4df8fff6..afae0213a 100644 --- a/libc/arch-arm/syscalls/sendfile.S +++ b/libc/arch-arm/syscalls/sendfile.S @@ -2,8 +2,6 @@ #include - .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 ab489632b..d0ad0b865 100644 --- a/libc/arch-arm/syscalls/sendfile64.S +++ b/libc/arch-arm/syscalls/sendfile64.S @@ -2,8 +2,6 @@ #include - .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 998e6c7c9..8bb5f8065 100644 --- a/libc/arch-arm/syscalls/sendmmsg.S +++ b/libc/arch-arm/syscalls/sendmmsg.S @@ -2,8 +2,6 @@ #include - .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 d25d6b42e..fd381408f 100644 --- a/libc/arch-arm/syscalls/sendmsg.S +++ b/libc/arch-arm/syscalls/sendmsg.S @@ -2,8 +2,6 @@ #include - .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 b5e8de98a..29b7b0bf6 100644 --- a/libc/arch-arm/syscalls/sendto.S +++ b/libc/arch-arm/syscalls/sendto.S @@ -2,8 +2,6 @@ #include - .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 7cdb6103b..f677a9480 100644 --- a/libc/arch-arm/syscalls/setfsgid.S +++ b/libc/arch-arm/syscalls/setfsgid.S @@ -2,8 +2,6 @@ #include - .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 ae65298b1..5d27a4d2d 100644 --- a/libc/arch-arm/syscalls/setfsuid.S +++ b/libc/arch-arm/syscalls/setfsuid.S @@ -2,8 +2,6 @@ #include - .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 15583ac0c..d9b2b889a 100644 --- a/libc/arch-arm/syscalls/setgid.S +++ b/libc/arch-arm/syscalls/setgid.S @@ -2,8 +2,6 @@ #include - .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 eb610b1da..169de73f7 100644 --- a/libc/arch-arm/syscalls/setgroups.S +++ b/libc/arch-arm/syscalls/setgroups.S @@ -2,8 +2,6 @@ #include - .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 4da2b4085..31b277b7c 100644 --- a/libc/arch-arm/syscalls/setitimer.S +++ b/libc/arch-arm/syscalls/setitimer.S @@ -2,8 +2,6 @@ #include - .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 891a0ac4f..59203ef4a 100644 --- a/libc/arch-arm/syscalls/setns.S +++ b/libc/arch-arm/syscalls/setns.S @@ -2,8 +2,6 @@ #include - .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 e4edcdf31..4a91520b9 100644 --- a/libc/arch-arm/syscalls/setpgid.S +++ b/libc/arch-arm/syscalls/setpgid.S @@ -2,8 +2,6 @@ #include - .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 80d0d82c9..2053ce101 100644 --- a/libc/arch-arm/syscalls/setpriority.S +++ b/libc/arch-arm/syscalls/setpriority.S @@ -2,8 +2,6 @@ #include - .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 b2cd345ea..f1bdc6011 100644 --- a/libc/arch-arm/syscalls/setregid.S +++ b/libc/arch-arm/syscalls/setregid.S @@ -2,8 +2,6 @@ #include - .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 75a9f7511..9b8968acd 100644 --- a/libc/arch-arm/syscalls/setresgid.S +++ b/libc/arch-arm/syscalls/setresgid.S @@ -2,8 +2,6 @@ #include - .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 f3382f246..c26a95542 100644 --- a/libc/arch-arm/syscalls/setresuid.S +++ b/libc/arch-arm/syscalls/setresuid.S @@ -2,8 +2,6 @@ #include - .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 1d866e995..796191a25 100644 --- a/libc/arch-arm/syscalls/setreuid.S +++ b/libc/arch-arm/syscalls/setreuid.S @@ -2,8 +2,6 @@ #include - .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 0ddd7118f..c87b21b78 100644 --- a/libc/arch-arm/syscalls/setrlimit.S +++ b/libc/arch-arm/syscalls/setrlimit.S @@ -2,8 +2,6 @@ #include - .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 69b351fd4..83bda1b03 100644 --- a/libc/arch-arm/syscalls/setsid.S +++ b/libc/arch-arm/syscalls/setsid.S @@ -2,8 +2,6 @@ #include - .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 87df622e8..8ea38932c 100644 --- a/libc/arch-arm/syscalls/setsockopt.S +++ b/libc/arch-arm/syscalls/setsockopt.S @@ -2,8 +2,6 @@ #include - .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 76697fc22..5763f40ef 100644 --- a/libc/arch-arm/syscalls/settimeofday.S +++ b/libc/arch-arm/syscalls/settimeofday.S @@ -2,8 +2,6 @@ #include - .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 26d3ed184..55b349cb0 100644 --- a/libc/arch-arm/syscalls/setuid.S +++ b/libc/arch-arm/syscalls/setuid.S @@ -2,8 +2,6 @@ #include - .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 ec948ce18..8ba4b77bf 100644 --- a/libc/arch-arm/syscalls/setxattr.S +++ b/libc/arch-arm/syscalls/setxattr.S @@ -2,8 +2,6 @@ #include - .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 e9a27d42d..889934a97 100644 --- a/libc/arch-arm/syscalls/shutdown.S +++ b/libc/arch-arm/syscalls/shutdown.S @@ -2,8 +2,6 @@ #include - .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 18a1ffe2d..b61b25d10 100644 --- a/libc/arch-arm/syscalls/sigaltstack.S +++ b/libc/arch-arm/syscalls/sigaltstack.S @@ -2,8 +2,6 @@ #include - .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 66f0c3208..f3c8a4bed 100644 --- a/libc/arch-arm/syscalls/socketpair.S +++ b/libc/arch-arm/syscalls/socketpair.S @@ -2,8 +2,6 @@ #include - .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 6273138a2..6bc3f0d4a 100644 --- a/libc/arch-arm/syscalls/splice.S +++ b/libc/arch-arm/syscalls/splice.S @@ -2,8 +2,6 @@ #include - .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 a497aad8a..a7aaa8245 100644 --- a/libc/arch-arm/syscalls/swapoff.S +++ b/libc/arch-arm/syscalls/swapoff.S @@ -2,8 +2,6 @@ #include - .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 ded2abc87..6ea93c3c8 100644 --- a/libc/arch-arm/syscalls/swapon.S +++ b/libc/arch-arm/syscalls/swapon.S @@ -2,8 +2,6 @@ #include - .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 cc91b8804..d330a54e7 100644 --- a/libc/arch-arm/syscalls/symlinkat.S +++ b/libc/arch-arm/syscalls/symlinkat.S @@ -2,8 +2,6 @@ #include - .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 ab228553b..48ecfc0c3 100644 --- a/libc/arch-arm/syscalls/sync.S +++ b/libc/arch-arm/syscalls/sync.S @@ -2,8 +2,6 @@ #include - .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 f5fb4e666..709478e7d 100644 --- a/libc/arch-arm/syscalls/sysinfo.S +++ b/libc/arch-arm/syscalls/sysinfo.S @@ -2,8 +2,6 @@ #include - .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 7e155dfe0..a019c005c 100644 --- a/libc/arch-arm/syscalls/tee.S +++ b/libc/arch-arm/syscalls/tee.S @@ -2,8 +2,6 @@ #include - .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 98440b1ed..206846535 100644 --- a/libc/arch-arm/syscalls/tgkill.S +++ b/libc/arch-arm/syscalls/tgkill.S @@ -2,8 +2,6 @@ #include - .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 9211b54b2..89a80cd9c 100644 --- a/libc/arch-arm/syscalls/timerfd_create.S +++ b/libc/arch-arm/syscalls/timerfd_create.S @@ -2,8 +2,6 @@ #include - .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 c27e008e7..4a7df7616 100644 --- a/libc/arch-arm/syscalls/timerfd_gettime.S +++ b/libc/arch-arm/syscalls/timerfd_gettime.S @@ -2,8 +2,6 @@ #include - .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 7acd40832..2e0fe93a6 100644 --- a/libc/arch-arm/syscalls/timerfd_settime.S +++ b/libc/arch-arm/syscalls/timerfd_settime.S @@ -2,8 +2,6 @@ #include - .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 b5695c455..289c18510 100644 --- a/libc/arch-arm/syscalls/times.S +++ b/libc/arch-arm/syscalls/times.S @@ -2,8 +2,6 @@ #include - .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 791572282..bb33beba2 100644 --- a/libc/arch-arm/syscalls/truncate.S +++ b/libc/arch-arm/syscalls/truncate.S @@ -2,8 +2,6 @@ #include - .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 d59374a80..9cafbb5f6 100644 --- a/libc/arch-arm/syscalls/truncate64.S +++ b/libc/arch-arm/syscalls/truncate64.S @@ -2,8 +2,6 @@ #include - .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 5b03fb35c..5dc446104 100644 --- a/libc/arch-arm/syscalls/umask.S +++ b/libc/arch-arm/syscalls/umask.S @@ -2,8 +2,6 @@ #include - .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 841eb9748..435eda432 100644 --- a/libc/arch-arm/syscalls/umount2.S +++ b/libc/arch-arm/syscalls/umount2.S @@ -2,8 +2,6 @@ #include - .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 76480b429..8af612331 100644 --- a/libc/arch-arm/syscalls/uname.S +++ b/libc/arch-arm/syscalls/uname.S @@ -2,8 +2,6 @@ #include - .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 675976815..96257e6f9 100644 --- a/libc/arch-arm/syscalls/unlinkat.S +++ b/libc/arch-arm/syscalls/unlinkat.S @@ -2,8 +2,6 @@ #include - .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 19a5b6a2e..8054171a5 100644 --- a/libc/arch-arm/syscalls/unshare.S +++ b/libc/arch-arm/syscalls/unshare.S @@ -2,8 +2,6 @@ #include - .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 6d506880e..f3c2fa2b8 100644 --- a/libc/arch-arm/syscalls/utimensat.S +++ b/libc/arch-arm/syscalls/utimensat.S @@ -2,8 +2,6 @@ #include - .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 8543986c1..5f4cb3dbd 100644 --- a/libc/arch-arm/syscalls/vfork.S +++ b/libc/arch-arm/syscalls/vfork.S @@ -2,8 +2,6 @@ #include - .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 8239158bf..cc12ca52d 100644 --- a/libc/arch-arm/syscalls/vmsplice.S +++ b/libc/arch-arm/syscalls/vmsplice.S @@ -2,8 +2,6 @@ #include - .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 ffb2587ab..26a492917 100644 --- a/libc/arch-arm/syscalls/wait4.S +++ b/libc/arch-arm/syscalls/wait4.S @@ -2,8 +2,6 @@ #include - .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 8da1176ca..bf89d7ff8 100644 --- a/libc/arch-arm/syscalls/write.S +++ b/libc/arch-arm/syscalls/write.S @@ -2,8 +2,6 @@ #include - .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 f17ad9429..15b527507 100644 --- a/libc/arch-arm/syscalls/writev.S +++ b/libc/arch-arm/syscalls/writev.S @@ -2,8 +2,6 @@ #include - .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) diff --git a/libc/arch-arm64/bionic/__bionic_clone.S b/libc/arch-arm64/bionic/__bionic_clone.S index 74db4b5b8..56ac0f69d 100644 --- a/libc/arch-arm64/bionic/__bionic_clone.S +++ b/libc/arch-arm64/bionic/__bionic_clone.S @@ -44,7 +44,7 @@ ENTRY(__bionic_clone) # Set errno if something went wrong. cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret diff --git a/libc/arch-arm64/bionic/syscall.S b/libc/arch-arm64/bionic/syscall.S index 658af78ae..8389f9830 100644 --- a/libc/arch-arm64/bionic/syscall.S +++ b/libc/arch-arm64/bionic/syscall.S @@ -43,7 +43,7 @@ ENTRY(syscall) /* check if syscall returned successfully */ cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(syscall) diff --git a/libc/arch-arm64/bionic/vfork.S b/libc/arch-arm64/bionic/vfork.S index c70062317..b6a672d43 100644 --- a/libc/arch-arm64/bionic/vfork.S +++ b/libc/arch-arm64/bionic/vfork.S @@ -42,7 +42,7 @@ ENTRY(vfork) cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(vfork) diff --git a/libc/arch-arm64/syscalls/__accept4.S b/libc/arch-arm64/syscalls/__accept4.S index bee9fdaab..559e6a735 100644 --- a/libc/arch-arm64/syscalls/__accept4.S +++ b/libc/arch-arm64/syscalls/__accept4.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__accept4) mov x8, __NR_accept4 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__accept4) diff --git a/libc/arch-arm64/syscalls/__brk.S b/libc/arch-arm64/syscalls/__brk.S index e91e76232..fb794bf46 100644 --- a/libc/arch-arm64/syscalls/__brk.S +++ b/libc/arch-arm64/syscalls/__brk.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__brk) mov x8, __NR_brk svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__brk) diff --git a/libc/arch-arm64/syscalls/__clock_gettime.S b/libc/arch-arm64/syscalls/__clock_gettime.S index d4a65e8a1..658ab2991 100644 --- a/libc/arch-arm64/syscalls/__clock_gettime.S +++ b/libc/arch-arm64/syscalls/__clock_gettime.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__clock_gettime) mov x8, __NR_clock_gettime svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__clock_gettime) diff --git a/libc/arch-arm64/syscalls/__connect.S b/libc/arch-arm64/syscalls/__connect.S index 4f19dc756..c18e6ebba 100644 --- a/libc/arch-arm64/syscalls/__connect.S +++ b/libc/arch-arm64/syscalls/__connect.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__connect) mov x8, __NR_connect svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__connect) diff --git a/libc/arch-arm64/syscalls/__epoll_pwait.S b/libc/arch-arm64/syscalls/__epoll_pwait.S index 7f40fbc98..acf2bbf1e 100644 --- a/libc/arch-arm64/syscalls/__epoll_pwait.S +++ b/libc/arch-arm64/syscalls/__epoll_pwait.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__epoll_pwait) mov x8, __NR_epoll_pwait svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__epoll_pwait) diff --git a/libc/arch-arm64/syscalls/__exit.S b/libc/arch-arm64/syscalls/__exit.S index 30849ce01..b6b1866a5 100644 --- a/libc/arch-arm64/syscalls/__exit.S +++ b/libc/arch-arm64/syscalls/__exit.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__exit) mov x8, __NR_exit svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__exit) diff --git a/libc/arch-arm64/syscalls/__getcpu.S b/libc/arch-arm64/syscalls/__getcpu.S index 482191708..11ed68ea5 100644 --- a/libc/arch-arm64/syscalls/__getcpu.S +++ b/libc/arch-arm64/syscalls/__getcpu.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__getcpu) mov x8, __NR_getcpu svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__getcpu) diff --git a/libc/arch-arm64/syscalls/__getcwd.S b/libc/arch-arm64/syscalls/__getcwd.S index f0212a288..c64f4d2bb 100644 --- a/libc/arch-arm64/syscalls/__getcwd.S +++ b/libc/arch-arm64/syscalls/__getcwd.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__getcwd) mov x8, __NR_getcwd svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__getcwd) diff --git a/libc/arch-arm64/syscalls/__getdents64.S b/libc/arch-arm64/syscalls/__getdents64.S index 0061cd69f..994339005 100644 --- a/libc/arch-arm64/syscalls/__getdents64.S +++ b/libc/arch-arm64/syscalls/__getdents64.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__getdents64) mov x8, __NR_getdents64 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__getdents64) diff --git a/libc/arch-arm64/syscalls/__getpid.S b/libc/arch-arm64/syscalls/__getpid.S index 011d82d47..fbc96dff8 100644 --- a/libc/arch-arm64/syscalls/__getpid.S +++ b/libc/arch-arm64/syscalls/__getpid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__getpid) mov x8, __NR_getpid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__getpid) diff --git a/libc/arch-arm64/syscalls/__getpriority.S b/libc/arch-arm64/syscalls/__getpriority.S index 80188b301..9d98e226f 100644 --- a/libc/arch-arm64/syscalls/__getpriority.S +++ b/libc/arch-arm64/syscalls/__getpriority.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__getpriority) mov x8, __NR_getpriority svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__getpriority) diff --git a/libc/arch-arm64/syscalls/__gettimeofday.S b/libc/arch-arm64/syscalls/__gettimeofday.S index 7d1b5d3cb..0c8206abd 100644 --- a/libc/arch-arm64/syscalls/__gettimeofday.S +++ b/libc/arch-arm64/syscalls/__gettimeofday.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__gettimeofday) mov x8, __NR_gettimeofday svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__gettimeofday) diff --git a/libc/arch-arm64/syscalls/__ioctl.S b/libc/arch-arm64/syscalls/__ioctl.S index 3d42f1a5b..62bc28c53 100644 --- a/libc/arch-arm64/syscalls/__ioctl.S +++ b/libc/arch-arm64/syscalls/__ioctl.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__ioctl) mov x8, __NR_ioctl svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__ioctl) diff --git a/libc/arch-arm64/syscalls/__openat.S b/libc/arch-arm64/syscalls/__openat.S index 1ff0b4871..8b6853fd8 100644 --- a/libc/arch-arm64/syscalls/__openat.S +++ b/libc/arch-arm64/syscalls/__openat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__openat) mov x8, __NR_openat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__openat) diff --git a/libc/arch-arm64/syscalls/__ppoll.S b/libc/arch-arm64/syscalls/__ppoll.S index 9517ce3fd..1f54d67df 100644 --- a/libc/arch-arm64/syscalls/__ppoll.S +++ b/libc/arch-arm64/syscalls/__ppoll.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__ppoll) mov x8, __NR_ppoll svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__ppoll) diff --git a/libc/arch-arm64/syscalls/__pselect6.S b/libc/arch-arm64/syscalls/__pselect6.S index 7e14e02df..388d84e81 100644 --- a/libc/arch-arm64/syscalls/__pselect6.S +++ b/libc/arch-arm64/syscalls/__pselect6.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__pselect6) mov x8, __NR_pselect6 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__pselect6) diff --git a/libc/arch-arm64/syscalls/__ptrace.S b/libc/arch-arm64/syscalls/__ptrace.S index b325e291d..d68b67407 100644 --- a/libc/arch-arm64/syscalls/__ptrace.S +++ b/libc/arch-arm64/syscalls/__ptrace.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__ptrace) mov x8, __NR_ptrace svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__ptrace) diff --git a/libc/arch-arm64/syscalls/__reboot.S b/libc/arch-arm64/syscalls/__reboot.S index 04b18c9b9..79cd5be97 100644 --- a/libc/arch-arm64/syscalls/__reboot.S +++ b/libc/arch-arm64/syscalls/__reboot.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__reboot) mov x8, __NR_reboot svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__reboot) diff --git a/libc/arch-arm64/syscalls/__rt_sigaction.S b/libc/arch-arm64/syscalls/__rt_sigaction.S index 3def55839..65fea2e7c 100644 --- a/libc/arch-arm64/syscalls/__rt_sigaction.S +++ b/libc/arch-arm64/syscalls/__rt_sigaction.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__rt_sigaction) mov x8, __NR_rt_sigaction svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__rt_sigaction) diff --git a/libc/arch-arm64/syscalls/__rt_sigpending.S b/libc/arch-arm64/syscalls/__rt_sigpending.S index 3ac0cb890..65537812d 100644 --- a/libc/arch-arm64/syscalls/__rt_sigpending.S +++ b/libc/arch-arm64/syscalls/__rt_sigpending.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__rt_sigpending) mov x8, __NR_rt_sigpending svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__rt_sigpending) diff --git a/libc/arch-arm64/syscalls/__rt_sigprocmask.S b/libc/arch-arm64/syscalls/__rt_sigprocmask.S index 72c7ea6fb..95127d659 100644 --- a/libc/arch-arm64/syscalls/__rt_sigprocmask.S +++ b/libc/arch-arm64/syscalls/__rt_sigprocmask.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__rt_sigprocmask) mov x8, __NR_rt_sigprocmask svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__rt_sigprocmask) diff --git a/libc/arch-arm64/syscalls/__rt_sigsuspend.S b/libc/arch-arm64/syscalls/__rt_sigsuspend.S index a289713f5..7cbd8d6d3 100644 --- a/libc/arch-arm64/syscalls/__rt_sigsuspend.S +++ b/libc/arch-arm64/syscalls/__rt_sigsuspend.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__rt_sigsuspend) mov x8, __NR_rt_sigsuspend svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__rt_sigsuspend) diff --git a/libc/arch-arm64/syscalls/__rt_sigtimedwait.S b/libc/arch-arm64/syscalls/__rt_sigtimedwait.S index c61e4ac99..8001635d1 100644 --- a/libc/arch-arm64/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-arm64/syscalls/__rt_sigtimedwait.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__rt_sigtimedwait) mov x8, __NR_rt_sigtimedwait svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__rt_sigtimedwait) diff --git a/libc/arch-arm64/syscalls/__sched_getaffinity.S b/libc/arch-arm64/syscalls/__sched_getaffinity.S index 5bee77e70..7dad15e20 100644 --- a/libc/arch-arm64/syscalls/__sched_getaffinity.S +++ b/libc/arch-arm64/syscalls/__sched_getaffinity.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__sched_getaffinity) mov x8, __NR_sched_getaffinity svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__sched_getaffinity) diff --git a/libc/arch-arm64/syscalls/__set_tid_address.S b/libc/arch-arm64/syscalls/__set_tid_address.S index e4790bf65..f7ae16dc6 100644 --- a/libc/arch-arm64/syscalls/__set_tid_address.S +++ b/libc/arch-arm64/syscalls/__set_tid_address.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__set_tid_address) mov x8, __NR_set_tid_address svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__set_tid_address) diff --git a/libc/arch-arm64/syscalls/__signalfd4.S b/libc/arch-arm64/syscalls/__signalfd4.S index a977a6cb6..f6e34974c 100644 --- a/libc/arch-arm64/syscalls/__signalfd4.S +++ b/libc/arch-arm64/syscalls/__signalfd4.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__signalfd4) mov x8, __NR_signalfd4 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__signalfd4) diff --git a/libc/arch-arm64/syscalls/__socket.S b/libc/arch-arm64/syscalls/__socket.S index f8bb2ac2e..344bb2dc7 100644 --- a/libc/arch-arm64/syscalls/__socket.S +++ b/libc/arch-arm64/syscalls/__socket.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__socket) mov x8, __NR_socket svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__socket) diff --git a/libc/arch-arm64/syscalls/__timer_create.S b/libc/arch-arm64/syscalls/__timer_create.S index bb54952d6..4790845f8 100644 --- a/libc/arch-arm64/syscalls/__timer_create.S +++ b/libc/arch-arm64/syscalls/__timer_create.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__timer_create) mov x8, __NR_timer_create svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__timer_create) diff --git a/libc/arch-arm64/syscalls/__timer_delete.S b/libc/arch-arm64/syscalls/__timer_delete.S index 47d82f253..ce12613c2 100644 --- a/libc/arch-arm64/syscalls/__timer_delete.S +++ b/libc/arch-arm64/syscalls/__timer_delete.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__timer_delete) mov x8, __NR_timer_delete svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__timer_delete) diff --git a/libc/arch-arm64/syscalls/__timer_getoverrun.S b/libc/arch-arm64/syscalls/__timer_getoverrun.S index 9c0611284..2cfdf6a3c 100644 --- a/libc/arch-arm64/syscalls/__timer_getoverrun.S +++ b/libc/arch-arm64/syscalls/__timer_getoverrun.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__timer_getoverrun) mov x8, __NR_timer_getoverrun svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__timer_getoverrun) diff --git a/libc/arch-arm64/syscalls/__timer_gettime.S b/libc/arch-arm64/syscalls/__timer_gettime.S index e7c7cfe40..a1ea323bb 100644 --- a/libc/arch-arm64/syscalls/__timer_gettime.S +++ b/libc/arch-arm64/syscalls/__timer_gettime.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__timer_gettime) mov x8, __NR_timer_gettime svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__timer_gettime) diff --git a/libc/arch-arm64/syscalls/__timer_settime.S b/libc/arch-arm64/syscalls/__timer_settime.S index d4a4996f8..059d705d8 100644 --- a/libc/arch-arm64/syscalls/__timer_settime.S +++ b/libc/arch-arm64/syscalls/__timer_settime.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__timer_settime) mov x8, __NR_timer_settime svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__timer_settime) diff --git a/libc/arch-arm64/syscalls/__waitid.S b/libc/arch-arm64/syscalls/__waitid.S index 5bff48804..8bd649db9 100644 --- a/libc/arch-arm64/syscalls/__waitid.S +++ b/libc/arch-arm64/syscalls/__waitid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(__waitid) mov x8, __NR_waitid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(__waitid) diff --git a/libc/arch-arm64/syscalls/_exit.S b/libc/arch-arm64/syscalls/_exit.S index e88e77acd..edf6744a8 100644 --- a/libc/arch-arm64/syscalls/_exit.S +++ b/libc/arch-arm64/syscalls/_exit.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(_exit) mov x8, __NR_exit_group svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(_exit) diff --git a/libc/arch-arm64/syscalls/acct.S b/libc/arch-arm64/syscalls/acct.S index 97a8a0c85..48cb4e937 100644 --- a/libc/arch-arm64/syscalls/acct.S +++ b/libc/arch-arm64/syscalls/acct.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(acct) mov x8, __NR_acct svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(acct) diff --git a/libc/arch-arm64/syscalls/bind.S b/libc/arch-arm64/syscalls/bind.S index 1d6d90189..47170ff9e 100644 --- a/libc/arch-arm64/syscalls/bind.S +++ b/libc/arch-arm64/syscalls/bind.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(bind) mov x8, __NR_bind svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(bind) diff --git a/libc/arch-arm64/syscalls/capget.S b/libc/arch-arm64/syscalls/capget.S index de849297a..7e0dfe9a9 100644 --- a/libc/arch-arm64/syscalls/capget.S +++ b/libc/arch-arm64/syscalls/capget.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(capget) mov x8, __NR_capget svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(capget) diff --git a/libc/arch-arm64/syscalls/capset.S b/libc/arch-arm64/syscalls/capset.S index 1616f8f07..e7b7a8dd9 100644 --- a/libc/arch-arm64/syscalls/capset.S +++ b/libc/arch-arm64/syscalls/capset.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(capset) mov x8, __NR_capset svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(capset) diff --git a/libc/arch-arm64/syscalls/chdir.S b/libc/arch-arm64/syscalls/chdir.S index ccaa2e283..723cd08b1 100644 --- a/libc/arch-arm64/syscalls/chdir.S +++ b/libc/arch-arm64/syscalls/chdir.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(chdir) mov x8, __NR_chdir svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(chdir) diff --git a/libc/arch-arm64/syscalls/chroot.S b/libc/arch-arm64/syscalls/chroot.S index bede17204..e4f6bd9e3 100644 --- a/libc/arch-arm64/syscalls/chroot.S +++ b/libc/arch-arm64/syscalls/chroot.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(chroot) mov x8, __NR_chroot svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(chroot) diff --git a/libc/arch-arm64/syscalls/clock_getres.S b/libc/arch-arm64/syscalls/clock_getres.S index 3944a155b..33fda8f80 100644 --- a/libc/arch-arm64/syscalls/clock_getres.S +++ b/libc/arch-arm64/syscalls/clock_getres.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(clock_getres) mov x8, __NR_clock_getres svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(clock_getres) diff --git a/libc/arch-arm64/syscalls/clock_nanosleep.S b/libc/arch-arm64/syscalls/clock_nanosleep.S index 2182f6713..349c5cca7 100644 --- a/libc/arch-arm64/syscalls/clock_nanosleep.S +++ b/libc/arch-arm64/syscalls/clock_nanosleep.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(clock_nanosleep) mov x8, __NR_clock_nanosleep svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(clock_nanosleep) diff --git a/libc/arch-arm64/syscalls/clock_settime.S b/libc/arch-arm64/syscalls/clock_settime.S index 14a662b29..62354d19a 100644 --- a/libc/arch-arm64/syscalls/clock_settime.S +++ b/libc/arch-arm64/syscalls/clock_settime.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(clock_settime) mov x8, __NR_clock_settime svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(clock_settime) diff --git a/libc/arch-arm64/syscalls/close.S b/libc/arch-arm64/syscalls/close.S index da9a151af..3624581cb 100644 --- a/libc/arch-arm64/syscalls/close.S +++ b/libc/arch-arm64/syscalls/close.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(close) mov x8, __NR_close svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(close) diff --git a/libc/arch-arm64/syscalls/delete_module.S b/libc/arch-arm64/syscalls/delete_module.S index 5dcd07f5c..db8d947ee 100644 --- a/libc/arch-arm64/syscalls/delete_module.S +++ b/libc/arch-arm64/syscalls/delete_module.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(delete_module) mov x8, __NR_delete_module svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(delete_module) diff --git a/libc/arch-arm64/syscalls/dup.S b/libc/arch-arm64/syscalls/dup.S index 33a1b6597..4e95045e5 100644 --- a/libc/arch-arm64/syscalls/dup.S +++ b/libc/arch-arm64/syscalls/dup.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(dup) mov x8, __NR_dup svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(dup) diff --git a/libc/arch-arm64/syscalls/dup3.S b/libc/arch-arm64/syscalls/dup3.S index 441fec9f1..2e6be32b6 100644 --- a/libc/arch-arm64/syscalls/dup3.S +++ b/libc/arch-arm64/syscalls/dup3.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(dup3) mov x8, __NR_dup3 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(dup3) diff --git a/libc/arch-arm64/syscalls/epoll_create1.S b/libc/arch-arm64/syscalls/epoll_create1.S index d314f5557..6ef518e8e 100644 --- a/libc/arch-arm64/syscalls/epoll_create1.S +++ b/libc/arch-arm64/syscalls/epoll_create1.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(epoll_create1) mov x8, __NR_epoll_create1 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(epoll_create1) diff --git a/libc/arch-arm64/syscalls/epoll_ctl.S b/libc/arch-arm64/syscalls/epoll_ctl.S index 004c0666e..1188f38de 100644 --- a/libc/arch-arm64/syscalls/epoll_ctl.S +++ b/libc/arch-arm64/syscalls/epoll_ctl.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(epoll_ctl) mov x8, __NR_epoll_ctl svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(epoll_ctl) diff --git a/libc/arch-arm64/syscalls/eventfd.S b/libc/arch-arm64/syscalls/eventfd.S index 11e97d01f..ca5df12d3 100644 --- a/libc/arch-arm64/syscalls/eventfd.S +++ b/libc/arch-arm64/syscalls/eventfd.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(eventfd) mov x8, __NR_eventfd2 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(eventfd) diff --git a/libc/arch-arm64/syscalls/execve.S b/libc/arch-arm64/syscalls/execve.S index 7b6d943f4..fc8fb6850 100644 --- a/libc/arch-arm64/syscalls/execve.S +++ b/libc/arch-arm64/syscalls/execve.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(execve) mov x8, __NR_execve svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(execve) diff --git a/libc/arch-arm64/syscalls/faccessat.S b/libc/arch-arm64/syscalls/faccessat.S index 7bd866546..4c96cfa7b 100644 --- a/libc/arch-arm64/syscalls/faccessat.S +++ b/libc/arch-arm64/syscalls/faccessat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(faccessat) mov x8, __NR_faccessat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(faccessat) diff --git a/libc/arch-arm64/syscalls/fallocate.S b/libc/arch-arm64/syscalls/fallocate.S index d8795ae1e..ef3d4a4c4 100644 --- a/libc/arch-arm64/syscalls/fallocate.S +++ b/libc/arch-arm64/syscalls/fallocate.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fallocate) mov x8, __NR_fallocate svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fallocate) diff --git a/libc/arch-arm64/syscalls/fchdir.S b/libc/arch-arm64/syscalls/fchdir.S index 7739fedef..2e164cbe3 100644 --- a/libc/arch-arm64/syscalls/fchdir.S +++ b/libc/arch-arm64/syscalls/fchdir.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fchdir) mov x8, __NR_fchdir svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fchdir) diff --git a/libc/arch-arm64/syscalls/fchmod.S b/libc/arch-arm64/syscalls/fchmod.S index 3eec6cbb5..83a80607d 100644 --- a/libc/arch-arm64/syscalls/fchmod.S +++ b/libc/arch-arm64/syscalls/fchmod.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fchmod) mov x8, __NR_fchmod svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fchmod) diff --git a/libc/arch-arm64/syscalls/fchmodat.S b/libc/arch-arm64/syscalls/fchmodat.S index f2f285eda..8c5bb0e13 100644 --- a/libc/arch-arm64/syscalls/fchmodat.S +++ b/libc/arch-arm64/syscalls/fchmodat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fchmodat) mov x8, __NR_fchmodat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fchmodat) diff --git a/libc/arch-arm64/syscalls/fchown.S b/libc/arch-arm64/syscalls/fchown.S index a689ba0c1..4456f1be0 100644 --- a/libc/arch-arm64/syscalls/fchown.S +++ b/libc/arch-arm64/syscalls/fchown.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fchown) mov x8, __NR_fchown svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fchown) diff --git a/libc/arch-arm64/syscalls/fchownat.S b/libc/arch-arm64/syscalls/fchownat.S index 7ede083d7..7ba661151 100644 --- a/libc/arch-arm64/syscalls/fchownat.S +++ b/libc/arch-arm64/syscalls/fchownat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fchownat) mov x8, __NR_fchownat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fchownat) diff --git a/libc/arch-arm64/syscalls/fcntl.S b/libc/arch-arm64/syscalls/fcntl.S index 257c765b5..e2787aebf 100644 --- a/libc/arch-arm64/syscalls/fcntl.S +++ b/libc/arch-arm64/syscalls/fcntl.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fcntl) mov x8, __NR_fcntl svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fcntl) diff --git a/libc/arch-arm64/syscalls/fdatasync.S b/libc/arch-arm64/syscalls/fdatasync.S index 233abda7b..225ab29e3 100644 --- a/libc/arch-arm64/syscalls/fdatasync.S +++ b/libc/arch-arm64/syscalls/fdatasync.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fdatasync) mov x8, __NR_fdatasync svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fdatasync) diff --git a/libc/arch-arm64/syscalls/fgetxattr.S b/libc/arch-arm64/syscalls/fgetxattr.S index bd579ff45..0d6ada791 100644 --- a/libc/arch-arm64/syscalls/fgetxattr.S +++ b/libc/arch-arm64/syscalls/fgetxattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fgetxattr) mov x8, __NR_fgetxattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fgetxattr) diff --git a/libc/arch-arm64/syscalls/flistxattr.S b/libc/arch-arm64/syscalls/flistxattr.S index 95ccbe269..8921bb4cc 100644 --- a/libc/arch-arm64/syscalls/flistxattr.S +++ b/libc/arch-arm64/syscalls/flistxattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(flistxattr) mov x8, __NR_flistxattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(flistxattr) diff --git a/libc/arch-arm64/syscalls/flock.S b/libc/arch-arm64/syscalls/flock.S index 2151d6cca..0c036c804 100644 --- a/libc/arch-arm64/syscalls/flock.S +++ b/libc/arch-arm64/syscalls/flock.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(flock) mov x8, __NR_flock svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(flock) diff --git a/libc/arch-arm64/syscalls/fremovexattr.S b/libc/arch-arm64/syscalls/fremovexattr.S index 8dd107d06..cf3a37131 100644 --- a/libc/arch-arm64/syscalls/fremovexattr.S +++ b/libc/arch-arm64/syscalls/fremovexattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fremovexattr) mov x8, __NR_fremovexattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fremovexattr) diff --git a/libc/arch-arm64/syscalls/fsetxattr.S b/libc/arch-arm64/syscalls/fsetxattr.S index 9e546869a..e69e718b0 100644 --- a/libc/arch-arm64/syscalls/fsetxattr.S +++ b/libc/arch-arm64/syscalls/fsetxattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fsetxattr) mov x8, __NR_fsetxattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fsetxattr) diff --git a/libc/arch-arm64/syscalls/fstat64.S b/libc/arch-arm64/syscalls/fstat64.S index f354e1335..85a07f5bd 100644 --- a/libc/arch-arm64/syscalls/fstat64.S +++ b/libc/arch-arm64/syscalls/fstat64.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fstat64) mov x8, __NR_fstat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fstat64) diff --git a/libc/arch-arm64/syscalls/fstatat64.S b/libc/arch-arm64/syscalls/fstatat64.S index 2fe056e43..dafd9823d 100644 --- a/libc/arch-arm64/syscalls/fstatat64.S +++ b/libc/arch-arm64/syscalls/fstatat64.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fstatat64) mov x8, __NR_newfstatat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fstatat64) diff --git a/libc/arch-arm64/syscalls/fstatfs64.S b/libc/arch-arm64/syscalls/fstatfs64.S index c67ffd691..2ca2dcd7f 100644 --- a/libc/arch-arm64/syscalls/fstatfs64.S +++ b/libc/arch-arm64/syscalls/fstatfs64.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fstatfs64) mov x8, __NR_fstatfs svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fstatfs64) diff --git a/libc/arch-arm64/syscalls/fsync.S b/libc/arch-arm64/syscalls/fsync.S index ae2fc61df..2bc0d0bbb 100644 --- a/libc/arch-arm64/syscalls/fsync.S +++ b/libc/arch-arm64/syscalls/fsync.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(fsync) mov x8, __NR_fsync svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(fsync) diff --git a/libc/arch-arm64/syscalls/ftruncate.S b/libc/arch-arm64/syscalls/ftruncate.S index adf87fe4e..c6e99f591 100644 --- a/libc/arch-arm64/syscalls/ftruncate.S +++ b/libc/arch-arm64/syscalls/ftruncate.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(ftruncate) mov x8, __NR_ftruncate svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(ftruncate) diff --git a/libc/arch-arm64/syscalls/getegid.S b/libc/arch-arm64/syscalls/getegid.S index 5066cae47..f7d60d9ab 100644 --- a/libc/arch-arm64/syscalls/getegid.S +++ b/libc/arch-arm64/syscalls/getegid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getegid) mov x8, __NR_getegid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getegid) diff --git a/libc/arch-arm64/syscalls/geteuid.S b/libc/arch-arm64/syscalls/geteuid.S index 25b1ea9fd..3096a9250 100644 --- a/libc/arch-arm64/syscalls/geteuid.S +++ b/libc/arch-arm64/syscalls/geteuid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(geteuid) mov x8, __NR_geteuid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(geteuid) diff --git a/libc/arch-arm64/syscalls/getgid.S b/libc/arch-arm64/syscalls/getgid.S index 3f49cb44c..2f921ff34 100644 --- a/libc/arch-arm64/syscalls/getgid.S +++ b/libc/arch-arm64/syscalls/getgid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getgid) mov x8, __NR_getgid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getgid) diff --git a/libc/arch-arm64/syscalls/getgroups.S b/libc/arch-arm64/syscalls/getgroups.S index 3df4974cc..a9a897e6a 100644 --- a/libc/arch-arm64/syscalls/getgroups.S +++ b/libc/arch-arm64/syscalls/getgroups.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getgroups) mov x8, __NR_getgroups svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getgroups) diff --git a/libc/arch-arm64/syscalls/getitimer.S b/libc/arch-arm64/syscalls/getitimer.S index 70cb73150..f37063c68 100644 --- a/libc/arch-arm64/syscalls/getitimer.S +++ b/libc/arch-arm64/syscalls/getitimer.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getitimer) mov x8, __NR_getitimer svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getitimer) diff --git a/libc/arch-arm64/syscalls/getpeername.S b/libc/arch-arm64/syscalls/getpeername.S index eefb24af5..8374d607c 100644 --- a/libc/arch-arm64/syscalls/getpeername.S +++ b/libc/arch-arm64/syscalls/getpeername.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getpeername) mov x8, __NR_getpeername svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getpeername) diff --git a/libc/arch-arm64/syscalls/getpgid.S b/libc/arch-arm64/syscalls/getpgid.S index d12ac5270..ffc0d9102 100644 --- a/libc/arch-arm64/syscalls/getpgid.S +++ b/libc/arch-arm64/syscalls/getpgid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getpgid) mov x8, __NR_getpgid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getpgid) diff --git a/libc/arch-arm64/syscalls/getppid.S b/libc/arch-arm64/syscalls/getppid.S index af8965beb..1e21bdf4c 100644 --- a/libc/arch-arm64/syscalls/getppid.S +++ b/libc/arch-arm64/syscalls/getppid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getppid) mov x8, __NR_getppid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getppid) diff --git a/libc/arch-arm64/syscalls/getresgid.S b/libc/arch-arm64/syscalls/getresgid.S index 3c1c0c098..b15357a58 100644 --- a/libc/arch-arm64/syscalls/getresgid.S +++ b/libc/arch-arm64/syscalls/getresgid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getresgid) mov x8, __NR_getresgid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getresgid) diff --git a/libc/arch-arm64/syscalls/getresuid.S b/libc/arch-arm64/syscalls/getresuid.S index f50e060fa..53de6b746 100644 --- a/libc/arch-arm64/syscalls/getresuid.S +++ b/libc/arch-arm64/syscalls/getresuid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getresuid) mov x8, __NR_getresuid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getresuid) diff --git a/libc/arch-arm64/syscalls/getrlimit.S b/libc/arch-arm64/syscalls/getrlimit.S index b759912b7..518ab73d7 100644 --- a/libc/arch-arm64/syscalls/getrlimit.S +++ b/libc/arch-arm64/syscalls/getrlimit.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getrlimit) mov x8, __NR_getrlimit svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getrlimit) diff --git a/libc/arch-arm64/syscalls/getrusage.S b/libc/arch-arm64/syscalls/getrusage.S index 1a0d30f16..676221a95 100644 --- a/libc/arch-arm64/syscalls/getrusage.S +++ b/libc/arch-arm64/syscalls/getrusage.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getrusage) mov x8, __NR_getrusage svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getrusage) diff --git a/libc/arch-arm64/syscalls/getsid.S b/libc/arch-arm64/syscalls/getsid.S index 3c3d7530b..cfbdfdb9e 100644 --- a/libc/arch-arm64/syscalls/getsid.S +++ b/libc/arch-arm64/syscalls/getsid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getsid) mov x8, __NR_getsid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getsid) diff --git a/libc/arch-arm64/syscalls/getsockname.S b/libc/arch-arm64/syscalls/getsockname.S index a337986d6..4cca55daf 100644 --- a/libc/arch-arm64/syscalls/getsockname.S +++ b/libc/arch-arm64/syscalls/getsockname.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getsockname) mov x8, __NR_getsockname svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getsockname) diff --git a/libc/arch-arm64/syscalls/getsockopt.S b/libc/arch-arm64/syscalls/getsockopt.S index 4b3abd5c9..96b8c0f13 100644 --- a/libc/arch-arm64/syscalls/getsockopt.S +++ b/libc/arch-arm64/syscalls/getsockopt.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getsockopt) mov x8, __NR_getsockopt svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getsockopt) diff --git a/libc/arch-arm64/syscalls/getuid.S b/libc/arch-arm64/syscalls/getuid.S index a9193c5cc..ef95ba7fc 100644 --- a/libc/arch-arm64/syscalls/getuid.S +++ b/libc/arch-arm64/syscalls/getuid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getuid) mov x8, __NR_getuid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getuid) diff --git a/libc/arch-arm64/syscalls/getxattr.S b/libc/arch-arm64/syscalls/getxattr.S index afa81ef85..2b38f3dfc 100644 --- a/libc/arch-arm64/syscalls/getxattr.S +++ b/libc/arch-arm64/syscalls/getxattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(getxattr) mov x8, __NR_getxattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(getxattr) diff --git a/libc/arch-arm64/syscalls/init_module.S b/libc/arch-arm64/syscalls/init_module.S index bf0f7d330..913c7cc46 100644 --- a/libc/arch-arm64/syscalls/init_module.S +++ b/libc/arch-arm64/syscalls/init_module.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(init_module) mov x8, __NR_init_module svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(init_module) diff --git a/libc/arch-arm64/syscalls/inotify_add_watch.S b/libc/arch-arm64/syscalls/inotify_add_watch.S index dc30ae57d..83a5b57ce 100644 --- a/libc/arch-arm64/syscalls/inotify_add_watch.S +++ b/libc/arch-arm64/syscalls/inotify_add_watch.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(inotify_add_watch) mov x8, __NR_inotify_add_watch svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(inotify_add_watch) diff --git a/libc/arch-arm64/syscalls/inotify_init1.S b/libc/arch-arm64/syscalls/inotify_init1.S index 1b40ef2cb..d3bc81bc7 100644 --- a/libc/arch-arm64/syscalls/inotify_init1.S +++ b/libc/arch-arm64/syscalls/inotify_init1.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(inotify_init1) mov x8, __NR_inotify_init1 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(inotify_init1) diff --git a/libc/arch-arm64/syscalls/inotify_rm_watch.S b/libc/arch-arm64/syscalls/inotify_rm_watch.S index 7c99e866d..c44445fa6 100644 --- a/libc/arch-arm64/syscalls/inotify_rm_watch.S +++ b/libc/arch-arm64/syscalls/inotify_rm_watch.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(inotify_rm_watch) mov x8, __NR_inotify_rm_watch svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(inotify_rm_watch) diff --git a/libc/arch-arm64/syscalls/kill.S b/libc/arch-arm64/syscalls/kill.S index e86e3a4d8..0334ff05b 100644 --- a/libc/arch-arm64/syscalls/kill.S +++ b/libc/arch-arm64/syscalls/kill.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(kill) mov x8, __NR_kill svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(kill) diff --git a/libc/arch-arm64/syscalls/klogctl.S b/libc/arch-arm64/syscalls/klogctl.S index 567db27fb..625f3592e 100644 --- a/libc/arch-arm64/syscalls/klogctl.S +++ b/libc/arch-arm64/syscalls/klogctl.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(klogctl) mov x8, __NR_syslog svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(klogctl) diff --git a/libc/arch-arm64/syscalls/lgetxattr.S b/libc/arch-arm64/syscalls/lgetxattr.S index 187462a7b..89db20626 100644 --- a/libc/arch-arm64/syscalls/lgetxattr.S +++ b/libc/arch-arm64/syscalls/lgetxattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(lgetxattr) mov x8, __NR_lgetxattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(lgetxattr) diff --git a/libc/arch-arm64/syscalls/linkat.S b/libc/arch-arm64/syscalls/linkat.S index 7cfc2e036..62aea3a2f 100644 --- a/libc/arch-arm64/syscalls/linkat.S +++ b/libc/arch-arm64/syscalls/linkat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(linkat) mov x8, __NR_linkat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(linkat) diff --git a/libc/arch-arm64/syscalls/listen.S b/libc/arch-arm64/syscalls/listen.S index 028b9bd42..ba97be9a7 100644 --- a/libc/arch-arm64/syscalls/listen.S +++ b/libc/arch-arm64/syscalls/listen.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(listen) mov x8, __NR_listen svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(listen) diff --git a/libc/arch-arm64/syscalls/listxattr.S b/libc/arch-arm64/syscalls/listxattr.S index 335fafe82..48208e626 100644 --- a/libc/arch-arm64/syscalls/listxattr.S +++ b/libc/arch-arm64/syscalls/listxattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(listxattr) mov x8, __NR_listxattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(listxattr) diff --git a/libc/arch-arm64/syscalls/llistxattr.S b/libc/arch-arm64/syscalls/llistxattr.S index e79674118..ed66005c8 100644 --- a/libc/arch-arm64/syscalls/llistxattr.S +++ b/libc/arch-arm64/syscalls/llistxattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(llistxattr) mov x8, __NR_llistxattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(llistxattr) diff --git a/libc/arch-arm64/syscalls/lremovexattr.S b/libc/arch-arm64/syscalls/lremovexattr.S index 9f4c02755..b5e51c7fa 100644 --- a/libc/arch-arm64/syscalls/lremovexattr.S +++ b/libc/arch-arm64/syscalls/lremovexattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(lremovexattr) mov x8, __NR_lremovexattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(lremovexattr) diff --git a/libc/arch-arm64/syscalls/lseek.S b/libc/arch-arm64/syscalls/lseek.S index aa717687b..de96df042 100644 --- a/libc/arch-arm64/syscalls/lseek.S +++ b/libc/arch-arm64/syscalls/lseek.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(lseek) mov x8, __NR_lseek svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(lseek) diff --git a/libc/arch-arm64/syscalls/lsetxattr.S b/libc/arch-arm64/syscalls/lsetxattr.S index babf02d37..b873513d5 100644 --- a/libc/arch-arm64/syscalls/lsetxattr.S +++ b/libc/arch-arm64/syscalls/lsetxattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(lsetxattr) mov x8, __NR_lsetxattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(lsetxattr) diff --git a/libc/arch-arm64/syscalls/madvise.S b/libc/arch-arm64/syscalls/madvise.S index 3d393f1d8..6fced4153 100644 --- a/libc/arch-arm64/syscalls/madvise.S +++ b/libc/arch-arm64/syscalls/madvise.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(madvise) mov x8, __NR_madvise svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(madvise) diff --git a/libc/arch-arm64/syscalls/mincore.S b/libc/arch-arm64/syscalls/mincore.S index 443257486..5781b4c97 100644 --- a/libc/arch-arm64/syscalls/mincore.S +++ b/libc/arch-arm64/syscalls/mincore.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(mincore) mov x8, __NR_mincore svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(mincore) diff --git a/libc/arch-arm64/syscalls/mkdirat.S b/libc/arch-arm64/syscalls/mkdirat.S index 36c876d87..fa868a25d 100644 --- a/libc/arch-arm64/syscalls/mkdirat.S +++ b/libc/arch-arm64/syscalls/mkdirat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(mkdirat) mov x8, __NR_mkdirat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(mkdirat) diff --git a/libc/arch-arm64/syscalls/mknodat.S b/libc/arch-arm64/syscalls/mknodat.S index e0584dba3..13632ec6a 100644 --- a/libc/arch-arm64/syscalls/mknodat.S +++ b/libc/arch-arm64/syscalls/mknodat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(mknodat) mov x8, __NR_mknodat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(mknodat) diff --git a/libc/arch-arm64/syscalls/mlock.S b/libc/arch-arm64/syscalls/mlock.S index 10ddb077b..1eee85cd8 100644 --- a/libc/arch-arm64/syscalls/mlock.S +++ b/libc/arch-arm64/syscalls/mlock.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(mlock) mov x8, __NR_mlock svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(mlock) diff --git a/libc/arch-arm64/syscalls/mlockall.S b/libc/arch-arm64/syscalls/mlockall.S index 3602d7170..d4ca1857e 100644 --- a/libc/arch-arm64/syscalls/mlockall.S +++ b/libc/arch-arm64/syscalls/mlockall.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(mlockall) mov x8, __NR_mlockall svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(mlockall) diff --git a/libc/arch-arm64/syscalls/mmap.S b/libc/arch-arm64/syscalls/mmap.S index e4e39ca69..64b955e26 100644 --- a/libc/arch-arm64/syscalls/mmap.S +++ b/libc/arch-arm64/syscalls/mmap.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(mmap) mov x8, __NR_mmap svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(mmap) diff --git a/libc/arch-arm64/syscalls/mount.S b/libc/arch-arm64/syscalls/mount.S index 9b53754dc..cd3501721 100644 --- a/libc/arch-arm64/syscalls/mount.S +++ b/libc/arch-arm64/syscalls/mount.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(mount) mov x8, __NR_mount svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(mount) diff --git a/libc/arch-arm64/syscalls/mprotect.S b/libc/arch-arm64/syscalls/mprotect.S index 788d46e87..9dd881299 100644 --- a/libc/arch-arm64/syscalls/mprotect.S +++ b/libc/arch-arm64/syscalls/mprotect.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(mprotect) mov x8, __NR_mprotect svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(mprotect) diff --git a/libc/arch-arm64/syscalls/mremap.S b/libc/arch-arm64/syscalls/mremap.S index 861d52a04..69b91d6bc 100644 --- a/libc/arch-arm64/syscalls/mremap.S +++ b/libc/arch-arm64/syscalls/mremap.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(mremap) mov x8, __NR_mremap svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(mremap) diff --git a/libc/arch-arm64/syscalls/msync.S b/libc/arch-arm64/syscalls/msync.S index 009ce18e4..72387ea80 100644 --- a/libc/arch-arm64/syscalls/msync.S +++ b/libc/arch-arm64/syscalls/msync.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(msync) mov x8, __NR_msync svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(msync) diff --git a/libc/arch-arm64/syscalls/munlock.S b/libc/arch-arm64/syscalls/munlock.S index 45d6d17f8..d2a248cd0 100644 --- a/libc/arch-arm64/syscalls/munlock.S +++ b/libc/arch-arm64/syscalls/munlock.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(munlock) mov x8, __NR_munlock svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(munlock) diff --git a/libc/arch-arm64/syscalls/munlockall.S b/libc/arch-arm64/syscalls/munlockall.S index 624062254..ac42cb44c 100644 --- a/libc/arch-arm64/syscalls/munlockall.S +++ b/libc/arch-arm64/syscalls/munlockall.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(munlockall) mov x8, __NR_munlockall svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(munlockall) diff --git a/libc/arch-arm64/syscalls/munmap.S b/libc/arch-arm64/syscalls/munmap.S index 029126858..9d3f6a6dd 100644 --- a/libc/arch-arm64/syscalls/munmap.S +++ b/libc/arch-arm64/syscalls/munmap.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(munmap) mov x8, __NR_munmap svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(munmap) diff --git a/libc/arch-arm64/syscalls/nanosleep.S b/libc/arch-arm64/syscalls/nanosleep.S index 7496530de..d3e6fae62 100644 --- a/libc/arch-arm64/syscalls/nanosleep.S +++ b/libc/arch-arm64/syscalls/nanosleep.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(nanosleep) mov x8, __NR_nanosleep svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(nanosleep) diff --git a/libc/arch-arm64/syscalls/personality.S b/libc/arch-arm64/syscalls/personality.S index 1c6530c68..f9f3bf692 100644 --- a/libc/arch-arm64/syscalls/personality.S +++ b/libc/arch-arm64/syscalls/personality.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(personality) mov x8, __NR_personality svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(personality) diff --git a/libc/arch-arm64/syscalls/pipe2.S b/libc/arch-arm64/syscalls/pipe2.S index 45538d35b..89181cd46 100644 --- a/libc/arch-arm64/syscalls/pipe2.S +++ b/libc/arch-arm64/syscalls/pipe2.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(pipe2) mov x8, __NR_pipe2 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(pipe2) diff --git a/libc/arch-arm64/syscalls/prctl.S b/libc/arch-arm64/syscalls/prctl.S index ddfe5a61f..86f4df510 100644 --- a/libc/arch-arm64/syscalls/prctl.S +++ b/libc/arch-arm64/syscalls/prctl.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(prctl) mov x8, __NR_prctl svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(prctl) diff --git a/libc/arch-arm64/syscalls/pread64.S b/libc/arch-arm64/syscalls/pread64.S index 9c2fb3416..eafc04426 100644 --- a/libc/arch-arm64/syscalls/pread64.S +++ b/libc/arch-arm64/syscalls/pread64.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(pread64) mov x8, __NR_pread64 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(pread64) diff --git a/libc/arch-arm64/syscalls/prlimit64.S b/libc/arch-arm64/syscalls/prlimit64.S index d3e07b9a4..2bece996f 100644 --- a/libc/arch-arm64/syscalls/prlimit64.S +++ b/libc/arch-arm64/syscalls/prlimit64.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(prlimit64) mov x8, __NR_prlimit64 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(prlimit64) diff --git a/libc/arch-arm64/syscalls/pwrite64.S b/libc/arch-arm64/syscalls/pwrite64.S index 33ae24b4f..6970954b6 100644 --- a/libc/arch-arm64/syscalls/pwrite64.S +++ b/libc/arch-arm64/syscalls/pwrite64.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(pwrite64) mov x8, __NR_pwrite64 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(pwrite64) diff --git a/libc/arch-arm64/syscalls/read.S b/libc/arch-arm64/syscalls/read.S index 344039187..ddb88c8dc 100644 --- a/libc/arch-arm64/syscalls/read.S +++ b/libc/arch-arm64/syscalls/read.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(read) mov x8, __NR_read svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(read) diff --git a/libc/arch-arm64/syscalls/readahead.S b/libc/arch-arm64/syscalls/readahead.S index 73683f22f..445abd45b 100644 --- a/libc/arch-arm64/syscalls/readahead.S +++ b/libc/arch-arm64/syscalls/readahead.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(readahead) mov x8, __NR_readahead svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(readahead) diff --git a/libc/arch-arm64/syscalls/readlinkat.S b/libc/arch-arm64/syscalls/readlinkat.S index 1a89d21c3..62cc9e2a8 100644 --- a/libc/arch-arm64/syscalls/readlinkat.S +++ b/libc/arch-arm64/syscalls/readlinkat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(readlinkat) mov x8, __NR_readlinkat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(readlinkat) diff --git a/libc/arch-arm64/syscalls/readv.S b/libc/arch-arm64/syscalls/readv.S index b5d154a87..6e7f15136 100644 --- a/libc/arch-arm64/syscalls/readv.S +++ b/libc/arch-arm64/syscalls/readv.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(readv) mov x8, __NR_readv svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(readv) diff --git a/libc/arch-arm64/syscalls/recvfrom.S b/libc/arch-arm64/syscalls/recvfrom.S index 80bc1aa66..aecf165a7 100644 --- a/libc/arch-arm64/syscalls/recvfrom.S +++ b/libc/arch-arm64/syscalls/recvfrom.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(recvfrom) mov x8, __NR_recvfrom svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(recvfrom) diff --git a/libc/arch-arm64/syscalls/recvmmsg.S b/libc/arch-arm64/syscalls/recvmmsg.S index aa69442b5..b9cae69bb 100644 --- a/libc/arch-arm64/syscalls/recvmmsg.S +++ b/libc/arch-arm64/syscalls/recvmmsg.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(recvmmsg) mov x8, __NR_recvmmsg svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(recvmmsg) diff --git a/libc/arch-arm64/syscalls/recvmsg.S b/libc/arch-arm64/syscalls/recvmsg.S index 095e2aaac..2dafdc9ba 100644 --- a/libc/arch-arm64/syscalls/recvmsg.S +++ b/libc/arch-arm64/syscalls/recvmsg.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(recvmsg) mov x8, __NR_recvmsg svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(recvmsg) diff --git a/libc/arch-arm64/syscalls/removexattr.S b/libc/arch-arm64/syscalls/removexattr.S index f279f01f5..ede36a6bb 100644 --- a/libc/arch-arm64/syscalls/removexattr.S +++ b/libc/arch-arm64/syscalls/removexattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(removexattr) mov x8, __NR_removexattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(removexattr) diff --git a/libc/arch-arm64/syscalls/renameat.S b/libc/arch-arm64/syscalls/renameat.S index 7c308cd06..96025df29 100644 --- a/libc/arch-arm64/syscalls/renameat.S +++ b/libc/arch-arm64/syscalls/renameat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(renameat) mov x8, __NR_renameat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(renameat) diff --git a/libc/arch-arm64/syscalls/sched_get_priority_max.S b/libc/arch-arm64/syscalls/sched_get_priority_max.S index e80ce3585..c8488898e 100644 --- a/libc/arch-arm64/syscalls/sched_get_priority_max.S +++ b/libc/arch-arm64/syscalls/sched_get_priority_max.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sched_get_priority_max) mov x8, __NR_sched_get_priority_max svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sched_get_priority_max) diff --git a/libc/arch-arm64/syscalls/sched_get_priority_min.S b/libc/arch-arm64/syscalls/sched_get_priority_min.S index 3f5f4870a..74b72a29d 100644 --- a/libc/arch-arm64/syscalls/sched_get_priority_min.S +++ b/libc/arch-arm64/syscalls/sched_get_priority_min.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sched_get_priority_min) mov x8, __NR_sched_get_priority_min svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sched_get_priority_min) diff --git a/libc/arch-arm64/syscalls/sched_getparam.S b/libc/arch-arm64/syscalls/sched_getparam.S index 17568671e..75a32d420 100644 --- a/libc/arch-arm64/syscalls/sched_getparam.S +++ b/libc/arch-arm64/syscalls/sched_getparam.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sched_getparam) mov x8, __NR_sched_getparam svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sched_getparam) diff --git a/libc/arch-arm64/syscalls/sched_getscheduler.S b/libc/arch-arm64/syscalls/sched_getscheduler.S index 8fa145f16..e24baf268 100644 --- a/libc/arch-arm64/syscalls/sched_getscheduler.S +++ b/libc/arch-arm64/syscalls/sched_getscheduler.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sched_getscheduler) mov x8, __NR_sched_getscheduler svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sched_getscheduler) diff --git a/libc/arch-arm64/syscalls/sched_rr_get_interval.S b/libc/arch-arm64/syscalls/sched_rr_get_interval.S index 7ff393c10..2a6936b1b 100644 --- a/libc/arch-arm64/syscalls/sched_rr_get_interval.S +++ b/libc/arch-arm64/syscalls/sched_rr_get_interval.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sched_rr_get_interval) mov x8, __NR_sched_rr_get_interval svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sched_rr_get_interval) diff --git a/libc/arch-arm64/syscalls/sched_setaffinity.S b/libc/arch-arm64/syscalls/sched_setaffinity.S index 287845956..30b58f61f 100644 --- a/libc/arch-arm64/syscalls/sched_setaffinity.S +++ b/libc/arch-arm64/syscalls/sched_setaffinity.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sched_setaffinity) mov x8, __NR_sched_setaffinity svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sched_setaffinity) diff --git a/libc/arch-arm64/syscalls/sched_setparam.S b/libc/arch-arm64/syscalls/sched_setparam.S index 413560655..eaf25bab4 100644 --- a/libc/arch-arm64/syscalls/sched_setparam.S +++ b/libc/arch-arm64/syscalls/sched_setparam.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sched_setparam) mov x8, __NR_sched_setparam svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sched_setparam) diff --git a/libc/arch-arm64/syscalls/sched_setscheduler.S b/libc/arch-arm64/syscalls/sched_setscheduler.S index e8f991ce9..31d53c442 100644 --- a/libc/arch-arm64/syscalls/sched_setscheduler.S +++ b/libc/arch-arm64/syscalls/sched_setscheduler.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sched_setscheduler) mov x8, __NR_sched_setscheduler svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sched_setscheduler) diff --git a/libc/arch-arm64/syscalls/sched_yield.S b/libc/arch-arm64/syscalls/sched_yield.S index cd6a97871..4cfeedaa1 100644 --- a/libc/arch-arm64/syscalls/sched_yield.S +++ b/libc/arch-arm64/syscalls/sched_yield.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sched_yield) mov x8, __NR_sched_yield svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sched_yield) diff --git a/libc/arch-arm64/syscalls/sendfile.S b/libc/arch-arm64/syscalls/sendfile.S index c5792247a..17a0d4657 100644 --- a/libc/arch-arm64/syscalls/sendfile.S +++ b/libc/arch-arm64/syscalls/sendfile.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sendfile) mov x8, __NR_sendfile svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sendfile) diff --git a/libc/arch-arm64/syscalls/sendmmsg.S b/libc/arch-arm64/syscalls/sendmmsg.S index e9ce811be..e91c2461a 100644 --- a/libc/arch-arm64/syscalls/sendmmsg.S +++ b/libc/arch-arm64/syscalls/sendmmsg.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sendmmsg) mov x8, __NR_sendmmsg svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sendmmsg) diff --git a/libc/arch-arm64/syscalls/sendmsg.S b/libc/arch-arm64/syscalls/sendmsg.S index 78c5e6837..a34354360 100644 --- a/libc/arch-arm64/syscalls/sendmsg.S +++ b/libc/arch-arm64/syscalls/sendmsg.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sendmsg) mov x8, __NR_sendmsg svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sendmsg) diff --git a/libc/arch-arm64/syscalls/sendto.S b/libc/arch-arm64/syscalls/sendto.S index a3ef95deb..6a6813e54 100644 --- a/libc/arch-arm64/syscalls/sendto.S +++ b/libc/arch-arm64/syscalls/sendto.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sendto) mov x8, __NR_sendto svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sendto) diff --git a/libc/arch-arm64/syscalls/setfsgid.S b/libc/arch-arm64/syscalls/setfsgid.S index 4d28536e0..1a45df34e 100644 --- a/libc/arch-arm64/syscalls/setfsgid.S +++ b/libc/arch-arm64/syscalls/setfsgid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setfsgid) mov x8, __NR_setfsgid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setfsgid) diff --git a/libc/arch-arm64/syscalls/setfsuid.S b/libc/arch-arm64/syscalls/setfsuid.S index 238bbf87b..cd4efd79e 100644 --- a/libc/arch-arm64/syscalls/setfsuid.S +++ b/libc/arch-arm64/syscalls/setfsuid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setfsuid) mov x8, __NR_setfsuid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setfsuid) diff --git a/libc/arch-arm64/syscalls/setgid.S b/libc/arch-arm64/syscalls/setgid.S index 182ce1faa..c128fb9dc 100644 --- a/libc/arch-arm64/syscalls/setgid.S +++ b/libc/arch-arm64/syscalls/setgid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setgid) mov x8, __NR_setgid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setgid) diff --git a/libc/arch-arm64/syscalls/setgroups.S b/libc/arch-arm64/syscalls/setgroups.S index 2bc5c7fb5..aedabd61d 100644 --- a/libc/arch-arm64/syscalls/setgroups.S +++ b/libc/arch-arm64/syscalls/setgroups.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setgroups) mov x8, __NR_setgroups svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setgroups) diff --git a/libc/arch-arm64/syscalls/setitimer.S b/libc/arch-arm64/syscalls/setitimer.S index 1a5bbb353..7ce861715 100644 --- a/libc/arch-arm64/syscalls/setitimer.S +++ b/libc/arch-arm64/syscalls/setitimer.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setitimer) mov x8, __NR_setitimer svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setitimer) diff --git a/libc/arch-arm64/syscalls/setns.S b/libc/arch-arm64/syscalls/setns.S index 68c32dad2..386e8f48f 100644 --- a/libc/arch-arm64/syscalls/setns.S +++ b/libc/arch-arm64/syscalls/setns.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setns) mov x8, __NR_setns svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setns) diff --git a/libc/arch-arm64/syscalls/setpgid.S b/libc/arch-arm64/syscalls/setpgid.S index 890d35420..458c88ba0 100644 --- a/libc/arch-arm64/syscalls/setpgid.S +++ b/libc/arch-arm64/syscalls/setpgid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setpgid) mov x8, __NR_setpgid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setpgid) diff --git a/libc/arch-arm64/syscalls/setpriority.S b/libc/arch-arm64/syscalls/setpriority.S index 17550ea7e..ed58f2670 100644 --- a/libc/arch-arm64/syscalls/setpriority.S +++ b/libc/arch-arm64/syscalls/setpriority.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setpriority) mov x8, __NR_setpriority svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setpriority) diff --git a/libc/arch-arm64/syscalls/setregid.S b/libc/arch-arm64/syscalls/setregid.S index aa351a887..30d902d6b 100644 --- a/libc/arch-arm64/syscalls/setregid.S +++ b/libc/arch-arm64/syscalls/setregid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setregid) mov x8, __NR_setregid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setregid) diff --git a/libc/arch-arm64/syscalls/setresgid.S b/libc/arch-arm64/syscalls/setresgid.S index 517e59eba..f56e6ce76 100644 --- a/libc/arch-arm64/syscalls/setresgid.S +++ b/libc/arch-arm64/syscalls/setresgid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setresgid) mov x8, __NR_setresgid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setresgid) diff --git a/libc/arch-arm64/syscalls/setresuid.S b/libc/arch-arm64/syscalls/setresuid.S index 6829cef33..d5c5cc6d9 100644 --- a/libc/arch-arm64/syscalls/setresuid.S +++ b/libc/arch-arm64/syscalls/setresuid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setresuid) mov x8, __NR_setresuid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setresuid) diff --git a/libc/arch-arm64/syscalls/setreuid.S b/libc/arch-arm64/syscalls/setreuid.S index af342efad..e76c72ed4 100644 --- a/libc/arch-arm64/syscalls/setreuid.S +++ b/libc/arch-arm64/syscalls/setreuid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setreuid) mov x8, __NR_setreuid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setreuid) diff --git a/libc/arch-arm64/syscalls/setrlimit.S b/libc/arch-arm64/syscalls/setrlimit.S index 4401984fa..6cb6b9898 100644 --- a/libc/arch-arm64/syscalls/setrlimit.S +++ b/libc/arch-arm64/syscalls/setrlimit.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setrlimit) mov x8, __NR_setrlimit svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setrlimit) diff --git a/libc/arch-arm64/syscalls/setsid.S b/libc/arch-arm64/syscalls/setsid.S index 64c76f221..1bb4cc771 100644 --- a/libc/arch-arm64/syscalls/setsid.S +++ b/libc/arch-arm64/syscalls/setsid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setsid) mov x8, __NR_setsid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setsid) diff --git a/libc/arch-arm64/syscalls/setsockopt.S b/libc/arch-arm64/syscalls/setsockopt.S index 51af8474b..14b01367e 100644 --- a/libc/arch-arm64/syscalls/setsockopt.S +++ b/libc/arch-arm64/syscalls/setsockopt.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setsockopt) mov x8, __NR_setsockopt svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setsockopt) diff --git a/libc/arch-arm64/syscalls/settimeofday.S b/libc/arch-arm64/syscalls/settimeofday.S index 357998cd4..4f0a078f6 100644 --- a/libc/arch-arm64/syscalls/settimeofday.S +++ b/libc/arch-arm64/syscalls/settimeofday.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(settimeofday) mov x8, __NR_settimeofday svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(settimeofday) diff --git a/libc/arch-arm64/syscalls/setuid.S b/libc/arch-arm64/syscalls/setuid.S index ad4243487..5500dd627 100644 --- a/libc/arch-arm64/syscalls/setuid.S +++ b/libc/arch-arm64/syscalls/setuid.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setuid) mov x8, __NR_setuid svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setuid) diff --git a/libc/arch-arm64/syscalls/setxattr.S b/libc/arch-arm64/syscalls/setxattr.S index cde2d5f3b..5ba9e3cb4 100644 --- a/libc/arch-arm64/syscalls/setxattr.S +++ b/libc/arch-arm64/syscalls/setxattr.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(setxattr) mov x8, __NR_setxattr svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(setxattr) diff --git a/libc/arch-arm64/syscalls/shutdown.S b/libc/arch-arm64/syscalls/shutdown.S index 48136471a..ab067fafe 100644 --- a/libc/arch-arm64/syscalls/shutdown.S +++ b/libc/arch-arm64/syscalls/shutdown.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(shutdown) mov x8, __NR_shutdown svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(shutdown) diff --git a/libc/arch-arm64/syscalls/sigaltstack.S b/libc/arch-arm64/syscalls/sigaltstack.S index 74f7e50a9..a9cbcafb6 100644 --- a/libc/arch-arm64/syscalls/sigaltstack.S +++ b/libc/arch-arm64/syscalls/sigaltstack.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sigaltstack) mov x8, __NR_sigaltstack svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sigaltstack) diff --git a/libc/arch-arm64/syscalls/socketpair.S b/libc/arch-arm64/syscalls/socketpair.S index ec2a3d257..bd70dac18 100644 --- a/libc/arch-arm64/syscalls/socketpair.S +++ b/libc/arch-arm64/syscalls/socketpair.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(socketpair) mov x8, __NR_socketpair svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(socketpair) diff --git a/libc/arch-arm64/syscalls/splice.S b/libc/arch-arm64/syscalls/splice.S index 30443a861..a5450d908 100644 --- a/libc/arch-arm64/syscalls/splice.S +++ b/libc/arch-arm64/syscalls/splice.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(splice) mov x8, __NR_splice svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(splice) diff --git a/libc/arch-arm64/syscalls/statfs64.S b/libc/arch-arm64/syscalls/statfs64.S index 00b32e79a..ec8c588df 100644 --- a/libc/arch-arm64/syscalls/statfs64.S +++ b/libc/arch-arm64/syscalls/statfs64.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(statfs64) mov x8, __NR_statfs svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(statfs64) diff --git a/libc/arch-arm64/syscalls/swapoff.S b/libc/arch-arm64/syscalls/swapoff.S index 54dabb5a6..0103bd7fa 100644 --- a/libc/arch-arm64/syscalls/swapoff.S +++ b/libc/arch-arm64/syscalls/swapoff.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(swapoff) mov x8, __NR_swapoff svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(swapoff) diff --git a/libc/arch-arm64/syscalls/swapon.S b/libc/arch-arm64/syscalls/swapon.S index 952252f4e..560c96086 100644 --- a/libc/arch-arm64/syscalls/swapon.S +++ b/libc/arch-arm64/syscalls/swapon.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(swapon) mov x8, __NR_swapon svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(swapon) diff --git a/libc/arch-arm64/syscalls/symlinkat.S b/libc/arch-arm64/syscalls/symlinkat.S index 27f9334f6..4a4ea2795 100644 --- a/libc/arch-arm64/syscalls/symlinkat.S +++ b/libc/arch-arm64/syscalls/symlinkat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(symlinkat) mov x8, __NR_symlinkat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(symlinkat) diff --git a/libc/arch-arm64/syscalls/sync.S b/libc/arch-arm64/syscalls/sync.S index 622b028e4..d285d4367 100644 --- a/libc/arch-arm64/syscalls/sync.S +++ b/libc/arch-arm64/syscalls/sync.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sync) mov x8, __NR_sync svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sync) diff --git a/libc/arch-arm64/syscalls/sysinfo.S b/libc/arch-arm64/syscalls/sysinfo.S index 81d8a944a..80a864199 100644 --- a/libc/arch-arm64/syscalls/sysinfo.S +++ b/libc/arch-arm64/syscalls/sysinfo.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(sysinfo) mov x8, __NR_sysinfo svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(sysinfo) diff --git a/libc/arch-arm64/syscalls/tee.S b/libc/arch-arm64/syscalls/tee.S index cb317aad3..d7baa26f4 100644 --- a/libc/arch-arm64/syscalls/tee.S +++ b/libc/arch-arm64/syscalls/tee.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(tee) mov x8, __NR_tee svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(tee) diff --git a/libc/arch-arm64/syscalls/tgkill.S b/libc/arch-arm64/syscalls/tgkill.S index 908811db6..fd9ec3beb 100644 --- a/libc/arch-arm64/syscalls/tgkill.S +++ b/libc/arch-arm64/syscalls/tgkill.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(tgkill) mov x8, __NR_tgkill svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(tgkill) diff --git a/libc/arch-arm64/syscalls/timerfd_create.S b/libc/arch-arm64/syscalls/timerfd_create.S index 5487492f9..ee805fd25 100644 --- a/libc/arch-arm64/syscalls/timerfd_create.S +++ b/libc/arch-arm64/syscalls/timerfd_create.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(timerfd_create) mov x8, __NR_timerfd_create svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(timerfd_create) diff --git a/libc/arch-arm64/syscalls/timerfd_gettime.S b/libc/arch-arm64/syscalls/timerfd_gettime.S index 1c5151f8a..4d5e2f91f 100644 --- a/libc/arch-arm64/syscalls/timerfd_gettime.S +++ b/libc/arch-arm64/syscalls/timerfd_gettime.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(timerfd_gettime) mov x8, __NR_timerfd_gettime svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(timerfd_gettime) diff --git a/libc/arch-arm64/syscalls/timerfd_settime.S b/libc/arch-arm64/syscalls/timerfd_settime.S index edd81facd..e925a0ce9 100644 --- a/libc/arch-arm64/syscalls/timerfd_settime.S +++ b/libc/arch-arm64/syscalls/timerfd_settime.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(timerfd_settime) mov x8, __NR_timerfd_settime svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(timerfd_settime) diff --git a/libc/arch-arm64/syscalls/times.S b/libc/arch-arm64/syscalls/times.S index 554173288..d7b9c74bc 100644 --- a/libc/arch-arm64/syscalls/times.S +++ b/libc/arch-arm64/syscalls/times.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(times) mov x8, __NR_times svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(times) diff --git a/libc/arch-arm64/syscalls/truncate.S b/libc/arch-arm64/syscalls/truncate.S index be5765c43..0e5a33ec5 100644 --- a/libc/arch-arm64/syscalls/truncate.S +++ b/libc/arch-arm64/syscalls/truncate.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(truncate) mov x8, __NR_truncate svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(truncate) diff --git a/libc/arch-arm64/syscalls/umask.S b/libc/arch-arm64/syscalls/umask.S index c605b8f3f..0d71fa69e 100644 --- a/libc/arch-arm64/syscalls/umask.S +++ b/libc/arch-arm64/syscalls/umask.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(umask) mov x8, __NR_umask svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(umask) diff --git a/libc/arch-arm64/syscalls/umount2.S b/libc/arch-arm64/syscalls/umount2.S index 73ed3307d..c25344e64 100644 --- a/libc/arch-arm64/syscalls/umount2.S +++ b/libc/arch-arm64/syscalls/umount2.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(umount2) mov x8, __NR_umount2 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(umount2) diff --git a/libc/arch-arm64/syscalls/uname.S b/libc/arch-arm64/syscalls/uname.S index 4d5219006..dfdcc03e7 100644 --- a/libc/arch-arm64/syscalls/uname.S +++ b/libc/arch-arm64/syscalls/uname.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(uname) mov x8, __NR_uname svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(uname) diff --git a/libc/arch-arm64/syscalls/unlinkat.S b/libc/arch-arm64/syscalls/unlinkat.S index 8fde96e49..b1eba63f1 100644 --- a/libc/arch-arm64/syscalls/unlinkat.S +++ b/libc/arch-arm64/syscalls/unlinkat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(unlinkat) mov x8, __NR_unlinkat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(unlinkat) diff --git a/libc/arch-arm64/syscalls/unshare.S b/libc/arch-arm64/syscalls/unshare.S index ba960e228..74f5663c2 100644 --- a/libc/arch-arm64/syscalls/unshare.S +++ b/libc/arch-arm64/syscalls/unshare.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(unshare) mov x8, __NR_unshare svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(unshare) diff --git a/libc/arch-arm64/syscalls/utimensat.S b/libc/arch-arm64/syscalls/utimensat.S index 9e4b1ca43..b8c6b0456 100644 --- a/libc/arch-arm64/syscalls/utimensat.S +++ b/libc/arch-arm64/syscalls/utimensat.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(utimensat) mov x8, __NR_utimensat svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(utimensat) diff --git a/libc/arch-arm64/syscalls/vmsplice.S b/libc/arch-arm64/syscalls/vmsplice.S index 6a13c5b64..9490efbd9 100644 --- a/libc/arch-arm64/syscalls/vmsplice.S +++ b/libc/arch-arm64/syscalls/vmsplice.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(vmsplice) mov x8, __NR_vmsplice svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(vmsplice) diff --git a/libc/arch-arm64/syscalls/wait4.S b/libc/arch-arm64/syscalls/wait4.S index f2bcd34ec..12973b817 100644 --- a/libc/arch-arm64/syscalls/wait4.S +++ b/libc/arch-arm64/syscalls/wait4.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(wait4) mov x8, __NR_wait4 svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(wait4) diff --git a/libc/arch-arm64/syscalls/write.S b/libc/arch-arm64/syscalls/write.S index 1fedabe72..e8c327079 100644 --- a/libc/arch-arm64/syscalls/write.S +++ b/libc/arch-arm64/syscalls/write.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(write) mov x8, __NR_write svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(write) diff --git a/libc/arch-arm64/syscalls/writev.S b/libc/arch-arm64/syscalls/writev.S index 9942ddb3b..baaffda62 100644 --- a/libc/arch-arm64/syscalls/writev.S +++ b/libc/arch-arm64/syscalls/writev.S @@ -2,15 +2,13 @@ #include - .hidden __set_errno - ENTRY(writev) mov x8, __NR_writev svc #0 cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(writev) diff --git a/libc/arch-mips/bionic/__bionic_clone.S b/libc/arch-mips/bionic/__bionic_clone.S index 4b4498d5e..b216efe4e 100644 --- a/libc/arch-mips/bionic/__bionic_clone.S +++ b/libc/arch-mips/bionic/__bionic_clone.S @@ -66,7 +66,7 @@ ENTRY(__bionic_clone) .L__error_bc: move a0,v0 - la t9,__set_errno + la t9,__set_errno_internal j t9 END(__bionic_clone) .hidden __bionic_clone diff --git a/libc/arch-mips/bionic/syscall.S b/libc/arch-mips/bionic/syscall.S index db477a506..5fed0ac04 100644 --- a/libc/arch-mips/bionic/syscall.S +++ b/libc/arch-mips/bionic/syscall.S @@ -54,7 +54,7 @@ ENTRY(syscall) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/bionic/vfork.S b/libc/arch-mips/bionic/vfork.S index 96de69e20..18496249b 100644 --- a/libc/arch-mips/bionic/vfork.S +++ b/libc/arch-mips/bionic/vfork.S @@ -52,7 +52,7 @@ ENTRY(vfork) j ra nop 1: - la t9, __set_errno + la t9, __set_errno_internal j t9 nop END(vfork) diff --git a/libc/arch-mips/syscalls/__accept4.S b/libc/arch-mips/syscalls/__accept4.S index 2fc8b2af4..72df04f52 100644 --- a/libc/arch-mips/syscalls/__accept4.S +++ b/libc/arch-mips/syscalls/__accept4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__accept4) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__accept4) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__brk.S b/libc/arch-mips/syscalls/__brk.S index 0593b4fc1..8472663c9 100644 --- a/libc/arch-mips/syscalls/__brk.S +++ b/libc/arch-mips/syscalls/__brk.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__brk) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__brk) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__connect.S b/libc/arch-mips/syscalls/__connect.S index 20f60e4a3..38c1b9b1f 100644 --- a/libc/arch-mips/syscalls/__connect.S +++ b/libc/arch-mips/syscalls/__connect.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__connect) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__connect) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__epoll_pwait.S b/libc/arch-mips/syscalls/__epoll_pwait.S index 3e735f18e..3aed9bcd9 100644 --- a/libc/arch-mips/syscalls/__epoll_pwait.S +++ b/libc/arch-mips/syscalls/__epoll_pwait.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__epoll_pwait) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__epoll_pwait) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__exit.S b/libc/arch-mips/syscalls/__exit.S index 40c2f87d4..734980400 100644 --- a/libc/arch-mips/syscalls/__exit.S +++ b/libc/arch-mips/syscalls/__exit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__exit) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__exit) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__fcntl64.S b/libc/arch-mips/syscalls/__fcntl64.S index b541edd37..2734be25a 100644 --- a/libc/arch-mips/syscalls/__fcntl64.S +++ b/libc/arch-mips/syscalls/__fcntl64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__fcntl64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__fcntl64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__fstatfs64.S b/libc/arch-mips/syscalls/__fstatfs64.S index d1d68abd0..e08cf7eb8 100644 --- a/libc/arch-mips/syscalls/__fstatfs64.S +++ b/libc/arch-mips/syscalls/__fstatfs64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__fstatfs64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__fstatfs64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__getcpu.S b/libc/arch-mips/syscalls/__getcpu.S index ab3acca36..262f4405b 100644 --- a/libc/arch-mips/syscalls/__getcpu.S +++ b/libc/arch-mips/syscalls/__getcpu.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getcpu) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__getcpu) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__getcwd.S b/libc/arch-mips/syscalls/__getcwd.S index af1c494b7..ca6ec7c35 100644 --- a/libc/arch-mips/syscalls/__getcwd.S +++ b/libc/arch-mips/syscalls/__getcwd.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getcwd) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__getcwd) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__getdents64.S b/libc/arch-mips/syscalls/__getdents64.S index e88c6df76..fe7ef8639 100644 --- a/libc/arch-mips/syscalls/__getdents64.S +++ b/libc/arch-mips/syscalls/__getdents64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getdents64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__getdents64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__getpid.S b/libc/arch-mips/syscalls/__getpid.S index d20188b94..f5ab0494d 100644 --- a/libc/arch-mips/syscalls/__getpid.S +++ b/libc/arch-mips/syscalls/__getpid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getpid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__getpid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__getpriority.S b/libc/arch-mips/syscalls/__getpriority.S index bc1efb345..ef6235d79 100644 --- a/libc/arch-mips/syscalls/__getpriority.S +++ b/libc/arch-mips/syscalls/__getpriority.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getpriority) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__getpriority) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__ioctl.S b/libc/arch-mips/syscalls/__ioctl.S index 28af834ae..27716e87e 100644 --- a/libc/arch-mips/syscalls/__ioctl.S +++ b/libc/arch-mips/syscalls/__ioctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ioctl) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__ioctl) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__llseek.S b/libc/arch-mips/syscalls/__llseek.S index 81cf45994..e0cb3214d 100644 --- a/libc/arch-mips/syscalls/__llseek.S +++ b/libc/arch-mips/syscalls/__llseek.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__llseek) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__llseek) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__mmap2.S b/libc/arch-mips/syscalls/__mmap2.S index e6022c382..8175b312d 100644 --- a/libc/arch-mips/syscalls/__mmap2.S +++ b/libc/arch-mips/syscalls/__mmap2.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__mmap2) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__mmap2) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__openat.S b/libc/arch-mips/syscalls/__openat.S index 0482b5abe..c0c3cdf94 100644 --- a/libc/arch-mips/syscalls/__openat.S +++ b/libc/arch-mips/syscalls/__openat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__openat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__openat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__ppoll.S b/libc/arch-mips/syscalls/__ppoll.S index 7cd29f68c..75dbbc898 100644 --- a/libc/arch-mips/syscalls/__ppoll.S +++ b/libc/arch-mips/syscalls/__ppoll.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ppoll) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__ppoll) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__pselect6.S b/libc/arch-mips/syscalls/__pselect6.S index b4279b86f..d028156e4 100644 --- a/libc/arch-mips/syscalls/__pselect6.S +++ b/libc/arch-mips/syscalls/__pselect6.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__pselect6) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__pselect6) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__ptrace.S b/libc/arch-mips/syscalls/__ptrace.S index 07dcd8fff..c5d91fbc8 100644 --- a/libc/arch-mips/syscalls/__ptrace.S +++ b/libc/arch-mips/syscalls/__ptrace.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ptrace) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__ptrace) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__reboot.S b/libc/arch-mips/syscalls/__reboot.S index 3a0a70b70..c01f7fbb3 100644 --- a/libc/arch-mips/syscalls/__reboot.S +++ b/libc/arch-mips/syscalls/__reboot.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__reboot) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__reboot) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__rt_sigaction.S b/libc/arch-mips/syscalls/__rt_sigaction.S index 858a241df..7fa37fd2c 100644 --- a/libc/arch-mips/syscalls/__rt_sigaction.S +++ b/libc/arch-mips/syscalls/__rt_sigaction.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigaction) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__rt_sigaction) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__rt_sigpending.S b/libc/arch-mips/syscalls/__rt_sigpending.S index 484da4fe3..b80b311b0 100644 --- a/libc/arch-mips/syscalls/__rt_sigpending.S +++ b/libc/arch-mips/syscalls/__rt_sigpending.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigpending) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__rt_sigpending) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__rt_sigprocmask.S b/libc/arch-mips/syscalls/__rt_sigprocmask.S index 5e61f5273..e2a39ebe8 100644 --- a/libc/arch-mips/syscalls/__rt_sigprocmask.S +++ b/libc/arch-mips/syscalls/__rt_sigprocmask.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigprocmask) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__rt_sigprocmask) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__rt_sigsuspend.S b/libc/arch-mips/syscalls/__rt_sigsuspend.S index d128caa88..e91c53f1f 100644 --- a/libc/arch-mips/syscalls/__rt_sigsuspend.S +++ b/libc/arch-mips/syscalls/__rt_sigsuspend.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigsuspend) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__rt_sigsuspend) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__rt_sigtimedwait.S b/libc/arch-mips/syscalls/__rt_sigtimedwait.S index 7e70660cb..0b4195f09 100644 --- a/libc/arch-mips/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-mips/syscalls/__rt_sigtimedwait.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigtimedwait) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__rt_sigtimedwait) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__sched_getaffinity.S b/libc/arch-mips/syscalls/__sched_getaffinity.S index f83b7baf6..b09f40445 100644 --- a/libc/arch-mips/syscalls/__sched_getaffinity.S +++ b/libc/arch-mips/syscalls/__sched_getaffinity.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__sched_getaffinity) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__sched_getaffinity) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__set_tid_address.S b/libc/arch-mips/syscalls/__set_tid_address.S index 7ec0f635b..8ca071639 100644 --- a/libc/arch-mips/syscalls/__set_tid_address.S +++ b/libc/arch-mips/syscalls/__set_tid_address.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__set_tid_address) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__set_tid_address) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__set_tls.S b/libc/arch-mips/syscalls/__set_tls.S index bb2fa6dfc..1f9eba57d 100644 --- a/libc/arch-mips/syscalls/__set_tls.S +++ b/libc/arch-mips/syscalls/__set_tls.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__set_tls) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__set_tls) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__sigaction.S b/libc/arch-mips/syscalls/__sigaction.S index 03eb58215..0886e95dd 100644 --- a/libc/arch-mips/syscalls/__sigaction.S +++ b/libc/arch-mips/syscalls/__sigaction.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__sigaction) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__sigaction) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__signalfd4.S b/libc/arch-mips/syscalls/__signalfd4.S index 9b191c2a9..8e5717e09 100644 --- a/libc/arch-mips/syscalls/__signalfd4.S +++ b/libc/arch-mips/syscalls/__signalfd4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__signalfd4) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__signalfd4) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__socket.S b/libc/arch-mips/syscalls/__socket.S index 9e9a926df..c93335547 100644 --- a/libc/arch-mips/syscalls/__socket.S +++ b/libc/arch-mips/syscalls/__socket.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__socket) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__socket) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__statfs64.S b/libc/arch-mips/syscalls/__statfs64.S index 5017e96a6..ed4dcdbd1 100644 --- a/libc/arch-mips/syscalls/__statfs64.S +++ b/libc/arch-mips/syscalls/__statfs64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__statfs64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__statfs64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__timer_create.S b/libc/arch-mips/syscalls/__timer_create.S index 81cc8c4e5..ef50749d8 100644 --- a/libc/arch-mips/syscalls/__timer_create.S +++ b/libc/arch-mips/syscalls/__timer_create.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_create) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__timer_create) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__timer_delete.S b/libc/arch-mips/syscalls/__timer_delete.S index fddb703f6..5993acef2 100644 --- a/libc/arch-mips/syscalls/__timer_delete.S +++ b/libc/arch-mips/syscalls/__timer_delete.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_delete) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__timer_delete) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__timer_getoverrun.S b/libc/arch-mips/syscalls/__timer_getoverrun.S index 3a7313dcc..31234e522 100644 --- a/libc/arch-mips/syscalls/__timer_getoverrun.S +++ b/libc/arch-mips/syscalls/__timer_getoverrun.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_getoverrun) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__timer_getoverrun) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__timer_gettime.S b/libc/arch-mips/syscalls/__timer_gettime.S index 7b9bed746..38800d32a 100644 --- a/libc/arch-mips/syscalls/__timer_gettime.S +++ b/libc/arch-mips/syscalls/__timer_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_gettime) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__timer_gettime) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__timer_settime.S b/libc/arch-mips/syscalls/__timer_settime.S index b1198de03..73cea7301 100644 --- a/libc/arch-mips/syscalls/__timer_settime.S +++ b/libc/arch-mips/syscalls/__timer_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_settime) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__timer_settime) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/__waitid.S b/libc/arch-mips/syscalls/__waitid.S index e60da7f95..9d17f8f13 100644 --- a/libc/arch-mips/syscalls/__waitid.S +++ b/libc/arch-mips/syscalls/__waitid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__waitid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(__waitid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/_exit.S b/libc/arch-mips/syscalls/_exit.S index ae1d61f7b..5ac13249f 100644 --- a/libc/arch-mips/syscalls/_exit.S +++ b/libc/arch-mips/syscalls/_exit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(_exit) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(_exit) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/_flush_cache.S b/libc/arch-mips/syscalls/_flush_cache.S index 0074578fd..a4030e9b5 100644 --- a/libc/arch-mips/syscalls/_flush_cache.S +++ b/libc/arch-mips/syscalls/_flush_cache.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(_flush_cache) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(_flush_cache) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/acct.S b/libc/arch-mips/syscalls/acct.S index 29a71198e..e3a5ccdbb 100644 --- a/libc/arch-mips/syscalls/acct.S +++ b/libc/arch-mips/syscalls/acct.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(acct) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(acct) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/bind.S b/libc/arch-mips/syscalls/bind.S index 6d92fd0f3..78fe2bb97 100644 --- a/libc/arch-mips/syscalls/bind.S +++ b/libc/arch-mips/syscalls/bind.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(bind) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(bind) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/capget.S b/libc/arch-mips/syscalls/capget.S index de76fa33f..0cbb626fc 100644 --- a/libc/arch-mips/syscalls/capget.S +++ b/libc/arch-mips/syscalls/capget.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(capget) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(capget) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/capset.S b/libc/arch-mips/syscalls/capset.S index 77fb3a703..e8110800c 100644 --- a/libc/arch-mips/syscalls/capset.S +++ b/libc/arch-mips/syscalls/capset.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(capset) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(capset) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/chdir.S b/libc/arch-mips/syscalls/chdir.S index 2668d6994..82b7a2b0a 100644 --- a/libc/arch-mips/syscalls/chdir.S +++ b/libc/arch-mips/syscalls/chdir.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(chdir) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(chdir) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/chroot.S b/libc/arch-mips/syscalls/chroot.S index d804c4f0c..e6a29fc9d 100644 --- a/libc/arch-mips/syscalls/chroot.S +++ b/libc/arch-mips/syscalls/chroot.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(chroot) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(chroot) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/clock_getres.S b/libc/arch-mips/syscalls/clock_getres.S index 5219b32f9..ac7c5c617 100644 --- a/libc/arch-mips/syscalls/clock_getres.S +++ b/libc/arch-mips/syscalls/clock_getres.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_getres) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(clock_getres) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/clock_gettime.S b/libc/arch-mips/syscalls/clock_gettime.S index 32120b1ab..d227a0666 100644 --- a/libc/arch-mips/syscalls/clock_gettime.S +++ b/libc/arch-mips/syscalls/clock_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_gettime) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(clock_gettime) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/clock_nanosleep.S b/libc/arch-mips/syscalls/clock_nanosleep.S index 01bab5aa8..6002ab4db 100644 --- a/libc/arch-mips/syscalls/clock_nanosleep.S +++ b/libc/arch-mips/syscalls/clock_nanosleep.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_nanosleep) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(clock_nanosleep) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/clock_settime.S b/libc/arch-mips/syscalls/clock_settime.S index 6b642a1c1..193bdc2c6 100644 --- a/libc/arch-mips/syscalls/clock_settime.S +++ b/libc/arch-mips/syscalls/clock_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_settime) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(clock_settime) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/close.S b/libc/arch-mips/syscalls/close.S index 4e3ab6758..231f497d3 100644 --- a/libc/arch-mips/syscalls/close.S +++ b/libc/arch-mips/syscalls/close.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(close) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(close) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/delete_module.S b/libc/arch-mips/syscalls/delete_module.S index 5c849305d..8c01c06d4 100644 --- a/libc/arch-mips/syscalls/delete_module.S +++ b/libc/arch-mips/syscalls/delete_module.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(delete_module) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(delete_module) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/dup.S b/libc/arch-mips/syscalls/dup.S index 696955365..b4dcd70f3 100644 --- a/libc/arch-mips/syscalls/dup.S +++ b/libc/arch-mips/syscalls/dup.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(dup) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(dup) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/dup3.S b/libc/arch-mips/syscalls/dup3.S index 39e403d5c..1d9c23638 100644 --- a/libc/arch-mips/syscalls/dup3.S +++ b/libc/arch-mips/syscalls/dup3.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(dup3) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(dup3) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/epoll_create1.S b/libc/arch-mips/syscalls/epoll_create1.S index 6feb71597..87548790a 100644 --- a/libc/arch-mips/syscalls/epoll_create1.S +++ b/libc/arch-mips/syscalls/epoll_create1.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(epoll_create1) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(epoll_create1) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/epoll_ctl.S b/libc/arch-mips/syscalls/epoll_ctl.S index 4517ea18b..14c920222 100644 --- a/libc/arch-mips/syscalls/epoll_ctl.S +++ b/libc/arch-mips/syscalls/epoll_ctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(epoll_ctl) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(epoll_ctl) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/eventfd.S b/libc/arch-mips/syscalls/eventfd.S index 167a851b2..6494dbc89 100644 --- a/libc/arch-mips/syscalls/eventfd.S +++ b/libc/arch-mips/syscalls/eventfd.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(eventfd) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(eventfd) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/execve.S b/libc/arch-mips/syscalls/execve.S index e6f3af64e..2d20b51b0 100644 --- a/libc/arch-mips/syscalls/execve.S +++ b/libc/arch-mips/syscalls/execve.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(execve) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(execve) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/faccessat.S b/libc/arch-mips/syscalls/faccessat.S index 3bf7717ce..e61610620 100644 --- a/libc/arch-mips/syscalls/faccessat.S +++ b/libc/arch-mips/syscalls/faccessat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(faccessat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(faccessat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fallocate64.S b/libc/arch-mips/syscalls/fallocate64.S index 5395c6fff..5f0551389 100644 --- a/libc/arch-mips/syscalls/fallocate64.S +++ b/libc/arch-mips/syscalls/fallocate64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fallocate64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fallocate64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fchdir.S b/libc/arch-mips/syscalls/fchdir.S index 4a5c1e3c5..d683baa7f 100644 --- a/libc/arch-mips/syscalls/fchdir.S +++ b/libc/arch-mips/syscalls/fchdir.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchdir) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fchdir) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fchmod.S b/libc/arch-mips/syscalls/fchmod.S index 78dc3f70a..2a95cc30d 100644 --- a/libc/arch-mips/syscalls/fchmod.S +++ b/libc/arch-mips/syscalls/fchmod.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchmod) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fchmod) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fchmodat.S b/libc/arch-mips/syscalls/fchmodat.S index ebc3a7449..d9de036dd 100644 --- a/libc/arch-mips/syscalls/fchmodat.S +++ b/libc/arch-mips/syscalls/fchmodat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchmodat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fchmodat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fchown.S b/libc/arch-mips/syscalls/fchown.S index 74956e052..1ac9451a2 100644 --- a/libc/arch-mips/syscalls/fchown.S +++ b/libc/arch-mips/syscalls/fchown.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchown) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fchown) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fchownat.S b/libc/arch-mips/syscalls/fchownat.S index 54d1fde8c..be1a02184 100644 --- a/libc/arch-mips/syscalls/fchownat.S +++ b/libc/arch-mips/syscalls/fchownat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchownat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fchownat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fdatasync.S b/libc/arch-mips/syscalls/fdatasync.S index f2d1b1fe4..24d654102 100644 --- a/libc/arch-mips/syscalls/fdatasync.S +++ b/libc/arch-mips/syscalls/fdatasync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fdatasync) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fdatasync) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fgetxattr.S b/libc/arch-mips/syscalls/fgetxattr.S index 096cd9744..6516feb03 100644 --- a/libc/arch-mips/syscalls/fgetxattr.S +++ b/libc/arch-mips/syscalls/fgetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fgetxattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fgetxattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/flistxattr.S b/libc/arch-mips/syscalls/flistxattr.S index b577e5790..0b715327d 100644 --- a/libc/arch-mips/syscalls/flistxattr.S +++ b/libc/arch-mips/syscalls/flistxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(flistxattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(flistxattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/flock.S b/libc/arch-mips/syscalls/flock.S index 87e9e0409..8d70c9ef0 100644 --- a/libc/arch-mips/syscalls/flock.S +++ b/libc/arch-mips/syscalls/flock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(flock) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(flock) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fremovexattr.S b/libc/arch-mips/syscalls/fremovexattr.S index 8f7e74efc..fba2d6dcd 100644 --- a/libc/arch-mips/syscalls/fremovexattr.S +++ b/libc/arch-mips/syscalls/fremovexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fremovexattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fremovexattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fsetxattr.S b/libc/arch-mips/syscalls/fsetxattr.S index e9a3490ea..663c0df00 100644 --- a/libc/arch-mips/syscalls/fsetxattr.S +++ b/libc/arch-mips/syscalls/fsetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fsetxattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fsetxattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fstat64.S b/libc/arch-mips/syscalls/fstat64.S index c6d2a32ae..525c23c52 100644 --- a/libc/arch-mips/syscalls/fstat64.S +++ b/libc/arch-mips/syscalls/fstat64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fstat64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fstat64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fstatat64.S b/libc/arch-mips/syscalls/fstatat64.S index 2418b0218..f7b8e1d88 100644 --- a/libc/arch-mips/syscalls/fstatat64.S +++ b/libc/arch-mips/syscalls/fstatat64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fstatat64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fstatat64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/fsync.S b/libc/arch-mips/syscalls/fsync.S index c5528dc50..819f0f2c9 100644 --- a/libc/arch-mips/syscalls/fsync.S +++ b/libc/arch-mips/syscalls/fsync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fsync) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(fsync) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/ftruncate.S b/libc/arch-mips/syscalls/ftruncate.S index dfd57a9b4..0589c817a 100644 --- a/libc/arch-mips/syscalls/ftruncate.S +++ b/libc/arch-mips/syscalls/ftruncate.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(ftruncate) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(ftruncate) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/ftruncate64.S b/libc/arch-mips/syscalls/ftruncate64.S index a1df9e8a8..059ff77dd 100644 --- a/libc/arch-mips/syscalls/ftruncate64.S +++ b/libc/arch-mips/syscalls/ftruncate64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(ftruncate64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(ftruncate64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getegid.S b/libc/arch-mips/syscalls/getegid.S index 10f102c9a..8ae2d1e94 100644 --- a/libc/arch-mips/syscalls/getegid.S +++ b/libc/arch-mips/syscalls/getegid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getegid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getegid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/geteuid.S b/libc/arch-mips/syscalls/geteuid.S index bac3b74d4..cf5cf6cb7 100644 --- a/libc/arch-mips/syscalls/geteuid.S +++ b/libc/arch-mips/syscalls/geteuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(geteuid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(geteuid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getgid.S b/libc/arch-mips/syscalls/getgid.S index a1814bbb5..9bd1fc36e 100644 --- a/libc/arch-mips/syscalls/getgid.S +++ b/libc/arch-mips/syscalls/getgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getgid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getgid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getgroups.S b/libc/arch-mips/syscalls/getgroups.S index 51ed5234c..2eda1856f 100644 --- a/libc/arch-mips/syscalls/getgroups.S +++ b/libc/arch-mips/syscalls/getgroups.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getgroups) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getgroups) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getitimer.S b/libc/arch-mips/syscalls/getitimer.S index 1afeee48e..2e382c74a 100644 --- a/libc/arch-mips/syscalls/getitimer.S +++ b/libc/arch-mips/syscalls/getitimer.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getitimer) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getitimer) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getpeername.S b/libc/arch-mips/syscalls/getpeername.S index b6e5f0797..8642798bc 100644 --- a/libc/arch-mips/syscalls/getpeername.S +++ b/libc/arch-mips/syscalls/getpeername.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getpeername) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getpeername) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getpgid.S b/libc/arch-mips/syscalls/getpgid.S index 01c6ec593..562b9ce0c 100644 --- a/libc/arch-mips/syscalls/getpgid.S +++ b/libc/arch-mips/syscalls/getpgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getpgid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getpgid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getppid.S b/libc/arch-mips/syscalls/getppid.S index 9ed04c047..afff0b948 100644 --- a/libc/arch-mips/syscalls/getppid.S +++ b/libc/arch-mips/syscalls/getppid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getppid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getppid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getresgid.S b/libc/arch-mips/syscalls/getresgid.S index a2e16d4b9..248d3f95c 100644 --- a/libc/arch-mips/syscalls/getresgid.S +++ b/libc/arch-mips/syscalls/getresgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getresgid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getresgid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getresuid.S b/libc/arch-mips/syscalls/getresuid.S index ff162e0fc..924b6cdbc 100644 --- a/libc/arch-mips/syscalls/getresuid.S +++ b/libc/arch-mips/syscalls/getresuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getresuid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getresuid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getrlimit.S b/libc/arch-mips/syscalls/getrlimit.S index 1632f4d9e..19570d674 100644 --- a/libc/arch-mips/syscalls/getrlimit.S +++ b/libc/arch-mips/syscalls/getrlimit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getrlimit) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getrlimit) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getrusage.S b/libc/arch-mips/syscalls/getrusage.S index b9c4207d3..75bc8bcf8 100644 --- a/libc/arch-mips/syscalls/getrusage.S +++ b/libc/arch-mips/syscalls/getrusage.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getrusage) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getrusage) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getsid.S b/libc/arch-mips/syscalls/getsid.S index cb56f54da..6436ecd65 100644 --- a/libc/arch-mips/syscalls/getsid.S +++ b/libc/arch-mips/syscalls/getsid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getsid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getsockname.S b/libc/arch-mips/syscalls/getsockname.S index f7bff60e2..ffadd9282 100644 --- a/libc/arch-mips/syscalls/getsockname.S +++ b/libc/arch-mips/syscalls/getsockname.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsockname) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getsockname) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getsockopt.S b/libc/arch-mips/syscalls/getsockopt.S index 1490aa325..6ebe15e4c 100644 --- a/libc/arch-mips/syscalls/getsockopt.S +++ b/libc/arch-mips/syscalls/getsockopt.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsockopt) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getsockopt) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/gettimeofday.S b/libc/arch-mips/syscalls/gettimeofday.S index a72ced64c..672faa3a6 100644 --- a/libc/arch-mips/syscalls/gettimeofday.S +++ b/libc/arch-mips/syscalls/gettimeofday.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(gettimeofday) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(gettimeofday) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getuid.S b/libc/arch-mips/syscalls/getuid.S index 290a7014f..5858632c5 100644 --- a/libc/arch-mips/syscalls/getuid.S +++ b/libc/arch-mips/syscalls/getuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getuid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getuid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/getxattr.S b/libc/arch-mips/syscalls/getxattr.S index 6ed431651..28c7fe651 100644 --- a/libc/arch-mips/syscalls/getxattr.S +++ b/libc/arch-mips/syscalls/getxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getxattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(getxattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/init_module.S b/libc/arch-mips/syscalls/init_module.S index 6caf450e5..989614a7b 100644 --- a/libc/arch-mips/syscalls/init_module.S +++ b/libc/arch-mips/syscalls/init_module.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(init_module) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(init_module) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/inotify_add_watch.S b/libc/arch-mips/syscalls/inotify_add_watch.S index 8464f8f3a..7d3315f41 100644 --- a/libc/arch-mips/syscalls/inotify_add_watch.S +++ b/libc/arch-mips/syscalls/inotify_add_watch.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_add_watch) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(inotify_add_watch) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/inotify_init1.S b/libc/arch-mips/syscalls/inotify_init1.S index b6cb6bc03..e4ec26661 100644 --- a/libc/arch-mips/syscalls/inotify_init1.S +++ b/libc/arch-mips/syscalls/inotify_init1.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_init1) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(inotify_init1) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/inotify_rm_watch.S b/libc/arch-mips/syscalls/inotify_rm_watch.S index 87a396a6f..eec9856bc 100644 --- a/libc/arch-mips/syscalls/inotify_rm_watch.S +++ b/libc/arch-mips/syscalls/inotify_rm_watch.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_rm_watch) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(inotify_rm_watch) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/kill.S b/libc/arch-mips/syscalls/kill.S index 3dda006fb..415da7329 100644 --- a/libc/arch-mips/syscalls/kill.S +++ b/libc/arch-mips/syscalls/kill.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(kill) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(kill) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/klogctl.S b/libc/arch-mips/syscalls/klogctl.S index ae9a445d0..123d8a001 100644 --- a/libc/arch-mips/syscalls/klogctl.S +++ b/libc/arch-mips/syscalls/klogctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(klogctl) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(klogctl) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/lgetxattr.S b/libc/arch-mips/syscalls/lgetxattr.S index 63c5add51..a9916d999 100644 --- a/libc/arch-mips/syscalls/lgetxattr.S +++ b/libc/arch-mips/syscalls/lgetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lgetxattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(lgetxattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/linkat.S b/libc/arch-mips/syscalls/linkat.S index 5bea417f2..a05a99528 100644 --- a/libc/arch-mips/syscalls/linkat.S +++ b/libc/arch-mips/syscalls/linkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(linkat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(linkat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/listen.S b/libc/arch-mips/syscalls/listen.S index 8d945f5ef..7bb2ec8e7 100644 --- a/libc/arch-mips/syscalls/listen.S +++ b/libc/arch-mips/syscalls/listen.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(listen) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(listen) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/listxattr.S b/libc/arch-mips/syscalls/listxattr.S index 260d0899a..c160178d0 100644 --- a/libc/arch-mips/syscalls/listxattr.S +++ b/libc/arch-mips/syscalls/listxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(listxattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(listxattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/llistxattr.S b/libc/arch-mips/syscalls/llistxattr.S index 69474d82d..9bf05b046 100644 --- a/libc/arch-mips/syscalls/llistxattr.S +++ b/libc/arch-mips/syscalls/llistxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(llistxattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(llistxattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/lremovexattr.S b/libc/arch-mips/syscalls/lremovexattr.S index e33f31fd9..fe73ddb8d 100644 --- a/libc/arch-mips/syscalls/lremovexattr.S +++ b/libc/arch-mips/syscalls/lremovexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lremovexattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(lremovexattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/lseek.S b/libc/arch-mips/syscalls/lseek.S index 21abe1c58..6d6b4e522 100644 --- a/libc/arch-mips/syscalls/lseek.S +++ b/libc/arch-mips/syscalls/lseek.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lseek) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(lseek) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/lsetxattr.S b/libc/arch-mips/syscalls/lsetxattr.S index dcd510abe..69ea0a249 100644 --- a/libc/arch-mips/syscalls/lsetxattr.S +++ b/libc/arch-mips/syscalls/lsetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lsetxattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(lsetxattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/madvise.S b/libc/arch-mips/syscalls/madvise.S index 49c007ade..7d67b80ae 100644 --- a/libc/arch-mips/syscalls/madvise.S +++ b/libc/arch-mips/syscalls/madvise.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(madvise) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(madvise) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/mincore.S b/libc/arch-mips/syscalls/mincore.S index 07102a67b..96f5e29d1 100644 --- a/libc/arch-mips/syscalls/mincore.S +++ b/libc/arch-mips/syscalls/mincore.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mincore) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(mincore) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/mkdirat.S b/libc/arch-mips/syscalls/mkdirat.S index 96a2d08a8..55dd97622 100644 --- a/libc/arch-mips/syscalls/mkdirat.S +++ b/libc/arch-mips/syscalls/mkdirat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mkdirat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(mkdirat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/mknodat.S b/libc/arch-mips/syscalls/mknodat.S index a88b9061d..1a03a8e48 100644 --- a/libc/arch-mips/syscalls/mknodat.S +++ b/libc/arch-mips/syscalls/mknodat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mknodat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(mknodat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/mlock.S b/libc/arch-mips/syscalls/mlock.S index eff66b8f9..3cf7c1b60 100644 --- a/libc/arch-mips/syscalls/mlock.S +++ b/libc/arch-mips/syscalls/mlock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mlock) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(mlock) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/mlockall.S b/libc/arch-mips/syscalls/mlockall.S index c31eeafe1..3b90f41c8 100644 --- a/libc/arch-mips/syscalls/mlockall.S +++ b/libc/arch-mips/syscalls/mlockall.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mlockall) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(mlockall) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/mount.S b/libc/arch-mips/syscalls/mount.S index cb1f1d164..fdf299f5c 100644 --- a/libc/arch-mips/syscalls/mount.S +++ b/libc/arch-mips/syscalls/mount.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mount) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(mount) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/mprotect.S b/libc/arch-mips/syscalls/mprotect.S index 4e390eb82..56183107c 100644 --- a/libc/arch-mips/syscalls/mprotect.S +++ b/libc/arch-mips/syscalls/mprotect.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mprotect) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(mprotect) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/mremap.S b/libc/arch-mips/syscalls/mremap.S index 7b9a68a48..7cbb94e7e 100644 --- a/libc/arch-mips/syscalls/mremap.S +++ b/libc/arch-mips/syscalls/mremap.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mremap) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(mremap) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/msync.S b/libc/arch-mips/syscalls/msync.S index 7b19a830b..fb7462da9 100644 --- a/libc/arch-mips/syscalls/msync.S +++ b/libc/arch-mips/syscalls/msync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(msync) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(msync) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/munlock.S b/libc/arch-mips/syscalls/munlock.S index 17dc7199b..6c65c0203 100644 --- a/libc/arch-mips/syscalls/munlock.S +++ b/libc/arch-mips/syscalls/munlock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munlock) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(munlock) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/munlockall.S b/libc/arch-mips/syscalls/munlockall.S index f0dc2d4c4..e30dddcbc 100644 --- a/libc/arch-mips/syscalls/munlockall.S +++ b/libc/arch-mips/syscalls/munlockall.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munlockall) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(munlockall) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/munmap.S b/libc/arch-mips/syscalls/munmap.S index dc3a52459..903edde1e 100644 --- a/libc/arch-mips/syscalls/munmap.S +++ b/libc/arch-mips/syscalls/munmap.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munmap) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(munmap) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/nanosleep.S b/libc/arch-mips/syscalls/nanosleep.S index fa74288b1..8dae88bb9 100644 --- a/libc/arch-mips/syscalls/nanosleep.S +++ b/libc/arch-mips/syscalls/nanosleep.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(nanosleep) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(nanosleep) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/personality.S b/libc/arch-mips/syscalls/personality.S index 467f2ec70..2f51d3902 100644 --- a/libc/arch-mips/syscalls/personality.S +++ b/libc/arch-mips/syscalls/personality.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(personality) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(personality) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/pipe2.S b/libc/arch-mips/syscalls/pipe2.S index c50595686..b06309c87 100644 --- a/libc/arch-mips/syscalls/pipe2.S +++ b/libc/arch-mips/syscalls/pipe2.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pipe2) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(pipe2) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/prctl.S b/libc/arch-mips/syscalls/prctl.S index 60c18be69..71544ee68 100644 --- a/libc/arch-mips/syscalls/prctl.S +++ b/libc/arch-mips/syscalls/prctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(prctl) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(prctl) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/pread64.S b/libc/arch-mips/syscalls/pread64.S index debc55880..9e7248bf3 100644 --- a/libc/arch-mips/syscalls/pread64.S +++ b/libc/arch-mips/syscalls/pread64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pread64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(pread64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/prlimit64.S b/libc/arch-mips/syscalls/prlimit64.S index ce1686f26..ca913df8d 100644 --- a/libc/arch-mips/syscalls/prlimit64.S +++ b/libc/arch-mips/syscalls/prlimit64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(prlimit64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(prlimit64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/pwrite64.S b/libc/arch-mips/syscalls/pwrite64.S index b1ff89b4b..ac206aa9d 100644 --- a/libc/arch-mips/syscalls/pwrite64.S +++ b/libc/arch-mips/syscalls/pwrite64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pwrite64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(pwrite64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/read.S b/libc/arch-mips/syscalls/read.S index d98c9a691..1355b66d2 100644 --- a/libc/arch-mips/syscalls/read.S +++ b/libc/arch-mips/syscalls/read.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(read) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(read) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/readahead.S b/libc/arch-mips/syscalls/readahead.S index 7dd44730d..b28df0877 100644 --- a/libc/arch-mips/syscalls/readahead.S +++ b/libc/arch-mips/syscalls/readahead.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readahead) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(readahead) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/readlinkat.S b/libc/arch-mips/syscalls/readlinkat.S index 99f07a4c3..5cf84a25d 100644 --- a/libc/arch-mips/syscalls/readlinkat.S +++ b/libc/arch-mips/syscalls/readlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readlinkat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(readlinkat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/readv.S b/libc/arch-mips/syscalls/readv.S index 3985c9c6a..57952a0f0 100644 --- a/libc/arch-mips/syscalls/readv.S +++ b/libc/arch-mips/syscalls/readv.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readv) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(readv) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/recvfrom.S b/libc/arch-mips/syscalls/recvfrom.S index afda11e4d..707ba4bf7 100644 --- a/libc/arch-mips/syscalls/recvfrom.S +++ b/libc/arch-mips/syscalls/recvfrom.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvfrom) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(recvfrom) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/recvmmsg.S b/libc/arch-mips/syscalls/recvmmsg.S index 1122c014d..796d0d8ef 100644 --- a/libc/arch-mips/syscalls/recvmmsg.S +++ b/libc/arch-mips/syscalls/recvmmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvmmsg) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(recvmmsg) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/recvmsg.S b/libc/arch-mips/syscalls/recvmsg.S index a64606b32..fdcac3279 100644 --- a/libc/arch-mips/syscalls/recvmsg.S +++ b/libc/arch-mips/syscalls/recvmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvmsg) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(recvmsg) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/removexattr.S b/libc/arch-mips/syscalls/removexattr.S index a35616069..d99e1ae97 100644 --- a/libc/arch-mips/syscalls/removexattr.S +++ b/libc/arch-mips/syscalls/removexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(removexattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(removexattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/renameat.S b/libc/arch-mips/syscalls/renameat.S index 63de839c6..c865d7407 100644 --- a/libc/arch-mips/syscalls/renameat.S +++ b/libc/arch-mips/syscalls/renameat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(renameat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(renameat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sched_get_priority_max.S b/libc/arch-mips/syscalls/sched_get_priority_max.S index ea88c0f27..1c73af6f9 100644 --- a/libc/arch-mips/syscalls/sched_get_priority_max.S +++ b/libc/arch-mips/syscalls/sched_get_priority_max.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_get_priority_max) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sched_get_priority_max) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sched_get_priority_min.S b/libc/arch-mips/syscalls/sched_get_priority_min.S index 032084770..b69b72bcb 100644 --- a/libc/arch-mips/syscalls/sched_get_priority_min.S +++ b/libc/arch-mips/syscalls/sched_get_priority_min.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_get_priority_min) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sched_get_priority_min) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sched_getparam.S b/libc/arch-mips/syscalls/sched_getparam.S index 4be69b331..387257ae1 100644 --- a/libc/arch-mips/syscalls/sched_getparam.S +++ b/libc/arch-mips/syscalls/sched_getparam.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_getparam) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sched_getparam) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sched_getscheduler.S b/libc/arch-mips/syscalls/sched_getscheduler.S index aaf0e9147..9b293db52 100644 --- a/libc/arch-mips/syscalls/sched_getscheduler.S +++ b/libc/arch-mips/syscalls/sched_getscheduler.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_getscheduler) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sched_getscheduler) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sched_rr_get_interval.S b/libc/arch-mips/syscalls/sched_rr_get_interval.S index fcf2bcbb8..3d7b8a8bf 100644 --- a/libc/arch-mips/syscalls/sched_rr_get_interval.S +++ b/libc/arch-mips/syscalls/sched_rr_get_interval.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_rr_get_interval) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sched_rr_get_interval) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sched_setaffinity.S b/libc/arch-mips/syscalls/sched_setaffinity.S index b9394c53d..a0e9f6c0d 100644 --- a/libc/arch-mips/syscalls/sched_setaffinity.S +++ b/libc/arch-mips/syscalls/sched_setaffinity.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setaffinity) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sched_setaffinity) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sched_setparam.S b/libc/arch-mips/syscalls/sched_setparam.S index 90c82fe69..a8a89829a 100644 --- a/libc/arch-mips/syscalls/sched_setparam.S +++ b/libc/arch-mips/syscalls/sched_setparam.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setparam) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sched_setparam) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sched_setscheduler.S b/libc/arch-mips/syscalls/sched_setscheduler.S index 05e4e8b05..a2cd7faeb 100644 --- a/libc/arch-mips/syscalls/sched_setscheduler.S +++ b/libc/arch-mips/syscalls/sched_setscheduler.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setscheduler) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sched_setscheduler) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sched_yield.S b/libc/arch-mips/syscalls/sched_yield.S index 15565802f..295266f8f 100644 --- a/libc/arch-mips/syscalls/sched_yield.S +++ b/libc/arch-mips/syscalls/sched_yield.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_yield) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sched_yield) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sendfile.S b/libc/arch-mips/syscalls/sendfile.S index eb99d0941..5e5e88716 100644 --- a/libc/arch-mips/syscalls/sendfile.S +++ b/libc/arch-mips/syscalls/sendfile.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendfile) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sendfile) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sendfile64.S b/libc/arch-mips/syscalls/sendfile64.S index 1d5c5f095..78f1908e8 100644 --- a/libc/arch-mips/syscalls/sendfile64.S +++ b/libc/arch-mips/syscalls/sendfile64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendfile64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sendfile64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sendmmsg.S b/libc/arch-mips/syscalls/sendmmsg.S index 16f37a1eb..1dc7576eb 100644 --- a/libc/arch-mips/syscalls/sendmmsg.S +++ b/libc/arch-mips/syscalls/sendmmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendmmsg) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sendmmsg) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sendmsg.S b/libc/arch-mips/syscalls/sendmsg.S index 31bb56300..88c653e78 100644 --- a/libc/arch-mips/syscalls/sendmsg.S +++ b/libc/arch-mips/syscalls/sendmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendmsg) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sendmsg) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sendto.S b/libc/arch-mips/syscalls/sendto.S index 2ba696da2..ef3fa9f71 100644 --- a/libc/arch-mips/syscalls/sendto.S +++ b/libc/arch-mips/syscalls/sendto.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendto) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sendto) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setfsgid.S b/libc/arch-mips/syscalls/setfsgid.S index 81d33d0d3..158d2c069 100644 --- a/libc/arch-mips/syscalls/setfsgid.S +++ b/libc/arch-mips/syscalls/setfsgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setfsgid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setfsgid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setfsuid.S b/libc/arch-mips/syscalls/setfsuid.S index 68890777b..f76fd172f 100644 --- a/libc/arch-mips/syscalls/setfsuid.S +++ b/libc/arch-mips/syscalls/setfsuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setfsuid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setfsuid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setgid.S b/libc/arch-mips/syscalls/setgid.S index 83649da37..44127cd17 100644 --- a/libc/arch-mips/syscalls/setgid.S +++ b/libc/arch-mips/syscalls/setgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setgid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setgid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setgroups.S b/libc/arch-mips/syscalls/setgroups.S index b98608c48..be4dc13bf 100644 --- a/libc/arch-mips/syscalls/setgroups.S +++ b/libc/arch-mips/syscalls/setgroups.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setgroups) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setgroups) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setitimer.S b/libc/arch-mips/syscalls/setitimer.S index dc9a8f389..968b4531a 100644 --- a/libc/arch-mips/syscalls/setitimer.S +++ b/libc/arch-mips/syscalls/setitimer.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setitimer) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setitimer) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setns.S b/libc/arch-mips/syscalls/setns.S index 9a4939d03..a9270ec20 100644 --- a/libc/arch-mips/syscalls/setns.S +++ b/libc/arch-mips/syscalls/setns.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setns) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setns) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setpgid.S b/libc/arch-mips/syscalls/setpgid.S index cbc1ff3d0..d2db62fe5 100644 --- a/libc/arch-mips/syscalls/setpgid.S +++ b/libc/arch-mips/syscalls/setpgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setpgid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setpgid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setpriority.S b/libc/arch-mips/syscalls/setpriority.S index 6b8a504da..9b68335fb 100644 --- a/libc/arch-mips/syscalls/setpriority.S +++ b/libc/arch-mips/syscalls/setpriority.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setpriority) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setpriority) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setregid.S b/libc/arch-mips/syscalls/setregid.S index 6388784de..6b7474ca9 100644 --- a/libc/arch-mips/syscalls/setregid.S +++ b/libc/arch-mips/syscalls/setregid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setregid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setregid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setresgid.S b/libc/arch-mips/syscalls/setresgid.S index 76968a8c9..223a0d094 100644 --- a/libc/arch-mips/syscalls/setresgid.S +++ b/libc/arch-mips/syscalls/setresgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setresgid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setresgid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setresuid.S b/libc/arch-mips/syscalls/setresuid.S index fae15f802..1f99682dc 100644 --- a/libc/arch-mips/syscalls/setresuid.S +++ b/libc/arch-mips/syscalls/setresuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setresuid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setresuid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setreuid.S b/libc/arch-mips/syscalls/setreuid.S index 8350cb718..fa9c3d270 100644 --- a/libc/arch-mips/syscalls/setreuid.S +++ b/libc/arch-mips/syscalls/setreuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setreuid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setreuid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setrlimit.S b/libc/arch-mips/syscalls/setrlimit.S index d708c2d60..016e24c2d 100644 --- a/libc/arch-mips/syscalls/setrlimit.S +++ b/libc/arch-mips/syscalls/setrlimit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setrlimit) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setrlimit) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setsid.S b/libc/arch-mips/syscalls/setsid.S index cb5838d30..9f3cb4809 100644 --- a/libc/arch-mips/syscalls/setsid.S +++ b/libc/arch-mips/syscalls/setsid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setsid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setsid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setsockopt.S b/libc/arch-mips/syscalls/setsockopt.S index da348f112..b2368a15c 100644 --- a/libc/arch-mips/syscalls/setsockopt.S +++ b/libc/arch-mips/syscalls/setsockopt.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setsockopt) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setsockopt) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/settimeofday.S b/libc/arch-mips/syscalls/settimeofday.S index cd52b406c..e3a5a0680 100644 --- a/libc/arch-mips/syscalls/settimeofday.S +++ b/libc/arch-mips/syscalls/settimeofday.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(settimeofday) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(settimeofday) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setuid.S b/libc/arch-mips/syscalls/setuid.S index a80ec5cf0..ff3da0a44 100644 --- a/libc/arch-mips/syscalls/setuid.S +++ b/libc/arch-mips/syscalls/setuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setuid) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setuid) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/setxattr.S b/libc/arch-mips/syscalls/setxattr.S index df7bcdb9d..5b3a24162 100644 --- a/libc/arch-mips/syscalls/setxattr.S +++ b/libc/arch-mips/syscalls/setxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setxattr) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(setxattr) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/shutdown.S b/libc/arch-mips/syscalls/shutdown.S index 71e636661..5db046f31 100644 --- a/libc/arch-mips/syscalls/shutdown.S +++ b/libc/arch-mips/syscalls/shutdown.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(shutdown) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(shutdown) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sigaltstack.S b/libc/arch-mips/syscalls/sigaltstack.S index b52c60aa8..f5437592b 100644 --- a/libc/arch-mips/syscalls/sigaltstack.S +++ b/libc/arch-mips/syscalls/sigaltstack.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sigaltstack) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sigaltstack) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/socketpair.S b/libc/arch-mips/syscalls/socketpair.S index 47223e14e..7f85da362 100644 --- a/libc/arch-mips/syscalls/socketpair.S +++ b/libc/arch-mips/syscalls/socketpair.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(socketpair) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(socketpair) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/splice.S b/libc/arch-mips/syscalls/splice.S index 611a06292..a55b7e8d7 100644 --- a/libc/arch-mips/syscalls/splice.S +++ b/libc/arch-mips/syscalls/splice.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(splice) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(splice) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/swapoff.S b/libc/arch-mips/syscalls/swapoff.S index 8b570688d..ce782d084 100644 --- a/libc/arch-mips/syscalls/swapoff.S +++ b/libc/arch-mips/syscalls/swapoff.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(swapoff) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(swapoff) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/swapon.S b/libc/arch-mips/syscalls/swapon.S index ef3a53754..127c3a820 100644 --- a/libc/arch-mips/syscalls/swapon.S +++ b/libc/arch-mips/syscalls/swapon.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(swapon) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(swapon) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/symlinkat.S b/libc/arch-mips/syscalls/symlinkat.S index 65971a973..b0690a45b 100644 --- a/libc/arch-mips/syscalls/symlinkat.S +++ b/libc/arch-mips/syscalls/symlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(symlinkat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(symlinkat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sync.S b/libc/arch-mips/syscalls/sync.S index d62ae768b..8858e7480 100644 --- a/libc/arch-mips/syscalls/sync.S +++ b/libc/arch-mips/syscalls/sync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sync) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sync) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/sysinfo.S b/libc/arch-mips/syscalls/sysinfo.S index 600e086ce..beefc0e6e 100644 --- a/libc/arch-mips/syscalls/sysinfo.S +++ b/libc/arch-mips/syscalls/sysinfo.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sysinfo) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(sysinfo) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/tee.S b/libc/arch-mips/syscalls/tee.S index 90ec91180..1115907d6 100644 --- a/libc/arch-mips/syscalls/tee.S +++ b/libc/arch-mips/syscalls/tee.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(tee) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(tee) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/tgkill.S b/libc/arch-mips/syscalls/tgkill.S index 39a148b4f..bea211d8f 100644 --- a/libc/arch-mips/syscalls/tgkill.S +++ b/libc/arch-mips/syscalls/tgkill.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(tgkill) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(tgkill) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/timerfd_create.S b/libc/arch-mips/syscalls/timerfd_create.S index b50903a4d..116c6280b 100644 --- a/libc/arch-mips/syscalls/timerfd_create.S +++ b/libc/arch-mips/syscalls/timerfd_create.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_create) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(timerfd_create) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/timerfd_gettime.S b/libc/arch-mips/syscalls/timerfd_gettime.S index 97d304544..df7138cd3 100644 --- a/libc/arch-mips/syscalls/timerfd_gettime.S +++ b/libc/arch-mips/syscalls/timerfd_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_gettime) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(timerfd_gettime) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/timerfd_settime.S b/libc/arch-mips/syscalls/timerfd_settime.S index 1e56f86fb..2bfadb9c9 100644 --- a/libc/arch-mips/syscalls/timerfd_settime.S +++ b/libc/arch-mips/syscalls/timerfd_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_settime) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(timerfd_settime) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/times.S b/libc/arch-mips/syscalls/times.S index 60904d1cd..90ce97f58 100644 --- a/libc/arch-mips/syscalls/times.S +++ b/libc/arch-mips/syscalls/times.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(times) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(times) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/truncate.S b/libc/arch-mips/syscalls/truncate.S index ec7bc4989..6800705d6 100644 --- a/libc/arch-mips/syscalls/truncate.S +++ b/libc/arch-mips/syscalls/truncate.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(truncate) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(truncate) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/truncate64.S b/libc/arch-mips/syscalls/truncate64.S index b6a0234ce..870e735b6 100644 --- a/libc/arch-mips/syscalls/truncate64.S +++ b/libc/arch-mips/syscalls/truncate64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(truncate64) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(truncate64) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/umask.S b/libc/arch-mips/syscalls/umask.S index 8f66e7703..ccf42921f 100644 --- a/libc/arch-mips/syscalls/umask.S +++ b/libc/arch-mips/syscalls/umask.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(umask) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(umask) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/umount2.S b/libc/arch-mips/syscalls/umount2.S index 58e31f3ab..65a7129bc 100644 --- a/libc/arch-mips/syscalls/umount2.S +++ b/libc/arch-mips/syscalls/umount2.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(umount2) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(umount2) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/uname.S b/libc/arch-mips/syscalls/uname.S index 401d139e8..f540b3ac2 100644 --- a/libc/arch-mips/syscalls/uname.S +++ b/libc/arch-mips/syscalls/uname.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(uname) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(uname) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/unlinkat.S b/libc/arch-mips/syscalls/unlinkat.S index b6e849d45..001f9cf6d 100644 --- a/libc/arch-mips/syscalls/unlinkat.S +++ b/libc/arch-mips/syscalls/unlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(unlinkat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(unlinkat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/unshare.S b/libc/arch-mips/syscalls/unshare.S index 526283208..13ca45284 100644 --- a/libc/arch-mips/syscalls/unshare.S +++ b/libc/arch-mips/syscalls/unshare.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(unshare) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(unshare) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/utimensat.S b/libc/arch-mips/syscalls/utimensat.S index 9ecb5c018..14e5a10b6 100644 --- a/libc/arch-mips/syscalls/utimensat.S +++ b/libc/arch-mips/syscalls/utimensat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(utimensat) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(utimensat) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/vmsplice.S b/libc/arch-mips/syscalls/vmsplice.S index 5ad23a6e9..0191f53a4 100644 --- a/libc/arch-mips/syscalls/vmsplice.S +++ b/libc/arch-mips/syscalls/vmsplice.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(vmsplice) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(vmsplice) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/wait4.S b/libc/arch-mips/syscalls/wait4.S index 8f8d8795d..8a12533d1 100644 --- a/libc/arch-mips/syscalls/wait4.S +++ b/libc/arch-mips/syscalls/wait4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(wait4) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(wait4) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/write.S b/libc/arch-mips/syscalls/write.S index 3e37919e5..62dc36fe1 100644 --- a/libc/arch-mips/syscalls/write.S +++ b/libc/arch-mips/syscalls/write.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(write) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(write) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips/syscalls/writev.S b/libc/arch-mips/syscalls/writev.S index 72ea2f2c2..d8d661659 100644 --- a/libc/arch-mips/syscalls/writev.S +++ b/libc/arch-mips/syscalls/writev.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(writev) .set noreorder .cpload t9 @@ -14,7 +12,7 @@ ENTRY(writev) j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder diff --git a/libc/arch-mips64/bionic/__bionic_clone.S b/libc/arch-mips64/bionic/__bionic_clone.S index 4f053f99a..0d266ee9a 100644 --- a/libc/arch-mips64/bionic/__bionic_clone.S +++ b/libc/arch-mips64/bionic/__bionic_clone.S @@ -93,7 +93,7 @@ LEAF(__bionic_clone, FRAMESZ) j t9 .L__error_bc: - LA t9,__set_errno + LA t9,__set_errno_internal RESTORE_GP64 PTR_ADDU sp,FRAMESZ j t9 diff --git a/libc/arch-mips64/bionic/syscall.S b/libc/arch-mips64/bionic/syscall.S index c4fd00995..924741df1 100644 --- a/libc/arch-mips64/bionic/syscall.S +++ b/libc/arch-mips64/bionic/syscall.S @@ -61,7 +61,7 @@ LEAF(syscall,FRAMESZ) PTR_ADDU sp, FRAMESZ j ra 1: - LA t9,__set_errno + LA t9,__set_errno_internal RESTORE_GP64 PTR_ADDU sp, FRAMESZ j t9 diff --git a/libc/arch-mips64/bionic/vfork.S b/libc/arch-mips64/bionic/vfork.S index 911a264f2..d180a8cf2 100644 --- a/libc/arch-mips64/bionic/vfork.S +++ b/libc/arch-mips64/bionic/vfork.S @@ -65,7 +65,7 @@ LEAF(vfork,FRAMESZ) RESTORE_GP64 j ra 1: - LA t9,__set_errno + LA t9,__set_errno_internal RESTORE_GP64 j t9 END(vfork) diff --git a/libc/arch-mips64/syscalls/__accept4.S b/libc/arch-mips64/syscalls/__accept4.S index 0891d7f11..ed9b6c7b2 100644 --- a/libc/arch-mips64/syscalls/__accept4.S +++ b/libc/arch-mips64/syscalls/__accept4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__accept4) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__accept4) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__brk.S b/libc/arch-mips64/syscalls/__brk.S index 86f390c54..e1f89c7a0 100644 --- a/libc/arch-mips64/syscalls/__brk.S +++ b/libc/arch-mips64/syscalls/__brk.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__brk) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__brk) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__connect.S b/libc/arch-mips64/syscalls/__connect.S index 2efbb2a88..8c44464e6 100644 --- a/libc/arch-mips64/syscalls/__connect.S +++ b/libc/arch-mips64/syscalls/__connect.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__connect) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__connect) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__epoll_pwait.S b/libc/arch-mips64/syscalls/__epoll_pwait.S index 430d9bbb0..5dfb380cf 100644 --- a/libc/arch-mips64/syscalls/__epoll_pwait.S +++ b/libc/arch-mips64/syscalls/__epoll_pwait.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__epoll_pwait) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__epoll_pwait) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__exit.S b/libc/arch-mips64/syscalls/__exit.S index ebee0d158..2d5e03d64 100644 --- a/libc/arch-mips64/syscalls/__exit.S +++ b/libc/arch-mips64/syscalls/__exit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__exit) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__exit) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__getcpu.S b/libc/arch-mips64/syscalls/__getcpu.S index 34a8acb5c..a16c21e96 100644 --- a/libc/arch-mips64/syscalls/__getcpu.S +++ b/libc/arch-mips64/syscalls/__getcpu.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getcpu) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__getcpu) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__getcwd.S b/libc/arch-mips64/syscalls/__getcwd.S index e7a09a6b2..53eeb68a9 100644 --- a/libc/arch-mips64/syscalls/__getcwd.S +++ b/libc/arch-mips64/syscalls/__getcwd.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getcwd) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__getcwd) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__getdents64.S b/libc/arch-mips64/syscalls/__getdents64.S index dc51e7282..3720b8e9a 100644 --- a/libc/arch-mips64/syscalls/__getdents64.S +++ b/libc/arch-mips64/syscalls/__getdents64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getdents64) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__getdents64) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__getpid.S b/libc/arch-mips64/syscalls/__getpid.S index 86b407180..6d5d92685 100644 --- a/libc/arch-mips64/syscalls/__getpid.S +++ b/libc/arch-mips64/syscalls/__getpid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getpid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__getpid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__getpriority.S b/libc/arch-mips64/syscalls/__getpriority.S index f0c7267bb..19327abad 100644 --- a/libc/arch-mips64/syscalls/__getpriority.S +++ b/libc/arch-mips64/syscalls/__getpriority.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getpriority) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__getpriority) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__ioctl.S b/libc/arch-mips64/syscalls/__ioctl.S index 1f94075db..7fad0d19e 100644 --- a/libc/arch-mips64/syscalls/__ioctl.S +++ b/libc/arch-mips64/syscalls/__ioctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ioctl) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__ioctl) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__openat.S b/libc/arch-mips64/syscalls/__openat.S index 6cc56daeb..d3ac13aec 100644 --- a/libc/arch-mips64/syscalls/__openat.S +++ b/libc/arch-mips64/syscalls/__openat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__openat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__openat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__ppoll.S b/libc/arch-mips64/syscalls/__ppoll.S index ce3a5513e..4e6fb8a4a 100644 --- a/libc/arch-mips64/syscalls/__ppoll.S +++ b/libc/arch-mips64/syscalls/__ppoll.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ppoll) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__ppoll) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__pselect6.S b/libc/arch-mips64/syscalls/__pselect6.S index dbfe79f04..6d49d1ce5 100644 --- a/libc/arch-mips64/syscalls/__pselect6.S +++ b/libc/arch-mips64/syscalls/__pselect6.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__pselect6) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__pselect6) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__ptrace.S b/libc/arch-mips64/syscalls/__ptrace.S index e26217fc1..5a3ce16dc 100644 --- a/libc/arch-mips64/syscalls/__ptrace.S +++ b/libc/arch-mips64/syscalls/__ptrace.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ptrace) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__ptrace) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__reboot.S b/libc/arch-mips64/syscalls/__reboot.S index a4f4e71ff..587310dbe 100644 --- a/libc/arch-mips64/syscalls/__reboot.S +++ b/libc/arch-mips64/syscalls/__reboot.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__reboot) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__reboot) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__rt_sigaction.S b/libc/arch-mips64/syscalls/__rt_sigaction.S index 10f359860..7dd3cae0a 100644 --- a/libc/arch-mips64/syscalls/__rt_sigaction.S +++ b/libc/arch-mips64/syscalls/__rt_sigaction.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigaction) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__rt_sigaction) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__rt_sigpending.S b/libc/arch-mips64/syscalls/__rt_sigpending.S index 7855cca09..68ae39a4a 100644 --- a/libc/arch-mips64/syscalls/__rt_sigpending.S +++ b/libc/arch-mips64/syscalls/__rt_sigpending.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigpending) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__rt_sigpending) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__rt_sigprocmask.S b/libc/arch-mips64/syscalls/__rt_sigprocmask.S index f1ba2e934..54620e9bb 100644 --- a/libc/arch-mips64/syscalls/__rt_sigprocmask.S +++ b/libc/arch-mips64/syscalls/__rt_sigprocmask.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigprocmask) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__rt_sigprocmask) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__rt_sigsuspend.S b/libc/arch-mips64/syscalls/__rt_sigsuspend.S index 50ebf5e22..ea15defa8 100644 --- a/libc/arch-mips64/syscalls/__rt_sigsuspend.S +++ b/libc/arch-mips64/syscalls/__rt_sigsuspend.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigsuspend) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__rt_sigsuspend) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__rt_sigtimedwait.S b/libc/arch-mips64/syscalls/__rt_sigtimedwait.S index 304d049d8..177f17c98 100644 --- a/libc/arch-mips64/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-mips64/syscalls/__rt_sigtimedwait.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigtimedwait) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__rt_sigtimedwait) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__sched_getaffinity.S b/libc/arch-mips64/syscalls/__sched_getaffinity.S index cf590c37f..208170610 100644 --- a/libc/arch-mips64/syscalls/__sched_getaffinity.S +++ b/libc/arch-mips64/syscalls/__sched_getaffinity.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__sched_getaffinity) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__sched_getaffinity) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__set_tid_address.S b/libc/arch-mips64/syscalls/__set_tid_address.S index d08aa7b7e..cd966dd60 100644 --- a/libc/arch-mips64/syscalls/__set_tid_address.S +++ b/libc/arch-mips64/syscalls/__set_tid_address.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__set_tid_address) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__set_tid_address) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__set_tls.S b/libc/arch-mips64/syscalls/__set_tls.S index 430c5fbf2..cc981505f 100644 --- a/libc/arch-mips64/syscalls/__set_tls.S +++ b/libc/arch-mips64/syscalls/__set_tls.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__set_tls) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__set_tls) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__signalfd4.S b/libc/arch-mips64/syscalls/__signalfd4.S index 020013896..ea6eef1bd 100644 --- a/libc/arch-mips64/syscalls/__signalfd4.S +++ b/libc/arch-mips64/syscalls/__signalfd4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__signalfd4) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__signalfd4) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__socket.S b/libc/arch-mips64/syscalls/__socket.S index ac7586ab8..a49935983 100644 --- a/libc/arch-mips64/syscalls/__socket.S +++ b/libc/arch-mips64/syscalls/__socket.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__socket) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__socket) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__timer_create.S b/libc/arch-mips64/syscalls/__timer_create.S index 518207dbe..c66d8f906 100644 --- a/libc/arch-mips64/syscalls/__timer_create.S +++ b/libc/arch-mips64/syscalls/__timer_create.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_create) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__timer_create) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__timer_delete.S b/libc/arch-mips64/syscalls/__timer_delete.S index 4db1c8526..45cf5e875 100644 --- a/libc/arch-mips64/syscalls/__timer_delete.S +++ b/libc/arch-mips64/syscalls/__timer_delete.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_delete) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__timer_delete) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__timer_getoverrun.S b/libc/arch-mips64/syscalls/__timer_getoverrun.S index c5aa40f60..8a731606c 100644 --- a/libc/arch-mips64/syscalls/__timer_getoverrun.S +++ b/libc/arch-mips64/syscalls/__timer_getoverrun.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_getoverrun) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__timer_getoverrun) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__timer_gettime.S b/libc/arch-mips64/syscalls/__timer_gettime.S index 8bebdd82d..32ee5bfec 100644 --- a/libc/arch-mips64/syscalls/__timer_gettime.S +++ b/libc/arch-mips64/syscalls/__timer_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_gettime) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__timer_gettime) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__timer_settime.S b/libc/arch-mips64/syscalls/__timer_settime.S index 536c816d9..59764d869 100644 --- a/libc/arch-mips64/syscalls/__timer_settime.S +++ b/libc/arch-mips64/syscalls/__timer_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_settime) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__timer_settime) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/__waitid.S b/libc/arch-mips64/syscalls/__waitid.S index 28b99bca1..5ee090d2b 100644 --- a/libc/arch-mips64/syscalls/__waitid.S +++ b/libc/arch-mips64/syscalls/__waitid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__waitid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(__waitid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/_exit.S b/libc/arch-mips64/syscalls/_exit.S index 370960e82..da5a2f7d1 100644 --- a/libc/arch-mips64/syscalls/_exit.S +++ b/libc/arch-mips64/syscalls/_exit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(_exit) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(_exit) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/_flush_cache.S b/libc/arch-mips64/syscalls/_flush_cache.S index 997ccecb0..a9e484268 100644 --- a/libc/arch-mips64/syscalls/_flush_cache.S +++ b/libc/arch-mips64/syscalls/_flush_cache.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(_flush_cache) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(_flush_cache) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/acct.S b/libc/arch-mips64/syscalls/acct.S index 70bdd3ec0..ff728dcf3 100644 --- a/libc/arch-mips64/syscalls/acct.S +++ b/libc/arch-mips64/syscalls/acct.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(acct) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(acct) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/bind.S b/libc/arch-mips64/syscalls/bind.S index fab9b4243..9c2b5b8aa 100644 --- a/libc/arch-mips64/syscalls/bind.S +++ b/libc/arch-mips64/syscalls/bind.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(bind) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(bind) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/capget.S b/libc/arch-mips64/syscalls/capget.S index 6c1a13cc2..9d054385a 100644 --- a/libc/arch-mips64/syscalls/capget.S +++ b/libc/arch-mips64/syscalls/capget.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(capget) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(capget) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/capset.S b/libc/arch-mips64/syscalls/capset.S index da8e9e6dc..e947028ad 100644 --- a/libc/arch-mips64/syscalls/capset.S +++ b/libc/arch-mips64/syscalls/capset.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(capset) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(capset) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/chdir.S b/libc/arch-mips64/syscalls/chdir.S index 37f8f6923..14b22c97a 100644 --- a/libc/arch-mips64/syscalls/chdir.S +++ b/libc/arch-mips64/syscalls/chdir.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(chdir) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(chdir) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/chroot.S b/libc/arch-mips64/syscalls/chroot.S index 7dced37e5..e805f51d4 100644 --- a/libc/arch-mips64/syscalls/chroot.S +++ b/libc/arch-mips64/syscalls/chroot.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(chroot) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(chroot) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/clock_getres.S b/libc/arch-mips64/syscalls/clock_getres.S index 72ad1461a..41003a0a8 100644 --- a/libc/arch-mips64/syscalls/clock_getres.S +++ b/libc/arch-mips64/syscalls/clock_getres.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_getres) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(clock_getres) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/clock_gettime.S b/libc/arch-mips64/syscalls/clock_gettime.S index 431e6671f..08135607e 100644 --- a/libc/arch-mips64/syscalls/clock_gettime.S +++ b/libc/arch-mips64/syscalls/clock_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_gettime) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(clock_gettime) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/clock_nanosleep.S b/libc/arch-mips64/syscalls/clock_nanosleep.S index c0db78118..c958a10a2 100644 --- a/libc/arch-mips64/syscalls/clock_nanosleep.S +++ b/libc/arch-mips64/syscalls/clock_nanosleep.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_nanosleep) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(clock_nanosleep) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/clock_settime.S b/libc/arch-mips64/syscalls/clock_settime.S index c9a4a7950..77b6ae412 100644 --- a/libc/arch-mips64/syscalls/clock_settime.S +++ b/libc/arch-mips64/syscalls/clock_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_settime) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(clock_settime) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/close.S b/libc/arch-mips64/syscalls/close.S index ff093e449..5e237dd42 100644 --- a/libc/arch-mips64/syscalls/close.S +++ b/libc/arch-mips64/syscalls/close.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(close) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(close) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/delete_module.S b/libc/arch-mips64/syscalls/delete_module.S index 86c64d614..8396537d4 100644 --- a/libc/arch-mips64/syscalls/delete_module.S +++ b/libc/arch-mips64/syscalls/delete_module.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(delete_module) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(delete_module) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/dup.S b/libc/arch-mips64/syscalls/dup.S index 23aa5c01f..d1ca5e73b 100644 --- a/libc/arch-mips64/syscalls/dup.S +++ b/libc/arch-mips64/syscalls/dup.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(dup) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(dup) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/dup3.S b/libc/arch-mips64/syscalls/dup3.S index a5392dcb1..5601f3191 100644 --- a/libc/arch-mips64/syscalls/dup3.S +++ b/libc/arch-mips64/syscalls/dup3.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(dup3) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(dup3) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/epoll_create1.S b/libc/arch-mips64/syscalls/epoll_create1.S index c3219d4bd..11f1ceb05 100644 --- a/libc/arch-mips64/syscalls/epoll_create1.S +++ b/libc/arch-mips64/syscalls/epoll_create1.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(epoll_create1) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(epoll_create1) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/epoll_ctl.S b/libc/arch-mips64/syscalls/epoll_ctl.S index 9b740d02a..9eba605a7 100644 --- a/libc/arch-mips64/syscalls/epoll_ctl.S +++ b/libc/arch-mips64/syscalls/epoll_ctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(epoll_ctl) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(epoll_ctl) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/eventfd.S b/libc/arch-mips64/syscalls/eventfd.S index ea3a2c687..5cd63e40c 100644 --- a/libc/arch-mips64/syscalls/eventfd.S +++ b/libc/arch-mips64/syscalls/eventfd.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(eventfd) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(eventfd) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/execve.S b/libc/arch-mips64/syscalls/execve.S index af2c6d045..bcd5d6017 100644 --- a/libc/arch-mips64/syscalls/execve.S +++ b/libc/arch-mips64/syscalls/execve.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(execve) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(execve) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/faccessat.S b/libc/arch-mips64/syscalls/faccessat.S index c8ee9e5bc..18bb80062 100644 --- a/libc/arch-mips64/syscalls/faccessat.S +++ b/libc/arch-mips64/syscalls/faccessat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(faccessat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(faccessat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fallocate.S b/libc/arch-mips64/syscalls/fallocate.S index 9e7c89e04..c1ef0ed93 100644 --- a/libc/arch-mips64/syscalls/fallocate.S +++ b/libc/arch-mips64/syscalls/fallocate.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fallocate) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fallocate) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fchdir.S b/libc/arch-mips64/syscalls/fchdir.S index 780a8a245..e05625cd9 100644 --- a/libc/arch-mips64/syscalls/fchdir.S +++ b/libc/arch-mips64/syscalls/fchdir.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchdir) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fchdir) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fchmod.S b/libc/arch-mips64/syscalls/fchmod.S index b9e7cab54..a877b781f 100644 --- a/libc/arch-mips64/syscalls/fchmod.S +++ b/libc/arch-mips64/syscalls/fchmod.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchmod) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fchmod) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fchmodat.S b/libc/arch-mips64/syscalls/fchmodat.S index ff04c8c3c..151492aa7 100644 --- a/libc/arch-mips64/syscalls/fchmodat.S +++ b/libc/arch-mips64/syscalls/fchmodat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchmodat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fchmodat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fchown.S b/libc/arch-mips64/syscalls/fchown.S index 97bd20883..5dc33c057 100644 --- a/libc/arch-mips64/syscalls/fchown.S +++ b/libc/arch-mips64/syscalls/fchown.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchown) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fchown) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fchownat.S b/libc/arch-mips64/syscalls/fchownat.S index 0e5635a07..f4cefe0fd 100644 --- a/libc/arch-mips64/syscalls/fchownat.S +++ b/libc/arch-mips64/syscalls/fchownat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchownat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fchownat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fcntl.S b/libc/arch-mips64/syscalls/fcntl.S index 325d9fd6a..dabc65b9e 100644 --- a/libc/arch-mips64/syscalls/fcntl.S +++ b/libc/arch-mips64/syscalls/fcntl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fcntl) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fcntl) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fdatasync.S b/libc/arch-mips64/syscalls/fdatasync.S index 8a714c31d..52be110bb 100644 --- a/libc/arch-mips64/syscalls/fdatasync.S +++ b/libc/arch-mips64/syscalls/fdatasync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fdatasync) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fdatasync) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fgetxattr.S b/libc/arch-mips64/syscalls/fgetxattr.S index 87a21ce01..44c248a38 100644 --- a/libc/arch-mips64/syscalls/fgetxattr.S +++ b/libc/arch-mips64/syscalls/fgetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fgetxattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fgetxattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/flistxattr.S b/libc/arch-mips64/syscalls/flistxattr.S index b430931c3..1d5b1b028 100644 --- a/libc/arch-mips64/syscalls/flistxattr.S +++ b/libc/arch-mips64/syscalls/flistxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(flistxattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(flistxattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/flock.S b/libc/arch-mips64/syscalls/flock.S index bc4c83589..d74a5db84 100644 --- a/libc/arch-mips64/syscalls/flock.S +++ b/libc/arch-mips64/syscalls/flock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(flock) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(flock) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fremovexattr.S b/libc/arch-mips64/syscalls/fremovexattr.S index 412122385..417be4af0 100644 --- a/libc/arch-mips64/syscalls/fremovexattr.S +++ b/libc/arch-mips64/syscalls/fremovexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fremovexattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fremovexattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fsetxattr.S b/libc/arch-mips64/syscalls/fsetxattr.S index 4180bd098..0ad1f9000 100644 --- a/libc/arch-mips64/syscalls/fsetxattr.S +++ b/libc/arch-mips64/syscalls/fsetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fsetxattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fsetxattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fstat64.S b/libc/arch-mips64/syscalls/fstat64.S index 03cbf6922..a14d51cb6 100644 --- a/libc/arch-mips64/syscalls/fstat64.S +++ b/libc/arch-mips64/syscalls/fstat64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fstat64) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fstat64) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fstatat64.S b/libc/arch-mips64/syscalls/fstatat64.S index 55ae243b7..7888a432d 100644 --- a/libc/arch-mips64/syscalls/fstatat64.S +++ b/libc/arch-mips64/syscalls/fstatat64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fstatat64) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fstatat64) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fstatfs64.S b/libc/arch-mips64/syscalls/fstatfs64.S index 5fb5d95a7..12e885cf1 100644 --- a/libc/arch-mips64/syscalls/fstatfs64.S +++ b/libc/arch-mips64/syscalls/fstatfs64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fstatfs64) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fstatfs64) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/fsync.S b/libc/arch-mips64/syscalls/fsync.S index fa5de8752..7056e363c 100644 --- a/libc/arch-mips64/syscalls/fsync.S +++ b/libc/arch-mips64/syscalls/fsync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fsync) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(fsync) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/ftruncate.S b/libc/arch-mips64/syscalls/ftruncate.S index b605a3725..58b847b77 100644 --- a/libc/arch-mips64/syscalls/ftruncate.S +++ b/libc/arch-mips64/syscalls/ftruncate.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(ftruncate) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(ftruncate) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getegid.S b/libc/arch-mips64/syscalls/getegid.S index 7ef8fe35c..439c6f00c 100644 --- a/libc/arch-mips64/syscalls/getegid.S +++ b/libc/arch-mips64/syscalls/getegid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getegid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getegid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/geteuid.S b/libc/arch-mips64/syscalls/geteuid.S index c21f0efd5..5619dc602 100644 --- a/libc/arch-mips64/syscalls/geteuid.S +++ b/libc/arch-mips64/syscalls/geteuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(geteuid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(geteuid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getgid.S b/libc/arch-mips64/syscalls/getgid.S index bd690dcb6..777be1a96 100644 --- a/libc/arch-mips64/syscalls/getgid.S +++ b/libc/arch-mips64/syscalls/getgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getgid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getgid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getgroups.S b/libc/arch-mips64/syscalls/getgroups.S index d7aded76b..93c4fa14b 100644 --- a/libc/arch-mips64/syscalls/getgroups.S +++ b/libc/arch-mips64/syscalls/getgroups.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getgroups) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getgroups) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getitimer.S b/libc/arch-mips64/syscalls/getitimer.S index a438faafd..fe78a97bf 100644 --- a/libc/arch-mips64/syscalls/getitimer.S +++ b/libc/arch-mips64/syscalls/getitimer.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getitimer) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getitimer) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getpeername.S b/libc/arch-mips64/syscalls/getpeername.S index bf40141fe..121f1a650 100644 --- a/libc/arch-mips64/syscalls/getpeername.S +++ b/libc/arch-mips64/syscalls/getpeername.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getpeername) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getpeername) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getpgid.S b/libc/arch-mips64/syscalls/getpgid.S index 739a6e2d8..19dc77fd2 100644 --- a/libc/arch-mips64/syscalls/getpgid.S +++ b/libc/arch-mips64/syscalls/getpgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getpgid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getpgid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getppid.S b/libc/arch-mips64/syscalls/getppid.S index e642a7984..d00f3093a 100644 --- a/libc/arch-mips64/syscalls/getppid.S +++ b/libc/arch-mips64/syscalls/getppid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getppid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getppid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getresgid.S b/libc/arch-mips64/syscalls/getresgid.S index d88516f1a..18cb5a18a 100644 --- a/libc/arch-mips64/syscalls/getresgid.S +++ b/libc/arch-mips64/syscalls/getresgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getresgid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getresgid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getresuid.S b/libc/arch-mips64/syscalls/getresuid.S index b43921151..c217bf725 100644 --- a/libc/arch-mips64/syscalls/getresuid.S +++ b/libc/arch-mips64/syscalls/getresuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getresuid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getresuid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getrlimit.S b/libc/arch-mips64/syscalls/getrlimit.S index 423bc0fa0..7576c1710 100644 --- a/libc/arch-mips64/syscalls/getrlimit.S +++ b/libc/arch-mips64/syscalls/getrlimit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getrlimit) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getrlimit) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getrusage.S b/libc/arch-mips64/syscalls/getrusage.S index 9f57b8424..4bf557e34 100644 --- a/libc/arch-mips64/syscalls/getrusage.S +++ b/libc/arch-mips64/syscalls/getrusage.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getrusage) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getrusage) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getsid.S b/libc/arch-mips64/syscalls/getsid.S index 125da4ed5..030c91df0 100644 --- a/libc/arch-mips64/syscalls/getsid.S +++ b/libc/arch-mips64/syscalls/getsid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getsid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getsockname.S b/libc/arch-mips64/syscalls/getsockname.S index 3481d652c..88a94268e 100644 --- a/libc/arch-mips64/syscalls/getsockname.S +++ b/libc/arch-mips64/syscalls/getsockname.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsockname) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getsockname) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getsockopt.S b/libc/arch-mips64/syscalls/getsockopt.S index 2e9b6d706..08ee634aa 100644 --- a/libc/arch-mips64/syscalls/getsockopt.S +++ b/libc/arch-mips64/syscalls/getsockopt.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsockopt) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getsockopt) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/gettimeofday.S b/libc/arch-mips64/syscalls/gettimeofday.S index 9bbbd288e..3a6d417e3 100644 --- a/libc/arch-mips64/syscalls/gettimeofday.S +++ b/libc/arch-mips64/syscalls/gettimeofday.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(gettimeofday) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(gettimeofday) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getuid.S b/libc/arch-mips64/syscalls/getuid.S index 4809a5a55..3d5f94081 100644 --- a/libc/arch-mips64/syscalls/getuid.S +++ b/libc/arch-mips64/syscalls/getuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getuid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getuid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/getxattr.S b/libc/arch-mips64/syscalls/getxattr.S index 7a7a4d4e7..1c443f293 100644 --- a/libc/arch-mips64/syscalls/getxattr.S +++ b/libc/arch-mips64/syscalls/getxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getxattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(getxattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/init_module.S b/libc/arch-mips64/syscalls/init_module.S index e46dedceb..3e2f07497 100644 --- a/libc/arch-mips64/syscalls/init_module.S +++ b/libc/arch-mips64/syscalls/init_module.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(init_module) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(init_module) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/inotify_add_watch.S b/libc/arch-mips64/syscalls/inotify_add_watch.S index 4a4fe5f11..bffdad82c 100644 --- a/libc/arch-mips64/syscalls/inotify_add_watch.S +++ b/libc/arch-mips64/syscalls/inotify_add_watch.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_add_watch) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(inotify_add_watch) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/inotify_init1.S b/libc/arch-mips64/syscalls/inotify_init1.S index 6ef6021a5..c70d101fd 100644 --- a/libc/arch-mips64/syscalls/inotify_init1.S +++ b/libc/arch-mips64/syscalls/inotify_init1.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_init1) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(inotify_init1) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/inotify_rm_watch.S b/libc/arch-mips64/syscalls/inotify_rm_watch.S index 10e239a0a..d8937871e 100644 --- a/libc/arch-mips64/syscalls/inotify_rm_watch.S +++ b/libc/arch-mips64/syscalls/inotify_rm_watch.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_rm_watch) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(inotify_rm_watch) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/kill.S b/libc/arch-mips64/syscalls/kill.S index f85a3ef8c..475b6156a 100644 --- a/libc/arch-mips64/syscalls/kill.S +++ b/libc/arch-mips64/syscalls/kill.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(kill) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(kill) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/klogctl.S b/libc/arch-mips64/syscalls/klogctl.S index 8e94b62f3..98b9f0ba9 100644 --- a/libc/arch-mips64/syscalls/klogctl.S +++ b/libc/arch-mips64/syscalls/klogctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(klogctl) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(klogctl) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/lgetxattr.S b/libc/arch-mips64/syscalls/lgetxattr.S index c5990ab67..55d7c4203 100644 --- a/libc/arch-mips64/syscalls/lgetxattr.S +++ b/libc/arch-mips64/syscalls/lgetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lgetxattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(lgetxattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/linkat.S b/libc/arch-mips64/syscalls/linkat.S index 88db867ea..df749eb01 100644 --- a/libc/arch-mips64/syscalls/linkat.S +++ b/libc/arch-mips64/syscalls/linkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(linkat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(linkat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/listen.S b/libc/arch-mips64/syscalls/listen.S index 4db878946..195cadeba 100644 --- a/libc/arch-mips64/syscalls/listen.S +++ b/libc/arch-mips64/syscalls/listen.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(listen) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(listen) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/listxattr.S b/libc/arch-mips64/syscalls/listxattr.S index 56b13f637..30b0f2b7d 100644 --- a/libc/arch-mips64/syscalls/listxattr.S +++ b/libc/arch-mips64/syscalls/listxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(listxattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(listxattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/llistxattr.S b/libc/arch-mips64/syscalls/llistxattr.S index d800f7f46..d3491163d 100644 --- a/libc/arch-mips64/syscalls/llistxattr.S +++ b/libc/arch-mips64/syscalls/llistxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(llistxattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(llistxattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/lremovexattr.S b/libc/arch-mips64/syscalls/lremovexattr.S index e05733f2e..db4e4d397 100644 --- a/libc/arch-mips64/syscalls/lremovexattr.S +++ b/libc/arch-mips64/syscalls/lremovexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lremovexattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(lremovexattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/lseek.S b/libc/arch-mips64/syscalls/lseek.S index 34533cfe1..5c92d7094 100644 --- a/libc/arch-mips64/syscalls/lseek.S +++ b/libc/arch-mips64/syscalls/lseek.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lseek) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(lseek) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/lsetxattr.S b/libc/arch-mips64/syscalls/lsetxattr.S index dea6add71..c161eb358 100644 --- a/libc/arch-mips64/syscalls/lsetxattr.S +++ b/libc/arch-mips64/syscalls/lsetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lsetxattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(lsetxattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/madvise.S b/libc/arch-mips64/syscalls/madvise.S index ab174e9ed..88f3830ec 100644 --- a/libc/arch-mips64/syscalls/madvise.S +++ b/libc/arch-mips64/syscalls/madvise.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(madvise) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(madvise) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/mincore.S b/libc/arch-mips64/syscalls/mincore.S index 349d2f6dc..695c9b27e 100644 --- a/libc/arch-mips64/syscalls/mincore.S +++ b/libc/arch-mips64/syscalls/mincore.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mincore) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(mincore) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/mkdirat.S b/libc/arch-mips64/syscalls/mkdirat.S index b395ba4ea..71cdfd19b 100644 --- a/libc/arch-mips64/syscalls/mkdirat.S +++ b/libc/arch-mips64/syscalls/mkdirat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mkdirat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(mkdirat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/mknodat.S b/libc/arch-mips64/syscalls/mknodat.S index c13d97942..9943e49f0 100644 --- a/libc/arch-mips64/syscalls/mknodat.S +++ b/libc/arch-mips64/syscalls/mknodat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mknodat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(mknodat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/mlock.S b/libc/arch-mips64/syscalls/mlock.S index 82338f3a9..081f12bd1 100644 --- a/libc/arch-mips64/syscalls/mlock.S +++ b/libc/arch-mips64/syscalls/mlock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mlock) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(mlock) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/mlockall.S b/libc/arch-mips64/syscalls/mlockall.S index b34cf81df..0e158f437 100644 --- a/libc/arch-mips64/syscalls/mlockall.S +++ b/libc/arch-mips64/syscalls/mlockall.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mlockall) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(mlockall) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/mmap.S b/libc/arch-mips64/syscalls/mmap.S index 814b745e2..393271ae9 100644 --- a/libc/arch-mips64/syscalls/mmap.S +++ b/libc/arch-mips64/syscalls/mmap.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mmap) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(mmap) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/mount.S b/libc/arch-mips64/syscalls/mount.S index 3f42df5fb..50c754173 100644 --- a/libc/arch-mips64/syscalls/mount.S +++ b/libc/arch-mips64/syscalls/mount.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mount) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(mount) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/mprotect.S b/libc/arch-mips64/syscalls/mprotect.S index adf9a67c0..d755489c9 100644 --- a/libc/arch-mips64/syscalls/mprotect.S +++ b/libc/arch-mips64/syscalls/mprotect.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mprotect) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(mprotect) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/mremap.S b/libc/arch-mips64/syscalls/mremap.S index 70c8a8c3c..cf7f1ded8 100644 --- a/libc/arch-mips64/syscalls/mremap.S +++ b/libc/arch-mips64/syscalls/mremap.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mremap) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(mremap) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/msync.S b/libc/arch-mips64/syscalls/msync.S index dced6e709..efe31c1fb 100644 --- a/libc/arch-mips64/syscalls/msync.S +++ b/libc/arch-mips64/syscalls/msync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(msync) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(msync) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/munlock.S b/libc/arch-mips64/syscalls/munlock.S index 075c0615c..44b930a3c 100644 --- a/libc/arch-mips64/syscalls/munlock.S +++ b/libc/arch-mips64/syscalls/munlock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munlock) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(munlock) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/munlockall.S b/libc/arch-mips64/syscalls/munlockall.S index 10ff2748e..ffeb5e11c 100644 --- a/libc/arch-mips64/syscalls/munlockall.S +++ b/libc/arch-mips64/syscalls/munlockall.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munlockall) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(munlockall) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/munmap.S b/libc/arch-mips64/syscalls/munmap.S index 5d0b0b0d4..cd0c05cc3 100644 --- a/libc/arch-mips64/syscalls/munmap.S +++ b/libc/arch-mips64/syscalls/munmap.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munmap) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(munmap) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/nanosleep.S b/libc/arch-mips64/syscalls/nanosleep.S index a0c7d36ca..bdaf25612 100644 --- a/libc/arch-mips64/syscalls/nanosleep.S +++ b/libc/arch-mips64/syscalls/nanosleep.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(nanosleep) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(nanosleep) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/personality.S b/libc/arch-mips64/syscalls/personality.S index 326cf243f..6a12c95ac 100644 --- a/libc/arch-mips64/syscalls/personality.S +++ b/libc/arch-mips64/syscalls/personality.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(personality) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(personality) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/pipe2.S b/libc/arch-mips64/syscalls/pipe2.S index 8e207acd3..1b08a4533 100644 --- a/libc/arch-mips64/syscalls/pipe2.S +++ b/libc/arch-mips64/syscalls/pipe2.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pipe2) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(pipe2) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/prctl.S b/libc/arch-mips64/syscalls/prctl.S index 9e805f456..61bb7c26f 100644 --- a/libc/arch-mips64/syscalls/prctl.S +++ b/libc/arch-mips64/syscalls/prctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(prctl) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(prctl) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/pread64.S b/libc/arch-mips64/syscalls/pread64.S index 3aa06203d..90e061237 100644 --- a/libc/arch-mips64/syscalls/pread64.S +++ b/libc/arch-mips64/syscalls/pread64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pread64) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(pread64) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/prlimit64.S b/libc/arch-mips64/syscalls/prlimit64.S index f767ac17d..5f0ba1de8 100644 --- a/libc/arch-mips64/syscalls/prlimit64.S +++ b/libc/arch-mips64/syscalls/prlimit64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(prlimit64) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(prlimit64) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/pwrite64.S b/libc/arch-mips64/syscalls/pwrite64.S index 8b3bcc0be..e34f8dba1 100644 --- a/libc/arch-mips64/syscalls/pwrite64.S +++ b/libc/arch-mips64/syscalls/pwrite64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pwrite64) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(pwrite64) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/read.S b/libc/arch-mips64/syscalls/read.S index ab687d161..74d39df8f 100644 --- a/libc/arch-mips64/syscalls/read.S +++ b/libc/arch-mips64/syscalls/read.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(read) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(read) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/readahead.S b/libc/arch-mips64/syscalls/readahead.S index 1d9b15b5e..ae511d9e9 100644 --- a/libc/arch-mips64/syscalls/readahead.S +++ b/libc/arch-mips64/syscalls/readahead.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readahead) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(readahead) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/readlinkat.S b/libc/arch-mips64/syscalls/readlinkat.S index 24da46bc3..473a9460e 100644 --- a/libc/arch-mips64/syscalls/readlinkat.S +++ b/libc/arch-mips64/syscalls/readlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readlinkat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(readlinkat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/readv.S b/libc/arch-mips64/syscalls/readv.S index 6aca131bd..daa800c64 100644 --- a/libc/arch-mips64/syscalls/readv.S +++ b/libc/arch-mips64/syscalls/readv.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readv) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(readv) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/recvfrom.S b/libc/arch-mips64/syscalls/recvfrom.S index b9fb03779..4c9b5fa4b 100644 --- a/libc/arch-mips64/syscalls/recvfrom.S +++ b/libc/arch-mips64/syscalls/recvfrom.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvfrom) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(recvfrom) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/recvmmsg.S b/libc/arch-mips64/syscalls/recvmmsg.S index b187cf097..817250c50 100644 --- a/libc/arch-mips64/syscalls/recvmmsg.S +++ b/libc/arch-mips64/syscalls/recvmmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvmmsg) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(recvmmsg) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/recvmsg.S b/libc/arch-mips64/syscalls/recvmsg.S index 49dbb4845..877899d09 100644 --- a/libc/arch-mips64/syscalls/recvmsg.S +++ b/libc/arch-mips64/syscalls/recvmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvmsg) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(recvmsg) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/removexattr.S b/libc/arch-mips64/syscalls/removexattr.S index 61d6da166..c9d8a0e48 100644 --- a/libc/arch-mips64/syscalls/removexattr.S +++ b/libc/arch-mips64/syscalls/removexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(removexattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(removexattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/renameat.S b/libc/arch-mips64/syscalls/renameat.S index f012fadaa..16b9333e7 100644 --- a/libc/arch-mips64/syscalls/renameat.S +++ b/libc/arch-mips64/syscalls/renameat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(renameat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(renameat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sched_get_priority_max.S b/libc/arch-mips64/syscalls/sched_get_priority_max.S index 264545b7e..67e26757e 100644 --- a/libc/arch-mips64/syscalls/sched_get_priority_max.S +++ b/libc/arch-mips64/syscalls/sched_get_priority_max.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_get_priority_max) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sched_get_priority_max) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sched_get_priority_min.S b/libc/arch-mips64/syscalls/sched_get_priority_min.S index 4984abf3c..957f52383 100644 --- a/libc/arch-mips64/syscalls/sched_get_priority_min.S +++ b/libc/arch-mips64/syscalls/sched_get_priority_min.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_get_priority_min) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sched_get_priority_min) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sched_getparam.S b/libc/arch-mips64/syscalls/sched_getparam.S index 2837fc8d9..77bb4eb98 100644 --- a/libc/arch-mips64/syscalls/sched_getparam.S +++ b/libc/arch-mips64/syscalls/sched_getparam.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_getparam) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sched_getparam) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sched_getscheduler.S b/libc/arch-mips64/syscalls/sched_getscheduler.S index 3f8dbe3a2..324fa2129 100644 --- a/libc/arch-mips64/syscalls/sched_getscheduler.S +++ b/libc/arch-mips64/syscalls/sched_getscheduler.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_getscheduler) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sched_getscheduler) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sched_rr_get_interval.S b/libc/arch-mips64/syscalls/sched_rr_get_interval.S index 80ea18e5a..30195540c 100644 --- a/libc/arch-mips64/syscalls/sched_rr_get_interval.S +++ b/libc/arch-mips64/syscalls/sched_rr_get_interval.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_rr_get_interval) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sched_rr_get_interval) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sched_setaffinity.S b/libc/arch-mips64/syscalls/sched_setaffinity.S index 843e06f23..15209025d 100644 --- a/libc/arch-mips64/syscalls/sched_setaffinity.S +++ b/libc/arch-mips64/syscalls/sched_setaffinity.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setaffinity) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sched_setaffinity) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sched_setparam.S b/libc/arch-mips64/syscalls/sched_setparam.S index 78435b199..a37b15c53 100644 --- a/libc/arch-mips64/syscalls/sched_setparam.S +++ b/libc/arch-mips64/syscalls/sched_setparam.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setparam) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sched_setparam) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sched_setscheduler.S b/libc/arch-mips64/syscalls/sched_setscheduler.S index 7f78cc737..ea4c6c41d 100644 --- a/libc/arch-mips64/syscalls/sched_setscheduler.S +++ b/libc/arch-mips64/syscalls/sched_setscheduler.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setscheduler) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sched_setscheduler) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sched_yield.S b/libc/arch-mips64/syscalls/sched_yield.S index f81b7ef67..5d86ea5cb 100644 --- a/libc/arch-mips64/syscalls/sched_yield.S +++ b/libc/arch-mips64/syscalls/sched_yield.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_yield) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sched_yield) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sendfile.S b/libc/arch-mips64/syscalls/sendfile.S index c3e80de0c..f33024241 100644 --- a/libc/arch-mips64/syscalls/sendfile.S +++ b/libc/arch-mips64/syscalls/sendfile.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendfile) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sendfile) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sendmmsg.S b/libc/arch-mips64/syscalls/sendmmsg.S index 40efcb671..4a8d855af 100644 --- a/libc/arch-mips64/syscalls/sendmmsg.S +++ b/libc/arch-mips64/syscalls/sendmmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendmmsg) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sendmmsg) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sendmsg.S b/libc/arch-mips64/syscalls/sendmsg.S index 9f9071754..519dce41d 100644 --- a/libc/arch-mips64/syscalls/sendmsg.S +++ b/libc/arch-mips64/syscalls/sendmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendmsg) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sendmsg) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sendto.S b/libc/arch-mips64/syscalls/sendto.S index 3ebfbae4c..84efc0921 100644 --- a/libc/arch-mips64/syscalls/sendto.S +++ b/libc/arch-mips64/syscalls/sendto.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendto) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sendto) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setfsgid.S b/libc/arch-mips64/syscalls/setfsgid.S index 9b360382c..db1bd7f80 100644 --- a/libc/arch-mips64/syscalls/setfsgid.S +++ b/libc/arch-mips64/syscalls/setfsgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setfsgid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setfsgid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setfsuid.S b/libc/arch-mips64/syscalls/setfsuid.S index e42601f39..4254b183e 100644 --- a/libc/arch-mips64/syscalls/setfsuid.S +++ b/libc/arch-mips64/syscalls/setfsuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setfsuid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setfsuid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setgid.S b/libc/arch-mips64/syscalls/setgid.S index 7ce85994d..166a6d6de 100644 --- a/libc/arch-mips64/syscalls/setgid.S +++ b/libc/arch-mips64/syscalls/setgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setgid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setgid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setgroups.S b/libc/arch-mips64/syscalls/setgroups.S index 2724068f4..24649f724 100644 --- a/libc/arch-mips64/syscalls/setgroups.S +++ b/libc/arch-mips64/syscalls/setgroups.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setgroups) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setgroups) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setitimer.S b/libc/arch-mips64/syscalls/setitimer.S index f5dcff0c6..5764573ca 100644 --- a/libc/arch-mips64/syscalls/setitimer.S +++ b/libc/arch-mips64/syscalls/setitimer.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setitimer) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setitimer) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setns.S b/libc/arch-mips64/syscalls/setns.S index cbe2e061a..6b6178f21 100644 --- a/libc/arch-mips64/syscalls/setns.S +++ b/libc/arch-mips64/syscalls/setns.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setns) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setns) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setpgid.S b/libc/arch-mips64/syscalls/setpgid.S index da4453215..233f78476 100644 --- a/libc/arch-mips64/syscalls/setpgid.S +++ b/libc/arch-mips64/syscalls/setpgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setpgid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setpgid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setpriority.S b/libc/arch-mips64/syscalls/setpriority.S index 150a5d4b7..d88a2ffa8 100644 --- a/libc/arch-mips64/syscalls/setpriority.S +++ b/libc/arch-mips64/syscalls/setpriority.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setpriority) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setpriority) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setregid.S b/libc/arch-mips64/syscalls/setregid.S index b80115cb4..c82b4fde5 100644 --- a/libc/arch-mips64/syscalls/setregid.S +++ b/libc/arch-mips64/syscalls/setregid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setregid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setregid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setresgid.S b/libc/arch-mips64/syscalls/setresgid.S index 0fbf302d1..90b293960 100644 --- a/libc/arch-mips64/syscalls/setresgid.S +++ b/libc/arch-mips64/syscalls/setresgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setresgid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setresgid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setresuid.S b/libc/arch-mips64/syscalls/setresuid.S index 89af745c3..501ac5d7a 100644 --- a/libc/arch-mips64/syscalls/setresuid.S +++ b/libc/arch-mips64/syscalls/setresuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setresuid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setresuid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setreuid.S b/libc/arch-mips64/syscalls/setreuid.S index 797091ff0..1b3203c84 100644 --- a/libc/arch-mips64/syscalls/setreuid.S +++ b/libc/arch-mips64/syscalls/setreuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setreuid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setreuid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setrlimit.S b/libc/arch-mips64/syscalls/setrlimit.S index 034f3dbfb..0e5e80e4d 100644 --- a/libc/arch-mips64/syscalls/setrlimit.S +++ b/libc/arch-mips64/syscalls/setrlimit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setrlimit) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setrlimit) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setsid.S b/libc/arch-mips64/syscalls/setsid.S index ef14ebaba..6d872d3b9 100644 --- a/libc/arch-mips64/syscalls/setsid.S +++ b/libc/arch-mips64/syscalls/setsid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setsid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setsid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setsockopt.S b/libc/arch-mips64/syscalls/setsockopt.S index 5c263bdf1..b2fc73627 100644 --- a/libc/arch-mips64/syscalls/setsockopt.S +++ b/libc/arch-mips64/syscalls/setsockopt.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setsockopt) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setsockopt) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/settimeofday.S b/libc/arch-mips64/syscalls/settimeofday.S index a73638ff7..9f1acfe39 100644 --- a/libc/arch-mips64/syscalls/settimeofday.S +++ b/libc/arch-mips64/syscalls/settimeofday.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(settimeofday) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(settimeofday) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setuid.S b/libc/arch-mips64/syscalls/setuid.S index 4321fae0c..dcd39ff10 100644 --- a/libc/arch-mips64/syscalls/setuid.S +++ b/libc/arch-mips64/syscalls/setuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setuid) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setuid) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/setxattr.S b/libc/arch-mips64/syscalls/setxattr.S index 58ccb5fdd..4a1b87ad2 100644 --- a/libc/arch-mips64/syscalls/setxattr.S +++ b/libc/arch-mips64/syscalls/setxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setxattr) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(setxattr) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/shutdown.S b/libc/arch-mips64/syscalls/shutdown.S index cdd6c786f..d65428803 100644 --- a/libc/arch-mips64/syscalls/shutdown.S +++ b/libc/arch-mips64/syscalls/shutdown.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(shutdown) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(shutdown) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sigaltstack.S b/libc/arch-mips64/syscalls/sigaltstack.S index a2e663cc8..92778c1d2 100644 --- a/libc/arch-mips64/syscalls/sigaltstack.S +++ b/libc/arch-mips64/syscalls/sigaltstack.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sigaltstack) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sigaltstack) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/socketpair.S b/libc/arch-mips64/syscalls/socketpair.S index 7be781467..8fbf7a89d 100644 --- a/libc/arch-mips64/syscalls/socketpair.S +++ b/libc/arch-mips64/syscalls/socketpair.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(socketpair) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(socketpair) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/splice.S b/libc/arch-mips64/syscalls/splice.S index efee6cd7d..ea745cf8f 100644 --- a/libc/arch-mips64/syscalls/splice.S +++ b/libc/arch-mips64/syscalls/splice.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(splice) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(splice) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/statfs64.S b/libc/arch-mips64/syscalls/statfs64.S index d3775229d..74351f7f5 100644 --- a/libc/arch-mips64/syscalls/statfs64.S +++ b/libc/arch-mips64/syscalls/statfs64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(statfs64) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(statfs64) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/swapoff.S b/libc/arch-mips64/syscalls/swapoff.S index b257b1e06..8c0048dd7 100644 --- a/libc/arch-mips64/syscalls/swapoff.S +++ b/libc/arch-mips64/syscalls/swapoff.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(swapoff) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(swapoff) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/swapon.S b/libc/arch-mips64/syscalls/swapon.S index e18ff4c26..e8f6ff283 100644 --- a/libc/arch-mips64/syscalls/swapon.S +++ b/libc/arch-mips64/syscalls/swapon.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(swapon) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(swapon) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/symlinkat.S b/libc/arch-mips64/syscalls/symlinkat.S index 560bf0db8..592b8e219 100644 --- a/libc/arch-mips64/syscalls/symlinkat.S +++ b/libc/arch-mips64/syscalls/symlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(symlinkat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(symlinkat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sync.S b/libc/arch-mips64/syscalls/sync.S index 240a6d483..8997c1b26 100644 --- a/libc/arch-mips64/syscalls/sync.S +++ b/libc/arch-mips64/syscalls/sync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sync) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sync) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/sysinfo.S b/libc/arch-mips64/syscalls/sysinfo.S index 6b07be3e5..a54e1581e 100644 --- a/libc/arch-mips64/syscalls/sysinfo.S +++ b/libc/arch-mips64/syscalls/sysinfo.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sysinfo) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(sysinfo) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/tee.S b/libc/arch-mips64/syscalls/tee.S index 0115f714e..99cf84bd8 100644 --- a/libc/arch-mips64/syscalls/tee.S +++ b/libc/arch-mips64/syscalls/tee.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(tee) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(tee) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/tgkill.S b/libc/arch-mips64/syscalls/tgkill.S index bf30a8d7d..f37f792ed 100644 --- a/libc/arch-mips64/syscalls/tgkill.S +++ b/libc/arch-mips64/syscalls/tgkill.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(tgkill) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(tgkill) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/timerfd_create.S b/libc/arch-mips64/syscalls/timerfd_create.S index e65874f60..0e53a15c3 100644 --- a/libc/arch-mips64/syscalls/timerfd_create.S +++ b/libc/arch-mips64/syscalls/timerfd_create.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_create) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(timerfd_create) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/timerfd_gettime.S b/libc/arch-mips64/syscalls/timerfd_gettime.S index a8435986e..26d68328d 100644 --- a/libc/arch-mips64/syscalls/timerfd_gettime.S +++ b/libc/arch-mips64/syscalls/timerfd_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_gettime) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(timerfd_gettime) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/timerfd_settime.S b/libc/arch-mips64/syscalls/timerfd_settime.S index 8c5994f72..b06290eaa 100644 --- a/libc/arch-mips64/syscalls/timerfd_settime.S +++ b/libc/arch-mips64/syscalls/timerfd_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_settime) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(timerfd_settime) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/times.S b/libc/arch-mips64/syscalls/times.S index ff504e715..fa7f64f22 100644 --- a/libc/arch-mips64/syscalls/times.S +++ b/libc/arch-mips64/syscalls/times.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(times) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(times) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/truncate.S b/libc/arch-mips64/syscalls/truncate.S index 3fc06a2a1..fb3b7eb5a 100644 --- a/libc/arch-mips64/syscalls/truncate.S +++ b/libc/arch-mips64/syscalls/truncate.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(truncate) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(truncate) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/umask.S b/libc/arch-mips64/syscalls/umask.S index 9e6c910fe..934903016 100644 --- a/libc/arch-mips64/syscalls/umask.S +++ b/libc/arch-mips64/syscalls/umask.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(umask) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(umask) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/umount2.S b/libc/arch-mips64/syscalls/umount2.S index f8d19966f..cc9ad16f2 100644 --- a/libc/arch-mips64/syscalls/umount2.S +++ b/libc/arch-mips64/syscalls/umount2.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(umount2) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(umount2) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/uname.S b/libc/arch-mips64/syscalls/uname.S index ce93f08ff..16157da61 100644 --- a/libc/arch-mips64/syscalls/uname.S +++ b/libc/arch-mips64/syscalls/uname.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(uname) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(uname) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/unlinkat.S b/libc/arch-mips64/syscalls/unlinkat.S index 870e8d7a5..4b11679c6 100644 --- a/libc/arch-mips64/syscalls/unlinkat.S +++ b/libc/arch-mips64/syscalls/unlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(unlinkat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(unlinkat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/unshare.S b/libc/arch-mips64/syscalls/unshare.S index 231c29adc..2c82fea11 100644 --- a/libc/arch-mips64/syscalls/unshare.S +++ b/libc/arch-mips64/syscalls/unshare.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(unshare) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(unshare) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/utimensat.S b/libc/arch-mips64/syscalls/utimensat.S index 4b4243e0e..48da938ee 100644 --- a/libc/arch-mips64/syscalls/utimensat.S +++ b/libc/arch-mips64/syscalls/utimensat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(utimensat) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(utimensat) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/vmsplice.S b/libc/arch-mips64/syscalls/vmsplice.S index f85400419..3bcae7485 100644 --- a/libc/arch-mips64/syscalls/vmsplice.S +++ b/libc/arch-mips64/syscalls/vmsplice.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(vmsplice) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(vmsplice) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/wait4.S b/libc/arch-mips64/syscalls/wait4.S index 2d2b4876f..f9c39743b 100644 --- a/libc/arch-mips64/syscalls/wait4.S +++ b/libc/arch-mips64/syscalls/wait4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(wait4) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(wait4) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/write.S b/libc/arch-mips64/syscalls/write.S index f603fb541..ef9b19e8b 100644 --- a/libc/arch-mips64/syscalls/write.S +++ b/libc/arch-mips64/syscalls/write.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(write) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(write) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-mips64/syscalls/writev.S b/libc/arch-mips64/syscalls/writev.S index 032e749d3..d103d7179 100644 --- a/libc/arch-mips64/syscalls/writev.S +++ b/libc/arch-mips64/syscalls/writev.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(writev) .set push .set noreorder @@ -19,7 +17,7 @@ ENTRY(writev) nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 diff --git a/libc/arch-x86/bionic/__bionic_clone.S b/libc/arch-x86/bionic/__bionic_clone.S index 917dc6883..ef78aeef7 100644 --- a/libc/arch-x86/bionic/__bionic_clone.S +++ b/libc/arch-x86/bionic/__bionic_clone.S @@ -32,7 +32,7 @@ ENTRY(__bionic_clone) # An error occurred, so set errno and return -1. negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp jmp .L_bc_return diff --git a/libc/arch-x86/bionic/syscall.S b/libc/arch-x86/bionic/syscall.S index 8e76c4ee7..f85ec3904 100644 --- a/libc/arch-x86/bionic/syscall.S +++ b/libc/arch-x86/bionic/syscall.S @@ -38,7 +38,7 @@ ENTRY(syscall) # Yes, so set errno. negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: # Restore the callee save registers. diff --git a/libc/arch-x86/bionic/vfork.S b/libc/arch-x86/bionic/vfork.S index ffa6b16aa..6c0291088 100644 --- a/libc/arch-x86/bionic/vfork.S +++ b/libc/arch-x86/bionic/vfork.S @@ -38,7 +38,7 @@ ENTRY(vfork) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal 1: jmp *%ecx // Jump to the stored return address. END(vfork) diff --git a/libc/arch-x86/syscalls/__accept4.S b/libc/arch-x86/syscalls/__accept4.S index c28f211ff..7b16dd488 100644 --- a/libc/arch-x86/syscalls/__accept4.S +++ b/libc/arch-x86/syscalls/__accept4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__accept4) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(__accept4) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/__brk.S b/libc/arch-x86/syscalls/__brk.S index c5702cfec..22acdad3a 100644 --- a/libc/arch-x86/syscalls/__brk.S +++ b/libc/arch-x86/syscalls/__brk.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__brk) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(__brk) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/__connect.S b/libc/arch-x86/syscalls/__connect.S index 4f845b734..475d452be 100644 --- a/libc/arch-x86/syscalls/__connect.S +++ b/libc/arch-x86/syscalls/__connect.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__connect) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(__connect) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/__epoll_pwait.S b/libc/arch-x86/syscalls/__epoll_pwait.S index c7acb2b83..171caa55b 100644 --- a/libc/arch-x86/syscalls/__epoll_pwait.S +++ b/libc/arch-x86/syscalls/__epoll_pwait.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__epoll_pwait) pushl %ebx .cfi_def_cfa_offset 8 @@ -35,7 +33,7 @@ ENTRY(__epoll_pwait) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebp diff --git a/libc/arch-x86/syscalls/__exit.S b/libc/arch-x86/syscalls/__exit.S index bf76e0479..8cf366329 100644 --- a/libc/arch-x86/syscalls/__exit.S +++ b/libc/arch-x86/syscalls/__exit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__exit) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(__exit) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/__fcntl64.S b/libc/arch-x86/syscalls/__fcntl64.S index 7c41c8858..d900a52d8 100644 --- a/libc/arch-x86/syscalls/__fcntl64.S +++ b/libc/arch-x86/syscalls/__fcntl64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__fcntl64) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(__fcntl64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/__fstatfs64.S b/libc/arch-x86/syscalls/__fstatfs64.S index b182ae368..9b44743dd 100644 --- a/libc/arch-x86/syscalls/__fstatfs64.S +++ b/libc/arch-x86/syscalls/__fstatfs64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__fstatfs64) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(__fstatfs64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/__getcpu.S b/libc/arch-x86/syscalls/__getcpu.S index 4cdbafac6..bb4c41fdc 100644 --- a/libc/arch-x86/syscalls/__getcpu.S +++ b/libc/arch-x86/syscalls/__getcpu.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getcpu) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(__getcpu) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/__getcwd.S b/libc/arch-x86/syscalls/__getcwd.S index f5b9b9c71..8decd99ab 100644 --- a/libc/arch-x86/syscalls/__getcwd.S +++ b/libc/arch-x86/syscalls/__getcwd.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getcwd) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(__getcwd) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/__getdents64.S b/libc/arch-x86/syscalls/__getdents64.S index 0ff217d17..5190a6834 100644 --- a/libc/arch-x86/syscalls/__getdents64.S +++ b/libc/arch-x86/syscalls/__getdents64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getdents64) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(__getdents64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/__getpid.S b/libc/arch-x86/syscalls/__getpid.S index 6a3602ebd..197202c4d 100644 --- a/libc/arch-x86/syscalls/__getpid.S +++ b/libc/arch-x86/syscalls/__getpid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getpid) movl $__NR_getpid, %eax int $0x80 @@ -11,7 +9,7 @@ ENTRY(__getpid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: ret diff --git a/libc/arch-x86/syscalls/__getpriority.S b/libc/arch-x86/syscalls/__getpriority.S index 6a94f4381..dd5591f47 100644 --- a/libc/arch-x86/syscalls/__getpriority.S +++ b/libc/arch-x86/syscalls/__getpriority.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getpriority) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(__getpriority) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/__ioctl.S b/libc/arch-x86/syscalls/__ioctl.S index edb990a04..b6ee9f2ed 100644 --- a/libc/arch-x86/syscalls/__ioctl.S +++ b/libc/arch-x86/syscalls/__ioctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ioctl) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(__ioctl) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/__llseek.S b/libc/arch-x86/syscalls/__llseek.S index db3910643..5cc907aa8 100644 --- a/libc/arch-x86/syscalls/__llseek.S +++ b/libc/arch-x86/syscalls/__llseek.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__llseek) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(__llseek) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/__mmap2.S b/libc/arch-x86/syscalls/__mmap2.S index 5c8f2a31d..08314c81b 100644 --- a/libc/arch-x86/syscalls/__mmap2.S +++ b/libc/arch-x86/syscalls/__mmap2.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__mmap2) pushl %ebx .cfi_def_cfa_offset 8 @@ -35,7 +33,7 @@ ENTRY(__mmap2) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebp diff --git a/libc/arch-x86/syscalls/__openat.S b/libc/arch-x86/syscalls/__openat.S index 87687e569..4c1170991 100644 --- a/libc/arch-x86/syscalls/__openat.S +++ b/libc/arch-x86/syscalls/__openat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__openat) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(__openat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/__ppoll.S b/libc/arch-x86/syscalls/__ppoll.S index e48f84123..2a1f76e3e 100644 --- a/libc/arch-x86/syscalls/__ppoll.S +++ b/libc/arch-x86/syscalls/__ppoll.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ppoll) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(__ppoll) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/__pselect6.S b/libc/arch-x86/syscalls/__pselect6.S index 53edb8ca1..8ff102ad3 100644 --- a/libc/arch-x86/syscalls/__pselect6.S +++ b/libc/arch-x86/syscalls/__pselect6.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__pselect6) pushl %ebx .cfi_def_cfa_offset 8 @@ -35,7 +33,7 @@ ENTRY(__pselect6) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebp diff --git a/libc/arch-x86/syscalls/__ptrace.S b/libc/arch-x86/syscalls/__ptrace.S index 9d1e460ed..d982cec16 100644 --- a/libc/arch-x86/syscalls/__ptrace.S +++ b/libc/arch-x86/syscalls/__ptrace.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ptrace) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(__ptrace) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/__reboot.S b/libc/arch-x86/syscalls/__reboot.S index 3ef78bb08..3d169bf7f 100644 --- a/libc/arch-x86/syscalls/__reboot.S +++ b/libc/arch-x86/syscalls/__reboot.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__reboot) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(__reboot) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/__rt_sigaction.S b/libc/arch-x86/syscalls/__rt_sigaction.S index 1ce7ef96b..59c388208 100644 --- a/libc/arch-x86/syscalls/__rt_sigaction.S +++ b/libc/arch-x86/syscalls/__rt_sigaction.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigaction) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(__rt_sigaction) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/__rt_sigpending.S b/libc/arch-x86/syscalls/__rt_sigpending.S index a4cb3c1ec..9c6a10649 100644 --- a/libc/arch-x86/syscalls/__rt_sigpending.S +++ b/libc/arch-x86/syscalls/__rt_sigpending.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigpending) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(__rt_sigpending) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/__rt_sigprocmask.S b/libc/arch-x86/syscalls/__rt_sigprocmask.S index 9d8e90d0a..9b1532f10 100644 --- a/libc/arch-x86/syscalls/__rt_sigprocmask.S +++ b/libc/arch-x86/syscalls/__rt_sigprocmask.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigprocmask) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(__rt_sigprocmask) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/__rt_sigsuspend.S b/libc/arch-x86/syscalls/__rt_sigsuspend.S index e0d0c3dd1..b05acd8bc 100644 --- a/libc/arch-x86/syscalls/__rt_sigsuspend.S +++ b/libc/arch-x86/syscalls/__rt_sigsuspend.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigsuspend) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(__rt_sigsuspend) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/__rt_sigtimedwait.S b/libc/arch-x86/syscalls/__rt_sigtimedwait.S index 091c1a721..14cb70f5f 100644 --- a/libc/arch-x86/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-x86/syscalls/__rt_sigtimedwait.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigtimedwait) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(__rt_sigtimedwait) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/__sched_getaffinity.S b/libc/arch-x86/syscalls/__sched_getaffinity.S index 2c278db3d..0b0a97070 100644 --- a/libc/arch-x86/syscalls/__sched_getaffinity.S +++ b/libc/arch-x86/syscalls/__sched_getaffinity.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__sched_getaffinity) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(__sched_getaffinity) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/__set_thread_area.S b/libc/arch-x86/syscalls/__set_thread_area.S index 29e12388d..8cd68804e 100644 --- a/libc/arch-x86/syscalls/__set_thread_area.S +++ b/libc/arch-x86/syscalls/__set_thread_area.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__set_thread_area) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(__set_thread_area) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/__set_tid_address.S b/libc/arch-x86/syscalls/__set_tid_address.S index 35174427f..08acce959 100644 --- a/libc/arch-x86/syscalls/__set_tid_address.S +++ b/libc/arch-x86/syscalls/__set_tid_address.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__set_tid_address) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(__set_tid_address) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/__sigaction.S b/libc/arch-x86/syscalls/__sigaction.S index 0a3e77e10..02382479a 100644 --- a/libc/arch-x86/syscalls/__sigaction.S +++ b/libc/arch-x86/syscalls/__sigaction.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__sigaction) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(__sigaction) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/__signalfd4.S b/libc/arch-x86/syscalls/__signalfd4.S index acfced5c9..02ddc7333 100644 --- a/libc/arch-x86/syscalls/__signalfd4.S +++ b/libc/arch-x86/syscalls/__signalfd4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__signalfd4) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(__signalfd4) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/__socket.S b/libc/arch-x86/syscalls/__socket.S index 59988f3d0..75952eed1 100644 --- a/libc/arch-x86/syscalls/__socket.S +++ b/libc/arch-x86/syscalls/__socket.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__socket) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(__socket) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/__statfs64.S b/libc/arch-x86/syscalls/__statfs64.S index 63d866e87..b9bccb02a 100644 --- a/libc/arch-x86/syscalls/__statfs64.S +++ b/libc/arch-x86/syscalls/__statfs64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__statfs64) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(__statfs64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/__timer_create.S b/libc/arch-x86/syscalls/__timer_create.S index 1265aa662..b22f40853 100644 --- a/libc/arch-x86/syscalls/__timer_create.S +++ b/libc/arch-x86/syscalls/__timer_create.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_create) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(__timer_create) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/__timer_delete.S b/libc/arch-x86/syscalls/__timer_delete.S index bc1fbc570..d77ae3e29 100644 --- a/libc/arch-x86/syscalls/__timer_delete.S +++ b/libc/arch-x86/syscalls/__timer_delete.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_delete) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(__timer_delete) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/__timer_getoverrun.S b/libc/arch-x86/syscalls/__timer_getoverrun.S index 2a8de1e51..f21b08f6c 100644 --- a/libc/arch-x86/syscalls/__timer_getoverrun.S +++ b/libc/arch-x86/syscalls/__timer_getoverrun.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_getoverrun) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(__timer_getoverrun) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/__timer_gettime.S b/libc/arch-x86/syscalls/__timer_gettime.S index 9edd15a13..73c853958 100644 --- a/libc/arch-x86/syscalls/__timer_gettime.S +++ b/libc/arch-x86/syscalls/__timer_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_gettime) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(__timer_gettime) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/__timer_settime.S b/libc/arch-x86/syscalls/__timer_settime.S index 4bb0790b9..1a6a8ec2c 100644 --- a/libc/arch-x86/syscalls/__timer_settime.S +++ b/libc/arch-x86/syscalls/__timer_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_settime) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(__timer_settime) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/__waitid.S b/libc/arch-x86/syscalls/__waitid.S index 331baf561..2061abc7e 100644 --- a/libc/arch-x86/syscalls/__waitid.S +++ b/libc/arch-x86/syscalls/__waitid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__waitid) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(__waitid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/_exit.S b/libc/arch-x86/syscalls/_exit.S index 0da6e7986..8528ee415 100644 --- a/libc/arch-x86/syscalls/_exit.S +++ b/libc/arch-x86/syscalls/_exit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(_exit) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(_exit) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/acct.S b/libc/arch-x86/syscalls/acct.S index 34a23a46e..d831771de 100644 --- a/libc/arch-x86/syscalls/acct.S +++ b/libc/arch-x86/syscalls/acct.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(acct) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(acct) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/bind.S b/libc/arch-x86/syscalls/bind.S index 1d4531906..9ef817ec9 100644 --- a/libc/arch-x86/syscalls/bind.S +++ b/libc/arch-x86/syscalls/bind.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(bind) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(bind) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/capget.S b/libc/arch-x86/syscalls/capget.S index 82b5b73df..81c24e88b 100644 --- a/libc/arch-x86/syscalls/capget.S +++ b/libc/arch-x86/syscalls/capget.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(capget) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(capget) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/capset.S b/libc/arch-x86/syscalls/capset.S index 79e874796..4e311e961 100644 --- a/libc/arch-x86/syscalls/capset.S +++ b/libc/arch-x86/syscalls/capset.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(capset) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(capset) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/chdir.S b/libc/arch-x86/syscalls/chdir.S index 98bdf37ea..2226a1aae 100644 --- a/libc/arch-x86/syscalls/chdir.S +++ b/libc/arch-x86/syscalls/chdir.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(chdir) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(chdir) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/chroot.S b/libc/arch-x86/syscalls/chroot.S index 978eec7d6..95ed0b5d4 100644 --- a/libc/arch-x86/syscalls/chroot.S +++ b/libc/arch-x86/syscalls/chroot.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(chroot) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(chroot) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/clock_getres.S b/libc/arch-x86/syscalls/clock_getres.S index c93a27927..9501799f7 100644 --- a/libc/arch-x86/syscalls/clock_getres.S +++ b/libc/arch-x86/syscalls/clock_getres.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_getres) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(clock_getres) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/clock_gettime.S b/libc/arch-x86/syscalls/clock_gettime.S index 9c5c2407e..0875cfbd9 100644 --- a/libc/arch-x86/syscalls/clock_gettime.S +++ b/libc/arch-x86/syscalls/clock_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_gettime) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(clock_gettime) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/clock_nanosleep.S b/libc/arch-x86/syscalls/clock_nanosleep.S index edadec219..5e2cc0313 100644 --- a/libc/arch-x86/syscalls/clock_nanosleep.S +++ b/libc/arch-x86/syscalls/clock_nanosleep.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_nanosleep) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(clock_nanosleep) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/clock_settime.S b/libc/arch-x86/syscalls/clock_settime.S index 41012d0af..96fafed1d 100644 --- a/libc/arch-x86/syscalls/clock_settime.S +++ b/libc/arch-x86/syscalls/clock_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_settime) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(clock_settime) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/close.S b/libc/arch-x86/syscalls/close.S index b73c4b400..f6cce62cf 100644 --- a/libc/arch-x86/syscalls/close.S +++ b/libc/arch-x86/syscalls/close.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(close) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(close) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/delete_module.S b/libc/arch-x86/syscalls/delete_module.S index 73a51283d..58b8d6bf3 100644 --- a/libc/arch-x86/syscalls/delete_module.S +++ b/libc/arch-x86/syscalls/delete_module.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(delete_module) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(delete_module) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/dup.S b/libc/arch-x86/syscalls/dup.S index f8e8772b5..0fd9cceb3 100644 --- a/libc/arch-x86/syscalls/dup.S +++ b/libc/arch-x86/syscalls/dup.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(dup) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(dup) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/dup3.S b/libc/arch-x86/syscalls/dup3.S index 1203e6453..8348660c9 100644 --- a/libc/arch-x86/syscalls/dup3.S +++ b/libc/arch-x86/syscalls/dup3.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(dup3) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(dup3) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/epoll_create1.S b/libc/arch-x86/syscalls/epoll_create1.S index 6384b926b..0fcd09c2c 100644 --- a/libc/arch-x86/syscalls/epoll_create1.S +++ b/libc/arch-x86/syscalls/epoll_create1.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(epoll_create1) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(epoll_create1) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/epoll_ctl.S b/libc/arch-x86/syscalls/epoll_ctl.S index cdc880e75..092c1e09a 100644 --- a/libc/arch-x86/syscalls/epoll_ctl.S +++ b/libc/arch-x86/syscalls/epoll_ctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(epoll_ctl) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(epoll_ctl) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/eventfd.S b/libc/arch-x86/syscalls/eventfd.S index fe859672e..cc165e591 100644 --- a/libc/arch-x86/syscalls/eventfd.S +++ b/libc/arch-x86/syscalls/eventfd.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(eventfd) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(eventfd) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/execve.S b/libc/arch-x86/syscalls/execve.S index a897c42d0..e1c025341 100644 --- a/libc/arch-x86/syscalls/execve.S +++ b/libc/arch-x86/syscalls/execve.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(execve) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(execve) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/faccessat.S b/libc/arch-x86/syscalls/faccessat.S index 4ac3e2a59..9d522311b 100644 --- a/libc/arch-x86/syscalls/faccessat.S +++ b/libc/arch-x86/syscalls/faccessat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(faccessat) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(faccessat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/fallocate64.S b/libc/arch-x86/syscalls/fallocate64.S index e1dfa085a..e2a7c3eb7 100644 --- a/libc/arch-x86/syscalls/fallocate64.S +++ b/libc/arch-x86/syscalls/fallocate64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fallocate64) pushl %ebx .cfi_def_cfa_offset 8 @@ -35,7 +33,7 @@ ENTRY(fallocate64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebp diff --git a/libc/arch-x86/syscalls/fchdir.S b/libc/arch-x86/syscalls/fchdir.S index af43acb0d..c40c2c1c8 100644 --- a/libc/arch-x86/syscalls/fchdir.S +++ b/libc/arch-x86/syscalls/fchdir.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchdir) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(fchdir) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/fchmod.S b/libc/arch-x86/syscalls/fchmod.S index 5c5835990..37851ff47 100644 --- a/libc/arch-x86/syscalls/fchmod.S +++ b/libc/arch-x86/syscalls/fchmod.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchmod) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(fchmod) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/fchmodat.S b/libc/arch-x86/syscalls/fchmodat.S index aed8d2910..f5155120d 100644 --- a/libc/arch-x86/syscalls/fchmodat.S +++ b/libc/arch-x86/syscalls/fchmodat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchmodat) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(fchmodat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/fchown.S b/libc/arch-x86/syscalls/fchown.S index da80251d1..1a4f74940 100644 --- a/libc/arch-x86/syscalls/fchown.S +++ b/libc/arch-x86/syscalls/fchown.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchown) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(fchown) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/fchownat.S b/libc/arch-x86/syscalls/fchownat.S index 851424370..c2b358e64 100644 --- a/libc/arch-x86/syscalls/fchownat.S +++ b/libc/arch-x86/syscalls/fchownat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchownat) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(fchownat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/fdatasync.S b/libc/arch-x86/syscalls/fdatasync.S index fc2c16332..debd4e322 100644 --- a/libc/arch-x86/syscalls/fdatasync.S +++ b/libc/arch-x86/syscalls/fdatasync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fdatasync) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(fdatasync) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/fgetxattr.S b/libc/arch-x86/syscalls/fgetxattr.S index 767a675ab..1eff93172 100644 --- a/libc/arch-x86/syscalls/fgetxattr.S +++ b/libc/arch-x86/syscalls/fgetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fgetxattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(fgetxattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/flistxattr.S b/libc/arch-x86/syscalls/flistxattr.S index dbb49779c..fc81a374c 100644 --- a/libc/arch-x86/syscalls/flistxattr.S +++ b/libc/arch-x86/syscalls/flistxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(flistxattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(flistxattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/flock.S b/libc/arch-x86/syscalls/flock.S index b4b748e82..0fc76a8fc 100644 --- a/libc/arch-x86/syscalls/flock.S +++ b/libc/arch-x86/syscalls/flock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(flock) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(flock) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/fremovexattr.S b/libc/arch-x86/syscalls/fremovexattr.S index c34cbc4a8..2053a9a9b 100644 --- a/libc/arch-x86/syscalls/fremovexattr.S +++ b/libc/arch-x86/syscalls/fremovexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fremovexattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(fremovexattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/fsetxattr.S b/libc/arch-x86/syscalls/fsetxattr.S index 5593dca70..7af0ef02a 100644 --- a/libc/arch-x86/syscalls/fsetxattr.S +++ b/libc/arch-x86/syscalls/fsetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fsetxattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(fsetxattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/fstat64.S b/libc/arch-x86/syscalls/fstat64.S index 2e29ae5f8..fc1623320 100644 --- a/libc/arch-x86/syscalls/fstat64.S +++ b/libc/arch-x86/syscalls/fstat64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fstat64) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(fstat64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/fstatat64.S b/libc/arch-x86/syscalls/fstatat64.S index 72922cbfe..a3697e623 100644 --- a/libc/arch-x86/syscalls/fstatat64.S +++ b/libc/arch-x86/syscalls/fstatat64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fstatat64) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(fstatat64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/fsync.S b/libc/arch-x86/syscalls/fsync.S index af10e9ad2..b19a3abaa 100644 --- a/libc/arch-x86/syscalls/fsync.S +++ b/libc/arch-x86/syscalls/fsync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fsync) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(fsync) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/ftruncate.S b/libc/arch-x86/syscalls/ftruncate.S index 734398559..78d1e184f 100644 --- a/libc/arch-x86/syscalls/ftruncate.S +++ b/libc/arch-x86/syscalls/ftruncate.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(ftruncate) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(ftruncate) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/ftruncate64.S b/libc/arch-x86/syscalls/ftruncate64.S index 47b925b84..723344725 100644 --- a/libc/arch-x86/syscalls/ftruncate64.S +++ b/libc/arch-x86/syscalls/ftruncate64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(ftruncate64) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(ftruncate64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/getegid.S b/libc/arch-x86/syscalls/getegid.S index bc21b5a35..729b7ad0c 100644 --- a/libc/arch-x86/syscalls/getegid.S +++ b/libc/arch-x86/syscalls/getegid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getegid) movl $__NR_getegid32, %eax int $0x80 @@ -11,7 +9,7 @@ ENTRY(getegid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: ret diff --git a/libc/arch-x86/syscalls/geteuid.S b/libc/arch-x86/syscalls/geteuid.S index 469f9c9ad..dcc76b1ff 100644 --- a/libc/arch-x86/syscalls/geteuid.S +++ b/libc/arch-x86/syscalls/geteuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(geteuid) movl $__NR_geteuid32, %eax int $0x80 @@ -11,7 +9,7 @@ ENTRY(geteuid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: ret diff --git a/libc/arch-x86/syscalls/getgid.S b/libc/arch-x86/syscalls/getgid.S index 6b15674b7..b36a2c939 100644 --- a/libc/arch-x86/syscalls/getgid.S +++ b/libc/arch-x86/syscalls/getgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getgid) movl $__NR_getgid32, %eax int $0x80 @@ -11,7 +9,7 @@ ENTRY(getgid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: ret diff --git a/libc/arch-x86/syscalls/getgroups.S b/libc/arch-x86/syscalls/getgroups.S index a7aa1b2af..0a5de355e 100644 --- a/libc/arch-x86/syscalls/getgroups.S +++ b/libc/arch-x86/syscalls/getgroups.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getgroups) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(getgroups) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/getitimer.S b/libc/arch-x86/syscalls/getitimer.S index 1b424a33b..a0cb761cc 100644 --- a/libc/arch-x86/syscalls/getitimer.S +++ b/libc/arch-x86/syscalls/getitimer.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getitimer) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(getitimer) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/getpeername.S b/libc/arch-x86/syscalls/getpeername.S index 94b43fbcc..6773e6adc 100644 --- a/libc/arch-x86/syscalls/getpeername.S +++ b/libc/arch-x86/syscalls/getpeername.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getpeername) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(getpeername) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/getpgid.S b/libc/arch-x86/syscalls/getpgid.S index 7d7149e46..f702cfdcd 100644 --- a/libc/arch-x86/syscalls/getpgid.S +++ b/libc/arch-x86/syscalls/getpgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getpgid) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(getpgid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/getppid.S b/libc/arch-x86/syscalls/getppid.S index 3103ed2d6..edbe38407 100644 --- a/libc/arch-x86/syscalls/getppid.S +++ b/libc/arch-x86/syscalls/getppid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getppid) movl $__NR_getppid, %eax int $0x80 @@ -11,7 +9,7 @@ ENTRY(getppid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: ret diff --git a/libc/arch-x86/syscalls/getresgid.S b/libc/arch-x86/syscalls/getresgid.S index 2f03a03c9..9f1a9dd41 100644 --- a/libc/arch-x86/syscalls/getresgid.S +++ b/libc/arch-x86/syscalls/getresgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getresgid) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(getresgid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/getresuid.S b/libc/arch-x86/syscalls/getresuid.S index d6fe91560..61e13702c 100644 --- a/libc/arch-x86/syscalls/getresuid.S +++ b/libc/arch-x86/syscalls/getresuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getresuid) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(getresuid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/getrlimit.S b/libc/arch-x86/syscalls/getrlimit.S index 4587a2e35..c3acff35e 100644 --- a/libc/arch-x86/syscalls/getrlimit.S +++ b/libc/arch-x86/syscalls/getrlimit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getrlimit) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(getrlimit) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/getrusage.S b/libc/arch-x86/syscalls/getrusage.S index 4b2e38b3a..0d715cd3c 100644 --- a/libc/arch-x86/syscalls/getrusage.S +++ b/libc/arch-x86/syscalls/getrusage.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getrusage) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(getrusage) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/getsid.S b/libc/arch-x86/syscalls/getsid.S index eac9f2c4b..e142c0540 100644 --- a/libc/arch-x86/syscalls/getsid.S +++ b/libc/arch-x86/syscalls/getsid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsid) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(getsid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/getsockname.S b/libc/arch-x86/syscalls/getsockname.S index 738fa6d44..6050190b5 100644 --- a/libc/arch-x86/syscalls/getsockname.S +++ b/libc/arch-x86/syscalls/getsockname.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsockname) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(getsockname) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/getsockopt.S b/libc/arch-x86/syscalls/getsockopt.S index f8338f503..aec40cff9 100644 --- a/libc/arch-x86/syscalls/getsockopt.S +++ b/libc/arch-x86/syscalls/getsockopt.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsockopt) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(getsockopt) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/gettimeofday.S b/libc/arch-x86/syscalls/gettimeofday.S index 96c1e111d..a508c14a4 100644 --- a/libc/arch-x86/syscalls/gettimeofday.S +++ b/libc/arch-x86/syscalls/gettimeofday.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(gettimeofday) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(gettimeofday) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/getuid.S b/libc/arch-x86/syscalls/getuid.S index cde5da8b6..cc6288418 100644 --- a/libc/arch-x86/syscalls/getuid.S +++ b/libc/arch-x86/syscalls/getuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getuid) movl $__NR_getuid32, %eax int $0x80 @@ -11,7 +9,7 @@ ENTRY(getuid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: ret diff --git a/libc/arch-x86/syscalls/getxattr.S b/libc/arch-x86/syscalls/getxattr.S index 7679cbf1c..a2cf1377b 100644 --- a/libc/arch-x86/syscalls/getxattr.S +++ b/libc/arch-x86/syscalls/getxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getxattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(getxattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/init_module.S b/libc/arch-x86/syscalls/init_module.S index 02e55f0e2..1d0f111a5 100644 --- a/libc/arch-x86/syscalls/init_module.S +++ b/libc/arch-x86/syscalls/init_module.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(init_module) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(init_module) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/inotify_add_watch.S b/libc/arch-x86/syscalls/inotify_add_watch.S index 74a59f358..8cadc6e99 100644 --- a/libc/arch-x86/syscalls/inotify_add_watch.S +++ b/libc/arch-x86/syscalls/inotify_add_watch.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_add_watch) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(inotify_add_watch) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/inotify_init1.S b/libc/arch-x86/syscalls/inotify_init1.S index de714c962..23671e032 100644 --- a/libc/arch-x86/syscalls/inotify_init1.S +++ b/libc/arch-x86/syscalls/inotify_init1.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_init1) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(inotify_init1) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/inotify_rm_watch.S b/libc/arch-x86/syscalls/inotify_rm_watch.S index 3edc152c4..c246c0077 100644 --- a/libc/arch-x86/syscalls/inotify_rm_watch.S +++ b/libc/arch-x86/syscalls/inotify_rm_watch.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_rm_watch) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(inotify_rm_watch) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/kill.S b/libc/arch-x86/syscalls/kill.S index 0cf38a9e7..edc9cdea1 100644 --- a/libc/arch-x86/syscalls/kill.S +++ b/libc/arch-x86/syscalls/kill.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(kill) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(kill) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/klogctl.S b/libc/arch-x86/syscalls/klogctl.S index 52b04e132..5de9a31ec 100644 --- a/libc/arch-x86/syscalls/klogctl.S +++ b/libc/arch-x86/syscalls/klogctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(klogctl) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(klogctl) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/lgetxattr.S b/libc/arch-x86/syscalls/lgetxattr.S index 8c2eb473c..55697a0b0 100644 --- a/libc/arch-x86/syscalls/lgetxattr.S +++ b/libc/arch-x86/syscalls/lgetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lgetxattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(lgetxattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/linkat.S b/libc/arch-x86/syscalls/linkat.S index 56b8368ec..8b2646d59 100644 --- a/libc/arch-x86/syscalls/linkat.S +++ b/libc/arch-x86/syscalls/linkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(linkat) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(linkat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/listen.S b/libc/arch-x86/syscalls/listen.S index 2c8cc7685..8ae41860d 100644 --- a/libc/arch-x86/syscalls/listen.S +++ b/libc/arch-x86/syscalls/listen.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(listen) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(listen) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/listxattr.S b/libc/arch-x86/syscalls/listxattr.S index f43ab3cd5..a73dc1adb 100644 --- a/libc/arch-x86/syscalls/listxattr.S +++ b/libc/arch-x86/syscalls/listxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(listxattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(listxattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/llistxattr.S b/libc/arch-x86/syscalls/llistxattr.S index d32652678..63d4489dc 100644 --- a/libc/arch-x86/syscalls/llistxattr.S +++ b/libc/arch-x86/syscalls/llistxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(llistxattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(llistxattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/lremovexattr.S b/libc/arch-x86/syscalls/lremovexattr.S index b4f4817bb..42c7e0fd9 100644 --- a/libc/arch-x86/syscalls/lremovexattr.S +++ b/libc/arch-x86/syscalls/lremovexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lremovexattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(lremovexattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/lseek.S b/libc/arch-x86/syscalls/lseek.S index 1115be867..bfe9e6315 100644 --- a/libc/arch-x86/syscalls/lseek.S +++ b/libc/arch-x86/syscalls/lseek.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lseek) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(lseek) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/lsetxattr.S b/libc/arch-x86/syscalls/lsetxattr.S index fc62cdd20..f36fc6a4d 100644 --- a/libc/arch-x86/syscalls/lsetxattr.S +++ b/libc/arch-x86/syscalls/lsetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lsetxattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(lsetxattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/madvise.S b/libc/arch-x86/syscalls/madvise.S index 1de44560a..b69f5d456 100644 --- a/libc/arch-x86/syscalls/madvise.S +++ b/libc/arch-x86/syscalls/madvise.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(madvise) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(madvise) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/mincore.S b/libc/arch-x86/syscalls/mincore.S index 118063cb1..6d1df67ab 100644 --- a/libc/arch-x86/syscalls/mincore.S +++ b/libc/arch-x86/syscalls/mincore.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mincore) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(mincore) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/mkdirat.S b/libc/arch-x86/syscalls/mkdirat.S index 6969d2a5f..5b6ae18cc 100644 --- a/libc/arch-x86/syscalls/mkdirat.S +++ b/libc/arch-x86/syscalls/mkdirat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mkdirat) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(mkdirat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/mknodat.S b/libc/arch-x86/syscalls/mknodat.S index 6c743d278..b19d972a9 100644 --- a/libc/arch-x86/syscalls/mknodat.S +++ b/libc/arch-x86/syscalls/mknodat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mknodat) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(mknodat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/mlock.S b/libc/arch-x86/syscalls/mlock.S index 5ec799e7a..517e5a56d 100644 --- a/libc/arch-x86/syscalls/mlock.S +++ b/libc/arch-x86/syscalls/mlock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mlock) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(mlock) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/mlockall.S b/libc/arch-x86/syscalls/mlockall.S index 72a8da597..756ca1689 100644 --- a/libc/arch-x86/syscalls/mlockall.S +++ b/libc/arch-x86/syscalls/mlockall.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mlockall) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(mlockall) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/mount.S b/libc/arch-x86/syscalls/mount.S index 1e06b8e30..0537528a6 100644 --- a/libc/arch-x86/syscalls/mount.S +++ b/libc/arch-x86/syscalls/mount.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mount) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(mount) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/mprotect.S b/libc/arch-x86/syscalls/mprotect.S index 11037c3ef..1ba186c04 100644 --- a/libc/arch-x86/syscalls/mprotect.S +++ b/libc/arch-x86/syscalls/mprotect.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mprotect) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(mprotect) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/mremap.S b/libc/arch-x86/syscalls/mremap.S index b7f96ff84..869ef5de9 100644 --- a/libc/arch-x86/syscalls/mremap.S +++ b/libc/arch-x86/syscalls/mremap.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mremap) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(mremap) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/msync.S b/libc/arch-x86/syscalls/msync.S index e2549f768..81bd5982d 100644 --- a/libc/arch-x86/syscalls/msync.S +++ b/libc/arch-x86/syscalls/msync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(msync) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(msync) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/munlock.S b/libc/arch-x86/syscalls/munlock.S index 6b79e9910..67ca3fe7f 100644 --- a/libc/arch-x86/syscalls/munlock.S +++ b/libc/arch-x86/syscalls/munlock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munlock) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(munlock) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/munlockall.S b/libc/arch-x86/syscalls/munlockall.S index 96e238b1e..bf0bfa1fe 100644 --- a/libc/arch-x86/syscalls/munlockall.S +++ b/libc/arch-x86/syscalls/munlockall.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munlockall) movl $__NR_munlockall, %eax int $0x80 @@ -11,7 +9,7 @@ ENTRY(munlockall) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: ret diff --git a/libc/arch-x86/syscalls/munmap.S b/libc/arch-x86/syscalls/munmap.S index a77a77746..272cb5251 100644 --- a/libc/arch-x86/syscalls/munmap.S +++ b/libc/arch-x86/syscalls/munmap.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munmap) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(munmap) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/nanosleep.S b/libc/arch-x86/syscalls/nanosleep.S index 444aa7e94..5c46a4a70 100644 --- a/libc/arch-x86/syscalls/nanosleep.S +++ b/libc/arch-x86/syscalls/nanosleep.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(nanosleep) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(nanosleep) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/personality.S b/libc/arch-x86/syscalls/personality.S index 5344e1cc1..d60ced1db 100644 --- a/libc/arch-x86/syscalls/personality.S +++ b/libc/arch-x86/syscalls/personality.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(personality) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(personality) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/pipe2.S b/libc/arch-x86/syscalls/pipe2.S index 62665a05a..ee49ff84a 100644 --- a/libc/arch-x86/syscalls/pipe2.S +++ b/libc/arch-x86/syscalls/pipe2.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pipe2) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(pipe2) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/prctl.S b/libc/arch-x86/syscalls/prctl.S index 28e84d8e2..496591e6a 100644 --- a/libc/arch-x86/syscalls/prctl.S +++ b/libc/arch-x86/syscalls/prctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(prctl) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(prctl) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/pread64.S b/libc/arch-x86/syscalls/pread64.S index e7502b94c..42e54ec1a 100644 --- a/libc/arch-x86/syscalls/pread64.S +++ b/libc/arch-x86/syscalls/pread64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pread64) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(pread64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/prlimit64.S b/libc/arch-x86/syscalls/prlimit64.S index 2ca8b233b..07b5585c7 100644 --- a/libc/arch-x86/syscalls/prlimit64.S +++ b/libc/arch-x86/syscalls/prlimit64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(prlimit64) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(prlimit64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/pwrite64.S b/libc/arch-x86/syscalls/pwrite64.S index b798a8e22..d5c9b31a9 100644 --- a/libc/arch-x86/syscalls/pwrite64.S +++ b/libc/arch-x86/syscalls/pwrite64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pwrite64) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(pwrite64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/read.S b/libc/arch-x86/syscalls/read.S index 483c5ef96..c10a83bdd 100644 --- a/libc/arch-x86/syscalls/read.S +++ b/libc/arch-x86/syscalls/read.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(read) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(read) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/readahead.S b/libc/arch-x86/syscalls/readahead.S index b1e0870e9..1c0ccfc45 100644 --- a/libc/arch-x86/syscalls/readahead.S +++ b/libc/arch-x86/syscalls/readahead.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readahead) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(readahead) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/readlinkat.S b/libc/arch-x86/syscalls/readlinkat.S index a06ae73a6..4a24c2cac 100644 --- a/libc/arch-x86/syscalls/readlinkat.S +++ b/libc/arch-x86/syscalls/readlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readlinkat) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(readlinkat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/readv.S b/libc/arch-x86/syscalls/readv.S index a0b46b886..c18c1b115 100644 --- a/libc/arch-x86/syscalls/readv.S +++ b/libc/arch-x86/syscalls/readv.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readv) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(readv) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/recvfrom.S b/libc/arch-x86/syscalls/recvfrom.S index 86f12c0c5..88c9d0a43 100644 --- a/libc/arch-x86/syscalls/recvfrom.S +++ b/libc/arch-x86/syscalls/recvfrom.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvfrom) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(recvfrom) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/recvmmsg.S b/libc/arch-x86/syscalls/recvmmsg.S index f77f7942b..09404d46a 100644 --- a/libc/arch-x86/syscalls/recvmmsg.S +++ b/libc/arch-x86/syscalls/recvmmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvmmsg) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(recvmmsg) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/recvmsg.S b/libc/arch-x86/syscalls/recvmsg.S index 5d25d7a60..6cfcd63f1 100644 --- a/libc/arch-x86/syscalls/recvmsg.S +++ b/libc/arch-x86/syscalls/recvmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvmsg) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(recvmsg) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/removexattr.S b/libc/arch-x86/syscalls/removexattr.S index cbbdf4ee7..b067a9f2c 100644 --- a/libc/arch-x86/syscalls/removexattr.S +++ b/libc/arch-x86/syscalls/removexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(removexattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(removexattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/renameat.S b/libc/arch-x86/syscalls/renameat.S index e424daff5..bb2181ee3 100644 --- a/libc/arch-x86/syscalls/renameat.S +++ b/libc/arch-x86/syscalls/renameat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(renameat) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(renameat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/sched_get_priority_max.S b/libc/arch-x86/syscalls/sched_get_priority_max.S index eee6f922f..be66cfb15 100644 --- a/libc/arch-x86/syscalls/sched_get_priority_max.S +++ b/libc/arch-x86/syscalls/sched_get_priority_max.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_get_priority_max) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(sched_get_priority_max) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/sched_get_priority_min.S b/libc/arch-x86/syscalls/sched_get_priority_min.S index 0edcab130..8dde67b4c 100644 --- a/libc/arch-x86/syscalls/sched_get_priority_min.S +++ b/libc/arch-x86/syscalls/sched_get_priority_min.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_get_priority_min) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(sched_get_priority_min) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/sched_getparam.S b/libc/arch-x86/syscalls/sched_getparam.S index 9a4ebbd4f..d0551efb5 100644 --- a/libc/arch-x86/syscalls/sched_getparam.S +++ b/libc/arch-x86/syscalls/sched_getparam.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_getparam) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(sched_getparam) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/sched_getscheduler.S b/libc/arch-x86/syscalls/sched_getscheduler.S index 19a925e77..5b7c8179a 100644 --- a/libc/arch-x86/syscalls/sched_getscheduler.S +++ b/libc/arch-x86/syscalls/sched_getscheduler.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_getscheduler) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(sched_getscheduler) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/sched_rr_get_interval.S b/libc/arch-x86/syscalls/sched_rr_get_interval.S index c2592a9ae..073f3c715 100644 --- a/libc/arch-x86/syscalls/sched_rr_get_interval.S +++ b/libc/arch-x86/syscalls/sched_rr_get_interval.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_rr_get_interval) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(sched_rr_get_interval) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/sched_setaffinity.S b/libc/arch-x86/syscalls/sched_setaffinity.S index 4a0ac86d1..79ec11393 100644 --- a/libc/arch-x86/syscalls/sched_setaffinity.S +++ b/libc/arch-x86/syscalls/sched_setaffinity.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setaffinity) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(sched_setaffinity) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/sched_setparam.S b/libc/arch-x86/syscalls/sched_setparam.S index a99c0de0f..970747dea 100644 --- a/libc/arch-x86/syscalls/sched_setparam.S +++ b/libc/arch-x86/syscalls/sched_setparam.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setparam) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(sched_setparam) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/sched_setscheduler.S b/libc/arch-x86/syscalls/sched_setscheduler.S index dbfd01e5f..da50aaf01 100644 --- a/libc/arch-x86/syscalls/sched_setscheduler.S +++ b/libc/arch-x86/syscalls/sched_setscheduler.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setscheduler) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(sched_setscheduler) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/sched_yield.S b/libc/arch-x86/syscalls/sched_yield.S index 87ebaf9c6..e3878e33a 100644 --- a/libc/arch-x86/syscalls/sched_yield.S +++ b/libc/arch-x86/syscalls/sched_yield.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_yield) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(sched_yield) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/sendfile.S b/libc/arch-x86/syscalls/sendfile.S index 58433fb32..c5f9a2d19 100644 --- a/libc/arch-x86/syscalls/sendfile.S +++ b/libc/arch-x86/syscalls/sendfile.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendfile) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(sendfile) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/sendfile64.S b/libc/arch-x86/syscalls/sendfile64.S index 97c714614..bc5d0dd19 100644 --- a/libc/arch-x86/syscalls/sendfile64.S +++ b/libc/arch-x86/syscalls/sendfile64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendfile64) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(sendfile64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/sendmmsg.S b/libc/arch-x86/syscalls/sendmmsg.S index 3c359eeb7..784c6b603 100644 --- a/libc/arch-x86/syscalls/sendmmsg.S +++ b/libc/arch-x86/syscalls/sendmmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendmmsg) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(sendmmsg) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/sendmsg.S b/libc/arch-x86/syscalls/sendmsg.S index 51288cc4c..bf0d1fb60 100644 --- a/libc/arch-x86/syscalls/sendmsg.S +++ b/libc/arch-x86/syscalls/sendmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendmsg) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(sendmsg) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/sendto.S b/libc/arch-x86/syscalls/sendto.S index 4b77f2479..b39eaf053 100644 --- a/libc/arch-x86/syscalls/sendto.S +++ b/libc/arch-x86/syscalls/sendto.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendto) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(sendto) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/setfsgid.S b/libc/arch-x86/syscalls/setfsgid.S index a8160c3f1..dc81f7227 100644 --- a/libc/arch-x86/syscalls/setfsgid.S +++ b/libc/arch-x86/syscalls/setfsgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setfsgid) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(setfsgid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/setfsuid.S b/libc/arch-x86/syscalls/setfsuid.S index abcf0b3bd..fdf785009 100644 --- a/libc/arch-x86/syscalls/setfsuid.S +++ b/libc/arch-x86/syscalls/setfsuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setfsuid) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(setfsuid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/setgid.S b/libc/arch-x86/syscalls/setgid.S index 47c011e4d..ce6ee266f 100644 --- a/libc/arch-x86/syscalls/setgid.S +++ b/libc/arch-x86/syscalls/setgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setgid) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(setgid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/setgroups.S b/libc/arch-x86/syscalls/setgroups.S index 7a5891083..7e46ad010 100644 --- a/libc/arch-x86/syscalls/setgroups.S +++ b/libc/arch-x86/syscalls/setgroups.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setgroups) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(setgroups) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/setitimer.S b/libc/arch-x86/syscalls/setitimer.S index e87a26e0d..370ab5e8e 100644 --- a/libc/arch-x86/syscalls/setitimer.S +++ b/libc/arch-x86/syscalls/setitimer.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setitimer) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(setitimer) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/setns.S b/libc/arch-x86/syscalls/setns.S index 75f23faf7..736df5912 100644 --- a/libc/arch-x86/syscalls/setns.S +++ b/libc/arch-x86/syscalls/setns.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setns) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(setns) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/setpgid.S b/libc/arch-x86/syscalls/setpgid.S index c20b7897b..0bff10a6c 100644 --- a/libc/arch-x86/syscalls/setpgid.S +++ b/libc/arch-x86/syscalls/setpgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setpgid) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(setpgid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/setpriority.S b/libc/arch-x86/syscalls/setpriority.S index 4606c23fb..4233871b6 100644 --- a/libc/arch-x86/syscalls/setpriority.S +++ b/libc/arch-x86/syscalls/setpriority.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setpriority) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(setpriority) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/setregid.S b/libc/arch-x86/syscalls/setregid.S index ff6cf36d6..a56ccfd25 100644 --- a/libc/arch-x86/syscalls/setregid.S +++ b/libc/arch-x86/syscalls/setregid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setregid) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(setregid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/setresgid.S b/libc/arch-x86/syscalls/setresgid.S index a4846aef7..229983103 100644 --- a/libc/arch-x86/syscalls/setresgid.S +++ b/libc/arch-x86/syscalls/setresgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setresgid) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(setresgid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/setresuid.S b/libc/arch-x86/syscalls/setresuid.S index 6ed0fadc8..8624e157c 100644 --- a/libc/arch-x86/syscalls/setresuid.S +++ b/libc/arch-x86/syscalls/setresuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setresuid) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(setresuid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/setreuid.S b/libc/arch-x86/syscalls/setreuid.S index 57d75409c..9f6e11776 100644 --- a/libc/arch-x86/syscalls/setreuid.S +++ b/libc/arch-x86/syscalls/setreuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setreuid) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(setreuid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/setrlimit.S b/libc/arch-x86/syscalls/setrlimit.S index 9ca613417..20246882c 100644 --- a/libc/arch-x86/syscalls/setrlimit.S +++ b/libc/arch-x86/syscalls/setrlimit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setrlimit) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(setrlimit) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/setsid.S b/libc/arch-x86/syscalls/setsid.S index 5c933b3ce..dda6ad800 100644 --- a/libc/arch-x86/syscalls/setsid.S +++ b/libc/arch-x86/syscalls/setsid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setsid) movl $__NR_setsid, %eax int $0x80 @@ -11,7 +9,7 @@ ENTRY(setsid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: ret diff --git a/libc/arch-x86/syscalls/setsockopt.S b/libc/arch-x86/syscalls/setsockopt.S index f002344df..29e73bbf2 100644 --- a/libc/arch-x86/syscalls/setsockopt.S +++ b/libc/arch-x86/syscalls/setsockopt.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setsockopt) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(setsockopt) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/settimeofday.S b/libc/arch-x86/syscalls/settimeofday.S index b35791d72..4a861ab20 100644 --- a/libc/arch-x86/syscalls/settimeofday.S +++ b/libc/arch-x86/syscalls/settimeofday.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(settimeofday) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(settimeofday) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/setuid.S b/libc/arch-x86/syscalls/setuid.S index f5b83150e..048e0c1dd 100644 --- a/libc/arch-x86/syscalls/setuid.S +++ b/libc/arch-x86/syscalls/setuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setuid) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(setuid) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/setxattr.S b/libc/arch-x86/syscalls/setxattr.S index 24eb2c419..1e87bf04e 100644 --- a/libc/arch-x86/syscalls/setxattr.S +++ b/libc/arch-x86/syscalls/setxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setxattr) pushl %ebx .cfi_def_cfa_offset 8 @@ -31,7 +29,7 @@ ENTRY(setxattr) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edi diff --git a/libc/arch-x86/syscalls/shutdown.S b/libc/arch-x86/syscalls/shutdown.S index e5497e6dc..f224fc681 100644 --- a/libc/arch-x86/syscalls/shutdown.S +++ b/libc/arch-x86/syscalls/shutdown.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(shutdown) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(shutdown) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/sigaltstack.S b/libc/arch-x86/syscalls/sigaltstack.S index 150e3986d..875ef8c47 100644 --- a/libc/arch-x86/syscalls/sigaltstack.S +++ b/libc/arch-x86/syscalls/sigaltstack.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sigaltstack) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(sigaltstack) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/socketpair.S b/libc/arch-x86/syscalls/socketpair.S index f2188e3e6..4c5154e4d 100644 --- a/libc/arch-x86/syscalls/socketpair.S +++ b/libc/arch-x86/syscalls/socketpair.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(socketpair) pushl %ebx .cfi_def_cfa_offset 8 @@ -20,7 +18,7 @@ ENTRY(socketpair) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/splice.S b/libc/arch-x86/syscalls/splice.S index 38d9ddf1d..1dc90373d 100644 --- a/libc/arch-x86/syscalls/splice.S +++ b/libc/arch-x86/syscalls/splice.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(splice) pushl %ebx .cfi_def_cfa_offset 8 @@ -35,7 +33,7 @@ ENTRY(splice) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebp diff --git a/libc/arch-x86/syscalls/swapoff.S b/libc/arch-x86/syscalls/swapoff.S index a0cbc0e27..078852944 100644 --- a/libc/arch-x86/syscalls/swapoff.S +++ b/libc/arch-x86/syscalls/swapoff.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(swapoff) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(swapoff) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/swapon.S b/libc/arch-x86/syscalls/swapon.S index 5a2bc9499..1070d8eae 100644 --- a/libc/arch-x86/syscalls/swapon.S +++ b/libc/arch-x86/syscalls/swapon.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(swapon) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(swapon) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/symlinkat.S b/libc/arch-x86/syscalls/symlinkat.S index 7d7a9da9b..e7fe69e2e 100644 --- a/libc/arch-x86/syscalls/symlinkat.S +++ b/libc/arch-x86/syscalls/symlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(symlinkat) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(symlinkat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/sync.S b/libc/arch-x86/syscalls/sync.S index 423c01dce..252c6662b 100644 --- a/libc/arch-x86/syscalls/sync.S +++ b/libc/arch-x86/syscalls/sync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sync) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(sync) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/sysinfo.S b/libc/arch-x86/syscalls/sysinfo.S index 08707616a..f59a0c36d 100644 --- a/libc/arch-x86/syscalls/sysinfo.S +++ b/libc/arch-x86/syscalls/sysinfo.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sysinfo) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(sysinfo) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/tee.S b/libc/arch-x86/syscalls/tee.S index 85ff3cc5c..b47c4600e 100644 --- a/libc/arch-x86/syscalls/tee.S +++ b/libc/arch-x86/syscalls/tee.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(tee) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(tee) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/tgkill.S b/libc/arch-x86/syscalls/tgkill.S index aab80e169..7a43a01a8 100644 --- a/libc/arch-x86/syscalls/tgkill.S +++ b/libc/arch-x86/syscalls/tgkill.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(tgkill) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(tgkill) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/timerfd_create.S b/libc/arch-x86/syscalls/timerfd_create.S index f1bef4cb6..ad099a5dd 100644 --- a/libc/arch-x86/syscalls/timerfd_create.S +++ b/libc/arch-x86/syscalls/timerfd_create.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_create) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(timerfd_create) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/timerfd_gettime.S b/libc/arch-x86/syscalls/timerfd_gettime.S index d7ec28f2e..c679b7c53 100644 --- a/libc/arch-x86/syscalls/timerfd_gettime.S +++ b/libc/arch-x86/syscalls/timerfd_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_gettime) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(timerfd_gettime) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/timerfd_settime.S b/libc/arch-x86/syscalls/timerfd_settime.S index 7e03edb9d..4e889ead7 100644 --- a/libc/arch-x86/syscalls/timerfd_settime.S +++ b/libc/arch-x86/syscalls/timerfd_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_settime) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(timerfd_settime) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/times.S b/libc/arch-x86/syscalls/times.S index 6a14cff0e..0ba0b6fab 100644 --- a/libc/arch-x86/syscalls/times.S +++ b/libc/arch-x86/syscalls/times.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(times) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(times) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/truncate.S b/libc/arch-x86/syscalls/truncate.S index 33ce47f92..31fec1738 100644 --- a/libc/arch-x86/syscalls/truncate.S +++ b/libc/arch-x86/syscalls/truncate.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(truncate) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(truncate) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/truncate64.S b/libc/arch-x86/syscalls/truncate64.S index 2168eb426..45e24d043 100644 --- a/libc/arch-x86/syscalls/truncate64.S +++ b/libc/arch-x86/syscalls/truncate64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(truncate64) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(truncate64) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/umask.S b/libc/arch-x86/syscalls/umask.S index 03bee20c9..9b4d3c7f5 100644 --- a/libc/arch-x86/syscalls/umask.S +++ b/libc/arch-x86/syscalls/umask.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(umask) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(umask) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/umount2.S b/libc/arch-x86/syscalls/umount2.S index 9701e0399..13757ab3f 100644 --- a/libc/arch-x86/syscalls/umount2.S +++ b/libc/arch-x86/syscalls/umount2.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(umount2) pushl %ebx .cfi_def_cfa_offset 8 @@ -19,7 +17,7 @@ ENTRY(umount2) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ecx diff --git a/libc/arch-x86/syscalls/uname.S b/libc/arch-x86/syscalls/uname.S index 6de3b413e..dab7e0d32 100644 --- a/libc/arch-x86/syscalls/uname.S +++ b/libc/arch-x86/syscalls/uname.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(uname) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(uname) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/unlinkat.S b/libc/arch-x86/syscalls/unlinkat.S index 93ea20183..6faf71e7f 100644 --- a/libc/arch-x86/syscalls/unlinkat.S +++ b/libc/arch-x86/syscalls/unlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(unlinkat) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(unlinkat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/unshare.S b/libc/arch-x86/syscalls/unshare.S index 9d1146690..b724798c2 100644 --- a/libc/arch-x86/syscalls/unshare.S +++ b/libc/arch-x86/syscalls/unshare.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(unshare) pushl %ebx .cfi_def_cfa_offset 8 @@ -15,7 +13,7 @@ ENTRY(unshare) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %ebx diff --git a/libc/arch-x86/syscalls/utimensat.S b/libc/arch-x86/syscalls/utimensat.S index 62e15256c..07eca45ad 100644 --- a/libc/arch-x86/syscalls/utimensat.S +++ b/libc/arch-x86/syscalls/utimensat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(utimensat) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(utimensat) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/vmsplice.S b/libc/arch-x86/syscalls/vmsplice.S index 470763544..f12cc6591 100644 --- a/libc/arch-x86/syscalls/vmsplice.S +++ b/libc/arch-x86/syscalls/vmsplice.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(vmsplice) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(vmsplice) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/wait4.S b/libc/arch-x86/syscalls/wait4.S index 137b721e8..bed7c401e 100644 --- a/libc/arch-x86/syscalls/wait4.S +++ b/libc/arch-x86/syscalls/wait4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(wait4) pushl %ebx .cfi_def_cfa_offset 8 @@ -27,7 +25,7 @@ ENTRY(wait4) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %esi diff --git a/libc/arch-x86/syscalls/write.S b/libc/arch-x86/syscalls/write.S index 2f040b21f..e14720886 100644 --- a/libc/arch-x86/syscalls/write.S +++ b/libc/arch-x86/syscalls/write.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(write) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(write) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86/syscalls/writev.S b/libc/arch-x86/syscalls/writev.S index 2840eead9..07ba7b55b 100644 --- a/libc/arch-x86/syscalls/writev.S +++ b/libc/arch-x86/syscalls/writev.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(writev) pushl %ebx .cfi_def_cfa_offset 8 @@ -23,7 +21,7 @@ ENTRY(writev) jb 1f negl %eax pushl %eax - call __set_errno + call __set_errno_internal addl $4, %esp 1: popl %edx diff --git a/libc/arch-x86_64/bionic/__bionic_clone.S b/libc/arch-x86_64/bionic/__bionic_clone.S index e0ce5a6b8..0c73e5fd0 100644 --- a/libc/arch-x86_64/bionic/__bionic_clone.S +++ b/libc/arch-x86_64/bionic/__bionic_clone.S @@ -54,7 +54,7 @@ ENTRY(__bionic_clone) # An error occurred, set errno and return -1. negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal ret .L_bc_child: diff --git a/libc/arch-x86_64/bionic/syscall.S b/libc/arch-x86_64/bionic/syscall.S index d5694cb57..87939ba35 100644 --- a/libc/arch-x86_64/bionic/syscall.S +++ b/libc/arch-x86_64/bionic/syscall.S @@ -57,7 +57,7 @@ ENTRY(syscall) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(syscall) diff --git a/libc/arch-x86_64/bionic/vfork.S b/libc/arch-x86_64/bionic/vfork.S index 7c14cc0d9..129f1dbd2 100644 --- a/libc/arch-x86_64/bionic/vfork.S +++ b/libc/arch-x86_64/bionic/vfork.S @@ -39,7 +39,7 @@ ENTRY(vfork) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(vfork) diff --git a/libc/arch-x86_64/syscalls/__accept4.S b/libc/arch-x86_64/syscalls/__accept4.S index 774cdd584..aa5beba40 100644 --- a/libc/arch-x86_64/syscalls/__accept4.S +++ b/libc/arch-x86_64/syscalls/__accept4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__accept4) movq %rcx, %r10 movl $__NR_accept4, %eax @@ -12,7 +10,7 @@ ENTRY(__accept4) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__accept4) diff --git a/libc/arch-x86_64/syscalls/__arch_prctl.S b/libc/arch-x86_64/syscalls/__arch_prctl.S index c0dad45d9..0a604f432 100644 --- a/libc/arch-x86_64/syscalls/__arch_prctl.S +++ b/libc/arch-x86_64/syscalls/__arch_prctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__arch_prctl) movl $__NR_arch_prctl, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__arch_prctl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__arch_prctl) diff --git a/libc/arch-x86_64/syscalls/__brk.S b/libc/arch-x86_64/syscalls/__brk.S index df942a1d5..b6c0f2ff8 100644 --- a/libc/arch-x86_64/syscalls/__brk.S +++ b/libc/arch-x86_64/syscalls/__brk.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__brk) movl $__NR_brk, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__brk) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__brk) diff --git a/libc/arch-x86_64/syscalls/__clock_gettime.S b/libc/arch-x86_64/syscalls/__clock_gettime.S index 6c11fb634..ccacdb22d 100644 --- a/libc/arch-x86_64/syscalls/__clock_gettime.S +++ b/libc/arch-x86_64/syscalls/__clock_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__clock_gettime) movl $__NR_clock_gettime, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__clock_gettime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__clock_gettime) diff --git a/libc/arch-x86_64/syscalls/__connect.S b/libc/arch-x86_64/syscalls/__connect.S index 05a82022f..d7531ad69 100644 --- a/libc/arch-x86_64/syscalls/__connect.S +++ b/libc/arch-x86_64/syscalls/__connect.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__connect) movl $__NR_connect, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__connect) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__connect) diff --git a/libc/arch-x86_64/syscalls/__epoll_pwait.S b/libc/arch-x86_64/syscalls/__epoll_pwait.S index b0aee80ac..b486c4abc 100644 --- a/libc/arch-x86_64/syscalls/__epoll_pwait.S +++ b/libc/arch-x86_64/syscalls/__epoll_pwait.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__epoll_pwait) movq %rcx, %r10 movl $__NR_epoll_pwait, %eax @@ -12,7 +10,7 @@ ENTRY(__epoll_pwait) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__epoll_pwait) diff --git a/libc/arch-x86_64/syscalls/__exit.S b/libc/arch-x86_64/syscalls/__exit.S index e552f0415..99b11fc83 100644 --- a/libc/arch-x86_64/syscalls/__exit.S +++ b/libc/arch-x86_64/syscalls/__exit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__exit) movl $__NR_exit, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__exit) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__exit) diff --git a/libc/arch-x86_64/syscalls/__getcpu.S b/libc/arch-x86_64/syscalls/__getcpu.S index c415fd7df..3903e9f3c 100644 --- a/libc/arch-x86_64/syscalls/__getcpu.S +++ b/libc/arch-x86_64/syscalls/__getcpu.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getcpu) movl $__NR_getcpu, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__getcpu) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__getcpu) diff --git a/libc/arch-x86_64/syscalls/__getcwd.S b/libc/arch-x86_64/syscalls/__getcwd.S index 1ea565161..d39c1d788 100644 --- a/libc/arch-x86_64/syscalls/__getcwd.S +++ b/libc/arch-x86_64/syscalls/__getcwd.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getcwd) movl $__NR_getcwd, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__getcwd) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__getcwd) diff --git a/libc/arch-x86_64/syscalls/__getdents64.S b/libc/arch-x86_64/syscalls/__getdents64.S index 42c130c16..b5eb94313 100644 --- a/libc/arch-x86_64/syscalls/__getdents64.S +++ b/libc/arch-x86_64/syscalls/__getdents64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getdents64) movl $__NR_getdents64, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__getdents64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__getdents64) diff --git a/libc/arch-x86_64/syscalls/__getpid.S b/libc/arch-x86_64/syscalls/__getpid.S index ae6bb49db..ec4316eeb 100644 --- a/libc/arch-x86_64/syscalls/__getpid.S +++ b/libc/arch-x86_64/syscalls/__getpid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getpid) movl $__NR_getpid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__getpid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__getpid) diff --git a/libc/arch-x86_64/syscalls/__getpriority.S b/libc/arch-x86_64/syscalls/__getpriority.S index c82b00887..7c618a14b 100644 --- a/libc/arch-x86_64/syscalls/__getpriority.S +++ b/libc/arch-x86_64/syscalls/__getpriority.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__getpriority) movl $__NR_getpriority, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__getpriority) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__getpriority) diff --git a/libc/arch-x86_64/syscalls/__gettimeofday.S b/libc/arch-x86_64/syscalls/__gettimeofday.S index e4b240930..69b9b6ec7 100644 --- a/libc/arch-x86_64/syscalls/__gettimeofday.S +++ b/libc/arch-x86_64/syscalls/__gettimeofday.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__gettimeofday) movl $__NR_gettimeofday, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__gettimeofday) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__gettimeofday) diff --git a/libc/arch-x86_64/syscalls/__ioctl.S b/libc/arch-x86_64/syscalls/__ioctl.S index aa2f53869..0eb34f048 100644 --- a/libc/arch-x86_64/syscalls/__ioctl.S +++ b/libc/arch-x86_64/syscalls/__ioctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ioctl) movl $__NR_ioctl, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__ioctl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__ioctl) diff --git a/libc/arch-x86_64/syscalls/__openat.S b/libc/arch-x86_64/syscalls/__openat.S index e7f5dc4c3..14f53ca97 100644 --- a/libc/arch-x86_64/syscalls/__openat.S +++ b/libc/arch-x86_64/syscalls/__openat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__openat) movq %rcx, %r10 movl $__NR_openat, %eax @@ -12,7 +10,7 @@ ENTRY(__openat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__openat) diff --git a/libc/arch-x86_64/syscalls/__ppoll.S b/libc/arch-x86_64/syscalls/__ppoll.S index eb741ce87..82b97dda3 100644 --- a/libc/arch-x86_64/syscalls/__ppoll.S +++ b/libc/arch-x86_64/syscalls/__ppoll.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ppoll) movq %rcx, %r10 movl $__NR_ppoll, %eax @@ -12,7 +10,7 @@ ENTRY(__ppoll) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__ppoll) diff --git a/libc/arch-x86_64/syscalls/__pselect6.S b/libc/arch-x86_64/syscalls/__pselect6.S index 75ea416dc..c11d8149b 100644 --- a/libc/arch-x86_64/syscalls/__pselect6.S +++ b/libc/arch-x86_64/syscalls/__pselect6.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__pselect6) movq %rcx, %r10 movl $__NR_pselect6, %eax @@ -12,7 +10,7 @@ ENTRY(__pselect6) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__pselect6) diff --git a/libc/arch-x86_64/syscalls/__ptrace.S b/libc/arch-x86_64/syscalls/__ptrace.S index 45724e48d..729e00767 100644 --- a/libc/arch-x86_64/syscalls/__ptrace.S +++ b/libc/arch-x86_64/syscalls/__ptrace.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__ptrace) movq %rcx, %r10 movl $__NR_ptrace, %eax @@ -12,7 +10,7 @@ ENTRY(__ptrace) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__ptrace) diff --git a/libc/arch-x86_64/syscalls/__reboot.S b/libc/arch-x86_64/syscalls/__reboot.S index bbff3f205..b462dc709 100644 --- a/libc/arch-x86_64/syscalls/__reboot.S +++ b/libc/arch-x86_64/syscalls/__reboot.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__reboot) movq %rcx, %r10 movl $__NR_reboot, %eax @@ -12,7 +10,7 @@ ENTRY(__reboot) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__reboot) diff --git a/libc/arch-x86_64/syscalls/__rt_sigaction.S b/libc/arch-x86_64/syscalls/__rt_sigaction.S index 7ce3d8c41..17c599597 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigaction.S +++ b/libc/arch-x86_64/syscalls/__rt_sigaction.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigaction) movq %rcx, %r10 movl $__NR_rt_sigaction, %eax @@ -12,7 +10,7 @@ ENTRY(__rt_sigaction) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__rt_sigaction) diff --git a/libc/arch-x86_64/syscalls/__rt_sigpending.S b/libc/arch-x86_64/syscalls/__rt_sigpending.S index 78c10edab..b5b81bbbb 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigpending.S +++ b/libc/arch-x86_64/syscalls/__rt_sigpending.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigpending) movl $__NR_rt_sigpending, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__rt_sigpending) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__rt_sigpending) diff --git a/libc/arch-x86_64/syscalls/__rt_sigprocmask.S b/libc/arch-x86_64/syscalls/__rt_sigprocmask.S index bf2841c1a..e8b3f2a4e 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigprocmask.S +++ b/libc/arch-x86_64/syscalls/__rt_sigprocmask.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigprocmask) movq %rcx, %r10 movl $__NR_rt_sigprocmask, %eax @@ -12,7 +10,7 @@ ENTRY(__rt_sigprocmask) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__rt_sigprocmask) diff --git a/libc/arch-x86_64/syscalls/__rt_sigsuspend.S b/libc/arch-x86_64/syscalls/__rt_sigsuspend.S index a82b0528a..f6366a22f 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigsuspend.S +++ b/libc/arch-x86_64/syscalls/__rt_sigsuspend.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigsuspend) movl $__NR_rt_sigsuspend, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__rt_sigsuspend) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__rt_sigsuspend) diff --git a/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S b/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S index aceacb2dd..9bcb81155 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__rt_sigtimedwait) movq %rcx, %r10 movl $__NR_rt_sigtimedwait, %eax @@ -12,7 +10,7 @@ ENTRY(__rt_sigtimedwait) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__rt_sigtimedwait) diff --git a/libc/arch-x86_64/syscalls/__sched_getaffinity.S b/libc/arch-x86_64/syscalls/__sched_getaffinity.S index fd1f6075b..0ca6818aa 100644 --- a/libc/arch-x86_64/syscalls/__sched_getaffinity.S +++ b/libc/arch-x86_64/syscalls/__sched_getaffinity.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__sched_getaffinity) movl $__NR_sched_getaffinity, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__sched_getaffinity) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__sched_getaffinity) diff --git a/libc/arch-x86_64/syscalls/__set_tid_address.S b/libc/arch-x86_64/syscalls/__set_tid_address.S index 7e5226d75..3dad6600e 100644 --- a/libc/arch-x86_64/syscalls/__set_tid_address.S +++ b/libc/arch-x86_64/syscalls/__set_tid_address.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__set_tid_address) movl $__NR_set_tid_address, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__set_tid_address) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__set_tid_address) diff --git a/libc/arch-x86_64/syscalls/__signalfd4.S b/libc/arch-x86_64/syscalls/__signalfd4.S index d27f63c42..b44bfe5b8 100644 --- a/libc/arch-x86_64/syscalls/__signalfd4.S +++ b/libc/arch-x86_64/syscalls/__signalfd4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__signalfd4) movq %rcx, %r10 movl $__NR_signalfd4, %eax @@ -12,7 +10,7 @@ ENTRY(__signalfd4) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__signalfd4) diff --git a/libc/arch-x86_64/syscalls/__socket.S b/libc/arch-x86_64/syscalls/__socket.S index 3b573e857..0563d2ffb 100644 --- a/libc/arch-x86_64/syscalls/__socket.S +++ b/libc/arch-x86_64/syscalls/__socket.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__socket) movl $__NR_socket, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__socket) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__socket) diff --git a/libc/arch-x86_64/syscalls/__timer_create.S b/libc/arch-x86_64/syscalls/__timer_create.S index 920c9355f..cb955a46e 100644 --- a/libc/arch-x86_64/syscalls/__timer_create.S +++ b/libc/arch-x86_64/syscalls/__timer_create.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_create) movl $__NR_timer_create, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__timer_create) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__timer_create) diff --git a/libc/arch-x86_64/syscalls/__timer_delete.S b/libc/arch-x86_64/syscalls/__timer_delete.S index c76830e89..7abc7d8cb 100644 --- a/libc/arch-x86_64/syscalls/__timer_delete.S +++ b/libc/arch-x86_64/syscalls/__timer_delete.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_delete) movl $__NR_timer_delete, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__timer_delete) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__timer_delete) diff --git a/libc/arch-x86_64/syscalls/__timer_getoverrun.S b/libc/arch-x86_64/syscalls/__timer_getoverrun.S index e35ee9375..f2a0e24b4 100644 --- a/libc/arch-x86_64/syscalls/__timer_getoverrun.S +++ b/libc/arch-x86_64/syscalls/__timer_getoverrun.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_getoverrun) movl $__NR_timer_getoverrun, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__timer_getoverrun) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__timer_getoverrun) diff --git a/libc/arch-x86_64/syscalls/__timer_gettime.S b/libc/arch-x86_64/syscalls/__timer_gettime.S index 8bb41d9bc..62c2b4719 100644 --- a/libc/arch-x86_64/syscalls/__timer_gettime.S +++ b/libc/arch-x86_64/syscalls/__timer_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_gettime) movl $__NR_timer_gettime, %eax syscall @@ -11,7 +9,7 @@ ENTRY(__timer_gettime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__timer_gettime) diff --git a/libc/arch-x86_64/syscalls/__timer_settime.S b/libc/arch-x86_64/syscalls/__timer_settime.S index 0eace4b7e..225fa8e37 100644 --- a/libc/arch-x86_64/syscalls/__timer_settime.S +++ b/libc/arch-x86_64/syscalls/__timer_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__timer_settime) movq %rcx, %r10 movl $__NR_timer_settime, %eax @@ -12,7 +10,7 @@ ENTRY(__timer_settime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__timer_settime) diff --git a/libc/arch-x86_64/syscalls/__waitid.S b/libc/arch-x86_64/syscalls/__waitid.S index 47bf7b378..ff8a3c519 100644 --- a/libc/arch-x86_64/syscalls/__waitid.S +++ b/libc/arch-x86_64/syscalls/__waitid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(__waitid) movq %rcx, %r10 movl $__NR_waitid, %eax @@ -12,7 +10,7 @@ ENTRY(__waitid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(__waitid) diff --git a/libc/arch-x86_64/syscalls/_exit.S b/libc/arch-x86_64/syscalls/_exit.S index 06465c43d..c79091dd7 100644 --- a/libc/arch-x86_64/syscalls/_exit.S +++ b/libc/arch-x86_64/syscalls/_exit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(_exit) movl $__NR_exit_group, %eax syscall @@ -11,7 +9,7 @@ ENTRY(_exit) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(_exit) diff --git a/libc/arch-x86_64/syscalls/acct.S b/libc/arch-x86_64/syscalls/acct.S index 6bf59e37b..a73970787 100644 --- a/libc/arch-x86_64/syscalls/acct.S +++ b/libc/arch-x86_64/syscalls/acct.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(acct) movl $__NR_acct, %eax syscall @@ -11,7 +9,7 @@ ENTRY(acct) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(acct) diff --git a/libc/arch-x86_64/syscalls/bind.S b/libc/arch-x86_64/syscalls/bind.S index 4300c005f..e5bc263c1 100644 --- a/libc/arch-x86_64/syscalls/bind.S +++ b/libc/arch-x86_64/syscalls/bind.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(bind) movl $__NR_bind, %eax syscall @@ -11,7 +9,7 @@ ENTRY(bind) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(bind) diff --git a/libc/arch-x86_64/syscalls/capget.S b/libc/arch-x86_64/syscalls/capget.S index 8ce1846ee..9ce158362 100644 --- a/libc/arch-x86_64/syscalls/capget.S +++ b/libc/arch-x86_64/syscalls/capget.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(capget) movl $__NR_capget, %eax syscall @@ -11,7 +9,7 @@ ENTRY(capget) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(capget) diff --git a/libc/arch-x86_64/syscalls/capset.S b/libc/arch-x86_64/syscalls/capset.S index 3aff07c1a..27767565e 100644 --- a/libc/arch-x86_64/syscalls/capset.S +++ b/libc/arch-x86_64/syscalls/capset.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(capset) movl $__NR_capset, %eax syscall @@ -11,7 +9,7 @@ ENTRY(capset) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(capset) diff --git a/libc/arch-x86_64/syscalls/chdir.S b/libc/arch-x86_64/syscalls/chdir.S index f22b40d4e..269905c6a 100644 --- a/libc/arch-x86_64/syscalls/chdir.S +++ b/libc/arch-x86_64/syscalls/chdir.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(chdir) movl $__NR_chdir, %eax syscall @@ -11,7 +9,7 @@ ENTRY(chdir) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(chdir) diff --git a/libc/arch-x86_64/syscalls/chroot.S b/libc/arch-x86_64/syscalls/chroot.S index eb8a4633b..713b1b370 100644 --- a/libc/arch-x86_64/syscalls/chroot.S +++ b/libc/arch-x86_64/syscalls/chroot.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(chroot) movl $__NR_chroot, %eax syscall @@ -11,7 +9,7 @@ ENTRY(chroot) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(chroot) diff --git a/libc/arch-x86_64/syscalls/clock_getres.S b/libc/arch-x86_64/syscalls/clock_getres.S index 00b4ed67d..f65d12774 100644 --- a/libc/arch-x86_64/syscalls/clock_getres.S +++ b/libc/arch-x86_64/syscalls/clock_getres.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_getres) movl $__NR_clock_getres, %eax syscall @@ -11,7 +9,7 @@ ENTRY(clock_getres) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(clock_getres) diff --git a/libc/arch-x86_64/syscalls/clock_nanosleep.S b/libc/arch-x86_64/syscalls/clock_nanosleep.S index 8bc87ae44..2a79bddfe 100644 --- a/libc/arch-x86_64/syscalls/clock_nanosleep.S +++ b/libc/arch-x86_64/syscalls/clock_nanosleep.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_nanosleep) movq %rcx, %r10 movl $__NR_clock_nanosleep, %eax @@ -12,7 +10,7 @@ ENTRY(clock_nanosleep) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(clock_nanosleep) diff --git a/libc/arch-x86_64/syscalls/clock_settime.S b/libc/arch-x86_64/syscalls/clock_settime.S index 522577031..26070a467 100644 --- a/libc/arch-x86_64/syscalls/clock_settime.S +++ b/libc/arch-x86_64/syscalls/clock_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(clock_settime) movl $__NR_clock_settime, %eax syscall @@ -11,7 +9,7 @@ ENTRY(clock_settime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(clock_settime) diff --git a/libc/arch-x86_64/syscalls/close.S b/libc/arch-x86_64/syscalls/close.S index 029d09ad6..8a7ada108 100644 --- a/libc/arch-x86_64/syscalls/close.S +++ b/libc/arch-x86_64/syscalls/close.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(close) movl $__NR_close, %eax syscall @@ -11,7 +9,7 @@ ENTRY(close) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(close) diff --git a/libc/arch-x86_64/syscalls/delete_module.S b/libc/arch-x86_64/syscalls/delete_module.S index fc146bb6c..63f17adbd 100644 --- a/libc/arch-x86_64/syscalls/delete_module.S +++ b/libc/arch-x86_64/syscalls/delete_module.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(delete_module) movl $__NR_delete_module, %eax syscall @@ -11,7 +9,7 @@ ENTRY(delete_module) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(delete_module) diff --git a/libc/arch-x86_64/syscalls/dup.S b/libc/arch-x86_64/syscalls/dup.S index 53f06b0ec..5016f7708 100644 --- a/libc/arch-x86_64/syscalls/dup.S +++ b/libc/arch-x86_64/syscalls/dup.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(dup) movl $__NR_dup, %eax syscall @@ -11,7 +9,7 @@ ENTRY(dup) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(dup) diff --git a/libc/arch-x86_64/syscalls/dup3.S b/libc/arch-x86_64/syscalls/dup3.S index fb99941ed..9abd1686a 100644 --- a/libc/arch-x86_64/syscalls/dup3.S +++ b/libc/arch-x86_64/syscalls/dup3.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(dup3) movl $__NR_dup3, %eax syscall @@ -11,7 +9,7 @@ ENTRY(dup3) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(dup3) diff --git a/libc/arch-x86_64/syscalls/epoll_create1.S b/libc/arch-x86_64/syscalls/epoll_create1.S index 6aa19157d..d1e4bfce5 100644 --- a/libc/arch-x86_64/syscalls/epoll_create1.S +++ b/libc/arch-x86_64/syscalls/epoll_create1.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(epoll_create1) movl $__NR_epoll_create1, %eax syscall @@ -11,7 +9,7 @@ ENTRY(epoll_create1) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(epoll_create1) diff --git a/libc/arch-x86_64/syscalls/epoll_ctl.S b/libc/arch-x86_64/syscalls/epoll_ctl.S index c9dda01b5..f429b962a 100644 --- a/libc/arch-x86_64/syscalls/epoll_ctl.S +++ b/libc/arch-x86_64/syscalls/epoll_ctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(epoll_ctl) movq %rcx, %r10 movl $__NR_epoll_ctl, %eax @@ -12,7 +10,7 @@ ENTRY(epoll_ctl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(epoll_ctl) diff --git a/libc/arch-x86_64/syscalls/eventfd.S b/libc/arch-x86_64/syscalls/eventfd.S index ac7537f99..dcc510595 100644 --- a/libc/arch-x86_64/syscalls/eventfd.S +++ b/libc/arch-x86_64/syscalls/eventfd.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(eventfd) movl $__NR_eventfd2, %eax syscall @@ -11,7 +9,7 @@ ENTRY(eventfd) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(eventfd) diff --git a/libc/arch-x86_64/syscalls/execve.S b/libc/arch-x86_64/syscalls/execve.S index a699303fb..947baa49c 100644 --- a/libc/arch-x86_64/syscalls/execve.S +++ b/libc/arch-x86_64/syscalls/execve.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(execve) movl $__NR_execve, %eax syscall @@ -11,7 +9,7 @@ ENTRY(execve) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(execve) diff --git a/libc/arch-x86_64/syscalls/faccessat.S b/libc/arch-x86_64/syscalls/faccessat.S index 9426dd5d1..05a6e7863 100644 --- a/libc/arch-x86_64/syscalls/faccessat.S +++ b/libc/arch-x86_64/syscalls/faccessat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(faccessat) movq %rcx, %r10 movl $__NR_faccessat, %eax @@ -12,7 +10,7 @@ ENTRY(faccessat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(faccessat) diff --git a/libc/arch-x86_64/syscalls/fallocate.S b/libc/arch-x86_64/syscalls/fallocate.S index 91a2e6544..8307f7e7a 100644 --- a/libc/arch-x86_64/syscalls/fallocate.S +++ b/libc/arch-x86_64/syscalls/fallocate.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fallocate) movq %rcx, %r10 movl $__NR_fallocate, %eax @@ -12,7 +10,7 @@ ENTRY(fallocate) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fallocate) diff --git a/libc/arch-x86_64/syscalls/fchdir.S b/libc/arch-x86_64/syscalls/fchdir.S index 01c503086..d005c14bb 100644 --- a/libc/arch-x86_64/syscalls/fchdir.S +++ b/libc/arch-x86_64/syscalls/fchdir.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchdir) movl $__NR_fchdir, %eax syscall @@ -11,7 +9,7 @@ ENTRY(fchdir) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fchdir) diff --git a/libc/arch-x86_64/syscalls/fchmod.S b/libc/arch-x86_64/syscalls/fchmod.S index 1f4d02b70..b35bd21ac 100644 --- a/libc/arch-x86_64/syscalls/fchmod.S +++ b/libc/arch-x86_64/syscalls/fchmod.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchmod) movl $__NR_fchmod, %eax syscall @@ -11,7 +9,7 @@ ENTRY(fchmod) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fchmod) diff --git a/libc/arch-x86_64/syscalls/fchmodat.S b/libc/arch-x86_64/syscalls/fchmodat.S index cee05e3d1..2d78d8e81 100644 --- a/libc/arch-x86_64/syscalls/fchmodat.S +++ b/libc/arch-x86_64/syscalls/fchmodat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchmodat) movq %rcx, %r10 movl $__NR_fchmodat, %eax @@ -12,7 +10,7 @@ ENTRY(fchmodat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fchmodat) diff --git a/libc/arch-x86_64/syscalls/fchown.S b/libc/arch-x86_64/syscalls/fchown.S index 1c439915c..d5bdc7192 100644 --- a/libc/arch-x86_64/syscalls/fchown.S +++ b/libc/arch-x86_64/syscalls/fchown.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchown) movl $__NR_fchown, %eax syscall @@ -11,7 +9,7 @@ ENTRY(fchown) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fchown) diff --git a/libc/arch-x86_64/syscalls/fchownat.S b/libc/arch-x86_64/syscalls/fchownat.S index 8f77888e1..ff05e9efa 100644 --- a/libc/arch-x86_64/syscalls/fchownat.S +++ b/libc/arch-x86_64/syscalls/fchownat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fchownat) movq %rcx, %r10 movl $__NR_fchownat, %eax @@ -12,7 +10,7 @@ ENTRY(fchownat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fchownat) diff --git a/libc/arch-x86_64/syscalls/fcntl.S b/libc/arch-x86_64/syscalls/fcntl.S index d415467a0..f28195b5f 100644 --- a/libc/arch-x86_64/syscalls/fcntl.S +++ b/libc/arch-x86_64/syscalls/fcntl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fcntl) movl $__NR_fcntl, %eax syscall @@ -11,7 +9,7 @@ ENTRY(fcntl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fcntl) diff --git a/libc/arch-x86_64/syscalls/fdatasync.S b/libc/arch-x86_64/syscalls/fdatasync.S index 8ec419304..27239b95d 100644 --- a/libc/arch-x86_64/syscalls/fdatasync.S +++ b/libc/arch-x86_64/syscalls/fdatasync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fdatasync) movl $__NR_fdatasync, %eax syscall @@ -11,7 +9,7 @@ ENTRY(fdatasync) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fdatasync) diff --git a/libc/arch-x86_64/syscalls/fgetxattr.S b/libc/arch-x86_64/syscalls/fgetxattr.S index 9aacdbdb1..7762474f9 100644 --- a/libc/arch-x86_64/syscalls/fgetxattr.S +++ b/libc/arch-x86_64/syscalls/fgetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fgetxattr) movq %rcx, %r10 movl $__NR_fgetxattr, %eax @@ -12,7 +10,7 @@ ENTRY(fgetxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fgetxattr) diff --git a/libc/arch-x86_64/syscalls/flistxattr.S b/libc/arch-x86_64/syscalls/flistxattr.S index 53c58d07a..aa02db1e2 100644 --- a/libc/arch-x86_64/syscalls/flistxattr.S +++ b/libc/arch-x86_64/syscalls/flistxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(flistxattr) movl $__NR_flistxattr, %eax syscall @@ -11,7 +9,7 @@ ENTRY(flistxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(flistxattr) diff --git a/libc/arch-x86_64/syscalls/flock.S b/libc/arch-x86_64/syscalls/flock.S index fe57b47d1..1bc667858 100644 --- a/libc/arch-x86_64/syscalls/flock.S +++ b/libc/arch-x86_64/syscalls/flock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(flock) movl $__NR_flock, %eax syscall @@ -11,7 +9,7 @@ ENTRY(flock) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(flock) diff --git a/libc/arch-x86_64/syscalls/fremovexattr.S b/libc/arch-x86_64/syscalls/fremovexattr.S index c37cc9303..517094c85 100644 --- a/libc/arch-x86_64/syscalls/fremovexattr.S +++ b/libc/arch-x86_64/syscalls/fremovexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fremovexattr) movl $__NR_fremovexattr, %eax syscall @@ -11,7 +9,7 @@ ENTRY(fremovexattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fremovexattr) diff --git a/libc/arch-x86_64/syscalls/fsetxattr.S b/libc/arch-x86_64/syscalls/fsetxattr.S index cc3d7b7bf..97822c4c8 100644 --- a/libc/arch-x86_64/syscalls/fsetxattr.S +++ b/libc/arch-x86_64/syscalls/fsetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fsetxattr) movq %rcx, %r10 movl $__NR_fsetxattr, %eax @@ -12,7 +10,7 @@ ENTRY(fsetxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fsetxattr) diff --git a/libc/arch-x86_64/syscalls/fstat64.S b/libc/arch-x86_64/syscalls/fstat64.S index dbc676010..de576682c 100644 --- a/libc/arch-x86_64/syscalls/fstat64.S +++ b/libc/arch-x86_64/syscalls/fstat64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fstat64) movl $__NR_fstat, %eax syscall @@ -11,7 +9,7 @@ ENTRY(fstat64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fstat64) diff --git a/libc/arch-x86_64/syscalls/fstatat64.S b/libc/arch-x86_64/syscalls/fstatat64.S index 28b91fa13..47785bb23 100644 --- a/libc/arch-x86_64/syscalls/fstatat64.S +++ b/libc/arch-x86_64/syscalls/fstatat64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fstatat64) movq %rcx, %r10 movl $__NR_newfstatat, %eax @@ -12,7 +10,7 @@ ENTRY(fstatat64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fstatat64) diff --git a/libc/arch-x86_64/syscalls/fstatfs64.S b/libc/arch-x86_64/syscalls/fstatfs64.S index 4b12afb05..f727350e1 100644 --- a/libc/arch-x86_64/syscalls/fstatfs64.S +++ b/libc/arch-x86_64/syscalls/fstatfs64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fstatfs64) movl $__NR_fstatfs, %eax syscall @@ -11,7 +9,7 @@ ENTRY(fstatfs64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fstatfs64) diff --git a/libc/arch-x86_64/syscalls/fsync.S b/libc/arch-x86_64/syscalls/fsync.S index 820502e8c..e7ec6da7f 100644 --- a/libc/arch-x86_64/syscalls/fsync.S +++ b/libc/arch-x86_64/syscalls/fsync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(fsync) movl $__NR_fsync, %eax syscall @@ -11,7 +9,7 @@ ENTRY(fsync) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(fsync) diff --git a/libc/arch-x86_64/syscalls/ftruncate.S b/libc/arch-x86_64/syscalls/ftruncate.S index 0b1440301..0365368d1 100644 --- a/libc/arch-x86_64/syscalls/ftruncate.S +++ b/libc/arch-x86_64/syscalls/ftruncate.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(ftruncate) movl $__NR_ftruncate, %eax syscall @@ -11,7 +9,7 @@ ENTRY(ftruncate) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(ftruncate) diff --git a/libc/arch-x86_64/syscalls/getegid.S b/libc/arch-x86_64/syscalls/getegid.S index 155d37ba4..84ba24081 100644 --- a/libc/arch-x86_64/syscalls/getegid.S +++ b/libc/arch-x86_64/syscalls/getegid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getegid) movl $__NR_getegid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getegid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getegid) diff --git a/libc/arch-x86_64/syscalls/geteuid.S b/libc/arch-x86_64/syscalls/geteuid.S index 9ffa3cd5d..18a991ab2 100644 --- a/libc/arch-x86_64/syscalls/geteuid.S +++ b/libc/arch-x86_64/syscalls/geteuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(geteuid) movl $__NR_geteuid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(geteuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(geteuid) diff --git a/libc/arch-x86_64/syscalls/getgid.S b/libc/arch-x86_64/syscalls/getgid.S index d9c9da938..5e4b0efea 100644 --- a/libc/arch-x86_64/syscalls/getgid.S +++ b/libc/arch-x86_64/syscalls/getgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getgid) movl $__NR_getgid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getgid) diff --git a/libc/arch-x86_64/syscalls/getgroups.S b/libc/arch-x86_64/syscalls/getgroups.S index 9f0701a64..b5dd81c31 100644 --- a/libc/arch-x86_64/syscalls/getgroups.S +++ b/libc/arch-x86_64/syscalls/getgroups.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getgroups) movl $__NR_getgroups, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getgroups) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getgroups) diff --git a/libc/arch-x86_64/syscalls/getitimer.S b/libc/arch-x86_64/syscalls/getitimer.S index 2d764306b..c4bb1202a 100644 --- a/libc/arch-x86_64/syscalls/getitimer.S +++ b/libc/arch-x86_64/syscalls/getitimer.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getitimer) movl $__NR_getitimer, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getitimer) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getitimer) diff --git a/libc/arch-x86_64/syscalls/getpeername.S b/libc/arch-x86_64/syscalls/getpeername.S index b6de1833d..0b212be92 100644 --- a/libc/arch-x86_64/syscalls/getpeername.S +++ b/libc/arch-x86_64/syscalls/getpeername.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getpeername) movl $__NR_getpeername, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getpeername) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getpeername) diff --git a/libc/arch-x86_64/syscalls/getpgid.S b/libc/arch-x86_64/syscalls/getpgid.S index e321b6619..d1b0e8bf9 100644 --- a/libc/arch-x86_64/syscalls/getpgid.S +++ b/libc/arch-x86_64/syscalls/getpgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getpgid) movl $__NR_getpgid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getpgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getpgid) diff --git a/libc/arch-x86_64/syscalls/getppid.S b/libc/arch-x86_64/syscalls/getppid.S index 4a238ade6..e1cfee024 100644 --- a/libc/arch-x86_64/syscalls/getppid.S +++ b/libc/arch-x86_64/syscalls/getppid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getppid) movl $__NR_getppid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getppid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getppid) diff --git a/libc/arch-x86_64/syscalls/getresgid.S b/libc/arch-x86_64/syscalls/getresgid.S index 4727d2972..0b7ea7a74 100644 --- a/libc/arch-x86_64/syscalls/getresgid.S +++ b/libc/arch-x86_64/syscalls/getresgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getresgid) movl $__NR_getresgid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getresgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getresgid) diff --git a/libc/arch-x86_64/syscalls/getresuid.S b/libc/arch-x86_64/syscalls/getresuid.S index 1098d5646..0d7a05438 100644 --- a/libc/arch-x86_64/syscalls/getresuid.S +++ b/libc/arch-x86_64/syscalls/getresuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getresuid) movl $__NR_getresuid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getresuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getresuid) diff --git a/libc/arch-x86_64/syscalls/getrlimit.S b/libc/arch-x86_64/syscalls/getrlimit.S index 60e5881bf..2d272a125 100644 --- a/libc/arch-x86_64/syscalls/getrlimit.S +++ b/libc/arch-x86_64/syscalls/getrlimit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getrlimit) movl $__NR_getrlimit, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getrlimit) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getrlimit) diff --git a/libc/arch-x86_64/syscalls/getrusage.S b/libc/arch-x86_64/syscalls/getrusage.S index 0eb017663..eef7fb8b4 100644 --- a/libc/arch-x86_64/syscalls/getrusage.S +++ b/libc/arch-x86_64/syscalls/getrusage.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getrusage) movl $__NR_getrusage, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getrusage) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getrusage) diff --git a/libc/arch-x86_64/syscalls/getsid.S b/libc/arch-x86_64/syscalls/getsid.S index 2543b1058..022f959dd 100644 --- a/libc/arch-x86_64/syscalls/getsid.S +++ b/libc/arch-x86_64/syscalls/getsid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsid) movl $__NR_getsid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getsid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getsid) diff --git a/libc/arch-x86_64/syscalls/getsockname.S b/libc/arch-x86_64/syscalls/getsockname.S index 17cd5eaf6..36fdcf75d 100644 --- a/libc/arch-x86_64/syscalls/getsockname.S +++ b/libc/arch-x86_64/syscalls/getsockname.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsockname) movl $__NR_getsockname, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getsockname) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getsockname) diff --git a/libc/arch-x86_64/syscalls/getsockopt.S b/libc/arch-x86_64/syscalls/getsockopt.S index 988a2cbcd..c1e11e7ce 100644 --- a/libc/arch-x86_64/syscalls/getsockopt.S +++ b/libc/arch-x86_64/syscalls/getsockopt.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getsockopt) movq %rcx, %r10 movl $__NR_getsockopt, %eax @@ -12,7 +10,7 @@ ENTRY(getsockopt) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getsockopt) diff --git a/libc/arch-x86_64/syscalls/getuid.S b/libc/arch-x86_64/syscalls/getuid.S index 9b7a1d9d6..93cd0f831 100644 --- a/libc/arch-x86_64/syscalls/getuid.S +++ b/libc/arch-x86_64/syscalls/getuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getuid) movl $__NR_getuid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(getuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getuid) diff --git a/libc/arch-x86_64/syscalls/getxattr.S b/libc/arch-x86_64/syscalls/getxattr.S index 4d6aecf7a..01378b0a7 100644 --- a/libc/arch-x86_64/syscalls/getxattr.S +++ b/libc/arch-x86_64/syscalls/getxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(getxattr) movq %rcx, %r10 movl $__NR_getxattr, %eax @@ -12,7 +10,7 @@ ENTRY(getxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(getxattr) diff --git a/libc/arch-x86_64/syscalls/init_module.S b/libc/arch-x86_64/syscalls/init_module.S index 2c5141458..c005de434 100644 --- a/libc/arch-x86_64/syscalls/init_module.S +++ b/libc/arch-x86_64/syscalls/init_module.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(init_module) movl $__NR_init_module, %eax syscall @@ -11,7 +9,7 @@ ENTRY(init_module) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(init_module) diff --git a/libc/arch-x86_64/syscalls/inotify_add_watch.S b/libc/arch-x86_64/syscalls/inotify_add_watch.S index da5aa36ee..edf2930ac 100644 --- a/libc/arch-x86_64/syscalls/inotify_add_watch.S +++ b/libc/arch-x86_64/syscalls/inotify_add_watch.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_add_watch) movl $__NR_inotify_add_watch, %eax syscall @@ -11,7 +9,7 @@ ENTRY(inotify_add_watch) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(inotify_add_watch) diff --git a/libc/arch-x86_64/syscalls/inotify_init1.S b/libc/arch-x86_64/syscalls/inotify_init1.S index 46e5014b9..b1580182f 100644 --- a/libc/arch-x86_64/syscalls/inotify_init1.S +++ b/libc/arch-x86_64/syscalls/inotify_init1.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_init1) movl $__NR_inotify_init1, %eax syscall @@ -11,7 +9,7 @@ ENTRY(inotify_init1) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(inotify_init1) diff --git a/libc/arch-x86_64/syscalls/inotify_rm_watch.S b/libc/arch-x86_64/syscalls/inotify_rm_watch.S index 5920c9df0..f2fc10e5a 100644 --- a/libc/arch-x86_64/syscalls/inotify_rm_watch.S +++ b/libc/arch-x86_64/syscalls/inotify_rm_watch.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(inotify_rm_watch) movl $__NR_inotify_rm_watch, %eax syscall @@ -11,7 +9,7 @@ ENTRY(inotify_rm_watch) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(inotify_rm_watch) diff --git a/libc/arch-x86_64/syscalls/kill.S b/libc/arch-x86_64/syscalls/kill.S index dff2da60f..fe93f34e6 100644 --- a/libc/arch-x86_64/syscalls/kill.S +++ b/libc/arch-x86_64/syscalls/kill.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(kill) movl $__NR_kill, %eax syscall @@ -11,7 +9,7 @@ ENTRY(kill) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(kill) diff --git a/libc/arch-x86_64/syscalls/klogctl.S b/libc/arch-x86_64/syscalls/klogctl.S index 8560d2819..fb2aca364 100644 --- a/libc/arch-x86_64/syscalls/klogctl.S +++ b/libc/arch-x86_64/syscalls/klogctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(klogctl) movl $__NR_syslog, %eax syscall @@ -11,7 +9,7 @@ ENTRY(klogctl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(klogctl) diff --git a/libc/arch-x86_64/syscalls/lgetxattr.S b/libc/arch-x86_64/syscalls/lgetxattr.S index b4bc204bb..36202a212 100644 --- a/libc/arch-x86_64/syscalls/lgetxattr.S +++ b/libc/arch-x86_64/syscalls/lgetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lgetxattr) movq %rcx, %r10 movl $__NR_lgetxattr, %eax @@ -12,7 +10,7 @@ ENTRY(lgetxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(lgetxattr) diff --git a/libc/arch-x86_64/syscalls/linkat.S b/libc/arch-x86_64/syscalls/linkat.S index 509b57949..d195e19a4 100644 --- a/libc/arch-x86_64/syscalls/linkat.S +++ b/libc/arch-x86_64/syscalls/linkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(linkat) movq %rcx, %r10 movl $__NR_linkat, %eax @@ -12,7 +10,7 @@ ENTRY(linkat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(linkat) diff --git a/libc/arch-x86_64/syscalls/listen.S b/libc/arch-x86_64/syscalls/listen.S index 6bd46a551..756b629dc 100644 --- a/libc/arch-x86_64/syscalls/listen.S +++ b/libc/arch-x86_64/syscalls/listen.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(listen) movl $__NR_listen, %eax syscall @@ -11,7 +9,7 @@ ENTRY(listen) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(listen) diff --git a/libc/arch-x86_64/syscalls/listxattr.S b/libc/arch-x86_64/syscalls/listxattr.S index 102518f11..d0b2112bc 100644 --- a/libc/arch-x86_64/syscalls/listxattr.S +++ b/libc/arch-x86_64/syscalls/listxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(listxattr) movl $__NR_listxattr, %eax syscall @@ -11,7 +9,7 @@ ENTRY(listxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(listxattr) diff --git a/libc/arch-x86_64/syscalls/llistxattr.S b/libc/arch-x86_64/syscalls/llistxattr.S index 74d58a851..49fb9694c 100644 --- a/libc/arch-x86_64/syscalls/llistxattr.S +++ b/libc/arch-x86_64/syscalls/llistxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(llistxattr) movl $__NR_llistxattr, %eax syscall @@ -11,7 +9,7 @@ ENTRY(llistxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(llistxattr) diff --git a/libc/arch-x86_64/syscalls/lremovexattr.S b/libc/arch-x86_64/syscalls/lremovexattr.S index 2566e3397..1e1bc30de 100644 --- a/libc/arch-x86_64/syscalls/lremovexattr.S +++ b/libc/arch-x86_64/syscalls/lremovexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lremovexattr) movl $__NR_lremovexattr, %eax syscall @@ -11,7 +9,7 @@ ENTRY(lremovexattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(lremovexattr) diff --git a/libc/arch-x86_64/syscalls/lseek.S b/libc/arch-x86_64/syscalls/lseek.S index 93e5f0c58..153b9352f 100644 --- a/libc/arch-x86_64/syscalls/lseek.S +++ b/libc/arch-x86_64/syscalls/lseek.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lseek) movl $__NR_lseek, %eax syscall @@ -11,7 +9,7 @@ ENTRY(lseek) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(lseek) diff --git a/libc/arch-x86_64/syscalls/lsetxattr.S b/libc/arch-x86_64/syscalls/lsetxattr.S index 905bd3b85..965ee0325 100644 --- a/libc/arch-x86_64/syscalls/lsetxattr.S +++ b/libc/arch-x86_64/syscalls/lsetxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(lsetxattr) movq %rcx, %r10 movl $__NR_lsetxattr, %eax @@ -12,7 +10,7 @@ ENTRY(lsetxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(lsetxattr) diff --git a/libc/arch-x86_64/syscalls/madvise.S b/libc/arch-x86_64/syscalls/madvise.S index c565ca3b1..75d47f64f 100644 --- a/libc/arch-x86_64/syscalls/madvise.S +++ b/libc/arch-x86_64/syscalls/madvise.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(madvise) movl $__NR_madvise, %eax syscall @@ -11,7 +9,7 @@ ENTRY(madvise) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(madvise) diff --git a/libc/arch-x86_64/syscalls/mincore.S b/libc/arch-x86_64/syscalls/mincore.S index f8acdeb25..2d8a28a9d 100644 --- a/libc/arch-x86_64/syscalls/mincore.S +++ b/libc/arch-x86_64/syscalls/mincore.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mincore) movl $__NR_mincore, %eax syscall @@ -11,7 +9,7 @@ ENTRY(mincore) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(mincore) diff --git a/libc/arch-x86_64/syscalls/mkdirat.S b/libc/arch-x86_64/syscalls/mkdirat.S index b554d125d..8a7601334 100644 --- a/libc/arch-x86_64/syscalls/mkdirat.S +++ b/libc/arch-x86_64/syscalls/mkdirat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mkdirat) movl $__NR_mkdirat, %eax syscall @@ -11,7 +9,7 @@ ENTRY(mkdirat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(mkdirat) diff --git a/libc/arch-x86_64/syscalls/mknodat.S b/libc/arch-x86_64/syscalls/mknodat.S index dd6496a14..a8859d464 100644 --- a/libc/arch-x86_64/syscalls/mknodat.S +++ b/libc/arch-x86_64/syscalls/mknodat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mknodat) movq %rcx, %r10 movl $__NR_mknodat, %eax @@ -12,7 +10,7 @@ ENTRY(mknodat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(mknodat) diff --git a/libc/arch-x86_64/syscalls/mlock.S b/libc/arch-x86_64/syscalls/mlock.S index 78389e29b..d34b3ae31 100644 --- a/libc/arch-x86_64/syscalls/mlock.S +++ b/libc/arch-x86_64/syscalls/mlock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mlock) movl $__NR_mlock, %eax syscall @@ -11,7 +9,7 @@ ENTRY(mlock) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(mlock) diff --git a/libc/arch-x86_64/syscalls/mlockall.S b/libc/arch-x86_64/syscalls/mlockall.S index 3ac878a7f..31ccaa058 100644 --- a/libc/arch-x86_64/syscalls/mlockall.S +++ b/libc/arch-x86_64/syscalls/mlockall.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mlockall) movl $__NR_mlockall, %eax syscall @@ -11,7 +9,7 @@ ENTRY(mlockall) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(mlockall) diff --git a/libc/arch-x86_64/syscalls/mmap.S b/libc/arch-x86_64/syscalls/mmap.S index 44189a993..8aa4780f6 100644 --- a/libc/arch-x86_64/syscalls/mmap.S +++ b/libc/arch-x86_64/syscalls/mmap.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mmap) movq %rcx, %r10 movl $__NR_mmap, %eax @@ -12,7 +10,7 @@ ENTRY(mmap) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(mmap) diff --git a/libc/arch-x86_64/syscalls/mount.S b/libc/arch-x86_64/syscalls/mount.S index 369e8df58..dcbd47399 100644 --- a/libc/arch-x86_64/syscalls/mount.S +++ b/libc/arch-x86_64/syscalls/mount.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mount) movq %rcx, %r10 movl $__NR_mount, %eax @@ -12,7 +10,7 @@ ENTRY(mount) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(mount) diff --git a/libc/arch-x86_64/syscalls/mprotect.S b/libc/arch-x86_64/syscalls/mprotect.S index 44888da2d..2ad4b250b 100644 --- a/libc/arch-x86_64/syscalls/mprotect.S +++ b/libc/arch-x86_64/syscalls/mprotect.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mprotect) movl $__NR_mprotect, %eax syscall @@ -11,7 +9,7 @@ ENTRY(mprotect) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(mprotect) diff --git a/libc/arch-x86_64/syscalls/mremap.S b/libc/arch-x86_64/syscalls/mremap.S index 74a05e24a..a6042cb6c 100644 --- a/libc/arch-x86_64/syscalls/mremap.S +++ b/libc/arch-x86_64/syscalls/mremap.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(mremap) movq %rcx, %r10 movl $__NR_mremap, %eax @@ -12,7 +10,7 @@ ENTRY(mremap) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(mremap) diff --git a/libc/arch-x86_64/syscalls/msync.S b/libc/arch-x86_64/syscalls/msync.S index 1d0e785c2..099dbbf07 100644 --- a/libc/arch-x86_64/syscalls/msync.S +++ b/libc/arch-x86_64/syscalls/msync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(msync) movl $__NR_msync, %eax syscall @@ -11,7 +9,7 @@ ENTRY(msync) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(msync) diff --git a/libc/arch-x86_64/syscalls/munlock.S b/libc/arch-x86_64/syscalls/munlock.S index 17e368b89..bb5940ca7 100644 --- a/libc/arch-x86_64/syscalls/munlock.S +++ b/libc/arch-x86_64/syscalls/munlock.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munlock) movl $__NR_munlock, %eax syscall @@ -11,7 +9,7 @@ ENTRY(munlock) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(munlock) diff --git a/libc/arch-x86_64/syscalls/munlockall.S b/libc/arch-x86_64/syscalls/munlockall.S index 6bb7aa648..f9579dfdb 100644 --- a/libc/arch-x86_64/syscalls/munlockall.S +++ b/libc/arch-x86_64/syscalls/munlockall.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munlockall) movl $__NR_munlockall, %eax syscall @@ -11,7 +9,7 @@ ENTRY(munlockall) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(munlockall) diff --git a/libc/arch-x86_64/syscalls/munmap.S b/libc/arch-x86_64/syscalls/munmap.S index f423a6672..d1c580e44 100644 --- a/libc/arch-x86_64/syscalls/munmap.S +++ b/libc/arch-x86_64/syscalls/munmap.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(munmap) movl $__NR_munmap, %eax syscall @@ -11,7 +9,7 @@ ENTRY(munmap) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(munmap) diff --git a/libc/arch-x86_64/syscalls/nanosleep.S b/libc/arch-x86_64/syscalls/nanosleep.S index caa1ae685..b19f7f5ee 100644 --- a/libc/arch-x86_64/syscalls/nanosleep.S +++ b/libc/arch-x86_64/syscalls/nanosleep.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(nanosleep) movl $__NR_nanosleep, %eax syscall @@ -11,7 +9,7 @@ ENTRY(nanosleep) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(nanosleep) diff --git a/libc/arch-x86_64/syscalls/personality.S b/libc/arch-x86_64/syscalls/personality.S index a742dbf15..6937e4c51 100644 --- a/libc/arch-x86_64/syscalls/personality.S +++ b/libc/arch-x86_64/syscalls/personality.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(personality) movl $__NR_personality, %eax syscall @@ -11,7 +9,7 @@ ENTRY(personality) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(personality) diff --git a/libc/arch-x86_64/syscalls/pipe2.S b/libc/arch-x86_64/syscalls/pipe2.S index e34ca69be..d488c87ad 100644 --- a/libc/arch-x86_64/syscalls/pipe2.S +++ b/libc/arch-x86_64/syscalls/pipe2.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pipe2) movl $__NR_pipe2, %eax syscall @@ -11,7 +9,7 @@ ENTRY(pipe2) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(pipe2) diff --git a/libc/arch-x86_64/syscalls/prctl.S b/libc/arch-x86_64/syscalls/prctl.S index b4cdaa50a..4f3d2ae68 100644 --- a/libc/arch-x86_64/syscalls/prctl.S +++ b/libc/arch-x86_64/syscalls/prctl.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(prctl) movq %rcx, %r10 movl $__NR_prctl, %eax @@ -12,7 +10,7 @@ ENTRY(prctl) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(prctl) diff --git a/libc/arch-x86_64/syscalls/pread64.S b/libc/arch-x86_64/syscalls/pread64.S index 1d042efc2..3aa56e595 100644 --- a/libc/arch-x86_64/syscalls/pread64.S +++ b/libc/arch-x86_64/syscalls/pread64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pread64) movq %rcx, %r10 movl $__NR_pread64, %eax @@ -12,7 +10,7 @@ ENTRY(pread64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(pread64) diff --git a/libc/arch-x86_64/syscalls/prlimit64.S b/libc/arch-x86_64/syscalls/prlimit64.S index 52151a8f4..63ec492dd 100644 --- a/libc/arch-x86_64/syscalls/prlimit64.S +++ b/libc/arch-x86_64/syscalls/prlimit64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(prlimit64) movq %rcx, %r10 movl $__NR_prlimit64, %eax @@ -12,7 +10,7 @@ ENTRY(prlimit64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(prlimit64) diff --git a/libc/arch-x86_64/syscalls/pwrite64.S b/libc/arch-x86_64/syscalls/pwrite64.S index 2fb0f16af..2779fb419 100644 --- a/libc/arch-x86_64/syscalls/pwrite64.S +++ b/libc/arch-x86_64/syscalls/pwrite64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(pwrite64) movq %rcx, %r10 movl $__NR_pwrite64, %eax @@ -12,7 +10,7 @@ ENTRY(pwrite64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(pwrite64) diff --git a/libc/arch-x86_64/syscalls/read.S b/libc/arch-x86_64/syscalls/read.S index 3f2862e3b..df70e7fef 100644 --- a/libc/arch-x86_64/syscalls/read.S +++ b/libc/arch-x86_64/syscalls/read.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(read) movl $__NR_read, %eax syscall @@ -11,7 +9,7 @@ ENTRY(read) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(read) diff --git a/libc/arch-x86_64/syscalls/readahead.S b/libc/arch-x86_64/syscalls/readahead.S index df3aba168..38cb1c0b6 100644 --- a/libc/arch-x86_64/syscalls/readahead.S +++ b/libc/arch-x86_64/syscalls/readahead.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readahead) movl $__NR_readahead, %eax syscall @@ -11,7 +9,7 @@ ENTRY(readahead) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(readahead) diff --git a/libc/arch-x86_64/syscalls/readlinkat.S b/libc/arch-x86_64/syscalls/readlinkat.S index 554b8b6f2..9fd64e5a4 100644 --- a/libc/arch-x86_64/syscalls/readlinkat.S +++ b/libc/arch-x86_64/syscalls/readlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readlinkat) movq %rcx, %r10 movl $__NR_readlinkat, %eax @@ -12,7 +10,7 @@ ENTRY(readlinkat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(readlinkat) diff --git a/libc/arch-x86_64/syscalls/readv.S b/libc/arch-x86_64/syscalls/readv.S index 75d04e956..2510c5612 100644 --- a/libc/arch-x86_64/syscalls/readv.S +++ b/libc/arch-x86_64/syscalls/readv.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(readv) movl $__NR_readv, %eax syscall @@ -11,7 +9,7 @@ ENTRY(readv) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(readv) diff --git a/libc/arch-x86_64/syscalls/recvfrom.S b/libc/arch-x86_64/syscalls/recvfrom.S index 4ee56318c..6c0907884 100644 --- a/libc/arch-x86_64/syscalls/recvfrom.S +++ b/libc/arch-x86_64/syscalls/recvfrom.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvfrom) movq %rcx, %r10 movl $__NR_recvfrom, %eax @@ -12,7 +10,7 @@ ENTRY(recvfrom) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(recvfrom) diff --git a/libc/arch-x86_64/syscalls/recvmmsg.S b/libc/arch-x86_64/syscalls/recvmmsg.S index 327932547..78da69173 100644 --- a/libc/arch-x86_64/syscalls/recvmmsg.S +++ b/libc/arch-x86_64/syscalls/recvmmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvmmsg) movq %rcx, %r10 movl $__NR_recvmmsg, %eax @@ -12,7 +10,7 @@ ENTRY(recvmmsg) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(recvmmsg) diff --git a/libc/arch-x86_64/syscalls/recvmsg.S b/libc/arch-x86_64/syscalls/recvmsg.S index 7c186fd5b..945f17b1a 100644 --- a/libc/arch-x86_64/syscalls/recvmsg.S +++ b/libc/arch-x86_64/syscalls/recvmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(recvmsg) movl $__NR_recvmsg, %eax syscall @@ -11,7 +9,7 @@ ENTRY(recvmsg) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(recvmsg) diff --git a/libc/arch-x86_64/syscalls/removexattr.S b/libc/arch-x86_64/syscalls/removexattr.S index 909164729..9b476154e 100644 --- a/libc/arch-x86_64/syscalls/removexattr.S +++ b/libc/arch-x86_64/syscalls/removexattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(removexattr) movl $__NR_removexattr, %eax syscall @@ -11,7 +9,7 @@ ENTRY(removexattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(removexattr) diff --git a/libc/arch-x86_64/syscalls/renameat.S b/libc/arch-x86_64/syscalls/renameat.S index 7258712f7..3a94a75a8 100644 --- a/libc/arch-x86_64/syscalls/renameat.S +++ b/libc/arch-x86_64/syscalls/renameat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(renameat) movq %rcx, %r10 movl $__NR_renameat, %eax @@ -12,7 +10,7 @@ ENTRY(renameat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(renameat) 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 604d6c89e..1a0da2386 100644 --- a/libc/arch-x86_64/syscalls/sched_get_priority_max.S +++ b/libc/arch-x86_64/syscalls/sched_get_priority_max.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_get_priority_max) movl $__NR_sched_get_priority_max, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sched_get_priority_max) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sched_get_priority_max) 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 eaeb7654f..378587730 100644 --- a/libc/arch-x86_64/syscalls/sched_get_priority_min.S +++ b/libc/arch-x86_64/syscalls/sched_get_priority_min.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_get_priority_min) movl $__NR_sched_get_priority_min, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sched_get_priority_min) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sched_get_priority_min) diff --git a/libc/arch-x86_64/syscalls/sched_getparam.S b/libc/arch-x86_64/syscalls/sched_getparam.S index e269c7d0f..409b501b1 100644 --- a/libc/arch-x86_64/syscalls/sched_getparam.S +++ b/libc/arch-x86_64/syscalls/sched_getparam.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_getparam) movl $__NR_sched_getparam, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sched_getparam) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sched_getparam) diff --git a/libc/arch-x86_64/syscalls/sched_getscheduler.S b/libc/arch-x86_64/syscalls/sched_getscheduler.S index 0cf3b5403..520050468 100644 --- a/libc/arch-x86_64/syscalls/sched_getscheduler.S +++ b/libc/arch-x86_64/syscalls/sched_getscheduler.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_getscheduler) movl $__NR_sched_getscheduler, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sched_getscheduler) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sched_getscheduler) 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 662a28c4a..276feb166 100644 --- a/libc/arch-x86_64/syscalls/sched_rr_get_interval.S +++ b/libc/arch-x86_64/syscalls/sched_rr_get_interval.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_rr_get_interval) movl $__NR_sched_rr_get_interval, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sched_rr_get_interval) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sched_rr_get_interval) diff --git a/libc/arch-x86_64/syscalls/sched_setaffinity.S b/libc/arch-x86_64/syscalls/sched_setaffinity.S index 79b43fd27..1fb87e5b0 100644 --- a/libc/arch-x86_64/syscalls/sched_setaffinity.S +++ b/libc/arch-x86_64/syscalls/sched_setaffinity.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setaffinity) movl $__NR_sched_setaffinity, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sched_setaffinity) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sched_setaffinity) diff --git a/libc/arch-x86_64/syscalls/sched_setparam.S b/libc/arch-x86_64/syscalls/sched_setparam.S index 871b49262..91ca83bd9 100644 --- a/libc/arch-x86_64/syscalls/sched_setparam.S +++ b/libc/arch-x86_64/syscalls/sched_setparam.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setparam) movl $__NR_sched_setparam, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sched_setparam) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sched_setparam) diff --git a/libc/arch-x86_64/syscalls/sched_setscheduler.S b/libc/arch-x86_64/syscalls/sched_setscheduler.S index 0dcb47d33..7fa499a57 100644 --- a/libc/arch-x86_64/syscalls/sched_setscheduler.S +++ b/libc/arch-x86_64/syscalls/sched_setscheduler.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_setscheduler) movl $__NR_sched_setscheduler, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sched_setscheduler) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sched_setscheduler) diff --git a/libc/arch-x86_64/syscalls/sched_yield.S b/libc/arch-x86_64/syscalls/sched_yield.S index 12de511fb..8eb10f648 100644 --- a/libc/arch-x86_64/syscalls/sched_yield.S +++ b/libc/arch-x86_64/syscalls/sched_yield.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sched_yield) movl $__NR_sched_yield, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sched_yield) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sched_yield) diff --git a/libc/arch-x86_64/syscalls/sendfile.S b/libc/arch-x86_64/syscalls/sendfile.S index 0255bf29f..117b0aad6 100644 --- a/libc/arch-x86_64/syscalls/sendfile.S +++ b/libc/arch-x86_64/syscalls/sendfile.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendfile) movq %rcx, %r10 movl $__NR_sendfile, %eax @@ -12,7 +10,7 @@ ENTRY(sendfile) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sendfile) diff --git a/libc/arch-x86_64/syscalls/sendmmsg.S b/libc/arch-x86_64/syscalls/sendmmsg.S index 47b2e3a75..cf4a78df8 100644 --- a/libc/arch-x86_64/syscalls/sendmmsg.S +++ b/libc/arch-x86_64/syscalls/sendmmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendmmsg) movq %rcx, %r10 movl $__NR_sendmmsg, %eax @@ -12,7 +10,7 @@ ENTRY(sendmmsg) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sendmmsg) diff --git a/libc/arch-x86_64/syscalls/sendmsg.S b/libc/arch-x86_64/syscalls/sendmsg.S index e9eecf6b6..84566b52c 100644 --- a/libc/arch-x86_64/syscalls/sendmsg.S +++ b/libc/arch-x86_64/syscalls/sendmsg.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendmsg) movl $__NR_sendmsg, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sendmsg) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sendmsg) diff --git a/libc/arch-x86_64/syscalls/sendto.S b/libc/arch-x86_64/syscalls/sendto.S index f8cc14935..be3bace64 100644 --- a/libc/arch-x86_64/syscalls/sendto.S +++ b/libc/arch-x86_64/syscalls/sendto.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sendto) movq %rcx, %r10 movl $__NR_sendto, %eax @@ -12,7 +10,7 @@ ENTRY(sendto) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sendto) diff --git a/libc/arch-x86_64/syscalls/setfsgid.S b/libc/arch-x86_64/syscalls/setfsgid.S index bfc9c5dd1..22a36b202 100644 --- a/libc/arch-x86_64/syscalls/setfsgid.S +++ b/libc/arch-x86_64/syscalls/setfsgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setfsgid) movl $__NR_setfsgid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setfsgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setfsgid) diff --git a/libc/arch-x86_64/syscalls/setfsuid.S b/libc/arch-x86_64/syscalls/setfsuid.S index 2540a36a1..0bd0c97c6 100644 --- a/libc/arch-x86_64/syscalls/setfsuid.S +++ b/libc/arch-x86_64/syscalls/setfsuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setfsuid) movl $__NR_setfsuid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setfsuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setfsuid) diff --git a/libc/arch-x86_64/syscalls/setgid.S b/libc/arch-x86_64/syscalls/setgid.S index 8f9ce5322..650f8e20c 100644 --- a/libc/arch-x86_64/syscalls/setgid.S +++ b/libc/arch-x86_64/syscalls/setgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setgid) movl $__NR_setgid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setgid) diff --git a/libc/arch-x86_64/syscalls/setgroups.S b/libc/arch-x86_64/syscalls/setgroups.S index 81023ab4b..c798c1480 100644 --- a/libc/arch-x86_64/syscalls/setgroups.S +++ b/libc/arch-x86_64/syscalls/setgroups.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setgroups) movl $__NR_setgroups, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setgroups) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setgroups) diff --git a/libc/arch-x86_64/syscalls/setitimer.S b/libc/arch-x86_64/syscalls/setitimer.S index 6882564b5..c5fabb22b 100644 --- a/libc/arch-x86_64/syscalls/setitimer.S +++ b/libc/arch-x86_64/syscalls/setitimer.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setitimer) movl $__NR_setitimer, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setitimer) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setitimer) diff --git a/libc/arch-x86_64/syscalls/setns.S b/libc/arch-x86_64/syscalls/setns.S index 15dc51c99..c2ae97d6c 100644 --- a/libc/arch-x86_64/syscalls/setns.S +++ b/libc/arch-x86_64/syscalls/setns.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setns) movl $__NR_setns, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setns) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setns) diff --git a/libc/arch-x86_64/syscalls/setpgid.S b/libc/arch-x86_64/syscalls/setpgid.S index 0cbb9a33a..4d4313c43 100644 --- a/libc/arch-x86_64/syscalls/setpgid.S +++ b/libc/arch-x86_64/syscalls/setpgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setpgid) movl $__NR_setpgid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setpgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setpgid) diff --git a/libc/arch-x86_64/syscalls/setpriority.S b/libc/arch-x86_64/syscalls/setpriority.S index e2ee77581..3c508c32a 100644 --- a/libc/arch-x86_64/syscalls/setpriority.S +++ b/libc/arch-x86_64/syscalls/setpriority.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setpriority) movl $__NR_setpriority, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setpriority) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setpriority) diff --git a/libc/arch-x86_64/syscalls/setregid.S b/libc/arch-x86_64/syscalls/setregid.S index 1d53e4caa..181a8b903 100644 --- a/libc/arch-x86_64/syscalls/setregid.S +++ b/libc/arch-x86_64/syscalls/setregid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setregid) movl $__NR_setregid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setregid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setregid) diff --git a/libc/arch-x86_64/syscalls/setresgid.S b/libc/arch-x86_64/syscalls/setresgid.S index 7663cc68f..fe44786dd 100644 --- a/libc/arch-x86_64/syscalls/setresgid.S +++ b/libc/arch-x86_64/syscalls/setresgid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setresgid) movl $__NR_setresgid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setresgid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setresgid) diff --git a/libc/arch-x86_64/syscalls/setresuid.S b/libc/arch-x86_64/syscalls/setresuid.S index 96e691f52..58cd2ca10 100644 --- a/libc/arch-x86_64/syscalls/setresuid.S +++ b/libc/arch-x86_64/syscalls/setresuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setresuid) movl $__NR_setresuid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setresuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setresuid) diff --git a/libc/arch-x86_64/syscalls/setreuid.S b/libc/arch-x86_64/syscalls/setreuid.S index 9ee7208d4..e25658b1e 100644 --- a/libc/arch-x86_64/syscalls/setreuid.S +++ b/libc/arch-x86_64/syscalls/setreuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setreuid) movl $__NR_setreuid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setreuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setreuid) diff --git a/libc/arch-x86_64/syscalls/setrlimit.S b/libc/arch-x86_64/syscalls/setrlimit.S index 393a5c186..ef0306829 100644 --- a/libc/arch-x86_64/syscalls/setrlimit.S +++ b/libc/arch-x86_64/syscalls/setrlimit.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setrlimit) movl $__NR_setrlimit, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setrlimit) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setrlimit) diff --git a/libc/arch-x86_64/syscalls/setsid.S b/libc/arch-x86_64/syscalls/setsid.S index bed06c9e2..01d9269ce 100644 --- a/libc/arch-x86_64/syscalls/setsid.S +++ b/libc/arch-x86_64/syscalls/setsid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setsid) movl $__NR_setsid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setsid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setsid) diff --git a/libc/arch-x86_64/syscalls/setsockopt.S b/libc/arch-x86_64/syscalls/setsockopt.S index 3c12cd60e..629fdf0d5 100644 --- a/libc/arch-x86_64/syscalls/setsockopt.S +++ b/libc/arch-x86_64/syscalls/setsockopt.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setsockopt) movq %rcx, %r10 movl $__NR_setsockopt, %eax @@ -12,7 +10,7 @@ ENTRY(setsockopt) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setsockopt) diff --git a/libc/arch-x86_64/syscalls/settimeofday.S b/libc/arch-x86_64/syscalls/settimeofday.S index 317946a42..ac5b9b1b4 100644 --- a/libc/arch-x86_64/syscalls/settimeofday.S +++ b/libc/arch-x86_64/syscalls/settimeofday.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(settimeofday) movl $__NR_settimeofday, %eax syscall @@ -11,7 +9,7 @@ ENTRY(settimeofday) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(settimeofday) diff --git a/libc/arch-x86_64/syscalls/setuid.S b/libc/arch-x86_64/syscalls/setuid.S index 8da7d86fa..f335a76e8 100644 --- a/libc/arch-x86_64/syscalls/setuid.S +++ b/libc/arch-x86_64/syscalls/setuid.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setuid) movl $__NR_setuid, %eax syscall @@ -11,7 +9,7 @@ ENTRY(setuid) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setuid) diff --git a/libc/arch-x86_64/syscalls/setxattr.S b/libc/arch-x86_64/syscalls/setxattr.S index 2abaa7675..d7504231b 100644 --- a/libc/arch-x86_64/syscalls/setxattr.S +++ b/libc/arch-x86_64/syscalls/setxattr.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(setxattr) movq %rcx, %r10 movl $__NR_setxattr, %eax @@ -12,7 +10,7 @@ ENTRY(setxattr) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(setxattr) diff --git a/libc/arch-x86_64/syscalls/shutdown.S b/libc/arch-x86_64/syscalls/shutdown.S index b5840d74b..a030c97b8 100644 --- a/libc/arch-x86_64/syscalls/shutdown.S +++ b/libc/arch-x86_64/syscalls/shutdown.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(shutdown) movl $__NR_shutdown, %eax syscall @@ -11,7 +9,7 @@ ENTRY(shutdown) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(shutdown) diff --git a/libc/arch-x86_64/syscalls/sigaltstack.S b/libc/arch-x86_64/syscalls/sigaltstack.S index 2dd6aa4bf..71ce53745 100644 --- a/libc/arch-x86_64/syscalls/sigaltstack.S +++ b/libc/arch-x86_64/syscalls/sigaltstack.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sigaltstack) movl $__NR_sigaltstack, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sigaltstack) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sigaltstack) diff --git a/libc/arch-x86_64/syscalls/socketpair.S b/libc/arch-x86_64/syscalls/socketpair.S index cb32a8aff..dbcf50d23 100644 --- a/libc/arch-x86_64/syscalls/socketpair.S +++ b/libc/arch-x86_64/syscalls/socketpair.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(socketpair) movq %rcx, %r10 movl $__NR_socketpair, %eax @@ -12,7 +10,7 @@ ENTRY(socketpair) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(socketpair) diff --git a/libc/arch-x86_64/syscalls/splice.S b/libc/arch-x86_64/syscalls/splice.S index 351e1c7f9..1b2ec84ef 100644 --- a/libc/arch-x86_64/syscalls/splice.S +++ b/libc/arch-x86_64/syscalls/splice.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(splice) movq %rcx, %r10 movl $__NR_splice, %eax @@ -12,7 +10,7 @@ ENTRY(splice) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(splice) diff --git a/libc/arch-x86_64/syscalls/statfs64.S b/libc/arch-x86_64/syscalls/statfs64.S index 26c3d535f..16f6bdd6b 100644 --- a/libc/arch-x86_64/syscalls/statfs64.S +++ b/libc/arch-x86_64/syscalls/statfs64.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(statfs64) movl $__NR_statfs, %eax syscall @@ -11,7 +9,7 @@ ENTRY(statfs64) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(statfs64) diff --git a/libc/arch-x86_64/syscalls/swapoff.S b/libc/arch-x86_64/syscalls/swapoff.S index 1bf331c2b..df922a077 100644 --- a/libc/arch-x86_64/syscalls/swapoff.S +++ b/libc/arch-x86_64/syscalls/swapoff.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(swapoff) movl $__NR_swapoff, %eax syscall @@ -11,7 +9,7 @@ ENTRY(swapoff) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(swapoff) diff --git a/libc/arch-x86_64/syscalls/swapon.S b/libc/arch-x86_64/syscalls/swapon.S index 7405ccb9f..036b42213 100644 --- a/libc/arch-x86_64/syscalls/swapon.S +++ b/libc/arch-x86_64/syscalls/swapon.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(swapon) movl $__NR_swapon, %eax syscall @@ -11,7 +9,7 @@ ENTRY(swapon) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(swapon) diff --git a/libc/arch-x86_64/syscalls/symlinkat.S b/libc/arch-x86_64/syscalls/symlinkat.S index bea2da886..fdbced542 100644 --- a/libc/arch-x86_64/syscalls/symlinkat.S +++ b/libc/arch-x86_64/syscalls/symlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(symlinkat) movl $__NR_symlinkat, %eax syscall @@ -11,7 +9,7 @@ ENTRY(symlinkat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(symlinkat) diff --git a/libc/arch-x86_64/syscalls/sync.S b/libc/arch-x86_64/syscalls/sync.S index 97aa427e7..a4153fdab 100644 --- a/libc/arch-x86_64/syscalls/sync.S +++ b/libc/arch-x86_64/syscalls/sync.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sync) movl $__NR_sync, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sync) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sync) diff --git a/libc/arch-x86_64/syscalls/sysinfo.S b/libc/arch-x86_64/syscalls/sysinfo.S index de8fb8fb8..754ef61ec 100644 --- a/libc/arch-x86_64/syscalls/sysinfo.S +++ b/libc/arch-x86_64/syscalls/sysinfo.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(sysinfo) movl $__NR_sysinfo, %eax syscall @@ -11,7 +9,7 @@ ENTRY(sysinfo) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(sysinfo) diff --git a/libc/arch-x86_64/syscalls/tee.S b/libc/arch-x86_64/syscalls/tee.S index 41e2370c6..31d66dc84 100644 --- a/libc/arch-x86_64/syscalls/tee.S +++ b/libc/arch-x86_64/syscalls/tee.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(tee) movq %rcx, %r10 movl $__NR_tee, %eax @@ -12,7 +10,7 @@ ENTRY(tee) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(tee) diff --git a/libc/arch-x86_64/syscalls/tgkill.S b/libc/arch-x86_64/syscalls/tgkill.S index 00b2b42ee..9c46887ad 100644 --- a/libc/arch-x86_64/syscalls/tgkill.S +++ b/libc/arch-x86_64/syscalls/tgkill.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(tgkill) movl $__NR_tgkill, %eax syscall @@ -11,7 +9,7 @@ ENTRY(tgkill) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(tgkill) diff --git a/libc/arch-x86_64/syscalls/timerfd_create.S b/libc/arch-x86_64/syscalls/timerfd_create.S index eef3208f6..56b45e80b 100644 --- a/libc/arch-x86_64/syscalls/timerfd_create.S +++ b/libc/arch-x86_64/syscalls/timerfd_create.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_create) movl $__NR_timerfd_create, %eax syscall @@ -11,7 +9,7 @@ ENTRY(timerfd_create) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(timerfd_create) diff --git a/libc/arch-x86_64/syscalls/timerfd_gettime.S b/libc/arch-x86_64/syscalls/timerfd_gettime.S index 9f11c5af8..8c9b5d6ed 100644 --- a/libc/arch-x86_64/syscalls/timerfd_gettime.S +++ b/libc/arch-x86_64/syscalls/timerfd_gettime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_gettime) movl $__NR_timerfd_gettime, %eax syscall @@ -11,7 +9,7 @@ ENTRY(timerfd_gettime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(timerfd_gettime) diff --git a/libc/arch-x86_64/syscalls/timerfd_settime.S b/libc/arch-x86_64/syscalls/timerfd_settime.S index 65a17e1ad..a524c0cbb 100644 --- a/libc/arch-x86_64/syscalls/timerfd_settime.S +++ b/libc/arch-x86_64/syscalls/timerfd_settime.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(timerfd_settime) movq %rcx, %r10 movl $__NR_timerfd_settime, %eax @@ -12,7 +10,7 @@ ENTRY(timerfd_settime) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(timerfd_settime) diff --git a/libc/arch-x86_64/syscalls/times.S b/libc/arch-x86_64/syscalls/times.S index 5ee21be78..89502bdce 100644 --- a/libc/arch-x86_64/syscalls/times.S +++ b/libc/arch-x86_64/syscalls/times.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(times) movl $__NR_times, %eax syscall @@ -11,7 +9,7 @@ ENTRY(times) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(times) diff --git a/libc/arch-x86_64/syscalls/truncate.S b/libc/arch-x86_64/syscalls/truncate.S index 2dc179306..2ecd05b6e 100644 --- a/libc/arch-x86_64/syscalls/truncate.S +++ b/libc/arch-x86_64/syscalls/truncate.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(truncate) movl $__NR_truncate, %eax syscall @@ -11,7 +9,7 @@ ENTRY(truncate) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(truncate) diff --git a/libc/arch-x86_64/syscalls/umask.S b/libc/arch-x86_64/syscalls/umask.S index ad102bd75..acd37e80d 100644 --- a/libc/arch-x86_64/syscalls/umask.S +++ b/libc/arch-x86_64/syscalls/umask.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(umask) movl $__NR_umask, %eax syscall @@ -11,7 +9,7 @@ ENTRY(umask) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(umask) diff --git a/libc/arch-x86_64/syscalls/umount2.S b/libc/arch-x86_64/syscalls/umount2.S index 31588de89..438aedb41 100644 --- a/libc/arch-x86_64/syscalls/umount2.S +++ b/libc/arch-x86_64/syscalls/umount2.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(umount2) movl $__NR_umount2, %eax syscall @@ -11,7 +9,7 @@ ENTRY(umount2) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(umount2) diff --git a/libc/arch-x86_64/syscalls/uname.S b/libc/arch-x86_64/syscalls/uname.S index ad2d8f456..6f077dfd2 100644 --- a/libc/arch-x86_64/syscalls/uname.S +++ b/libc/arch-x86_64/syscalls/uname.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(uname) movl $__NR_uname, %eax syscall @@ -11,7 +9,7 @@ ENTRY(uname) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(uname) diff --git a/libc/arch-x86_64/syscalls/unlinkat.S b/libc/arch-x86_64/syscalls/unlinkat.S index e6aac2e4a..80f0251dd 100644 --- a/libc/arch-x86_64/syscalls/unlinkat.S +++ b/libc/arch-x86_64/syscalls/unlinkat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(unlinkat) movl $__NR_unlinkat, %eax syscall @@ -11,7 +9,7 @@ ENTRY(unlinkat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(unlinkat) diff --git a/libc/arch-x86_64/syscalls/unshare.S b/libc/arch-x86_64/syscalls/unshare.S index 6594df025..8316d20f7 100644 --- a/libc/arch-x86_64/syscalls/unshare.S +++ b/libc/arch-x86_64/syscalls/unshare.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(unshare) movl $__NR_unshare, %eax syscall @@ -11,7 +9,7 @@ ENTRY(unshare) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(unshare) diff --git a/libc/arch-x86_64/syscalls/utimensat.S b/libc/arch-x86_64/syscalls/utimensat.S index 5eaac1b55..3e438261c 100644 --- a/libc/arch-x86_64/syscalls/utimensat.S +++ b/libc/arch-x86_64/syscalls/utimensat.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(utimensat) movq %rcx, %r10 movl $__NR_utimensat, %eax @@ -12,7 +10,7 @@ ENTRY(utimensat) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(utimensat) diff --git a/libc/arch-x86_64/syscalls/vmsplice.S b/libc/arch-x86_64/syscalls/vmsplice.S index 6f9e5d1b5..df775c6a0 100644 --- a/libc/arch-x86_64/syscalls/vmsplice.S +++ b/libc/arch-x86_64/syscalls/vmsplice.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(vmsplice) movq %rcx, %r10 movl $__NR_vmsplice, %eax @@ -12,7 +10,7 @@ ENTRY(vmsplice) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(vmsplice) diff --git a/libc/arch-x86_64/syscalls/wait4.S b/libc/arch-x86_64/syscalls/wait4.S index 141fe19fc..d392dc7dd 100644 --- a/libc/arch-x86_64/syscalls/wait4.S +++ b/libc/arch-x86_64/syscalls/wait4.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(wait4) movq %rcx, %r10 movl $__NR_wait4, %eax @@ -12,7 +10,7 @@ ENTRY(wait4) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(wait4) diff --git a/libc/arch-x86_64/syscalls/write.S b/libc/arch-x86_64/syscalls/write.S index 498fca71c..145c7930e 100644 --- a/libc/arch-x86_64/syscalls/write.S +++ b/libc/arch-x86_64/syscalls/write.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(write) movl $__NR_write, %eax syscall @@ -11,7 +9,7 @@ ENTRY(write) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(write) diff --git a/libc/arch-x86_64/syscalls/writev.S b/libc/arch-x86_64/syscalls/writev.S index ef80eb898..8f8956f22 100644 --- a/libc/arch-x86_64/syscalls/writev.S +++ b/libc/arch-x86_64/syscalls/writev.S @@ -2,8 +2,6 @@ #include - .hidden __set_errno - ENTRY(writev) movl $__NR_writev, %eax syscall @@ -11,7 +9,7 @@ ENTRY(writev) jb 1f negl %eax movl %eax, %edi - call __set_errno + call __set_errno_internal 1: ret END(writev) diff --git a/libc/bionic/__set_errno.cpp b/libc/bionic/__set_errno.cpp index 236aeacee..30df350ea 100644 --- a/libc/bionic/__set_errno.cpp +++ b/libc/bionic/__set_errno.cpp @@ -36,14 +36,20 @@ // system these are the same size, but on a 64-bit system they're not. // 'long' gives us 32-bit on 32-bit systems, 64-bit on 64-bit systems. -#if __LP64__ -extern "C" __LIBC_HIDDEN__ long __set_errno(int); -#else // __set_errno was mistakenly exposed in in the 32-bit NDK. -extern "C" long __set_errno(int); -#endif +// We need the extra level of indirection so that the .hidden directives +// in the system call stubs don't cause __set_errno to be hidden, breaking +// old NDK apps. -long __set_errno(int n) { +// This one is for internal use only and used by both LP32 and LP64 assembler. +extern "C" __LIBC_HIDDEN__ long __set_errno_internal(int n) { errno = n; return -1; } + +// This one exists for the LP32 NDK and is not present at all in LP64. +#if !defined(__LP64__) +extern "C" long __set_errno(int n) { + return __set_errno_internal(n); +} +#endif diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py index 316e05b03..e8ec63662 100755 --- a/libc/tools/gensyscalls.py +++ b/libc/tools/gensyscalls.py @@ -43,8 +43,6 @@ syscall_stub_header = "/* " + warning + " */\n" + \ """ #include - .hidden __set_errno - ENTRY(%(func)s) """ @@ -67,7 +65,7 @@ arm_eabi_call_default = syscall_stub_header + """\ cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(%(func)s) """ @@ -87,7 +85,7 @@ arm_eabi_call_long = syscall_stub_header + """\ cmn r0, #(MAX_ERRNO + 1) bxls lr neg r0, r0 - b __set_errno + b __set_errno_internal END(%(func)s) """ @@ -102,7 +100,7 @@ arm64_call = syscall_stub_header + """\ cmn x0, #(MAX_ERRNO + 1) cneg x0, x0, hi - b.hi __set_errno + b.hi __set_errno_internal ret END(%(func)s) @@ -123,7 +121,7 @@ mips_call = syscall_stub_header + """\ j ra nop 1: - la t9,__set_errno + la t9,__set_errno_internal j t9 nop .set reorder @@ -150,7 +148,7 @@ mips64_call = syscall_stub_header + """\ nop 2: .cpsetup ra, t1, 2b - LA t9,__set_errno + LA t9,__set_errno_internal .cpreturn j t9 move ra, t0 @@ -172,7 +170,7 @@ x86_call = """\ jb 1f negl %%eax pushl %%eax - call __set_errno + call __set_errno_internal addl $4, %%esp 1: """ @@ -194,7 +192,7 @@ x86_64_call = """\ jb 1f negl %%eax movl %%eax, %%edi - call __set_errno + call __set_errno_internal 1: ret END(%(func)s)