From bc9f9f25bf1247a6a638a2a2df8441bdd9fabad7 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 8 Aug 2014 15:19:20 -0700 Subject: [PATCH] Make __set_errno hidden in asm. This fixes the build after the -Bsymbolic change. Bug: 16853291 Change-Id: I989c9fec3c32e0289ea257a3bd2b7fd2709b6ce2 --- libc/arch-arm/syscalls/__accept4.S | 2 ++ libc/arch-arm/syscalls/__brk.S | 2 ++ libc/arch-arm/syscalls/__connect.S | 2 ++ libc/arch-arm/syscalls/__epoll_pwait.S | 2 ++ libc/arch-arm/syscalls/__exit.S | 2 ++ libc/arch-arm/syscalls/__fcntl64.S | 2 ++ libc/arch-arm/syscalls/__fstatfs64.S | 2 ++ libc/arch-arm/syscalls/__getcpu.S | 2 ++ libc/arch-arm/syscalls/__getcwd.S | 2 ++ libc/arch-arm/syscalls/__getdents64.S | 2 ++ libc/arch-arm/syscalls/__getpid.S | 2 ++ libc/arch-arm/syscalls/__getpriority.S | 2 ++ libc/arch-arm/syscalls/__ioctl.S | 2 ++ libc/arch-arm/syscalls/__llseek.S | 2 ++ libc/arch-arm/syscalls/__mmap2.S | 2 ++ libc/arch-arm/syscalls/__openat.S | 2 ++ libc/arch-arm/syscalls/__ppoll.S | 2 ++ libc/arch-arm/syscalls/__pselect6.S | 2 ++ libc/arch-arm/syscalls/__ptrace.S | 2 ++ libc/arch-arm/syscalls/__reboot.S | 2 ++ libc/arch-arm/syscalls/__rt_sigaction.S | 2 ++ libc/arch-arm/syscalls/__rt_sigpending.S | 2 ++ libc/arch-arm/syscalls/__rt_sigprocmask.S | 2 ++ libc/arch-arm/syscalls/__rt_sigsuspend.S | 2 ++ libc/arch-arm/syscalls/__rt_sigtimedwait.S | 2 ++ libc/arch-arm/syscalls/__sched_getaffinity.S | 2 ++ libc/arch-arm/syscalls/__set_tid_address.S | 2 ++ libc/arch-arm/syscalls/__set_tls.S | 2 ++ libc/arch-arm/syscalls/__sigaction.S | 2 ++ libc/arch-arm/syscalls/__signalfd4.S | 2 ++ libc/arch-arm/syscalls/__socket.S | 2 ++ libc/arch-arm/syscalls/__statfs64.S | 2 ++ libc/arch-arm/syscalls/__timer_create.S | 2 ++ libc/arch-arm/syscalls/__timer_delete.S | 2 ++ libc/arch-arm/syscalls/__timer_getoverrun.S | 2 ++ libc/arch-arm/syscalls/__timer_gettime.S | 2 ++ libc/arch-arm/syscalls/__timer_settime.S | 2 ++ libc/arch-arm/syscalls/__waitid.S | 2 ++ libc/arch-arm/syscalls/_exit.S | 2 ++ libc/arch-arm/syscalls/acct.S | 2 ++ libc/arch-arm/syscalls/bind.S | 2 ++ libc/arch-arm/syscalls/cacheflush.S | 2 ++ libc/arch-arm/syscalls/capget.S | 2 ++ libc/arch-arm/syscalls/capset.S | 2 ++ libc/arch-arm/syscalls/chdir.S | 2 ++ libc/arch-arm/syscalls/chroot.S | 2 ++ libc/arch-arm/syscalls/clock_getres.S | 2 ++ libc/arch-arm/syscalls/clock_gettime.S | 2 ++ libc/arch-arm/syscalls/clock_nanosleep.S | 2 ++ libc/arch-arm/syscalls/clock_settime.S | 2 ++ libc/arch-arm/syscalls/close.S | 2 ++ libc/arch-arm/syscalls/delete_module.S | 2 ++ libc/arch-arm/syscalls/dup.S | 2 ++ libc/arch-arm/syscalls/dup3.S | 2 ++ libc/arch-arm/syscalls/epoll_create1.S | 2 ++ libc/arch-arm/syscalls/epoll_ctl.S | 2 ++ libc/arch-arm/syscalls/eventfd.S | 2 ++ libc/arch-arm/syscalls/execve.S | 2 ++ libc/arch-arm/syscalls/faccessat.S | 2 ++ libc/arch-arm/syscalls/fallocate64.S | 2 ++ libc/arch-arm/syscalls/fchdir.S | 2 ++ libc/arch-arm/syscalls/fchmod.S | 2 ++ libc/arch-arm/syscalls/fchmodat.S | 2 ++ libc/arch-arm/syscalls/fchown.S | 2 ++ libc/arch-arm/syscalls/fchownat.S | 2 ++ libc/arch-arm/syscalls/fdatasync.S | 2 ++ libc/arch-arm/syscalls/fgetxattr.S | 2 ++ libc/arch-arm/syscalls/flistxattr.S | 2 ++ libc/arch-arm/syscalls/flock.S | 2 ++ libc/arch-arm/syscalls/fremovexattr.S | 2 ++ libc/arch-arm/syscalls/fsetxattr.S | 2 ++ libc/arch-arm/syscalls/fstat64.S | 2 ++ libc/arch-arm/syscalls/fstatat64.S | 2 ++ libc/arch-arm/syscalls/fsync.S | 2 ++ libc/arch-arm/syscalls/ftruncate.S | 2 ++ libc/arch-arm/syscalls/ftruncate64.S | 2 ++ libc/arch-arm/syscalls/getegid.S | 2 ++ libc/arch-arm/syscalls/geteuid.S | 2 ++ libc/arch-arm/syscalls/getgid.S | 2 ++ libc/arch-arm/syscalls/getgroups.S | 2 ++ libc/arch-arm/syscalls/getitimer.S | 2 ++ libc/arch-arm/syscalls/getpeername.S | 2 ++ libc/arch-arm/syscalls/getpgid.S | 2 ++ libc/arch-arm/syscalls/getppid.S | 2 ++ libc/arch-arm/syscalls/getresgid.S | 2 ++ libc/arch-arm/syscalls/getresuid.S | 2 ++ libc/arch-arm/syscalls/getrlimit.S | 2 ++ libc/arch-arm/syscalls/getrusage.S | 2 ++ libc/arch-arm/syscalls/getsid.S | 2 ++ libc/arch-arm/syscalls/getsockname.S | 2 ++ libc/arch-arm/syscalls/getsockopt.S | 2 ++ libc/arch-arm/syscalls/gettimeofday.S | 2 ++ libc/arch-arm/syscalls/getuid.S | 2 ++ libc/arch-arm/syscalls/getxattr.S | 2 ++ libc/arch-arm/syscalls/init_module.S | 2 ++ libc/arch-arm/syscalls/inotify_add_watch.S | 2 ++ libc/arch-arm/syscalls/inotify_init1.S | 2 ++ libc/arch-arm/syscalls/inotify_rm_watch.S | 2 ++ libc/arch-arm/syscalls/kill.S | 2 ++ libc/arch-arm/syscalls/klogctl.S | 2 ++ libc/arch-arm/syscalls/lgetxattr.S | 2 ++ libc/arch-arm/syscalls/linkat.S | 2 ++ libc/arch-arm/syscalls/listen.S | 2 ++ libc/arch-arm/syscalls/listxattr.S | 2 ++ libc/arch-arm/syscalls/llistxattr.S | 2 ++ libc/arch-arm/syscalls/lremovexattr.S | 2 ++ libc/arch-arm/syscalls/lseek.S | 2 ++ libc/arch-arm/syscalls/lsetxattr.S | 2 ++ libc/arch-arm/syscalls/madvise.S | 2 ++ libc/arch-arm/syscalls/mincore.S | 2 ++ libc/arch-arm/syscalls/mkdirat.S | 2 ++ libc/arch-arm/syscalls/mknodat.S | 2 ++ libc/arch-arm/syscalls/mlock.S | 2 ++ libc/arch-arm/syscalls/mlockall.S | 2 ++ libc/arch-arm/syscalls/mount.S | 2 ++ libc/arch-arm/syscalls/mprotect.S | 2 ++ libc/arch-arm/syscalls/mremap.S | 2 ++ libc/arch-arm/syscalls/msync.S | 2 ++ libc/arch-arm/syscalls/munlock.S | 2 ++ libc/arch-arm/syscalls/munlockall.S | 2 ++ libc/arch-arm/syscalls/munmap.S | 2 ++ libc/arch-arm/syscalls/nanosleep.S | 2 ++ libc/arch-arm/syscalls/personality.S | 2 ++ libc/arch-arm/syscalls/pipe2.S | 2 ++ libc/arch-arm/syscalls/prctl.S | 2 ++ libc/arch-arm/syscalls/pread64.S | 2 ++ libc/arch-arm/syscalls/prlimit64.S | 2 ++ libc/arch-arm/syscalls/pwrite64.S | 2 ++ libc/arch-arm/syscalls/read.S | 2 ++ libc/arch-arm/syscalls/readahead.S | 2 ++ libc/arch-arm/syscalls/readlinkat.S | 2 ++ libc/arch-arm/syscalls/readv.S | 2 ++ libc/arch-arm/syscalls/recvfrom.S | 2 ++ libc/arch-arm/syscalls/recvmmsg.S | 2 ++ libc/arch-arm/syscalls/recvmsg.S | 2 ++ libc/arch-arm/syscalls/removexattr.S | 2 ++ libc/arch-arm/syscalls/renameat.S | 2 ++ libc/arch-arm/syscalls/sched_get_priority_max.S | 2 ++ libc/arch-arm/syscalls/sched_get_priority_min.S | 2 ++ libc/arch-arm/syscalls/sched_getparam.S | 2 ++ libc/arch-arm/syscalls/sched_getscheduler.S | 2 ++ libc/arch-arm/syscalls/sched_rr_get_interval.S | 2 ++ libc/arch-arm/syscalls/sched_setaffinity.S | 2 ++ libc/arch-arm/syscalls/sched_setparam.S | 2 ++ libc/arch-arm/syscalls/sched_setscheduler.S | 2 ++ libc/arch-arm/syscalls/sched_yield.S | 2 ++ libc/arch-arm/syscalls/sendfile.S | 2 ++ libc/arch-arm/syscalls/sendfile64.S | 2 ++ libc/arch-arm/syscalls/sendmmsg.S | 2 ++ libc/arch-arm/syscalls/sendmsg.S | 2 ++ libc/arch-arm/syscalls/sendto.S | 2 ++ libc/arch-arm/syscalls/setfsgid.S | 2 ++ libc/arch-arm/syscalls/setfsuid.S | 2 ++ libc/arch-arm/syscalls/setgid.S | 2 ++ libc/arch-arm/syscalls/setgroups.S | 2 ++ libc/arch-arm/syscalls/setitimer.S | 2 ++ libc/arch-arm/syscalls/setns.S | 2 ++ libc/arch-arm/syscalls/setpgid.S | 2 ++ libc/arch-arm/syscalls/setpriority.S | 2 ++ libc/arch-arm/syscalls/setregid.S | 2 ++ libc/arch-arm/syscalls/setresgid.S | 2 ++ libc/arch-arm/syscalls/setresuid.S | 2 ++ libc/arch-arm/syscalls/setreuid.S | 2 ++ libc/arch-arm/syscalls/setrlimit.S | 2 ++ libc/arch-arm/syscalls/setsid.S | 2 ++ libc/arch-arm/syscalls/setsockopt.S | 2 ++ libc/arch-arm/syscalls/settimeofday.S | 2 ++ libc/arch-arm/syscalls/setuid.S | 2 ++ libc/arch-arm/syscalls/setxattr.S | 2 ++ libc/arch-arm/syscalls/shutdown.S | 2 ++ libc/arch-arm/syscalls/sigaltstack.S | 2 ++ libc/arch-arm/syscalls/socketpair.S | 2 ++ libc/arch-arm/syscalls/splice.S | 2 ++ libc/arch-arm/syscalls/swapoff.S | 2 ++ libc/arch-arm/syscalls/swapon.S | 2 ++ libc/arch-arm/syscalls/symlinkat.S | 2 ++ libc/arch-arm/syscalls/sync.S | 2 ++ libc/arch-arm/syscalls/sysinfo.S | 2 ++ libc/arch-arm/syscalls/tee.S | 2 ++ libc/arch-arm/syscalls/tgkill.S | 2 ++ libc/arch-arm/syscalls/timerfd_create.S | 2 ++ libc/arch-arm/syscalls/timerfd_gettime.S | 2 ++ libc/arch-arm/syscalls/timerfd_settime.S | 2 ++ libc/arch-arm/syscalls/times.S | 2 ++ libc/arch-arm/syscalls/truncate.S | 2 ++ libc/arch-arm/syscalls/truncate64.S | 2 ++ libc/arch-arm/syscalls/umask.S | 2 ++ libc/arch-arm/syscalls/umount2.S | 2 ++ libc/arch-arm/syscalls/uname.S | 2 ++ libc/arch-arm/syscalls/unlinkat.S | 2 ++ libc/arch-arm/syscalls/unshare.S | 2 ++ libc/arch-arm/syscalls/utimensat.S | 2 ++ libc/arch-arm/syscalls/vfork.S | 2 ++ libc/arch-arm/syscalls/vmsplice.S | 2 ++ libc/arch-arm/syscalls/wait4.S | 2 ++ libc/arch-arm/syscalls/write.S | 2 ++ libc/arch-arm/syscalls/writev.S | 2 ++ libc/arch-arm64/syscalls/__accept4.S | 2 ++ libc/arch-arm64/syscalls/__brk.S | 2 ++ libc/arch-arm64/syscalls/__clock_gettime.S | 2 ++ libc/arch-arm64/syscalls/__connect.S | 2 ++ libc/arch-arm64/syscalls/__epoll_pwait.S | 2 ++ libc/arch-arm64/syscalls/__exit.S | 2 ++ libc/arch-arm64/syscalls/__getcpu.S | 2 ++ libc/arch-arm64/syscalls/__getcwd.S | 2 ++ libc/arch-arm64/syscalls/__getdents64.S | 2 ++ libc/arch-arm64/syscalls/__getpid.S | 2 ++ libc/arch-arm64/syscalls/__getpriority.S | 2 ++ libc/arch-arm64/syscalls/__gettimeofday.S | 2 ++ libc/arch-arm64/syscalls/__ioctl.S | 2 ++ libc/arch-arm64/syscalls/__openat.S | 2 ++ libc/arch-arm64/syscalls/__ppoll.S | 2 ++ libc/arch-arm64/syscalls/__pselect6.S | 2 ++ libc/arch-arm64/syscalls/__ptrace.S | 2 ++ libc/arch-arm64/syscalls/__reboot.S | 2 ++ libc/arch-arm64/syscalls/__rt_sigaction.S | 2 ++ libc/arch-arm64/syscalls/__rt_sigpending.S | 2 ++ libc/arch-arm64/syscalls/__rt_sigprocmask.S | 2 ++ libc/arch-arm64/syscalls/__rt_sigsuspend.S | 2 ++ libc/arch-arm64/syscalls/__rt_sigtimedwait.S | 2 ++ libc/arch-arm64/syscalls/__sched_getaffinity.S | 2 ++ libc/arch-arm64/syscalls/__set_tid_address.S | 2 ++ libc/arch-arm64/syscalls/__signalfd4.S | 2 ++ libc/arch-arm64/syscalls/__socket.S | 2 ++ libc/arch-arm64/syscalls/__timer_create.S | 2 ++ libc/arch-arm64/syscalls/__timer_delete.S | 2 ++ libc/arch-arm64/syscalls/__timer_getoverrun.S | 2 ++ libc/arch-arm64/syscalls/__timer_gettime.S | 2 ++ libc/arch-arm64/syscalls/__timer_settime.S | 2 ++ libc/arch-arm64/syscalls/__waitid.S | 2 ++ libc/arch-arm64/syscalls/_exit.S | 2 ++ libc/arch-arm64/syscalls/acct.S | 2 ++ libc/arch-arm64/syscalls/bind.S | 2 ++ libc/arch-arm64/syscalls/capget.S | 2 ++ libc/arch-arm64/syscalls/capset.S | 2 ++ libc/arch-arm64/syscalls/chdir.S | 2 ++ libc/arch-arm64/syscalls/chroot.S | 2 ++ libc/arch-arm64/syscalls/clock_getres.S | 2 ++ libc/arch-arm64/syscalls/clock_nanosleep.S | 2 ++ libc/arch-arm64/syscalls/clock_settime.S | 2 ++ libc/arch-arm64/syscalls/close.S | 2 ++ libc/arch-arm64/syscalls/delete_module.S | 2 ++ libc/arch-arm64/syscalls/dup.S | 2 ++ libc/arch-arm64/syscalls/dup3.S | 2 ++ libc/arch-arm64/syscalls/epoll_create1.S | 2 ++ libc/arch-arm64/syscalls/epoll_ctl.S | 2 ++ libc/arch-arm64/syscalls/eventfd.S | 2 ++ libc/arch-arm64/syscalls/execve.S | 2 ++ libc/arch-arm64/syscalls/faccessat.S | 2 ++ libc/arch-arm64/syscalls/fallocate.S | 2 ++ libc/arch-arm64/syscalls/fchdir.S | 2 ++ libc/arch-arm64/syscalls/fchmod.S | 2 ++ libc/arch-arm64/syscalls/fchmodat.S | 2 ++ libc/arch-arm64/syscalls/fchown.S | 2 ++ libc/arch-arm64/syscalls/fchownat.S | 2 ++ libc/arch-arm64/syscalls/fcntl.S | 2 ++ libc/arch-arm64/syscalls/fdatasync.S | 2 ++ libc/arch-arm64/syscalls/fgetxattr.S | 2 ++ libc/arch-arm64/syscalls/flistxattr.S | 2 ++ libc/arch-arm64/syscalls/flock.S | 2 ++ libc/arch-arm64/syscalls/fremovexattr.S | 2 ++ libc/arch-arm64/syscalls/fsetxattr.S | 2 ++ libc/arch-arm64/syscalls/fstat64.S | 2 ++ libc/arch-arm64/syscalls/fstatat64.S | 2 ++ libc/arch-arm64/syscalls/fstatfs64.S | 2 ++ libc/arch-arm64/syscalls/fsync.S | 2 ++ libc/arch-arm64/syscalls/ftruncate.S | 2 ++ libc/arch-arm64/syscalls/getegid.S | 2 ++ libc/arch-arm64/syscalls/geteuid.S | 2 ++ libc/arch-arm64/syscalls/getgid.S | 2 ++ libc/arch-arm64/syscalls/getgroups.S | 2 ++ libc/arch-arm64/syscalls/getitimer.S | 2 ++ libc/arch-arm64/syscalls/getpeername.S | 2 ++ libc/arch-arm64/syscalls/getpgid.S | 2 ++ libc/arch-arm64/syscalls/getppid.S | 2 ++ libc/arch-arm64/syscalls/getresgid.S | 2 ++ libc/arch-arm64/syscalls/getresuid.S | 2 ++ libc/arch-arm64/syscalls/getrlimit.S | 2 ++ libc/arch-arm64/syscalls/getrusage.S | 2 ++ libc/arch-arm64/syscalls/getsid.S | 2 ++ libc/arch-arm64/syscalls/getsockname.S | 2 ++ libc/arch-arm64/syscalls/getsockopt.S | 2 ++ libc/arch-arm64/syscalls/getuid.S | 2 ++ libc/arch-arm64/syscalls/getxattr.S | 2 ++ libc/arch-arm64/syscalls/init_module.S | 2 ++ libc/arch-arm64/syscalls/inotify_add_watch.S | 2 ++ libc/arch-arm64/syscalls/inotify_init1.S | 2 ++ libc/arch-arm64/syscalls/inotify_rm_watch.S | 2 ++ libc/arch-arm64/syscalls/kill.S | 2 ++ libc/arch-arm64/syscalls/klogctl.S | 2 ++ libc/arch-arm64/syscalls/lgetxattr.S | 2 ++ libc/arch-arm64/syscalls/linkat.S | 2 ++ libc/arch-arm64/syscalls/listen.S | 2 ++ libc/arch-arm64/syscalls/listxattr.S | 2 ++ libc/arch-arm64/syscalls/llistxattr.S | 2 ++ libc/arch-arm64/syscalls/lremovexattr.S | 2 ++ libc/arch-arm64/syscalls/lseek.S | 2 ++ libc/arch-arm64/syscalls/lsetxattr.S | 2 ++ libc/arch-arm64/syscalls/madvise.S | 2 ++ libc/arch-arm64/syscalls/mincore.S | 2 ++ libc/arch-arm64/syscalls/mkdirat.S | 2 ++ libc/arch-arm64/syscalls/mknodat.S | 2 ++ libc/arch-arm64/syscalls/mlock.S | 2 ++ libc/arch-arm64/syscalls/mlockall.S | 2 ++ libc/arch-arm64/syscalls/mmap.S | 2 ++ libc/arch-arm64/syscalls/mount.S | 2 ++ libc/arch-arm64/syscalls/mprotect.S | 2 ++ libc/arch-arm64/syscalls/mremap.S | 2 ++ libc/arch-arm64/syscalls/msync.S | 2 ++ libc/arch-arm64/syscalls/munlock.S | 2 ++ libc/arch-arm64/syscalls/munlockall.S | 2 ++ libc/arch-arm64/syscalls/munmap.S | 2 ++ libc/arch-arm64/syscalls/nanosleep.S | 2 ++ libc/arch-arm64/syscalls/personality.S | 2 ++ libc/arch-arm64/syscalls/pipe2.S | 2 ++ libc/arch-arm64/syscalls/prctl.S | 2 ++ libc/arch-arm64/syscalls/pread64.S | 2 ++ libc/arch-arm64/syscalls/prlimit64.S | 2 ++ libc/arch-arm64/syscalls/pwrite64.S | 2 ++ libc/arch-arm64/syscalls/read.S | 2 ++ libc/arch-arm64/syscalls/readahead.S | 2 ++ libc/arch-arm64/syscalls/readlinkat.S | 2 ++ libc/arch-arm64/syscalls/readv.S | 2 ++ libc/arch-arm64/syscalls/recvfrom.S | 2 ++ libc/arch-arm64/syscalls/recvmmsg.S | 2 ++ libc/arch-arm64/syscalls/recvmsg.S | 2 ++ libc/arch-arm64/syscalls/removexattr.S | 2 ++ libc/arch-arm64/syscalls/renameat.S | 2 ++ libc/arch-arm64/syscalls/sched_get_priority_max.S | 2 ++ libc/arch-arm64/syscalls/sched_get_priority_min.S | 2 ++ libc/arch-arm64/syscalls/sched_getparam.S | 2 ++ libc/arch-arm64/syscalls/sched_getscheduler.S | 2 ++ libc/arch-arm64/syscalls/sched_rr_get_interval.S | 2 ++ libc/arch-arm64/syscalls/sched_setaffinity.S | 2 ++ libc/arch-arm64/syscalls/sched_setparam.S | 2 ++ libc/arch-arm64/syscalls/sched_setscheduler.S | 2 ++ libc/arch-arm64/syscalls/sched_yield.S | 2 ++ libc/arch-arm64/syscalls/sendfile.S | 2 ++ libc/arch-arm64/syscalls/sendmmsg.S | 2 ++ libc/arch-arm64/syscalls/sendmsg.S | 2 ++ libc/arch-arm64/syscalls/sendto.S | 2 ++ libc/arch-arm64/syscalls/setfsgid.S | 2 ++ libc/arch-arm64/syscalls/setfsuid.S | 2 ++ libc/arch-arm64/syscalls/setgid.S | 2 ++ libc/arch-arm64/syscalls/setgroups.S | 2 ++ libc/arch-arm64/syscalls/setitimer.S | 2 ++ libc/arch-arm64/syscalls/setns.S | 2 ++ libc/arch-arm64/syscalls/setpgid.S | 2 ++ libc/arch-arm64/syscalls/setpriority.S | 2 ++ libc/arch-arm64/syscalls/setregid.S | 2 ++ libc/arch-arm64/syscalls/setresgid.S | 2 ++ libc/arch-arm64/syscalls/setresuid.S | 2 ++ libc/arch-arm64/syscalls/setreuid.S | 2 ++ libc/arch-arm64/syscalls/setrlimit.S | 2 ++ libc/arch-arm64/syscalls/setsid.S | 2 ++ libc/arch-arm64/syscalls/setsockopt.S | 2 ++ libc/arch-arm64/syscalls/settimeofday.S | 2 ++ libc/arch-arm64/syscalls/setuid.S | 2 ++ libc/arch-arm64/syscalls/setxattr.S | 2 ++ libc/arch-arm64/syscalls/shutdown.S | 2 ++ libc/arch-arm64/syscalls/sigaltstack.S | 2 ++ libc/arch-arm64/syscalls/socketpair.S | 2 ++ libc/arch-arm64/syscalls/splice.S | 2 ++ libc/arch-arm64/syscalls/statfs64.S | 2 ++ libc/arch-arm64/syscalls/swapoff.S | 2 ++ libc/arch-arm64/syscalls/swapon.S | 2 ++ libc/arch-arm64/syscalls/symlinkat.S | 2 ++ libc/arch-arm64/syscalls/sync.S | 2 ++ libc/arch-arm64/syscalls/sysinfo.S | 2 ++ libc/arch-arm64/syscalls/tee.S | 2 ++ libc/arch-arm64/syscalls/tgkill.S | 2 ++ libc/arch-arm64/syscalls/timerfd_create.S | 2 ++ libc/arch-arm64/syscalls/timerfd_gettime.S | 2 ++ libc/arch-arm64/syscalls/timerfd_settime.S | 2 ++ libc/arch-arm64/syscalls/times.S | 2 ++ libc/arch-arm64/syscalls/truncate.S | 2 ++ libc/arch-arm64/syscalls/umask.S | 2 ++ libc/arch-arm64/syscalls/umount2.S | 2 ++ libc/arch-arm64/syscalls/uname.S | 2 ++ libc/arch-arm64/syscalls/unlinkat.S | 2 ++ libc/arch-arm64/syscalls/unshare.S | 2 ++ libc/arch-arm64/syscalls/utimensat.S | 2 ++ libc/arch-arm64/syscalls/vmsplice.S | 2 ++ libc/arch-arm64/syscalls/wait4.S | 2 ++ libc/arch-arm64/syscalls/write.S | 2 ++ libc/arch-arm64/syscalls/writev.S | 2 ++ libc/arch-mips/syscalls/__accept4.S | 2 ++ libc/arch-mips/syscalls/__brk.S | 2 ++ libc/arch-mips/syscalls/__connect.S | 2 ++ libc/arch-mips/syscalls/__epoll_pwait.S | 2 ++ libc/arch-mips/syscalls/__exit.S | 2 ++ libc/arch-mips/syscalls/__fcntl64.S | 2 ++ libc/arch-mips/syscalls/__fstatfs64.S | 2 ++ libc/arch-mips/syscalls/__getcpu.S | 2 ++ libc/arch-mips/syscalls/__getcwd.S | 2 ++ libc/arch-mips/syscalls/__getdents64.S | 2 ++ libc/arch-mips/syscalls/__getpid.S | 2 ++ libc/arch-mips/syscalls/__getpriority.S | 2 ++ libc/arch-mips/syscalls/__ioctl.S | 2 ++ libc/arch-mips/syscalls/__llseek.S | 2 ++ libc/arch-mips/syscalls/__mmap2.S | 2 ++ libc/arch-mips/syscalls/__openat.S | 2 ++ libc/arch-mips/syscalls/__ppoll.S | 2 ++ libc/arch-mips/syscalls/__pselect6.S | 2 ++ libc/arch-mips/syscalls/__ptrace.S | 2 ++ libc/arch-mips/syscalls/__reboot.S | 2 ++ libc/arch-mips/syscalls/__rt_sigaction.S | 2 ++ libc/arch-mips/syscalls/__rt_sigpending.S | 2 ++ libc/arch-mips/syscalls/__rt_sigprocmask.S | 2 ++ libc/arch-mips/syscalls/__rt_sigsuspend.S | 2 ++ libc/arch-mips/syscalls/__rt_sigtimedwait.S | 2 ++ libc/arch-mips/syscalls/__sched_getaffinity.S | 2 ++ libc/arch-mips/syscalls/__set_tid_address.S | 2 ++ libc/arch-mips/syscalls/__set_tls.S | 2 ++ libc/arch-mips/syscalls/__sigaction.S | 2 ++ libc/arch-mips/syscalls/__signalfd4.S | 2 ++ libc/arch-mips/syscalls/__socket.S | 2 ++ libc/arch-mips/syscalls/__statfs64.S | 2 ++ libc/arch-mips/syscalls/__timer_create.S | 2 ++ libc/arch-mips/syscalls/__timer_delete.S | 2 ++ libc/arch-mips/syscalls/__timer_getoverrun.S | 2 ++ libc/arch-mips/syscalls/__timer_gettime.S | 2 ++ libc/arch-mips/syscalls/__timer_settime.S | 2 ++ libc/arch-mips/syscalls/__waitid.S | 2 ++ libc/arch-mips/syscalls/_exit.S | 2 ++ libc/arch-mips/syscalls/_flush_cache.S | 2 ++ libc/arch-mips/syscalls/acct.S | 2 ++ libc/arch-mips/syscalls/bind.S | 2 ++ libc/arch-mips/syscalls/capget.S | 2 ++ libc/arch-mips/syscalls/capset.S | 2 ++ libc/arch-mips/syscalls/chdir.S | 2 ++ libc/arch-mips/syscalls/chroot.S | 2 ++ libc/arch-mips/syscalls/clock_getres.S | 2 ++ libc/arch-mips/syscalls/clock_gettime.S | 2 ++ libc/arch-mips/syscalls/clock_nanosleep.S | 2 ++ libc/arch-mips/syscalls/clock_settime.S | 2 ++ libc/arch-mips/syscalls/close.S | 2 ++ libc/arch-mips/syscalls/delete_module.S | 2 ++ libc/arch-mips/syscalls/dup.S | 2 ++ libc/arch-mips/syscalls/dup3.S | 2 ++ libc/arch-mips/syscalls/epoll_create1.S | 2 ++ libc/arch-mips/syscalls/epoll_ctl.S | 2 ++ libc/arch-mips/syscalls/eventfd.S | 2 ++ libc/arch-mips/syscalls/execve.S | 2 ++ libc/arch-mips/syscalls/faccessat.S | 2 ++ libc/arch-mips/syscalls/fallocate64.S | 2 ++ libc/arch-mips/syscalls/fchdir.S | 2 ++ libc/arch-mips/syscalls/fchmod.S | 2 ++ libc/arch-mips/syscalls/fchmodat.S | 2 ++ libc/arch-mips/syscalls/fchown.S | 2 ++ libc/arch-mips/syscalls/fchownat.S | 2 ++ libc/arch-mips/syscalls/fdatasync.S | 2 ++ libc/arch-mips/syscalls/fgetxattr.S | 2 ++ libc/arch-mips/syscalls/flistxattr.S | 2 ++ libc/arch-mips/syscalls/flock.S | 2 ++ libc/arch-mips/syscalls/fremovexattr.S | 2 ++ libc/arch-mips/syscalls/fsetxattr.S | 2 ++ libc/arch-mips/syscalls/fstat64.S | 2 ++ libc/arch-mips/syscalls/fstatat64.S | 2 ++ libc/arch-mips/syscalls/fsync.S | 2 ++ libc/arch-mips/syscalls/ftruncate.S | 2 ++ libc/arch-mips/syscalls/ftruncate64.S | 2 ++ libc/arch-mips/syscalls/getegid.S | 2 ++ libc/arch-mips/syscalls/geteuid.S | 2 ++ libc/arch-mips/syscalls/getgid.S | 2 ++ libc/arch-mips/syscalls/getgroups.S | 2 ++ libc/arch-mips/syscalls/getitimer.S | 2 ++ libc/arch-mips/syscalls/getpeername.S | 2 ++ libc/arch-mips/syscalls/getpgid.S | 2 ++ libc/arch-mips/syscalls/getppid.S | 2 ++ libc/arch-mips/syscalls/getresgid.S | 2 ++ libc/arch-mips/syscalls/getresuid.S | 2 ++ libc/arch-mips/syscalls/getrlimit.S | 2 ++ libc/arch-mips/syscalls/getrusage.S | 2 ++ libc/arch-mips/syscalls/getsid.S | 2 ++ libc/arch-mips/syscalls/getsockname.S | 2 ++ libc/arch-mips/syscalls/getsockopt.S | 2 ++ libc/arch-mips/syscalls/gettimeofday.S | 2 ++ libc/arch-mips/syscalls/getuid.S | 2 ++ libc/arch-mips/syscalls/getxattr.S | 2 ++ libc/arch-mips/syscalls/init_module.S | 2 ++ libc/arch-mips/syscalls/inotify_add_watch.S | 2 ++ libc/arch-mips/syscalls/inotify_init1.S | 2 ++ libc/arch-mips/syscalls/inotify_rm_watch.S | 2 ++ libc/arch-mips/syscalls/kill.S | 2 ++ libc/arch-mips/syscalls/klogctl.S | 2 ++ libc/arch-mips/syscalls/lgetxattr.S | 2 ++ libc/arch-mips/syscalls/linkat.S | 2 ++ libc/arch-mips/syscalls/listen.S | 2 ++ libc/arch-mips/syscalls/listxattr.S | 2 ++ libc/arch-mips/syscalls/llistxattr.S | 2 ++ libc/arch-mips/syscalls/lremovexattr.S | 2 ++ libc/arch-mips/syscalls/lseek.S | 2 ++ libc/arch-mips/syscalls/lsetxattr.S | 2 ++ libc/arch-mips/syscalls/madvise.S | 2 ++ libc/arch-mips/syscalls/mincore.S | 2 ++ libc/arch-mips/syscalls/mkdirat.S | 2 ++ libc/arch-mips/syscalls/mknodat.S | 2 ++ libc/arch-mips/syscalls/mlock.S | 2 ++ libc/arch-mips/syscalls/mlockall.S | 2 ++ libc/arch-mips/syscalls/mount.S | 2 ++ libc/arch-mips/syscalls/mprotect.S | 2 ++ libc/arch-mips/syscalls/mremap.S | 2 ++ libc/arch-mips/syscalls/msync.S | 2 ++ libc/arch-mips/syscalls/munlock.S | 2 ++ libc/arch-mips/syscalls/munlockall.S | 2 ++ libc/arch-mips/syscalls/munmap.S | 2 ++ libc/arch-mips/syscalls/nanosleep.S | 2 ++ libc/arch-mips/syscalls/personality.S | 2 ++ libc/arch-mips/syscalls/pipe2.S | 2 ++ libc/arch-mips/syscalls/prctl.S | 2 ++ libc/arch-mips/syscalls/pread64.S | 2 ++ libc/arch-mips/syscalls/prlimit64.S | 2 ++ libc/arch-mips/syscalls/pwrite64.S | 2 ++ libc/arch-mips/syscalls/read.S | 2 ++ libc/arch-mips/syscalls/readahead.S | 2 ++ libc/arch-mips/syscalls/readlinkat.S | 2 ++ libc/arch-mips/syscalls/readv.S | 2 ++ libc/arch-mips/syscalls/recvfrom.S | 2 ++ libc/arch-mips/syscalls/recvmmsg.S | 2 ++ libc/arch-mips/syscalls/recvmsg.S | 2 ++ libc/arch-mips/syscalls/removexattr.S | 2 ++ libc/arch-mips/syscalls/renameat.S | 2 ++ libc/arch-mips/syscalls/sched_get_priority_max.S | 2 ++ libc/arch-mips/syscalls/sched_get_priority_min.S | 2 ++ libc/arch-mips/syscalls/sched_getparam.S | 2 ++ libc/arch-mips/syscalls/sched_getscheduler.S | 2 ++ libc/arch-mips/syscalls/sched_rr_get_interval.S | 2 ++ libc/arch-mips/syscalls/sched_setaffinity.S | 2 ++ libc/arch-mips/syscalls/sched_setparam.S | 2 ++ libc/arch-mips/syscalls/sched_setscheduler.S | 2 ++ libc/arch-mips/syscalls/sched_yield.S | 2 ++ libc/arch-mips/syscalls/sendfile.S | 2 ++ libc/arch-mips/syscalls/sendfile64.S | 2 ++ libc/arch-mips/syscalls/sendmmsg.S | 2 ++ libc/arch-mips/syscalls/sendmsg.S | 2 ++ libc/arch-mips/syscalls/sendto.S | 2 ++ libc/arch-mips/syscalls/setfsgid.S | 2 ++ libc/arch-mips/syscalls/setfsuid.S | 2 ++ libc/arch-mips/syscalls/setgid.S | 2 ++ libc/arch-mips/syscalls/setgroups.S | 2 ++ libc/arch-mips/syscalls/setitimer.S | 2 ++ libc/arch-mips/syscalls/setns.S | 2 ++ libc/arch-mips/syscalls/setpgid.S | 2 ++ libc/arch-mips/syscalls/setpriority.S | 2 ++ libc/arch-mips/syscalls/setregid.S | 2 ++ libc/arch-mips/syscalls/setresgid.S | 2 ++ libc/arch-mips/syscalls/setresuid.S | 2 ++ libc/arch-mips/syscalls/setreuid.S | 2 ++ libc/arch-mips/syscalls/setrlimit.S | 2 ++ libc/arch-mips/syscalls/setsid.S | 2 ++ libc/arch-mips/syscalls/setsockopt.S | 2 ++ libc/arch-mips/syscalls/settimeofday.S | 2 ++ libc/arch-mips/syscalls/setuid.S | 2 ++ libc/arch-mips/syscalls/setxattr.S | 2 ++ libc/arch-mips/syscalls/shutdown.S | 2 ++ libc/arch-mips/syscalls/sigaltstack.S | 2 ++ libc/arch-mips/syscalls/socketpair.S | 2 ++ libc/arch-mips/syscalls/splice.S | 2 ++ libc/arch-mips/syscalls/swapoff.S | 2 ++ libc/arch-mips/syscalls/swapon.S | 2 ++ libc/arch-mips/syscalls/symlinkat.S | 2 ++ libc/arch-mips/syscalls/sync.S | 2 ++ libc/arch-mips/syscalls/sysinfo.S | 2 ++ libc/arch-mips/syscalls/tee.S | 2 ++ libc/arch-mips/syscalls/tgkill.S | 2 ++ libc/arch-mips/syscalls/timerfd_create.S | 2 ++ libc/arch-mips/syscalls/timerfd_gettime.S | 2 ++ libc/arch-mips/syscalls/timerfd_settime.S | 2 ++ libc/arch-mips/syscalls/times.S | 2 ++ libc/arch-mips/syscalls/truncate.S | 2 ++ libc/arch-mips/syscalls/truncate64.S | 2 ++ libc/arch-mips/syscalls/umask.S | 2 ++ libc/arch-mips/syscalls/umount2.S | 2 ++ libc/arch-mips/syscalls/uname.S | 2 ++ libc/arch-mips/syscalls/unlinkat.S | 2 ++ libc/arch-mips/syscalls/unshare.S | 2 ++ libc/arch-mips/syscalls/utimensat.S | 2 ++ libc/arch-mips/syscalls/vmsplice.S | 2 ++ libc/arch-mips/syscalls/wait4.S | 2 ++ libc/arch-mips/syscalls/write.S | 2 ++ libc/arch-mips/syscalls/writev.S | 2 ++ libc/arch-mips64/syscalls/__accept4.S | 2 ++ libc/arch-mips64/syscalls/__brk.S | 2 ++ libc/arch-mips64/syscalls/__connect.S | 2 ++ libc/arch-mips64/syscalls/__epoll_pwait.S | 2 ++ libc/arch-mips64/syscalls/__exit.S | 2 ++ libc/arch-mips64/syscalls/__getcpu.S | 2 ++ libc/arch-mips64/syscalls/__getcwd.S | 2 ++ libc/arch-mips64/syscalls/__getdents64.S | 2 ++ libc/arch-mips64/syscalls/__getpid.S | 2 ++ libc/arch-mips64/syscalls/__getpriority.S | 2 ++ libc/arch-mips64/syscalls/__ioctl.S | 2 ++ libc/arch-mips64/syscalls/__openat.S | 2 ++ libc/arch-mips64/syscalls/__ppoll.S | 2 ++ libc/arch-mips64/syscalls/__pselect6.S | 2 ++ libc/arch-mips64/syscalls/__ptrace.S | 2 ++ libc/arch-mips64/syscalls/__reboot.S | 2 ++ libc/arch-mips64/syscalls/__rt_sigaction.S | 2 ++ libc/arch-mips64/syscalls/__rt_sigpending.S | 2 ++ libc/arch-mips64/syscalls/__rt_sigprocmask.S | 2 ++ libc/arch-mips64/syscalls/__rt_sigsuspend.S | 2 ++ libc/arch-mips64/syscalls/__rt_sigtimedwait.S | 2 ++ libc/arch-mips64/syscalls/__sched_getaffinity.S | 2 ++ libc/arch-mips64/syscalls/__set_tid_address.S | 2 ++ libc/arch-mips64/syscalls/__set_tls.S | 2 ++ libc/arch-mips64/syscalls/__signalfd4.S | 2 ++ libc/arch-mips64/syscalls/__socket.S | 2 ++ libc/arch-mips64/syscalls/__timer_create.S | 2 ++ libc/arch-mips64/syscalls/__timer_delete.S | 2 ++ libc/arch-mips64/syscalls/__timer_getoverrun.S | 2 ++ libc/arch-mips64/syscalls/__timer_gettime.S | 2 ++ libc/arch-mips64/syscalls/__timer_settime.S | 2 ++ libc/arch-mips64/syscalls/__waitid.S | 2 ++ libc/arch-mips64/syscalls/_exit.S | 2 ++ libc/arch-mips64/syscalls/_flush_cache.S | 2 ++ libc/arch-mips64/syscalls/acct.S | 2 ++ libc/arch-mips64/syscalls/bind.S | 2 ++ libc/arch-mips64/syscalls/capget.S | 2 ++ libc/arch-mips64/syscalls/capset.S | 2 ++ libc/arch-mips64/syscalls/chdir.S | 2 ++ libc/arch-mips64/syscalls/chroot.S | 2 ++ libc/arch-mips64/syscalls/clock_getres.S | 2 ++ libc/arch-mips64/syscalls/clock_gettime.S | 2 ++ libc/arch-mips64/syscalls/clock_nanosleep.S | 2 ++ libc/arch-mips64/syscalls/clock_settime.S | 2 ++ libc/arch-mips64/syscalls/close.S | 2 ++ libc/arch-mips64/syscalls/delete_module.S | 2 ++ libc/arch-mips64/syscalls/dup.S | 2 ++ libc/arch-mips64/syscalls/dup3.S | 2 ++ libc/arch-mips64/syscalls/epoll_create1.S | 2 ++ libc/arch-mips64/syscalls/epoll_ctl.S | 2 ++ libc/arch-mips64/syscalls/eventfd.S | 2 ++ libc/arch-mips64/syscalls/execve.S | 2 ++ libc/arch-mips64/syscalls/faccessat.S | 2 ++ libc/arch-mips64/syscalls/fallocate.S | 2 ++ libc/arch-mips64/syscalls/fchdir.S | 2 ++ libc/arch-mips64/syscalls/fchmod.S | 2 ++ libc/arch-mips64/syscalls/fchmodat.S | 2 ++ libc/arch-mips64/syscalls/fchown.S | 2 ++ libc/arch-mips64/syscalls/fchownat.S | 2 ++ libc/arch-mips64/syscalls/fcntl.S | 2 ++ libc/arch-mips64/syscalls/fdatasync.S | 2 ++ libc/arch-mips64/syscalls/fgetxattr.S | 2 ++ libc/arch-mips64/syscalls/flistxattr.S | 2 ++ libc/arch-mips64/syscalls/flock.S | 2 ++ libc/arch-mips64/syscalls/fremovexattr.S | 2 ++ libc/arch-mips64/syscalls/fsetxattr.S | 2 ++ libc/arch-mips64/syscalls/fstat64.S | 2 ++ libc/arch-mips64/syscalls/fstatat64.S | 2 ++ libc/arch-mips64/syscalls/fstatfs64.S | 2 ++ libc/arch-mips64/syscalls/fsync.S | 2 ++ libc/arch-mips64/syscalls/ftruncate.S | 2 ++ libc/arch-mips64/syscalls/getegid.S | 2 ++ libc/arch-mips64/syscalls/geteuid.S | 2 ++ libc/arch-mips64/syscalls/getgid.S | 2 ++ libc/arch-mips64/syscalls/getgroups.S | 2 ++ libc/arch-mips64/syscalls/getitimer.S | 2 ++ libc/arch-mips64/syscalls/getpeername.S | 2 ++ libc/arch-mips64/syscalls/getpgid.S | 2 ++ libc/arch-mips64/syscalls/getppid.S | 2 ++ libc/arch-mips64/syscalls/getresgid.S | 2 ++ libc/arch-mips64/syscalls/getresuid.S | 2 ++ libc/arch-mips64/syscalls/getrlimit.S | 2 ++ libc/arch-mips64/syscalls/getrusage.S | 2 ++ libc/arch-mips64/syscalls/getsid.S | 2 ++ libc/arch-mips64/syscalls/getsockname.S | 2 ++ libc/arch-mips64/syscalls/getsockopt.S | 2 ++ libc/arch-mips64/syscalls/gettimeofday.S | 2 ++ libc/arch-mips64/syscalls/getuid.S | 2 ++ libc/arch-mips64/syscalls/getxattr.S | 2 ++ libc/arch-mips64/syscalls/init_module.S | 2 ++ libc/arch-mips64/syscalls/inotify_add_watch.S | 2 ++ libc/arch-mips64/syscalls/inotify_init1.S | 2 ++ libc/arch-mips64/syscalls/inotify_rm_watch.S | 2 ++ libc/arch-mips64/syscalls/kill.S | 2 ++ libc/arch-mips64/syscalls/klogctl.S | 2 ++ libc/arch-mips64/syscalls/lgetxattr.S | 2 ++ libc/arch-mips64/syscalls/linkat.S | 2 ++ libc/arch-mips64/syscalls/listen.S | 2 ++ libc/arch-mips64/syscalls/listxattr.S | 2 ++ libc/arch-mips64/syscalls/llistxattr.S | 2 ++ libc/arch-mips64/syscalls/lremovexattr.S | 2 ++ libc/arch-mips64/syscalls/lseek.S | 2 ++ libc/arch-mips64/syscalls/lsetxattr.S | 2 ++ libc/arch-mips64/syscalls/madvise.S | 2 ++ libc/arch-mips64/syscalls/mincore.S | 2 ++ libc/arch-mips64/syscalls/mkdirat.S | 2 ++ libc/arch-mips64/syscalls/mknodat.S | 2 ++ libc/arch-mips64/syscalls/mlock.S | 2 ++ libc/arch-mips64/syscalls/mlockall.S | 2 ++ libc/arch-mips64/syscalls/mmap.S | 2 ++ libc/arch-mips64/syscalls/mount.S | 2 ++ libc/arch-mips64/syscalls/mprotect.S | 2 ++ libc/arch-mips64/syscalls/mremap.S | 2 ++ libc/arch-mips64/syscalls/msync.S | 2 ++ libc/arch-mips64/syscalls/munlock.S | 2 ++ libc/arch-mips64/syscalls/munlockall.S | 2 ++ libc/arch-mips64/syscalls/munmap.S | 2 ++ libc/arch-mips64/syscalls/nanosleep.S | 2 ++ libc/arch-mips64/syscalls/personality.S | 2 ++ libc/arch-mips64/syscalls/pipe2.S | 2 ++ libc/arch-mips64/syscalls/prctl.S | 2 ++ libc/arch-mips64/syscalls/pread64.S | 2 ++ libc/arch-mips64/syscalls/prlimit64.S | 2 ++ libc/arch-mips64/syscalls/pwrite64.S | 2 ++ libc/arch-mips64/syscalls/read.S | 2 ++ libc/arch-mips64/syscalls/readahead.S | 2 ++ libc/arch-mips64/syscalls/readlinkat.S | 2 ++ libc/arch-mips64/syscalls/readv.S | 2 ++ libc/arch-mips64/syscalls/recvfrom.S | 2 ++ libc/arch-mips64/syscalls/recvmmsg.S | 2 ++ libc/arch-mips64/syscalls/recvmsg.S | 2 ++ libc/arch-mips64/syscalls/removexattr.S | 2 ++ libc/arch-mips64/syscalls/renameat.S | 2 ++ libc/arch-mips64/syscalls/sched_get_priority_max.S | 2 ++ libc/arch-mips64/syscalls/sched_get_priority_min.S | 2 ++ libc/arch-mips64/syscalls/sched_getparam.S | 2 ++ libc/arch-mips64/syscalls/sched_getscheduler.S | 2 ++ libc/arch-mips64/syscalls/sched_rr_get_interval.S | 2 ++ libc/arch-mips64/syscalls/sched_setaffinity.S | 2 ++ libc/arch-mips64/syscalls/sched_setparam.S | 2 ++ libc/arch-mips64/syscalls/sched_setscheduler.S | 2 ++ libc/arch-mips64/syscalls/sched_yield.S | 2 ++ libc/arch-mips64/syscalls/sendfile.S | 2 ++ libc/arch-mips64/syscalls/sendmmsg.S | 2 ++ libc/arch-mips64/syscalls/sendmsg.S | 2 ++ libc/arch-mips64/syscalls/sendto.S | 2 ++ libc/arch-mips64/syscalls/setfsgid.S | 2 ++ libc/arch-mips64/syscalls/setfsuid.S | 2 ++ libc/arch-mips64/syscalls/setgid.S | 2 ++ libc/arch-mips64/syscalls/setgroups.S | 2 ++ libc/arch-mips64/syscalls/setitimer.S | 2 ++ libc/arch-mips64/syscalls/setns.S | 2 ++ libc/arch-mips64/syscalls/setpgid.S | 2 ++ libc/arch-mips64/syscalls/setpriority.S | 2 ++ libc/arch-mips64/syscalls/setregid.S | 2 ++ libc/arch-mips64/syscalls/setresgid.S | 2 ++ libc/arch-mips64/syscalls/setresuid.S | 2 ++ libc/arch-mips64/syscalls/setreuid.S | 2 ++ libc/arch-mips64/syscalls/setrlimit.S | 2 ++ libc/arch-mips64/syscalls/setsid.S | 2 ++ libc/arch-mips64/syscalls/setsockopt.S | 2 ++ libc/arch-mips64/syscalls/settimeofday.S | 2 ++ libc/arch-mips64/syscalls/setuid.S | 2 ++ libc/arch-mips64/syscalls/setxattr.S | 2 ++ libc/arch-mips64/syscalls/shutdown.S | 2 ++ libc/arch-mips64/syscalls/sigaltstack.S | 2 ++ libc/arch-mips64/syscalls/socketpair.S | 2 ++ libc/arch-mips64/syscalls/splice.S | 2 ++ libc/arch-mips64/syscalls/statfs64.S | 2 ++ libc/arch-mips64/syscalls/swapoff.S | 2 ++ libc/arch-mips64/syscalls/swapon.S | 2 ++ libc/arch-mips64/syscalls/symlinkat.S | 2 ++ libc/arch-mips64/syscalls/sync.S | 2 ++ libc/arch-mips64/syscalls/sysinfo.S | 2 ++ libc/arch-mips64/syscalls/tee.S | 2 ++ libc/arch-mips64/syscalls/tgkill.S | 2 ++ libc/arch-mips64/syscalls/timerfd_create.S | 2 ++ libc/arch-mips64/syscalls/timerfd_gettime.S | 2 ++ libc/arch-mips64/syscalls/timerfd_settime.S | 2 ++ libc/arch-mips64/syscalls/times.S | 2 ++ libc/arch-mips64/syscalls/truncate.S | 2 ++ libc/arch-mips64/syscalls/umask.S | 2 ++ libc/arch-mips64/syscalls/umount2.S | 2 ++ libc/arch-mips64/syscalls/uname.S | 2 ++ libc/arch-mips64/syscalls/unlinkat.S | 2 ++ libc/arch-mips64/syscalls/unshare.S | 2 ++ libc/arch-mips64/syscalls/utimensat.S | 2 ++ libc/arch-mips64/syscalls/vmsplice.S | 2 ++ libc/arch-mips64/syscalls/wait4.S | 2 ++ libc/arch-mips64/syscalls/write.S | 2 ++ libc/arch-mips64/syscalls/writev.S | 2 ++ libc/arch-x86/syscalls/__accept4.S | 2 ++ libc/arch-x86/syscalls/__brk.S | 2 ++ libc/arch-x86/syscalls/__connect.S | 2 ++ libc/arch-x86/syscalls/__epoll_pwait.S | 2 ++ libc/arch-x86/syscalls/__exit.S | 2 ++ libc/arch-x86/syscalls/__fcntl64.S | 2 ++ libc/arch-x86/syscalls/__fstatfs64.S | 2 ++ libc/arch-x86/syscalls/__getcpu.S | 2 ++ libc/arch-x86/syscalls/__getcwd.S | 2 ++ libc/arch-x86/syscalls/__getdents64.S | 2 ++ libc/arch-x86/syscalls/__getpid.S | 2 ++ libc/arch-x86/syscalls/__getpriority.S | 2 ++ libc/arch-x86/syscalls/__ioctl.S | 2 ++ libc/arch-x86/syscalls/__llseek.S | 2 ++ libc/arch-x86/syscalls/__mmap2.S | 2 ++ libc/arch-x86/syscalls/__openat.S | 2 ++ libc/arch-x86/syscalls/__ppoll.S | 2 ++ libc/arch-x86/syscalls/__pselect6.S | 2 ++ libc/arch-x86/syscalls/__ptrace.S | 2 ++ libc/arch-x86/syscalls/__reboot.S | 2 ++ libc/arch-x86/syscalls/__rt_sigaction.S | 2 ++ libc/arch-x86/syscalls/__rt_sigpending.S | 2 ++ libc/arch-x86/syscalls/__rt_sigprocmask.S | 2 ++ libc/arch-x86/syscalls/__rt_sigsuspend.S | 2 ++ libc/arch-x86/syscalls/__rt_sigtimedwait.S | 2 ++ libc/arch-x86/syscalls/__sched_getaffinity.S | 2 ++ libc/arch-x86/syscalls/__set_thread_area.S | 2 ++ libc/arch-x86/syscalls/__set_tid_address.S | 2 ++ libc/arch-x86/syscalls/__sigaction.S | 2 ++ libc/arch-x86/syscalls/__signalfd4.S | 2 ++ libc/arch-x86/syscalls/__socket.S | 2 ++ libc/arch-x86/syscalls/__statfs64.S | 2 ++ libc/arch-x86/syscalls/__timer_create.S | 2 ++ libc/arch-x86/syscalls/__timer_delete.S | 2 ++ libc/arch-x86/syscalls/__timer_getoverrun.S | 2 ++ libc/arch-x86/syscalls/__timer_gettime.S | 2 ++ libc/arch-x86/syscalls/__timer_settime.S | 2 ++ libc/arch-x86/syscalls/__waitid.S | 2 ++ libc/arch-x86/syscalls/_exit.S | 2 ++ libc/arch-x86/syscalls/acct.S | 2 ++ libc/arch-x86/syscalls/bind.S | 2 ++ libc/arch-x86/syscalls/capget.S | 2 ++ libc/arch-x86/syscalls/capset.S | 2 ++ libc/arch-x86/syscalls/chdir.S | 2 ++ libc/arch-x86/syscalls/chroot.S | 2 ++ libc/arch-x86/syscalls/clock_getres.S | 2 ++ libc/arch-x86/syscalls/clock_gettime.S | 2 ++ libc/arch-x86/syscalls/clock_nanosleep.S | 2 ++ libc/arch-x86/syscalls/clock_settime.S | 2 ++ libc/arch-x86/syscalls/close.S | 2 ++ libc/arch-x86/syscalls/delete_module.S | 2 ++ libc/arch-x86/syscalls/dup.S | 2 ++ libc/arch-x86/syscalls/dup3.S | 2 ++ libc/arch-x86/syscalls/epoll_create1.S | 2 ++ libc/arch-x86/syscalls/epoll_ctl.S | 2 ++ libc/arch-x86/syscalls/eventfd.S | 2 ++ libc/arch-x86/syscalls/execve.S | 2 ++ libc/arch-x86/syscalls/faccessat.S | 2 ++ libc/arch-x86/syscalls/fallocate64.S | 2 ++ libc/arch-x86/syscalls/fchdir.S | 2 ++ libc/arch-x86/syscalls/fchmod.S | 2 ++ libc/arch-x86/syscalls/fchmodat.S | 2 ++ libc/arch-x86/syscalls/fchown.S | 2 ++ libc/arch-x86/syscalls/fchownat.S | 2 ++ libc/arch-x86/syscalls/fdatasync.S | 2 ++ libc/arch-x86/syscalls/fgetxattr.S | 2 ++ libc/arch-x86/syscalls/flistxattr.S | 2 ++ libc/arch-x86/syscalls/flock.S | 2 ++ libc/arch-x86/syscalls/fremovexattr.S | 2 ++ libc/arch-x86/syscalls/fsetxattr.S | 2 ++ libc/arch-x86/syscalls/fstat64.S | 2 ++ libc/arch-x86/syscalls/fstatat64.S | 2 ++ libc/arch-x86/syscalls/fsync.S | 2 ++ libc/arch-x86/syscalls/ftruncate.S | 2 ++ libc/arch-x86/syscalls/ftruncate64.S | 2 ++ libc/arch-x86/syscalls/getegid.S | 2 ++ libc/arch-x86/syscalls/geteuid.S | 2 ++ libc/arch-x86/syscalls/getgid.S | 2 ++ libc/arch-x86/syscalls/getgroups.S | 2 ++ libc/arch-x86/syscalls/getitimer.S | 2 ++ libc/arch-x86/syscalls/getpeername.S | 2 ++ libc/arch-x86/syscalls/getpgid.S | 2 ++ libc/arch-x86/syscalls/getppid.S | 2 ++ libc/arch-x86/syscalls/getresgid.S | 2 ++ libc/arch-x86/syscalls/getresuid.S | 2 ++ libc/arch-x86/syscalls/getrlimit.S | 2 ++ libc/arch-x86/syscalls/getrusage.S | 2 ++ libc/arch-x86/syscalls/getsid.S | 2 ++ libc/arch-x86/syscalls/getsockname.S | 2 ++ libc/arch-x86/syscalls/getsockopt.S | 2 ++ libc/arch-x86/syscalls/gettimeofday.S | 2 ++ libc/arch-x86/syscalls/getuid.S | 2 ++ libc/arch-x86/syscalls/getxattr.S | 2 ++ libc/arch-x86/syscalls/init_module.S | 2 ++ libc/arch-x86/syscalls/inotify_add_watch.S | 2 ++ libc/arch-x86/syscalls/inotify_init1.S | 2 ++ libc/arch-x86/syscalls/inotify_rm_watch.S | 2 ++ libc/arch-x86/syscalls/kill.S | 2 ++ libc/arch-x86/syscalls/klogctl.S | 2 ++ libc/arch-x86/syscalls/lgetxattr.S | 2 ++ libc/arch-x86/syscalls/linkat.S | 2 ++ libc/arch-x86/syscalls/listen.S | 2 ++ libc/arch-x86/syscalls/listxattr.S | 2 ++ libc/arch-x86/syscalls/llistxattr.S | 2 ++ libc/arch-x86/syscalls/lremovexattr.S | 2 ++ libc/arch-x86/syscalls/lseek.S | 2 ++ libc/arch-x86/syscalls/lsetxattr.S | 2 ++ libc/arch-x86/syscalls/madvise.S | 2 ++ libc/arch-x86/syscalls/mincore.S | 2 ++ libc/arch-x86/syscalls/mkdirat.S | 2 ++ libc/arch-x86/syscalls/mknodat.S | 2 ++ libc/arch-x86/syscalls/mlock.S | 2 ++ libc/arch-x86/syscalls/mlockall.S | 2 ++ libc/arch-x86/syscalls/mount.S | 2 ++ libc/arch-x86/syscalls/mprotect.S | 2 ++ libc/arch-x86/syscalls/mremap.S | 2 ++ libc/arch-x86/syscalls/msync.S | 2 ++ libc/arch-x86/syscalls/munlock.S | 2 ++ libc/arch-x86/syscalls/munlockall.S | 2 ++ libc/arch-x86/syscalls/munmap.S | 2 ++ libc/arch-x86/syscalls/nanosleep.S | 2 ++ libc/arch-x86/syscalls/personality.S | 2 ++ libc/arch-x86/syscalls/pipe2.S | 2 ++ libc/arch-x86/syscalls/prctl.S | 2 ++ libc/arch-x86/syscalls/pread64.S | 2 ++ libc/arch-x86/syscalls/prlimit64.S | 2 ++ libc/arch-x86/syscalls/pwrite64.S | 2 ++ libc/arch-x86/syscalls/read.S | 2 ++ libc/arch-x86/syscalls/readahead.S | 2 ++ libc/arch-x86/syscalls/readlinkat.S | 2 ++ libc/arch-x86/syscalls/readv.S | 2 ++ libc/arch-x86/syscalls/recvfrom.S | 2 ++ libc/arch-x86/syscalls/recvmmsg.S | 2 ++ libc/arch-x86/syscalls/recvmsg.S | 2 ++ libc/arch-x86/syscalls/removexattr.S | 2 ++ libc/arch-x86/syscalls/renameat.S | 2 ++ libc/arch-x86/syscalls/sched_get_priority_max.S | 2 ++ libc/arch-x86/syscalls/sched_get_priority_min.S | 2 ++ libc/arch-x86/syscalls/sched_getparam.S | 2 ++ libc/arch-x86/syscalls/sched_getscheduler.S | 2 ++ libc/arch-x86/syscalls/sched_rr_get_interval.S | 2 ++ libc/arch-x86/syscalls/sched_setaffinity.S | 2 ++ libc/arch-x86/syscalls/sched_setparam.S | 2 ++ libc/arch-x86/syscalls/sched_setscheduler.S | 2 ++ libc/arch-x86/syscalls/sched_yield.S | 2 ++ libc/arch-x86/syscalls/sendfile.S | 2 ++ libc/arch-x86/syscalls/sendfile64.S | 2 ++ libc/arch-x86/syscalls/sendmmsg.S | 2 ++ libc/arch-x86/syscalls/sendmsg.S | 2 ++ libc/arch-x86/syscalls/sendto.S | 2 ++ libc/arch-x86/syscalls/setfsgid.S | 2 ++ libc/arch-x86/syscalls/setfsuid.S | 2 ++ libc/arch-x86/syscalls/setgid.S | 2 ++ libc/arch-x86/syscalls/setgroups.S | 2 ++ libc/arch-x86/syscalls/setitimer.S | 2 ++ libc/arch-x86/syscalls/setns.S | 2 ++ libc/arch-x86/syscalls/setpgid.S | 2 ++ libc/arch-x86/syscalls/setpriority.S | 2 ++ libc/arch-x86/syscalls/setregid.S | 2 ++ libc/arch-x86/syscalls/setresgid.S | 2 ++ libc/arch-x86/syscalls/setresuid.S | 2 ++ libc/arch-x86/syscalls/setreuid.S | 2 ++ libc/arch-x86/syscalls/setrlimit.S | 2 ++ libc/arch-x86/syscalls/setsid.S | 2 ++ libc/arch-x86/syscalls/setsockopt.S | 2 ++ libc/arch-x86/syscalls/settimeofday.S | 2 ++ libc/arch-x86/syscalls/setuid.S | 2 ++ libc/arch-x86/syscalls/setxattr.S | 2 ++ libc/arch-x86/syscalls/shutdown.S | 2 ++ libc/arch-x86/syscalls/sigaltstack.S | 2 ++ libc/arch-x86/syscalls/socketpair.S | 2 ++ libc/arch-x86/syscalls/splice.S | 2 ++ libc/arch-x86/syscalls/swapoff.S | 2 ++ libc/arch-x86/syscalls/swapon.S | 2 ++ libc/arch-x86/syscalls/symlinkat.S | 2 ++ libc/arch-x86/syscalls/sync.S | 2 ++ libc/arch-x86/syscalls/sysinfo.S | 2 ++ libc/arch-x86/syscalls/tee.S | 2 ++ libc/arch-x86/syscalls/tgkill.S | 2 ++ libc/arch-x86/syscalls/timerfd_create.S | 2 ++ libc/arch-x86/syscalls/timerfd_gettime.S | 2 ++ libc/arch-x86/syscalls/timerfd_settime.S | 2 ++ libc/arch-x86/syscalls/times.S | 2 ++ libc/arch-x86/syscalls/truncate.S | 2 ++ libc/arch-x86/syscalls/truncate64.S | 2 ++ libc/arch-x86/syscalls/umask.S | 2 ++ libc/arch-x86/syscalls/umount2.S | 2 ++ libc/arch-x86/syscalls/uname.S | 2 ++ libc/arch-x86/syscalls/unlinkat.S | 2 ++ libc/arch-x86/syscalls/unshare.S | 2 ++ libc/arch-x86/syscalls/utimensat.S | 2 ++ libc/arch-x86/syscalls/vmsplice.S | 2 ++ libc/arch-x86/syscalls/wait4.S | 2 ++ libc/arch-x86/syscalls/write.S | 2 ++ libc/arch-x86/syscalls/writev.S | 2 ++ libc/arch-x86_64/syscalls/__accept4.S | 2 ++ libc/arch-x86_64/syscalls/__arch_prctl.S | 2 ++ libc/arch-x86_64/syscalls/__brk.S | 2 ++ libc/arch-x86_64/syscalls/__clock_gettime.S | 2 ++ libc/arch-x86_64/syscalls/__connect.S | 2 ++ libc/arch-x86_64/syscalls/__epoll_pwait.S | 2 ++ libc/arch-x86_64/syscalls/__exit.S | 2 ++ libc/arch-x86_64/syscalls/__getcpu.S | 2 ++ libc/arch-x86_64/syscalls/__getcwd.S | 2 ++ libc/arch-x86_64/syscalls/__getdents64.S | 2 ++ libc/arch-x86_64/syscalls/__getpid.S | 2 ++ libc/arch-x86_64/syscalls/__getpriority.S | 2 ++ libc/arch-x86_64/syscalls/__gettimeofday.S | 2 ++ libc/arch-x86_64/syscalls/__ioctl.S | 2 ++ libc/arch-x86_64/syscalls/__openat.S | 2 ++ libc/arch-x86_64/syscalls/__ppoll.S | 2 ++ libc/arch-x86_64/syscalls/__pselect6.S | 2 ++ libc/arch-x86_64/syscalls/__ptrace.S | 2 ++ libc/arch-x86_64/syscalls/__reboot.S | 2 ++ libc/arch-x86_64/syscalls/__rt_sigaction.S | 2 ++ libc/arch-x86_64/syscalls/__rt_sigpending.S | 2 ++ libc/arch-x86_64/syscalls/__rt_sigprocmask.S | 2 ++ libc/arch-x86_64/syscalls/__rt_sigsuspend.S | 2 ++ libc/arch-x86_64/syscalls/__rt_sigtimedwait.S | 2 ++ libc/arch-x86_64/syscalls/__sched_getaffinity.S | 2 ++ libc/arch-x86_64/syscalls/__set_tid_address.S | 2 ++ libc/arch-x86_64/syscalls/__signalfd4.S | 2 ++ libc/arch-x86_64/syscalls/__socket.S | 2 ++ libc/arch-x86_64/syscalls/__timer_create.S | 2 ++ libc/arch-x86_64/syscalls/__timer_delete.S | 2 ++ libc/arch-x86_64/syscalls/__timer_getoverrun.S | 2 ++ libc/arch-x86_64/syscalls/__timer_gettime.S | 2 ++ libc/arch-x86_64/syscalls/__timer_settime.S | 2 ++ libc/arch-x86_64/syscalls/__waitid.S | 2 ++ libc/arch-x86_64/syscalls/_exit.S | 2 ++ libc/arch-x86_64/syscalls/acct.S | 2 ++ libc/arch-x86_64/syscalls/bind.S | 2 ++ libc/arch-x86_64/syscalls/capget.S | 2 ++ libc/arch-x86_64/syscalls/capset.S | 2 ++ libc/arch-x86_64/syscalls/chdir.S | 2 ++ libc/arch-x86_64/syscalls/chroot.S | 2 ++ libc/arch-x86_64/syscalls/clock_getres.S | 2 ++ libc/arch-x86_64/syscalls/clock_nanosleep.S | 2 ++ libc/arch-x86_64/syscalls/clock_settime.S | 2 ++ libc/arch-x86_64/syscalls/close.S | 2 ++ libc/arch-x86_64/syscalls/delete_module.S | 2 ++ libc/arch-x86_64/syscalls/dup.S | 2 ++ libc/arch-x86_64/syscalls/dup3.S | 2 ++ libc/arch-x86_64/syscalls/epoll_create1.S | 2 ++ libc/arch-x86_64/syscalls/epoll_ctl.S | 2 ++ libc/arch-x86_64/syscalls/eventfd.S | 2 ++ libc/arch-x86_64/syscalls/execve.S | 2 ++ libc/arch-x86_64/syscalls/faccessat.S | 2 ++ libc/arch-x86_64/syscalls/fallocate.S | 2 ++ libc/arch-x86_64/syscalls/fchdir.S | 2 ++ libc/arch-x86_64/syscalls/fchmod.S | 2 ++ libc/arch-x86_64/syscalls/fchmodat.S | 2 ++ libc/arch-x86_64/syscalls/fchown.S | 2 ++ libc/arch-x86_64/syscalls/fchownat.S | 2 ++ libc/arch-x86_64/syscalls/fcntl.S | 2 ++ libc/arch-x86_64/syscalls/fdatasync.S | 2 ++ libc/arch-x86_64/syscalls/fgetxattr.S | 2 ++ libc/arch-x86_64/syscalls/flistxattr.S | 2 ++ libc/arch-x86_64/syscalls/flock.S | 2 ++ libc/arch-x86_64/syscalls/fremovexattr.S | 2 ++ libc/arch-x86_64/syscalls/fsetxattr.S | 2 ++ libc/arch-x86_64/syscalls/fstat64.S | 2 ++ libc/arch-x86_64/syscalls/fstatat64.S | 2 ++ libc/arch-x86_64/syscalls/fstatfs64.S | 2 ++ libc/arch-x86_64/syscalls/fsync.S | 2 ++ libc/arch-x86_64/syscalls/ftruncate.S | 2 ++ libc/arch-x86_64/syscalls/getegid.S | 2 ++ libc/arch-x86_64/syscalls/geteuid.S | 2 ++ libc/arch-x86_64/syscalls/getgid.S | 2 ++ libc/arch-x86_64/syscalls/getgroups.S | 2 ++ libc/arch-x86_64/syscalls/getitimer.S | 2 ++ libc/arch-x86_64/syscalls/getpeername.S | 2 ++ libc/arch-x86_64/syscalls/getpgid.S | 2 ++ libc/arch-x86_64/syscalls/getppid.S | 2 ++ libc/arch-x86_64/syscalls/getresgid.S | 2 ++ libc/arch-x86_64/syscalls/getresuid.S | 2 ++ libc/arch-x86_64/syscalls/getrlimit.S | 2 ++ libc/arch-x86_64/syscalls/getrusage.S | 2 ++ libc/arch-x86_64/syscalls/getsid.S | 2 ++ libc/arch-x86_64/syscalls/getsockname.S | 2 ++ libc/arch-x86_64/syscalls/getsockopt.S | 2 ++ libc/arch-x86_64/syscalls/getuid.S | 2 ++ libc/arch-x86_64/syscalls/getxattr.S | 2 ++ libc/arch-x86_64/syscalls/init_module.S | 2 ++ libc/arch-x86_64/syscalls/inotify_add_watch.S | 2 ++ libc/arch-x86_64/syscalls/inotify_init1.S | 2 ++ libc/arch-x86_64/syscalls/inotify_rm_watch.S | 2 ++ libc/arch-x86_64/syscalls/kill.S | 2 ++ libc/arch-x86_64/syscalls/klogctl.S | 2 ++ libc/arch-x86_64/syscalls/lgetxattr.S | 2 ++ libc/arch-x86_64/syscalls/linkat.S | 2 ++ libc/arch-x86_64/syscalls/listen.S | 2 ++ libc/arch-x86_64/syscalls/listxattr.S | 2 ++ libc/arch-x86_64/syscalls/llistxattr.S | 2 ++ libc/arch-x86_64/syscalls/lremovexattr.S | 2 ++ libc/arch-x86_64/syscalls/lseek.S | 2 ++ libc/arch-x86_64/syscalls/lsetxattr.S | 2 ++ libc/arch-x86_64/syscalls/madvise.S | 2 ++ libc/arch-x86_64/syscalls/mincore.S | 2 ++ libc/arch-x86_64/syscalls/mkdirat.S | 2 ++ libc/arch-x86_64/syscalls/mknodat.S | 2 ++ libc/arch-x86_64/syscalls/mlock.S | 2 ++ libc/arch-x86_64/syscalls/mlockall.S | 2 ++ libc/arch-x86_64/syscalls/mmap.S | 2 ++ libc/arch-x86_64/syscalls/mount.S | 2 ++ libc/arch-x86_64/syscalls/mprotect.S | 2 ++ libc/arch-x86_64/syscalls/mremap.S | 2 ++ libc/arch-x86_64/syscalls/msync.S | 2 ++ libc/arch-x86_64/syscalls/munlock.S | 2 ++ libc/arch-x86_64/syscalls/munlockall.S | 2 ++ libc/arch-x86_64/syscalls/munmap.S | 2 ++ libc/arch-x86_64/syscalls/nanosleep.S | 2 ++ libc/arch-x86_64/syscalls/personality.S | 2 ++ libc/arch-x86_64/syscalls/pipe2.S | 2 ++ libc/arch-x86_64/syscalls/prctl.S | 2 ++ libc/arch-x86_64/syscalls/pread64.S | 2 ++ libc/arch-x86_64/syscalls/prlimit64.S | 2 ++ libc/arch-x86_64/syscalls/pwrite64.S | 2 ++ libc/arch-x86_64/syscalls/read.S | 2 ++ libc/arch-x86_64/syscalls/readahead.S | 2 ++ libc/arch-x86_64/syscalls/readlinkat.S | 2 ++ libc/arch-x86_64/syscalls/readv.S | 2 ++ libc/arch-x86_64/syscalls/recvfrom.S | 2 ++ libc/arch-x86_64/syscalls/recvmmsg.S | 2 ++ libc/arch-x86_64/syscalls/recvmsg.S | 2 ++ libc/arch-x86_64/syscalls/removexattr.S | 2 ++ libc/arch-x86_64/syscalls/renameat.S | 2 ++ libc/arch-x86_64/syscalls/sched_get_priority_max.S | 2 ++ libc/arch-x86_64/syscalls/sched_get_priority_min.S | 2 ++ libc/arch-x86_64/syscalls/sched_getparam.S | 2 ++ libc/arch-x86_64/syscalls/sched_getscheduler.S | 2 ++ libc/arch-x86_64/syscalls/sched_rr_get_interval.S | 2 ++ libc/arch-x86_64/syscalls/sched_setaffinity.S | 2 ++ libc/arch-x86_64/syscalls/sched_setparam.S | 2 ++ libc/arch-x86_64/syscalls/sched_setscheduler.S | 2 ++ libc/arch-x86_64/syscalls/sched_yield.S | 2 ++ libc/arch-x86_64/syscalls/sendfile.S | 2 ++ libc/arch-x86_64/syscalls/sendmmsg.S | 2 ++ libc/arch-x86_64/syscalls/sendmsg.S | 2 ++ libc/arch-x86_64/syscalls/sendto.S | 2 ++ libc/arch-x86_64/syscalls/setfsgid.S | 2 ++ libc/arch-x86_64/syscalls/setfsuid.S | 2 ++ libc/arch-x86_64/syscalls/setgid.S | 2 ++ libc/arch-x86_64/syscalls/setgroups.S | 2 ++ libc/arch-x86_64/syscalls/setitimer.S | 2 ++ libc/arch-x86_64/syscalls/setns.S | 2 ++ libc/arch-x86_64/syscalls/setpgid.S | 2 ++ libc/arch-x86_64/syscalls/setpriority.S | 2 ++ libc/arch-x86_64/syscalls/setregid.S | 2 ++ libc/arch-x86_64/syscalls/setresgid.S | 2 ++ libc/arch-x86_64/syscalls/setresuid.S | 2 ++ libc/arch-x86_64/syscalls/setreuid.S | 2 ++ libc/arch-x86_64/syscalls/setrlimit.S | 2 ++ libc/arch-x86_64/syscalls/setsid.S | 2 ++ libc/arch-x86_64/syscalls/setsockopt.S | 2 ++ libc/arch-x86_64/syscalls/settimeofday.S | 2 ++ libc/arch-x86_64/syscalls/setuid.S | 2 ++ libc/arch-x86_64/syscalls/setxattr.S | 2 ++ libc/arch-x86_64/syscalls/shutdown.S | 2 ++ libc/arch-x86_64/syscalls/sigaltstack.S | 2 ++ libc/arch-x86_64/syscalls/socketpair.S | 2 ++ libc/arch-x86_64/syscalls/splice.S | 2 ++ libc/arch-x86_64/syscalls/statfs64.S | 2 ++ libc/arch-x86_64/syscalls/swapoff.S | 2 ++ libc/arch-x86_64/syscalls/swapon.S | 2 ++ libc/arch-x86_64/syscalls/symlinkat.S | 2 ++ libc/arch-x86_64/syscalls/sync.S | 2 ++ libc/arch-x86_64/syscalls/sysinfo.S | 2 ++ libc/arch-x86_64/syscalls/tee.S | 2 ++ libc/arch-x86_64/syscalls/tgkill.S | 2 ++ libc/arch-x86_64/syscalls/timerfd_create.S | 2 ++ libc/arch-x86_64/syscalls/timerfd_gettime.S | 2 ++ libc/arch-x86_64/syscalls/timerfd_settime.S | 2 ++ libc/arch-x86_64/syscalls/times.S | 2 ++ libc/arch-x86_64/syscalls/truncate.S | 2 ++ libc/arch-x86_64/syscalls/umask.S | 2 ++ libc/arch-x86_64/syscalls/umount2.S | 2 ++ libc/arch-x86_64/syscalls/uname.S | 2 ++ libc/arch-x86_64/syscalls/unlinkat.S | 2 ++ libc/arch-x86_64/syscalls/unshare.S | 2 ++ libc/arch-x86_64/syscalls/utimensat.S | 2 ++ libc/arch-x86_64/syscalls/vmsplice.S | 2 ++ libc/arch-x86_64/syscalls/wait4.S | 2 ++ libc/arch-x86_64/syscalls/write.S | 2 ++ libc/arch-x86_64/syscalls/writev.S | 2 ++ libc/tools/gensyscalls.py | 2 ++ 1159 files changed, 2318 insertions(+) diff --git a/libc/arch-arm/syscalls/__accept4.S b/libc/arch-arm/syscalls/__accept4.S index 9a6874bab..2b1eb285f 100644 --- a/libc/arch-arm/syscalls/__accept4.S +++ b/libc/arch-arm/syscalls/__accept4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__accept4) mov ip, r7 ldr r7, =__NR_accept4 diff --git a/libc/arch-arm/syscalls/__brk.S b/libc/arch-arm/syscalls/__brk.S index 31de0d237..0987f0e28 100644 --- a/libc/arch-arm/syscalls/__brk.S +++ b/libc/arch-arm/syscalls/__brk.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__brk) mov ip, r7 ldr r7, =__NR_brk diff --git a/libc/arch-arm/syscalls/__connect.S b/libc/arch-arm/syscalls/__connect.S index 8cb026cba..510af9591 100644 --- a/libc/arch-arm/syscalls/__connect.S +++ b/libc/arch-arm/syscalls/__connect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__connect) mov ip, r7 ldr r7, =__NR_connect diff --git a/libc/arch-arm/syscalls/__epoll_pwait.S b/libc/arch-arm/syscalls/__epoll_pwait.S index b2d8d48f0..bbba2e12a 100644 --- a/libc/arch-arm/syscalls/__epoll_pwait.S +++ b/libc/arch-arm/syscalls/__epoll_pwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__epoll_pwait) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/__exit.S b/libc/arch-arm/syscalls/__exit.S index c534bb05d..ceef94ed4 100644 --- a/libc/arch-arm/syscalls/__exit.S +++ b/libc/arch-arm/syscalls/__exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__exit) mov ip, r7 ldr r7, =__NR_exit diff --git a/libc/arch-arm/syscalls/__fcntl64.S b/libc/arch-arm/syscalls/__fcntl64.S index 2132cb736..bb2068d11 100644 --- a/libc/arch-arm/syscalls/__fcntl64.S +++ b/libc/arch-arm/syscalls/__fcntl64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__fcntl64) mov ip, r7 ldr r7, =__NR_fcntl64 diff --git a/libc/arch-arm/syscalls/__fstatfs64.S b/libc/arch-arm/syscalls/__fstatfs64.S index 18942bc8a..b493aa047 100644 --- a/libc/arch-arm/syscalls/__fstatfs64.S +++ b/libc/arch-arm/syscalls/__fstatfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__fstatfs64) mov ip, r7 ldr r7, =__NR_fstatfs64 diff --git a/libc/arch-arm/syscalls/__getcpu.S b/libc/arch-arm/syscalls/__getcpu.S index 1aea50a6a..1b3fc4612 100644 --- a/libc/arch-arm/syscalls/__getcpu.S +++ b/libc/arch-arm/syscalls/__getcpu.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcpu) mov ip, r7 ldr r7, =__NR_getcpu diff --git a/libc/arch-arm/syscalls/__getcwd.S b/libc/arch-arm/syscalls/__getcwd.S index 1c2ac6c53..d91b3ca19 100644 --- a/libc/arch-arm/syscalls/__getcwd.S +++ b/libc/arch-arm/syscalls/__getcwd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcwd) mov ip, r7 ldr r7, =__NR_getcwd diff --git a/libc/arch-arm/syscalls/__getdents64.S b/libc/arch-arm/syscalls/__getdents64.S index c3d5e5b6d..7d3d81c43 100644 --- a/libc/arch-arm/syscalls/__getdents64.S +++ b/libc/arch-arm/syscalls/__getdents64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getdents64) mov ip, r7 ldr r7, =__NR_getdents64 diff --git a/libc/arch-arm/syscalls/__getpid.S b/libc/arch-arm/syscalls/__getpid.S index eedc33a5f..ede0865bd 100644 --- a/libc/arch-arm/syscalls/__getpid.S +++ b/libc/arch-arm/syscalls/__getpid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpid) mov ip, r7 ldr r7, =__NR_getpid diff --git a/libc/arch-arm/syscalls/__getpriority.S b/libc/arch-arm/syscalls/__getpriority.S index 90ccaea80..d3a646885 100644 --- a/libc/arch-arm/syscalls/__getpriority.S +++ b/libc/arch-arm/syscalls/__getpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpriority) mov ip, r7 ldr r7, =__NR_getpriority diff --git a/libc/arch-arm/syscalls/__ioctl.S b/libc/arch-arm/syscalls/__ioctl.S index 3f816db8c..b3ac82fac 100644 --- a/libc/arch-arm/syscalls/__ioctl.S +++ b/libc/arch-arm/syscalls/__ioctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ioctl) mov ip, r7 ldr r7, =__NR_ioctl diff --git a/libc/arch-arm/syscalls/__llseek.S b/libc/arch-arm/syscalls/__llseek.S index ec307d291..b36164ca2 100644 --- a/libc/arch-arm/syscalls/__llseek.S +++ b/libc/arch-arm/syscalls/__llseek.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__llseek) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/__mmap2.S b/libc/arch-arm/syscalls/__mmap2.S index 8a179977d..ba7471699 100644 --- a/libc/arch-arm/syscalls/__mmap2.S +++ b/libc/arch-arm/syscalls/__mmap2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__mmap2) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/__openat.S b/libc/arch-arm/syscalls/__openat.S index 7a38dc3b1..6b119e162 100644 --- a/libc/arch-arm/syscalls/__openat.S +++ b/libc/arch-arm/syscalls/__openat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__openat) mov ip, r7 ldr r7, =__NR_openat diff --git a/libc/arch-arm/syscalls/__ppoll.S b/libc/arch-arm/syscalls/__ppoll.S index d9fb3d9fb..3a0e80ceb 100644 --- a/libc/arch-arm/syscalls/__ppoll.S +++ b/libc/arch-arm/syscalls/__ppoll.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ppoll) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/__pselect6.S b/libc/arch-arm/syscalls/__pselect6.S index 05fea543e..1417be879 100644 --- a/libc/arch-arm/syscalls/__pselect6.S +++ b/libc/arch-arm/syscalls/__pselect6.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__pselect6) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/__ptrace.S b/libc/arch-arm/syscalls/__ptrace.S index 4e41d9d15..bc0323261 100644 --- a/libc/arch-arm/syscalls/__ptrace.S +++ b/libc/arch-arm/syscalls/__ptrace.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ptrace) mov ip, r7 ldr r7, =__NR_ptrace diff --git a/libc/arch-arm/syscalls/__reboot.S b/libc/arch-arm/syscalls/__reboot.S index 18e29a763..91bbf7c4e 100644 --- a/libc/arch-arm/syscalls/__reboot.S +++ b/libc/arch-arm/syscalls/__reboot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__reboot) mov ip, r7 ldr r7, =__NR_reboot diff --git a/libc/arch-arm/syscalls/__rt_sigaction.S b/libc/arch-arm/syscalls/__rt_sigaction.S index 974c0e205..6a5e05864 100644 --- a/libc/arch-arm/syscalls/__rt_sigaction.S +++ b/libc/arch-arm/syscalls/__rt_sigaction.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigaction) mov ip, r7 ldr r7, =__NR_rt_sigaction diff --git a/libc/arch-arm/syscalls/__rt_sigpending.S b/libc/arch-arm/syscalls/__rt_sigpending.S index 4a0f5d7f7..44da9b2d1 100644 --- a/libc/arch-arm/syscalls/__rt_sigpending.S +++ b/libc/arch-arm/syscalls/__rt_sigpending.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigpending) mov ip, r7 ldr r7, =__NR_rt_sigpending diff --git a/libc/arch-arm/syscalls/__rt_sigprocmask.S b/libc/arch-arm/syscalls/__rt_sigprocmask.S index 19abdc196..81cdb8546 100644 --- a/libc/arch-arm/syscalls/__rt_sigprocmask.S +++ b/libc/arch-arm/syscalls/__rt_sigprocmask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigprocmask) mov ip, r7 ldr r7, =__NR_rt_sigprocmask diff --git a/libc/arch-arm/syscalls/__rt_sigsuspend.S b/libc/arch-arm/syscalls/__rt_sigsuspend.S index a0af905bc..a9a39032a 100644 --- a/libc/arch-arm/syscalls/__rt_sigsuspend.S +++ b/libc/arch-arm/syscalls/__rt_sigsuspend.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigsuspend) mov ip, r7 ldr r7, =__NR_rt_sigsuspend diff --git a/libc/arch-arm/syscalls/__rt_sigtimedwait.S b/libc/arch-arm/syscalls/__rt_sigtimedwait.S index 0ba7ce290..7b78a43b8 100644 --- a/libc/arch-arm/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-arm/syscalls/__rt_sigtimedwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigtimedwait) mov ip, r7 ldr r7, =__NR_rt_sigtimedwait diff --git a/libc/arch-arm/syscalls/__sched_getaffinity.S b/libc/arch-arm/syscalls/__sched_getaffinity.S index e977cfb1c..a22c55e33 100644 --- a/libc/arch-arm/syscalls/__sched_getaffinity.S +++ b/libc/arch-arm/syscalls/__sched_getaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__sched_getaffinity) mov ip, r7 ldr r7, =__NR_sched_getaffinity diff --git a/libc/arch-arm/syscalls/__set_tid_address.S b/libc/arch-arm/syscalls/__set_tid_address.S index b4b42e712..0838c8b3c 100644 --- a/libc/arch-arm/syscalls/__set_tid_address.S +++ b/libc/arch-arm/syscalls/__set_tid_address.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__set_tid_address) mov ip, r7 ldr r7, =__NR_set_tid_address diff --git a/libc/arch-arm/syscalls/__set_tls.S b/libc/arch-arm/syscalls/__set_tls.S index 94c7cf4aa..c4c2eb7cd 100644 --- a/libc/arch-arm/syscalls/__set_tls.S +++ b/libc/arch-arm/syscalls/__set_tls.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__set_tls) mov ip, r7 ldr r7, =__ARM_NR_set_tls diff --git a/libc/arch-arm/syscalls/__sigaction.S b/libc/arch-arm/syscalls/__sigaction.S index 7e2e07eea..869b4c8bd 100644 --- a/libc/arch-arm/syscalls/__sigaction.S +++ b/libc/arch-arm/syscalls/__sigaction.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__sigaction) mov ip, r7 ldr r7, =__NR_sigaction diff --git a/libc/arch-arm/syscalls/__signalfd4.S b/libc/arch-arm/syscalls/__signalfd4.S index 712f975d2..3bcf0319a 100644 --- a/libc/arch-arm/syscalls/__signalfd4.S +++ b/libc/arch-arm/syscalls/__signalfd4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__signalfd4) mov ip, r7 ldr r7, =__NR_signalfd4 diff --git a/libc/arch-arm/syscalls/__socket.S b/libc/arch-arm/syscalls/__socket.S index d63028bdd..a655b5b2c 100644 --- a/libc/arch-arm/syscalls/__socket.S +++ b/libc/arch-arm/syscalls/__socket.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__socket) mov ip, r7 ldr r7, =__NR_socket diff --git a/libc/arch-arm/syscalls/__statfs64.S b/libc/arch-arm/syscalls/__statfs64.S index 256356226..80ea6ce1d 100644 --- a/libc/arch-arm/syscalls/__statfs64.S +++ b/libc/arch-arm/syscalls/__statfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__statfs64) mov ip, r7 ldr r7, =__NR_statfs64 diff --git a/libc/arch-arm/syscalls/__timer_create.S b/libc/arch-arm/syscalls/__timer_create.S index 9b75749e5..75fc34781 100644 --- a/libc/arch-arm/syscalls/__timer_create.S +++ b/libc/arch-arm/syscalls/__timer_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_create) mov ip, r7 ldr r7, =__NR_timer_create diff --git a/libc/arch-arm/syscalls/__timer_delete.S b/libc/arch-arm/syscalls/__timer_delete.S index db32b3bb7..ad5ec361b 100644 --- a/libc/arch-arm/syscalls/__timer_delete.S +++ b/libc/arch-arm/syscalls/__timer_delete.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_delete) mov ip, r7 ldr r7, =__NR_timer_delete diff --git a/libc/arch-arm/syscalls/__timer_getoverrun.S b/libc/arch-arm/syscalls/__timer_getoverrun.S index 5701b12e0..529712cd4 100644 --- a/libc/arch-arm/syscalls/__timer_getoverrun.S +++ b/libc/arch-arm/syscalls/__timer_getoverrun.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_getoverrun) mov ip, r7 ldr r7, =__NR_timer_getoverrun diff --git a/libc/arch-arm/syscalls/__timer_gettime.S b/libc/arch-arm/syscalls/__timer_gettime.S index e9a4ff9b1..180da3905 100644 --- a/libc/arch-arm/syscalls/__timer_gettime.S +++ b/libc/arch-arm/syscalls/__timer_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_gettime) mov ip, r7 ldr r7, =__NR_timer_gettime diff --git a/libc/arch-arm/syscalls/__timer_settime.S b/libc/arch-arm/syscalls/__timer_settime.S index 2f1ab190f..e2950dd01 100644 --- a/libc/arch-arm/syscalls/__timer_settime.S +++ b/libc/arch-arm/syscalls/__timer_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_settime) mov ip, r7 ldr r7, =__NR_timer_settime diff --git a/libc/arch-arm/syscalls/__waitid.S b/libc/arch-arm/syscalls/__waitid.S index e5e1f54dc..8c6ba6625 100644 --- a/libc/arch-arm/syscalls/__waitid.S +++ b/libc/arch-arm/syscalls/__waitid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__waitid) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/_exit.S b/libc/arch-arm/syscalls/_exit.S index 581b340e3..fd072c3f6 100644 --- a/libc/arch-arm/syscalls/_exit.S +++ b/libc/arch-arm/syscalls/_exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(_exit) mov ip, r7 ldr r7, =__NR_exit_group diff --git a/libc/arch-arm/syscalls/acct.S b/libc/arch-arm/syscalls/acct.S index e360c5ac1..156db4850 100644 --- a/libc/arch-arm/syscalls/acct.S +++ b/libc/arch-arm/syscalls/acct.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(acct) mov ip, r7 ldr r7, =__NR_acct diff --git a/libc/arch-arm/syscalls/bind.S b/libc/arch-arm/syscalls/bind.S index e07dd7732..892c77fcb 100644 --- a/libc/arch-arm/syscalls/bind.S +++ b/libc/arch-arm/syscalls/bind.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(bind) mov ip, r7 ldr r7, =__NR_bind diff --git a/libc/arch-arm/syscalls/cacheflush.S b/libc/arch-arm/syscalls/cacheflush.S index ac2a218a6..0739c32e8 100644 --- a/libc/arch-arm/syscalls/cacheflush.S +++ b/libc/arch-arm/syscalls/cacheflush.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(cacheflush) mov ip, r7 ldr r7, =__ARM_NR_cacheflush diff --git a/libc/arch-arm/syscalls/capget.S b/libc/arch-arm/syscalls/capget.S index b912830ae..6fd0f7cad 100644 --- a/libc/arch-arm/syscalls/capget.S +++ b/libc/arch-arm/syscalls/capget.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capget) mov ip, r7 ldr r7, =__NR_capget diff --git a/libc/arch-arm/syscalls/capset.S b/libc/arch-arm/syscalls/capset.S index cef68c5e0..2708ff6b9 100644 --- a/libc/arch-arm/syscalls/capset.S +++ b/libc/arch-arm/syscalls/capset.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capset) mov ip, r7 ldr r7, =__NR_capset diff --git a/libc/arch-arm/syscalls/chdir.S b/libc/arch-arm/syscalls/chdir.S index ea93fd6e6..0b86a0f14 100644 --- a/libc/arch-arm/syscalls/chdir.S +++ b/libc/arch-arm/syscalls/chdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chdir) mov ip, r7 ldr r7, =__NR_chdir diff --git a/libc/arch-arm/syscalls/chroot.S b/libc/arch-arm/syscalls/chroot.S index b1199e6e8..15aa392aa 100644 --- a/libc/arch-arm/syscalls/chroot.S +++ b/libc/arch-arm/syscalls/chroot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chroot) mov ip, r7 ldr r7, =__NR_chroot diff --git a/libc/arch-arm/syscalls/clock_getres.S b/libc/arch-arm/syscalls/clock_getres.S index f1e7fa294..b92289a12 100644 --- a/libc/arch-arm/syscalls/clock_getres.S +++ b/libc/arch-arm/syscalls/clock_getres.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_getres) mov ip, r7 ldr r7, =__NR_clock_getres diff --git a/libc/arch-arm/syscalls/clock_gettime.S b/libc/arch-arm/syscalls/clock_gettime.S index 9b3e132e2..203db8fbd 100644 --- a/libc/arch-arm/syscalls/clock_gettime.S +++ b/libc/arch-arm/syscalls/clock_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_gettime) mov ip, r7 ldr r7, =__NR_clock_gettime diff --git a/libc/arch-arm/syscalls/clock_nanosleep.S b/libc/arch-arm/syscalls/clock_nanosleep.S index fda7394b8..5de2267cf 100644 --- a/libc/arch-arm/syscalls/clock_nanosleep.S +++ b/libc/arch-arm/syscalls/clock_nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_nanosleep) mov ip, r7 ldr r7, =__NR_clock_nanosleep diff --git a/libc/arch-arm/syscalls/clock_settime.S b/libc/arch-arm/syscalls/clock_settime.S index 5a0059e54..71e61f8cc 100644 --- a/libc/arch-arm/syscalls/clock_settime.S +++ b/libc/arch-arm/syscalls/clock_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_settime) mov ip, r7 ldr r7, =__NR_clock_settime diff --git a/libc/arch-arm/syscalls/close.S b/libc/arch-arm/syscalls/close.S index 00c8f85dc..3e0fd3268 100644 --- a/libc/arch-arm/syscalls/close.S +++ b/libc/arch-arm/syscalls/close.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(close) mov ip, r7 ldr r7, =__NR_close diff --git a/libc/arch-arm/syscalls/delete_module.S b/libc/arch-arm/syscalls/delete_module.S index a26b47857..0af25208a 100644 --- a/libc/arch-arm/syscalls/delete_module.S +++ b/libc/arch-arm/syscalls/delete_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(delete_module) mov ip, r7 ldr r7, =__NR_delete_module diff --git a/libc/arch-arm/syscalls/dup.S b/libc/arch-arm/syscalls/dup.S index b1859d9e5..4105438fa 100644 --- a/libc/arch-arm/syscalls/dup.S +++ b/libc/arch-arm/syscalls/dup.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup) mov ip, r7 ldr r7, =__NR_dup diff --git a/libc/arch-arm/syscalls/dup3.S b/libc/arch-arm/syscalls/dup3.S index 3e47c10a2..409e8f976 100644 --- a/libc/arch-arm/syscalls/dup3.S +++ b/libc/arch-arm/syscalls/dup3.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup3) mov ip, r7 ldr r7, =__NR_dup3 diff --git a/libc/arch-arm/syscalls/epoll_create1.S b/libc/arch-arm/syscalls/epoll_create1.S index 2eebc0cd1..631afab3d 100644 --- a/libc/arch-arm/syscalls/epoll_create1.S +++ b/libc/arch-arm/syscalls/epoll_create1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_create1) mov ip, r7 ldr r7, =__NR_epoll_create1 diff --git a/libc/arch-arm/syscalls/epoll_ctl.S b/libc/arch-arm/syscalls/epoll_ctl.S index 7a1cc41da..187fe0a0b 100644 --- a/libc/arch-arm/syscalls/epoll_ctl.S +++ b/libc/arch-arm/syscalls/epoll_ctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_ctl) mov ip, r7 ldr r7, =__NR_epoll_ctl diff --git a/libc/arch-arm/syscalls/eventfd.S b/libc/arch-arm/syscalls/eventfd.S index 08272d38a..c35f537e8 100644 --- a/libc/arch-arm/syscalls/eventfd.S +++ b/libc/arch-arm/syscalls/eventfd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(eventfd) mov ip, r7 ldr r7, =__NR_eventfd2 diff --git a/libc/arch-arm/syscalls/execve.S b/libc/arch-arm/syscalls/execve.S index 361ec6382..1b24f765f 100644 --- a/libc/arch-arm/syscalls/execve.S +++ b/libc/arch-arm/syscalls/execve.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(execve) mov ip, r7 ldr r7, =__NR_execve diff --git a/libc/arch-arm/syscalls/faccessat.S b/libc/arch-arm/syscalls/faccessat.S index c82b2ce4e..3f663e3ab 100644 --- a/libc/arch-arm/syscalls/faccessat.S +++ b/libc/arch-arm/syscalls/faccessat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(faccessat) mov ip, r7 ldr r7, =__NR_faccessat diff --git a/libc/arch-arm/syscalls/fallocate64.S b/libc/arch-arm/syscalls/fallocate64.S index c6992b01a..fd9063754 100644 --- a/libc/arch-arm/syscalls/fallocate64.S +++ b/libc/arch-arm/syscalls/fallocate64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fallocate64) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/fchdir.S b/libc/arch-arm/syscalls/fchdir.S index 1a7eb5181..c10971878 100644 --- a/libc/arch-arm/syscalls/fchdir.S +++ b/libc/arch-arm/syscalls/fchdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchdir) mov ip, r7 ldr r7, =__NR_fchdir diff --git a/libc/arch-arm/syscalls/fchmod.S b/libc/arch-arm/syscalls/fchmod.S index 42dc5b832..4b598a29d 100644 --- a/libc/arch-arm/syscalls/fchmod.S +++ b/libc/arch-arm/syscalls/fchmod.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmod) mov ip, r7 ldr r7, =__NR_fchmod diff --git a/libc/arch-arm/syscalls/fchmodat.S b/libc/arch-arm/syscalls/fchmodat.S index e03da8cd2..8e4311810 100644 --- a/libc/arch-arm/syscalls/fchmodat.S +++ b/libc/arch-arm/syscalls/fchmodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmodat) mov ip, r7 ldr r7, =__NR_fchmodat diff --git a/libc/arch-arm/syscalls/fchown.S b/libc/arch-arm/syscalls/fchown.S index c2c398299..24a38f65f 100644 --- a/libc/arch-arm/syscalls/fchown.S +++ b/libc/arch-arm/syscalls/fchown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchown) mov ip, r7 ldr r7, =__NR_fchown32 diff --git a/libc/arch-arm/syscalls/fchownat.S b/libc/arch-arm/syscalls/fchownat.S index ea8193f43..8fd76a3b8 100644 --- a/libc/arch-arm/syscalls/fchownat.S +++ b/libc/arch-arm/syscalls/fchownat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchownat) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/fdatasync.S b/libc/arch-arm/syscalls/fdatasync.S index 9c8317d81..955666524 100644 --- a/libc/arch-arm/syscalls/fdatasync.S +++ b/libc/arch-arm/syscalls/fdatasync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fdatasync) mov ip, r7 ldr r7, =__NR_fdatasync diff --git a/libc/arch-arm/syscalls/fgetxattr.S b/libc/arch-arm/syscalls/fgetxattr.S index bef536b2c..95e2809bc 100644 --- a/libc/arch-arm/syscalls/fgetxattr.S +++ b/libc/arch-arm/syscalls/fgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fgetxattr) mov ip, r7 ldr r7, =__NR_fgetxattr diff --git a/libc/arch-arm/syscalls/flistxattr.S b/libc/arch-arm/syscalls/flistxattr.S index d9a30bb80..0d411b17b 100644 --- a/libc/arch-arm/syscalls/flistxattr.S +++ b/libc/arch-arm/syscalls/flistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flistxattr) mov ip, r7 ldr r7, =__NR_flistxattr diff --git a/libc/arch-arm/syscalls/flock.S b/libc/arch-arm/syscalls/flock.S index 016e8240b..e59d4f682 100644 --- a/libc/arch-arm/syscalls/flock.S +++ b/libc/arch-arm/syscalls/flock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flock) mov ip, r7 ldr r7, =__NR_flock diff --git a/libc/arch-arm/syscalls/fremovexattr.S b/libc/arch-arm/syscalls/fremovexattr.S index c7ff034ff..3ec647fa2 100644 --- a/libc/arch-arm/syscalls/fremovexattr.S +++ b/libc/arch-arm/syscalls/fremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fremovexattr) mov ip, r7 ldr r7, =__NR_fremovexattr diff --git a/libc/arch-arm/syscalls/fsetxattr.S b/libc/arch-arm/syscalls/fsetxattr.S index 64b8d031e..225e64b9f 100644 --- a/libc/arch-arm/syscalls/fsetxattr.S +++ b/libc/arch-arm/syscalls/fsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsetxattr) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/fstat64.S b/libc/arch-arm/syscalls/fstat64.S index 7517a6587..560bb94cc 100644 --- a/libc/arch-arm/syscalls/fstat64.S +++ b/libc/arch-arm/syscalls/fstat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstat64) mov ip, r7 ldr r7, =__NR_fstat64 diff --git a/libc/arch-arm/syscalls/fstatat64.S b/libc/arch-arm/syscalls/fstatat64.S index 752ee2f74..cda584580 100644 --- a/libc/arch-arm/syscalls/fstatat64.S +++ b/libc/arch-arm/syscalls/fstatat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstatat64) mov ip, r7 ldr r7, =__NR_fstatat64 diff --git a/libc/arch-arm/syscalls/fsync.S b/libc/arch-arm/syscalls/fsync.S index 6b7c4a8ad..c6ba47bca 100644 --- a/libc/arch-arm/syscalls/fsync.S +++ b/libc/arch-arm/syscalls/fsync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsync) mov ip, r7 ldr r7, =__NR_fsync diff --git a/libc/arch-arm/syscalls/ftruncate.S b/libc/arch-arm/syscalls/ftruncate.S index 4a3d56c11..168d72296 100644 --- a/libc/arch-arm/syscalls/ftruncate.S +++ b/libc/arch-arm/syscalls/ftruncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(ftruncate) mov ip, r7 ldr r7, =__NR_ftruncate diff --git a/libc/arch-arm/syscalls/ftruncate64.S b/libc/arch-arm/syscalls/ftruncate64.S index 910ca68d3..a2b73b838 100644 --- a/libc/arch-arm/syscalls/ftruncate64.S +++ b/libc/arch-arm/syscalls/ftruncate64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(ftruncate64) mov ip, r7 ldr r7, =__NR_ftruncate64 diff --git a/libc/arch-arm/syscalls/getegid.S b/libc/arch-arm/syscalls/getegid.S index 6afca909d..e2f9fe976 100644 --- a/libc/arch-arm/syscalls/getegid.S +++ b/libc/arch-arm/syscalls/getegid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getegid) mov ip, r7 ldr r7, =__NR_getegid32 diff --git a/libc/arch-arm/syscalls/geteuid.S b/libc/arch-arm/syscalls/geteuid.S index 78e5cf419..1d5532049 100644 --- a/libc/arch-arm/syscalls/geteuid.S +++ b/libc/arch-arm/syscalls/geteuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(geteuid) mov ip, r7 ldr r7, =__NR_geteuid32 diff --git a/libc/arch-arm/syscalls/getgid.S b/libc/arch-arm/syscalls/getgid.S index c2d353810..9d81d73ef 100644 --- a/libc/arch-arm/syscalls/getgid.S +++ b/libc/arch-arm/syscalls/getgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgid) mov ip, r7 ldr r7, =__NR_getgid32 diff --git a/libc/arch-arm/syscalls/getgroups.S b/libc/arch-arm/syscalls/getgroups.S index e6b8e105d..23aafaf7b 100644 --- a/libc/arch-arm/syscalls/getgroups.S +++ b/libc/arch-arm/syscalls/getgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgroups) mov ip, r7 ldr r7, =__NR_getgroups32 diff --git a/libc/arch-arm/syscalls/getitimer.S b/libc/arch-arm/syscalls/getitimer.S index 3dce70767..095cf8fcb 100644 --- a/libc/arch-arm/syscalls/getitimer.S +++ b/libc/arch-arm/syscalls/getitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getitimer) mov ip, r7 ldr r7, =__NR_getitimer diff --git a/libc/arch-arm/syscalls/getpeername.S b/libc/arch-arm/syscalls/getpeername.S index 0613231cb..760f6fb3c 100644 --- a/libc/arch-arm/syscalls/getpeername.S +++ b/libc/arch-arm/syscalls/getpeername.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpeername) mov ip, r7 ldr r7, =__NR_getpeername diff --git a/libc/arch-arm/syscalls/getpgid.S b/libc/arch-arm/syscalls/getpgid.S index 1992afc24..d07b05824 100644 --- a/libc/arch-arm/syscalls/getpgid.S +++ b/libc/arch-arm/syscalls/getpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpgid) mov ip, r7 ldr r7, =__NR_getpgid diff --git a/libc/arch-arm/syscalls/getppid.S b/libc/arch-arm/syscalls/getppid.S index 594fca5d1..bcc13a8a6 100644 --- a/libc/arch-arm/syscalls/getppid.S +++ b/libc/arch-arm/syscalls/getppid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getppid) mov ip, r7 ldr r7, =__NR_getppid diff --git a/libc/arch-arm/syscalls/getresgid.S b/libc/arch-arm/syscalls/getresgid.S index 9dcdb33db..9a87eaa3a 100644 --- a/libc/arch-arm/syscalls/getresgid.S +++ b/libc/arch-arm/syscalls/getresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresgid) mov ip, r7 ldr r7, =__NR_getresgid32 diff --git a/libc/arch-arm/syscalls/getresuid.S b/libc/arch-arm/syscalls/getresuid.S index 387bd7c2d..a332928fb 100644 --- a/libc/arch-arm/syscalls/getresuid.S +++ b/libc/arch-arm/syscalls/getresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresuid) mov ip, r7 ldr r7, =__NR_getresuid32 diff --git a/libc/arch-arm/syscalls/getrlimit.S b/libc/arch-arm/syscalls/getrlimit.S index 879b66689..4a9c62aaa 100644 --- a/libc/arch-arm/syscalls/getrlimit.S +++ b/libc/arch-arm/syscalls/getrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrlimit) mov ip, r7 ldr r7, =__NR_ugetrlimit diff --git a/libc/arch-arm/syscalls/getrusage.S b/libc/arch-arm/syscalls/getrusage.S index ee84f490d..4799b6931 100644 --- a/libc/arch-arm/syscalls/getrusage.S +++ b/libc/arch-arm/syscalls/getrusage.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrusage) mov ip, r7 ldr r7, =__NR_getrusage diff --git a/libc/arch-arm/syscalls/getsid.S b/libc/arch-arm/syscalls/getsid.S index 715f217e9..5a26e94a1 100644 --- a/libc/arch-arm/syscalls/getsid.S +++ b/libc/arch-arm/syscalls/getsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsid) mov ip, r7 ldr r7, =__NR_getsid diff --git a/libc/arch-arm/syscalls/getsockname.S b/libc/arch-arm/syscalls/getsockname.S index 2ee68f38b..78e07524a 100644 --- a/libc/arch-arm/syscalls/getsockname.S +++ b/libc/arch-arm/syscalls/getsockname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockname) mov ip, r7 ldr r7, =__NR_getsockname diff --git a/libc/arch-arm/syscalls/getsockopt.S b/libc/arch-arm/syscalls/getsockopt.S index 2ded34fd3..e1badfb45 100644 --- a/libc/arch-arm/syscalls/getsockopt.S +++ b/libc/arch-arm/syscalls/getsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockopt) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/gettimeofday.S b/libc/arch-arm/syscalls/gettimeofday.S index 4d33b5dbc..611c0d4ef 100644 --- a/libc/arch-arm/syscalls/gettimeofday.S +++ b/libc/arch-arm/syscalls/gettimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(gettimeofday) mov ip, r7 ldr r7, =__NR_gettimeofday diff --git a/libc/arch-arm/syscalls/getuid.S b/libc/arch-arm/syscalls/getuid.S index 66f570f3b..2e97c5509 100644 --- a/libc/arch-arm/syscalls/getuid.S +++ b/libc/arch-arm/syscalls/getuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getuid) mov ip, r7 ldr r7, =__NR_getuid32 diff --git a/libc/arch-arm/syscalls/getxattr.S b/libc/arch-arm/syscalls/getxattr.S index 71d003545..da0e86d4f 100644 --- a/libc/arch-arm/syscalls/getxattr.S +++ b/libc/arch-arm/syscalls/getxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getxattr) mov ip, r7 ldr r7, =__NR_getxattr diff --git a/libc/arch-arm/syscalls/init_module.S b/libc/arch-arm/syscalls/init_module.S index 6850ddf0a..bf30b03a2 100644 --- a/libc/arch-arm/syscalls/init_module.S +++ b/libc/arch-arm/syscalls/init_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(init_module) mov ip, r7 ldr r7, =__NR_init_module diff --git a/libc/arch-arm/syscalls/inotify_add_watch.S b/libc/arch-arm/syscalls/inotify_add_watch.S index 367a49fe1..982d33857 100644 --- a/libc/arch-arm/syscalls/inotify_add_watch.S +++ b/libc/arch-arm/syscalls/inotify_add_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_add_watch) mov ip, r7 ldr r7, =__NR_inotify_add_watch diff --git a/libc/arch-arm/syscalls/inotify_init1.S b/libc/arch-arm/syscalls/inotify_init1.S index 13e175fed..2253ec846 100644 --- a/libc/arch-arm/syscalls/inotify_init1.S +++ b/libc/arch-arm/syscalls/inotify_init1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_init1) mov ip, r7 ldr r7, =__NR_inotify_init1 diff --git a/libc/arch-arm/syscalls/inotify_rm_watch.S b/libc/arch-arm/syscalls/inotify_rm_watch.S index b80e0f8f8..9d7e6aefb 100644 --- a/libc/arch-arm/syscalls/inotify_rm_watch.S +++ b/libc/arch-arm/syscalls/inotify_rm_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_rm_watch) mov ip, r7 ldr r7, =__NR_inotify_rm_watch diff --git a/libc/arch-arm/syscalls/kill.S b/libc/arch-arm/syscalls/kill.S index 9a4420842..7e4d6c45f 100644 --- a/libc/arch-arm/syscalls/kill.S +++ b/libc/arch-arm/syscalls/kill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(kill) mov ip, r7 ldr r7, =__NR_kill diff --git a/libc/arch-arm/syscalls/klogctl.S b/libc/arch-arm/syscalls/klogctl.S index 84ce7f631..f5fe27fe2 100644 --- a/libc/arch-arm/syscalls/klogctl.S +++ b/libc/arch-arm/syscalls/klogctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(klogctl) mov ip, r7 ldr r7, =__NR_syslog diff --git a/libc/arch-arm/syscalls/lgetxattr.S b/libc/arch-arm/syscalls/lgetxattr.S index 9eed67f92..70b7235aa 100644 --- a/libc/arch-arm/syscalls/lgetxattr.S +++ b/libc/arch-arm/syscalls/lgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lgetxattr) mov ip, r7 ldr r7, =__NR_lgetxattr diff --git a/libc/arch-arm/syscalls/linkat.S b/libc/arch-arm/syscalls/linkat.S index 27f1e0098..7a578f8ed 100644 --- a/libc/arch-arm/syscalls/linkat.S +++ b/libc/arch-arm/syscalls/linkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(linkat) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/listen.S b/libc/arch-arm/syscalls/listen.S index 330ea56ad..5c33912ea 100644 --- a/libc/arch-arm/syscalls/listen.S +++ b/libc/arch-arm/syscalls/listen.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listen) mov ip, r7 ldr r7, =__NR_listen diff --git a/libc/arch-arm/syscalls/listxattr.S b/libc/arch-arm/syscalls/listxattr.S index c64e484cf..ea8f5d832 100644 --- a/libc/arch-arm/syscalls/listxattr.S +++ b/libc/arch-arm/syscalls/listxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listxattr) mov ip, r7 ldr r7, =__NR_listxattr diff --git a/libc/arch-arm/syscalls/llistxattr.S b/libc/arch-arm/syscalls/llistxattr.S index cea926b05..b7f337522 100644 --- a/libc/arch-arm/syscalls/llistxattr.S +++ b/libc/arch-arm/syscalls/llistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(llistxattr) mov ip, r7 ldr r7, =__NR_llistxattr diff --git a/libc/arch-arm/syscalls/lremovexattr.S b/libc/arch-arm/syscalls/lremovexattr.S index c7a6458f9..a8d0d2d3b 100644 --- a/libc/arch-arm/syscalls/lremovexattr.S +++ b/libc/arch-arm/syscalls/lremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lremovexattr) mov ip, r7 ldr r7, =__NR_lremovexattr diff --git a/libc/arch-arm/syscalls/lseek.S b/libc/arch-arm/syscalls/lseek.S index 9edae376c..17697d486 100644 --- a/libc/arch-arm/syscalls/lseek.S +++ b/libc/arch-arm/syscalls/lseek.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lseek) mov ip, r7 ldr r7, =__NR_lseek diff --git a/libc/arch-arm/syscalls/lsetxattr.S b/libc/arch-arm/syscalls/lsetxattr.S index fb3f75fdc..166ef7f1d 100644 --- a/libc/arch-arm/syscalls/lsetxattr.S +++ b/libc/arch-arm/syscalls/lsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lsetxattr) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/madvise.S b/libc/arch-arm/syscalls/madvise.S index ee2c2a50d..ffa71c463 100644 --- a/libc/arch-arm/syscalls/madvise.S +++ b/libc/arch-arm/syscalls/madvise.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(madvise) mov ip, r7 ldr r7, =__NR_madvise diff --git a/libc/arch-arm/syscalls/mincore.S b/libc/arch-arm/syscalls/mincore.S index 9ef923725..5eb5f1010 100644 --- a/libc/arch-arm/syscalls/mincore.S +++ b/libc/arch-arm/syscalls/mincore.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mincore) mov ip, r7 ldr r7, =__NR_mincore diff --git a/libc/arch-arm/syscalls/mkdirat.S b/libc/arch-arm/syscalls/mkdirat.S index 9e77ef01d..d9c58ad08 100644 --- a/libc/arch-arm/syscalls/mkdirat.S +++ b/libc/arch-arm/syscalls/mkdirat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mkdirat) mov ip, r7 ldr r7, =__NR_mkdirat diff --git a/libc/arch-arm/syscalls/mknodat.S b/libc/arch-arm/syscalls/mknodat.S index de492da90..d6296f1fd 100644 --- a/libc/arch-arm/syscalls/mknodat.S +++ b/libc/arch-arm/syscalls/mknodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mknodat) mov ip, r7 ldr r7, =__NR_mknodat diff --git a/libc/arch-arm/syscalls/mlock.S b/libc/arch-arm/syscalls/mlock.S index 043b21b56..21fd5f9f3 100644 --- a/libc/arch-arm/syscalls/mlock.S +++ b/libc/arch-arm/syscalls/mlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlock) mov ip, r7 ldr r7, =__NR_mlock diff --git a/libc/arch-arm/syscalls/mlockall.S b/libc/arch-arm/syscalls/mlockall.S index 9c6c4e451..750b7ece5 100644 --- a/libc/arch-arm/syscalls/mlockall.S +++ b/libc/arch-arm/syscalls/mlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlockall) mov ip, r7 ldr r7, =__NR_mlockall diff --git a/libc/arch-arm/syscalls/mount.S b/libc/arch-arm/syscalls/mount.S index d56682c63..d2fa20e38 100644 --- a/libc/arch-arm/syscalls/mount.S +++ b/libc/arch-arm/syscalls/mount.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mount) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/mprotect.S b/libc/arch-arm/syscalls/mprotect.S index 9461d9b05..dfc6f0891 100644 --- a/libc/arch-arm/syscalls/mprotect.S +++ b/libc/arch-arm/syscalls/mprotect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mprotect) mov ip, r7 ldr r7, =__NR_mprotect diff --git a/libc/arch-arm/syscalls/mremap.S b/libc/arch-arm/syscalls/mremap.S index 2486fc9d2..a67457156 100644 --- a/libc/arch-arm/syscalls/mremap.S +++ b/libc/arch-arm/syscalls/mremap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mremap) mov ip, r7 ldr r7, =__NR_mremap diff --git a/libc/arch-arm/syscalls/msync.S b/libc/arch-arm/syscalls/msync.S index 3fc411809..e062a5ee7 100644 --- a/libc/arch-arm/syscalls/msync.S +++ b/libc/arch-arm/syscalls/msync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(msync) mov ip, r7 ldr r7, =__NR_msync diff --git a/libc/arch-arm/syscalls/munlock.S b/libc/arch-arm/syscalls/munlock.S index c89fd3c3a..c44d14750 100644 --- a/libc/arch-arm/syscalls/munlock.S +++ b/libc/arch-arm/syscalls/munlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlock) mov ip, r7 ldr r7, =__NR_munlock diff --git a/libc/arch-arm/syscalls/munlockall.S b/libc/arch-arm/syscalls/munlockall.S index 3ac9f32bc..3a36b7e90 100644 --- a/libc/arch-arm/syscalls/munlockall.S +++ b/libc/arch-arm/syscalls/munlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlockall) mov ip, r7 ldr r7, =__NR_munlockall diff --git a/libc/arch-arm/syscalls/munmap.S b/libc/arch-arm/syscalls/munmap.S index ed3bb1e4f..a94e4e5b2 100644 --- a/libc/arch-arm/syscalls/munmap.S +++ b/libc/arch-arm/syscalls/munmap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munmap) mov ip, r7 ldr r7, =__NR_munmap diff --git a/libc/arch-arm/syscalls/nanosleep.S b/libc/arch-arm/syscalls/nanosleep.S index 695c1260c..743adc218 100644 --- a/libc/arch-arm/syscalls/nanosleep.S +++ b/libc/arch-arm/syscalls/nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(nanosleep) mov ip, r7 ldr r7, =__NR_nanosleep diff --git a/libc/arch-arm/syscalls/personality.S b/libc/arch-arm/syscalls/personality.S index e3f7371da..90dfe224e 100644 --- a/libc/arch-arm/syscalls/personality.S +++ b/libc/arch-arm/syscalls/personality.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(personality) mov ip, r7 ldr r7, =__NR_personality diff --git a/libc/arch-arm/syscalls/pipe2.S b/libc/arch-arm/syscalls/pipe2.S index 420dee9a3..b295df57b 100644 --- a/libc/arch-arm/syscalls/pipe2.S +++ b/libc/arch-arm/syscalls/pipe2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pipe2) mov ip, r7 ldr r7, =__NR_pipe2 diff --git a/libc/arch-arm/syscalls/prctl.S b/libc/arch-arm/syscalls/prctl.S index 615a2fa2e..c8f68d36c 100644 --- a/libc/arch-arm/syscalls/prctl.S +++ b/libc/arch-arm/syscalls/prctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prctl) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/pread64.S b/libc/arch-arm/syscalls/pread64.S index 0bfb6d051..3eeae3db3 100644 --- a/libc/arch-arm/syscalls/pread64.S +++ b/libc/arch-arm/syscalls/pread64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pread64) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/prlimit64.S b/libc/arch-arm/syscalls/prlimit64.S index 8d9c4ff64..87c53d582 100644 --- a/libc/arch-arm/syscalls/prlimit64.S +++ b/libc/arch-arm/syscalls/prlimit64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prlimit64) mov ip, r7 ldr r7, =__NR_prlimit64 diff --git a/libc/arch-arm/syscalls/pwrite64.S b/libc/arch-arm/syscalls/pwrite64.S index 03247b100..c63b835d2 100644 --- a/libc/arch-arm/syscalls/pwrite64.S +++ b/libc/arch-arm/syscalls/pwrite64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pwrite64) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/read.S b/libc/arch-arm/syscalls/read.S index b01daf56a..9de525c92 100644 --- a/libc/arch-arm/syscalls/read.S +++ b/libc/arch-arm/syscalls/read.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(read) mov ip, r7 ldr r7, =__NR_read diff --git a/libc/arch-arm/syscalls/readahead.S b/libc/arch-arm/syscalls/readahead.S index 83d84424f..995f00eb4 100644 --- a/libc/arch-arm/syscalls/readahead.S +++ b/libc/arch-arm/syscalls/readahead.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readahead) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/readlinkat.S b/libc/arch-arm/syscalls/readlinkat.S index 28926abc9..f865de52a 100644 --- a/libc/arch-arm/syscalls/readlinkat.S +++ b/libc/arch-arm/syscalls/readlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readlinkat) mov ip, r7 ldr r7, =__NR_readlinkat diff --git a/libc/arch-arm/syscalls/readv.S b/libc/arch-arm/syscalls/readv.S index 433d33d65..9401687c8 100644 --- a/libc/arch-arm/syscalls/readv.S +++ b/libc/arch-arm/syscalls/readv.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readv) mov ip, r7 ldr r7, =__NR_readv diff --git a/libc/arch-arm/syscalls/recvfrom.S b/libc/arch-arm/syscalls/recvfrom.S index cb89f7230..6390a82ca 100644 --- a/libc/arch-arm/syscalls/recvfrom.S +++ b/libc/arch-arm/syscalls/recvfrom.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvfrom) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/recvmmsg.S b/libc/arch-arm/syscalls/recvmmsg.S index dd8cd8c65..067ed1e15 100644 --- a/libc/arch-arm/syscalls/recvmmsg.S +++ b/libc/arch-arm/syscalls/recvmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmmsg) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/recvmsg.S b/libc/arch-arm/syscalls/recvmsg.S index 47e82a78d..f6884818d 100644 --- a/libc/arch-arm/syscalls/recvmsg.S +++ b/libc/arch-arm/syscalls/recvmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmsg) mov ip, r7 ldr r7, =__NR_recvmsg diff --git a/libc/arch-arm/syscalls/removexattr.S b/libc/arch-arm/syscalls/removexattr.S index a3fcdfa2f..59d0e2fa2 100644 --- a/libc/arch-arm/syscalls/removexattr.S +++ b/libc/arch-arm/syscalls/removexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(removexattr) mov ip, r7 ldr r7, =__NR_removexattr diff --git a/libc/arch-arm/syscalls/renameat.S b/libc/arch-arm/syscalls/renameat.S index cea6286dd..7a4d26882 100644 --- a/libc/arch-arm/syscalls/renameat.S +++ b/libc/arch-arm/syscalls/renameat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(renameat) mov ip, r7 ldr r7, =__NR_renameat diff --git a/libc/arch-arm/syscalls/sched_get_priority_max.S b/libc/arch-arm/syscalls/sched_get_priority_max.S index c940adc5a..2aafafc61 100644 --- a/libc/arch-arm/syscalls/sched_get_priority_max.S +++ b/libc/arch-arm/syscalls/sched_get_priority_max.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_max) mov ip, r7 ldr r7, =__NR_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 39faedec8..40e14ef66 100644 --- a/libc/arch-arm/syscalls/sched_get_priority_min.S +++ b/libc/arch-arm/syscalls/sched_get_priority_min.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_min) mov ip, r7 ldr r7, =__NR_sched_get_priority_min diff --git a/libc/arch-arm/syscalls/sched_getparam.S b/libc/arch-arm/syscalls/sched_getparam.S index 59df104d7..3d58651c8 100644 --- a/libc/arch-arm/syscalls/sched_getparam.S +++ b/libc/arch-arm/syscalls/sched_getparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getparam) mov ip, r7 ldr r7, =__NR_sched_getparam diff --git a/libc/arch-arm/syscalls/sched_getscheduler.S b/libc/arch-arm/syscalls/sched_getscheduler.S index 953368df6..e9478ca2c 100644 --- a/libc/arch-arm/syscalls/sched_getscheduler.S +++ b/libc/arch-arm/syscalls/sched_getscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getscheduler) mov ip, r7 ldr r7, =__NR_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 1fa7d1577..ed90b73db 100644 --- a/libc/arch-arm/syscalls/sched_rr_get_interval.S +++ b/libc/arch-arm/syscalls/sched_rr_get_interval.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_rr_get_interval) mov ip, r7 ldr r7, =__NR_sched_rr_get_interval diff --git a/libc/arch-arm/syscalls/sched_setaffinity.S b/libc/arch-arm/syscalls/sched_setaffinity.S index 63bfe4da8..d5f72a94c 100644 --- a/libc/arch-arm/syscalls/sched_setaffinity.S +++ b/libc/arch-arm/syscalls/sched_setaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setaffinity) mov ip, r7 ldr r7, =__NR_sched_setaffinity diff --git a/libc/arch-arm/syscalls/sched_setparam.S b/libc/arch-arm/syscalls/sched_setparam.S index 324f0bbfa..3ec06c006 100644 --- a/libc/arch-arm/syscalls/sched_setparam.S +++ b/libc/arch-arm/syscalls/sched_setparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setparam) mov ip, r7 ldr r7, =__NR_sched_setparam diff --git a/libc/arch-arm/syscalls/sched_setscheduler.S b/libc/arch-arm/syscalls/sched_setscheduler.S index 0ce6b1567..0e61ffb37 100644 --- a/libc/arch-arm/syscalls/sched_setscheduler.S +++ b/libc/arch-arm/syscalls/sched_setscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setscheduler) mov ip, r7 ldr r7, =__NR_sched_setscheduler diff --git a/libc/arch-arm/syscalls/sched_yield.S b/libc/arch-arm/syscalls/sched_yield.S index 8e6d65aec..f26297ef6 100644 --- a/libc/arch-arm/syscalls/sched_yield.S +++ b/libc/arch-arm/syscalls/sched_yield.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_yield) mov ip, r7 ldr r7, =__NR_sched_yield diff --git a/libc/arch-arm/syscalls/sendfile.S b/libc/arch-arm/syscalls/sendfile.S index 28b25a357..e4df8fff6 100644 --- a/libc/arch-arm/syscalls/sendfile.S +++ b/libc/arch-arm/syscalls/sendfile.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendfile) mov ip, r7 ldr r7, =__NR_sendfile diff --git a/libc/arch-arm/syscalls/sendfile64.S b/libc/arch-arm/syscalls/sendfile64.S index 4a9f24563..ab489632b 100644 --- a/libc/arch-arm/syscalls/sendfile64.S +++ b/libc/arch-arm/syscalls/sendfile64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendfile64) mov ip, r7 ldr r7, =__NR_sendfile64 diff --git a/libc/arch-arm/syscalls/sendmmsg.S b/libc/arch-arm/syscalls/sendmmsg.S index 04c3fe312..998e6c7c9 100644 --- a/libc/arch-arm/syscalls/sendmmsg.S +++ b/libc/arch-arm/syscalls/sendmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmmsg) mov ip, r7 ldr r7, =__NR_sendmmsg diff --git a/libc/arch-arm/syscalls/sendmsg.S b/libc/arch-arm/syscalls/sendmsg.S index 554f30739..d25d6b42e 100644 --- a/libc/arch-arm/syscalls/sendmsg.S +++ b/libc/arch-arm/syscalls/sendmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmsg) mov ip, r7 ldr r7, =__NR_sendmsg diff --git a/libc/arch-arm/syscalls/sendto.S b/libc/arch-arm/syscalls/sendto.S index bd0ec1d4c..b5e8de98a 100644 --- a/libc/arch-arm/syscalls/sendto.S +++ b/libc/arch-arm/syscalls/sendto.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendto) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/setfsgid.S b/libc/arch-arm/syscalls/setfsgid.S index e36e6eac8..7cdb6103b 100644 --- a/libc/arch-arm/syscalls/setfsgid.S +++ b/libc/arch-arm/syscalls/setfsgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsgid) mov ip, r7 ldr r7, =__NR_setfsgid diff --git a/libc/arch-arm/syscalls/setfsuid.S b/libc/arch-arm/syscalls/setfsuid.S index e3c9c009f..ae65298b1 100644 --- a/libc/arch-arm/syscalls/setfsuid.S +++ b/libc/arch-arm/syscalls/setfsuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsuid) mov ip, r7 ldr r7, =__NR_setfsuid diff --git a/libc/arch-arm/syscalls/setgid.S b/libc/arch-arm/syscalls/setgid.S index fb38148b2..15583ac0c 100644 --- a/libc/arch-arm/syscalls/setgid.S +++ b/libc/arch-arm/syscalls/setgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgid) mov ip, r7 ldr r7, =__NR_setgid32 diff --git a/libc/arch-arm/syscalls/setgroups.S b/libc/arch-arm/syscalls/setgroups.S index 5420a5368..eb610b1da 100644 --- a/libc/arch-arm/syscalls/setgroups.S +++ b/libc/arch-arm/syscalls/setgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgroups) mov ip, r7 ldr r7, =__NR_setgroups32 diff --git a/libc/arch-arm/syscalls/setitimer.S b/libc/arch-arm/syscalls/setitimer.S index 2345e5b87..4da2b4085 100644 --- a/libc/arch-arm/syscalls/setitimer.S +++ b/libc/arch-arm/syscalls/setitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setitimer) mov ip, r7 ldr r7, =__NR_setitimer diff --git a/libc/arch-arm/syscalls/setns.S b/libc/arch-arm/syscalls/setns.S index 7afbff065..891a0ac4f 100644 --- a/libc/arch-arm/syscalls/setns.S +++ b/libc/arch-arm/syscalls/setns.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setns) mov ip, r7 ldr r7, =__NR_setns diff --git a/libc/arch-arm/syscalls/setpgid.S b/libc/arch-arm/syscalls/setpgid.S index 1470a9dbd..e4edcdf31 100644 --- a/libc/arch-arm/syscalls/setpgid.S +++ b/libc/arch-arm/syscalls/setpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpgid) mov ip, r7 ldr r7, =__NR_setpgid diff --git a/libc/arch-arm/syscalls/setpriority.S b/libc/arch-arm/syscalls/setpriority.S index b7f47bea3..80d0d82c9 100644 --- a/libc/arch-arm/syscalls/setpriority.S +++ b/libc/arch-arm/syscalls/setpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpriority) mov ip, r7 ldr r7, =__NR_setpriority diff --git a/libc/arch-arm/syscalls/setregid.S b/libc/arch-arm/syscalls/setregid.S index a4323d472..b2cd345ea 100644 --- a/libc/arch-arm/syscalls/setregid.S +++ b/libc/arch-arm/syscalls/setregid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setregid) mov ip, r7 ldr r7, =__NR_setregid32 diff --git a/libc/arch-arm/syscalls/setresgid.S b/libc/arch-arm/syscalls/setresgid.S index a578440c8..75a9f7511 100644 --- a/libc/arch-arm/syscalls/setresgid.S +++ b/libc/arch-arm/syscalls/setresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresgid) mov ip, r7 ldr r7, =__NR_setresgid32 diff --git a/libc/arch-arm/syscalls/setresuid.S b/libc/arch-arm/syscalls/setresuid.S index 9798bc592..f3382f246 100644 --- a/libc/arch-arm/syscalls/setresuid.S +++ b/libc/arch-arm/syscalls/setresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresuid) mov ip, r7 ldr r7, =__NR_setresuid32 diff --git a/libc/arch-arm/syscalls/setreuid.S b/libc/arch-arm/syscalls/setreuid.S index fa83dc65d..1d866e995 100644 --- a/libc/arch-arm/syscalls/setreuid.S +++ b/libc/arch-arm/syscalls/setreuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setreuid) mov ip, r7 ldr r7, =__NR_setreuid32 diff --git a/libc/arch-arm/syscalls/setrlimit.S b/libc/arch-arm/syscalls/setrlimit.S index 0711aca20..0ddd7118f 100644 --- a/libc/arch-arm/syscalls/setrlimit.S +++ b/libc/arch-arm/syscalls/setrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setrlimit) mov ip, r7 ldr r7, =__NR_setrlimit diff --git a/libc/arch-arm/syscalls/setsid.S b/libc/arch-arm/syscalls/setsid.S index df6196b99..69b351fd4 100644 --- a/libc/arch-arm/syscalls/setsid.S +++ b/libc/arch-arm/syscalls/setsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsid) mov ip, r7 ldr r7, =__NR_setsid diff --git a/libc/arch-arm/syscalls/setsockopt.S b/libc/arch-arm/syscalls/setsockopt.S index b2d759790..87df622e8 100644 --- a/libc/arch-arm/syscalls/setsockopt.S +++ b/libc/arch-arm/syscalls/setsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsockopt) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/settimeofday.S b/libc/arch-arm/syscalls/settimeofday.S index af397616c..76697fc22 100644 --- a/libc/arch-arm/syscalls/settimeofday.S +++ b/libc/arch-arm/syscalls/settimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(settimeofday) mov ip, r7 ldr r7, =__NR_settimeofday diff --git a/libc/arch-arm/syscalls/setuid.S b/libc/arch-arm/syscalls/setuid.S index 1999c2b18..26d3ed184 100644 --- a/libc/arch-arm/syscalls/setuid.S +++ b/libc/arch-arm/syscalls/setuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setuid) mov ip, r7 ldr r7, =__NR_setuid32 diff --git a/libc/arch-arm/syscalls/setxattr.S b/libc/arch-arm/syscalls/setxattr.S index 022195d01..ec948ce18 100644 --- a/libc/arch-arm/syscalls/setxattr.S +++ b/libc/arch-arm/syscalls/setxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setxattr) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/shutdown.S b/libc/arch-arm/syscalls/shutdown.S index 744f38479..e9a27d42d 100644 --- a/libc/arch-arm/syscalls/shutdown.S +++ b/libc/arch-arm/syscalls/shutdown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(shutdown) mov ip, r7 ldr r7, =__NR_shutdown diff --git a/libc/arch-arm/syscalls/sigaltstack.S b/libc/arch-arm/syscalls/sigaltstack.S index d8777b411..18a1ffe2d 100644 --- a/libc/arch-arm/syscalls/sigaltstack.S +++ b/libc/arch-arm/syscalls/sigaltstack.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sigaltstack) mov ip, r7 ldr r7, =__NR_sigaltstack diff --git a/libc/arch-arm/syscalls/socketpair.S b/libc/arch-arm/syscalls/socketpair.S index f8963139b..66f0c3208 100644 --- a/libc/arch-arm/syscalls/socketpair.S +++ b/libc/arch-arm/syscalls/socketpair.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(socketpair) mov ip, r7 ldr r7, =__NR_socketpair diff --git a/libc/arch-arm/syscalls/splice.S b/libc/arch-arm/syscalls/splice.S index 782ba6c6f..6273138a2 100644 --- a/libc/arch-arm/syscalls/splice.S +++ b/libc/arch-arm/syscalls/splice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(splice) mov ip, sp stmfd sp!, {r4, r5, r6, r7} diff --git a/libc/arch-arm/syscalls/swapoff.S b/libc/arch-arm/syscalls/swapoff.S index f78bc7ffe..a497aad8a 100644 --- a/libc/arch-arm/syscalls/swapoff.S +++ b/libc/arch-arm/syscalls/swapoff.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapoff) mov ip, r7 ldr r7, =__NR_swapoff diff --git a/libc/arch-arm/syscalls/swapon.S b/libc/arch-arm/syscalls/swapon.S index d28216ad3..ded2abc87 100644 --- a/libc/arch-arm/syscalls/swapon.S +++ b/libc/arch-arm/syscalls/swapon.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapon) mov ip, r7 ldr r7, =__NR_swapon diff --git a/libc/arch-arm/syscalls/symlinkat.S b/libc/arch-arm/syscalls/symlinkat.S index d81e43bad..cc91b8804 100644 --- a/libc/arch-arm/syscalls/symlinkat.S +++ b/libc/arch-arm/syscalls/symlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(symlinkat) mov ip, r7 ldr r7, =__NR_symlinkat diff --git a/libc/arch-arm/syscalls/sync.S b/libc/arch-arm/syscalls/sync.S index 279a19250..ab228553b 100644 --- a/libc/arch-arm/syscalls/sync.S +++ b/libc/arch-arm/syscalls/sync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sync) mov ip, r7 ldr r7, =__NR_sync diff --git a/libc/arch-arm/syscalls/sysinfo.S b/libc/arch-arm/syscalls/sysinfo.S index 6bee58334..f5fb4e666 100644 --- a/libc/arch-arm/syscalls/sysinfo.S +++ b/libc/arch-arm/syscalls/sysinfo.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sysinfo) mov ip, r7 ldr r7, =__NR_sysinfo diff --git a/libc/arch-arm/syscalls/tee.S b/libc/arch-arm/syscalls/tee.S index 91746176b..7e155dfe0 100644 --- a/libc/arch-arm/syscalls/tee.S +++ b/libc/arch-arm/syscalls/tee.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tee) mov ip, r7 ldr r7, =__NR_tee diff --git a/libc/arch-arm/syscalls/tgkill.S b/libc/arch-arm/syscalls/tgkill.S index 4ea04f590..98440b1ed 100644 --- a/libc/arch-arm/syscalls/tgkill.S +++ b/libc/arch-arm/syscalls/tgkill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tgkill) mov ip, r7 ldr r7, =__NR_tgkill diff --git a/libc/arch-arm/syscalls/timerfd_create.S b/libc/arch-arm/syscalls/timerfd_create.S index f5842e90e..9211b54b2 100644 --- a/libc/arch-arm/syscalls/timerfd_create.S +++ b/libc/arch-arm/syscalls/timerfd_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_create) mov ip, r7 ldr r7, =__NR_timerfd_create diff --git a/libc/arch-arm/syscalls/timerfd_gettime.S b/libc/arch-arm/syscalls/timerfd_gettime.S index 6f254e5c4..c27e008e7 100644 --- a/libc/arch-arm/syscalls/timerfd_gettime.S +++ b/libc/arch-arm/syscalls/timerfd_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_gettime) mov ip, r7 ldr r7, =__NR_timerfd_gettime diff --git a/libc/arch-arm/syscalls/timerfd_settime.S b/libc/arch-arm/syscalls/timerfd_settime.S index 75d175cca..7acd40832 100644 --- a/libc/arch-arm/syscalls/timerfd_settime.S +++ b/libc/arch-arm/syscalls/timerfd_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_settime) mov ip, r7 ldr r7, =__NR_timerfd_settime diff --git a/libc/arch-arm/syscalls/times.S b/libc/arch-arm/syscalls/times.S index 4792ad115..b5695c455 100644 --- a/libc/arch-arm/syscalls/times.S +++ b/libc/arch-arm/syscalls/times.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(times) mov ip, r7 ldr r7, =__NR_times diff --git a/libc/arch-arm/syscalls/truncate.S b/libc/arch-arm/syscalls/truncate.S index ff8fd19f2..791572282 100644 --- a/libc/arch-arm/syscalls/truncate.S +++ b/libc/arch-arm/syscalls/truncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(truncate) mov ip, r7 ldr r7, =__NR_truncate diff --git a/libc/arch-arm/syscalls/truncate64.S b/libc/arch-arm/syscalls/truncate64.S index 8fd08552b..d59374a80 100644 --- a/libc/arch-arm/syscalls/truncate64.S +++ b/libc/arch-arm/syscalls/truncate64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(truncate64) mov ip, r7 ldr r7, =__NR_truncate64 diff --git a/libc/arch-arm/syscalls/umask.S b/libc/arch-arm/syscalls/umask.S index 830af21eb..5b03fb35c 100644 --- a/libc/arch-arm/syscalls/umask.S +++ b/libc/arch-arm/syscalls/umask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umask) mov ip, r7 ldr r7, =__NR_umask diff --git a/libc/arch-arm/syscalls/umount2.S b/libc/arch-arm/syscalls/umount2.S index 4c0ce4d5b..841eb9748 100644 --- a/libc/arch-arm/syscalls/umount2.S +++ b/libc/arch-arm/syscalls/umount2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umount2) mov ip, r7 ldr r7, =__NR_umount2 diff --git a/libc/arch-arm/syscalls/uname.S b/libc/arch-arm/syscalls/uname.S index 20a6d7dac..76480b429 100644 --- a/libc/arch-arm/syscalls/uname.S +++ b/libc/arch-arm/syscalls/uname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(uname) mov ip, r7 ldr r7, =__NR_uname diff --git a/libc/arch-arm/syscalls/unlinkat.S b/libc/arch-arm/syscalls/unlinkat.S index 1c2741676..675976815 100644 --- a/libc/arch-arm/syscalls/unlinkat.S +++ b/libc/arch-arm/syscalls/unlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unlinkat) mov ip, r7 ldr r7, =__NR_unlinkat diff --git a/libc/arch-arm/syscalls/unshare.S b/libc/arch-arm/syscalls/unshare.S index 5ec104974..19a5b6a2e 100644 --- a/libc/arch-arm/syscalls/unshare.S +++ b/libc/arch-arm/syscalls/unshare.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unshare) mov ip, r7 ldr r7, =__NR_unshare diff --git a/libc/arch-arm/syscalls/utimensat.S b/libc/arch-arm/syscalls/utimensat.S index f0f834fc3..6d506880e 100644 --- a/libc/arch-arm/syscalls/utimensat.S +++ b/libc/arch-arm/syscalls/utimensat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(utimensat) mov ip, r7 ldr r7, =__NR_utimensat diff --git a/libc/arch-arm/syscalls/vfork.S b/libc/arch-arm/syscalls/vfork.S index e12fba55a..8543986c1 100644 --- a/libc/arch-arm/syscalls/vfork.S +++ b/libc/arch-arm/syscalls/vfork.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(vfork) mov ip, r7 ldr r7, =__NR_vfork diff --git a/libc/arch-arm/syscalls/vmsplice.S b/libc/arch-arm/syscalls/vmsplice.S index 3b8962310..8239158bf 100644 --- a/libc/arch-arm/syscalls/vmsplice.S +++ b/libc/arch-arm/syscalls/vmsplice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(vmsplice) mov ip, r7 ldr r7, =__NR_vmsplice diff --git a/libc/arch-arm/syscalls/wait4.S b/libc/arch-arm/syscalls/wait4.S index a197c2e5d..ffb2587ab 100644 --- a/libc/arch-arm/syscalls/wait4.S +++ b/libc/arch-arm/syscalls/wait4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(wait4) mov ip, r7 ldr r7, =__NR_wait4 diff --git a/libc/arch-arm/syscalls/write.S b/libc/arch-arm/syscalls/write.S index ed7cfa2e4..8da1176ca 100644 --- a/libc/arch-arm/syscalls/write.S +++ b/libc/arch-arm/syscalls/write.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(write) mov ip, r7 ldr r7, =__NR_write diff --git a/libc/arch-arm/syscalls/writev.S b/libc/arch-arm/syscalls/writev.S index 8cc506f60..f17ad9429 100644 --- a/libc/arch-arm/syscalls/writev.S +++ b/libc/arch-arm/syscalls/writev.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(writev) mov ip, r7 ldr r7, =__NR_writev diff --git a/libc/arch-arm64/syscalls/__accept4.S b/libc/arch-arm64/syscalls/__accept4.S index 1c2a674c2..bee9fdaab 100644 --- a/libc/arch-arm64/syscalls/__accept4.S +++ b/libc/arch-arm64/syscalls/__accept4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__accept4) mov x8, __NR_accept4 svc #0 diff --git a/libc/arch-arm64/syscalls/__brk.S b/libc/arch-arm64/syscalls/__brk.S index 85ed76721..e91e76232 100644 --- a/libc/arch-arm64/syscalls/__brk.S +++ b/libc/arch-arm64/syscalls/__brk.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__brk) mov x8, __NR_brk svc #0 diff --git a/libc/arch-arm64/syscalls/__clock_gettime.S b/libc/arch-arm64/syscalls/__clock_gettime.S index f3466488a..d4a65e8a1 100644 --- a/libc/arch-arm64/syscalls/__clock_gettime.S +++ b/libc/arch-arm64/syscalls/__clock_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__clock_gettime) mov x8, __NR_clock_gettime svc #0 diff --git a/libc/arch-arm64/syscalls/__connect.S b/libc/arch-arm64/syscalls/__connect.S index 0d664f003..4f19dc756 100644 --- a/libc/arch-arm64/syscalls/__connect.S +++ b/libc/arch-arm64/syscalls/__connect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__connect) mov x8, __NR_connect svc #0 diff --git a/libc/arch-arm64/syscalls/__epoll_pwait.S b/libc/arch-arm64/syscalls/__epoll_pwait.S index 45275c0d6..7f40fbc98 100644 --- a/libc/arch-arm64/syscalls/__epoll_pwait.S +++ b/libc/arch-arm64/syscalls/__epoll_pwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__epoll_pwait) mov x8, __NR_epoll_pwait svc #0 diff --git a/libc/arch-arm64/syscalls/__exit.S b/libc/arch-arm64/syscalls/__exit.S index e3585132f..30849ce01 100644 --- a/libc/arch-arm64/syscalls/__exit.S +++ b/libc/arch-arm64/syscalls/__exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__exit) mov x8, __NR_exit svc #0 diff --git a/libc/arch-arm64/syscalls/__getcpu.S b/libc/arch-arm64/syscalls/__getcpu.S index 5e4368fb8..482191708 100644 --- a/libc/arch-arm64/syscalls/__getcpu.S +++ b/libc/arch-arm64/syscalls/__getcpu.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcpu) mov x8, __NR_getcpu svc #0 diff --git a/libc/arch-arm64/syscalls/__getcwd.S b/libc/arch-arm64/syscalls/__getcwd.S index bd4fbaaa3..f0212a288 100644 --- a/libc/arch-arm64/syscalls/__getcwd.S +++ b/libc/arch-arm64/syscalls/__getcwd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcwd) mov x8, __NR_getcwd svc #0 diff --git a/libc/arch-arm64/syscalls/__getdents64.S b/libc/arch-arm64/syscalls/__getdents64.S index bf0f9a4ce..0061cd69f 100644 --- a/libc/arch-arm64/syscalls/__getdents64.S +++ b/libc/arch-arm64/syscalls/__getdents64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getdents64) mov x8, __NR_getdents64 svc #0 diff --git a/libc/arch-arm64/syscalls/__getpid.S b/libc/arch-arm64/syscalls/__getpid.S index c3003c302..011d82d47 100644 --- a/libc/arch-arm64/syscalls/__getpid.S +++ b/libc/arch-arm64/syscalls/__getpid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpid) mov x8, __NR_getpid svc #0 diff --git a/libc/arch-arm64/syscalls/__getpriority.S b/libc/arch-arm64/syscalls/__getpriority.S index 57ceabf08..80188b301 100644 --- a/libc/arch-arm64/syscalls/__getpriority.S +++ b/libc/arch-arm64/syscalls/__getpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpriority) mov x8, __NR_getpriority svc #0 diff --git a/libc/arch-arm64/syscalls/__gettimeofday.S b/libc/arch-arm64/syscalls/__gettimeofday.S index 6582c49a2..7d1b5d3cb 100644 --- a/libc/arch-arm64/syscalls/__gettimeofday.S +++ b/libc/arch-arm64/syscalls/__gettimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__gettimeofday) mov x8, __NR_gettimeofday svc #0 diff --git a/libc/arch-arm64/syscalls/__ioctl.S b/libc/arch-arm64/syscalls/__ioctl.S index f63255525..3d42f1a5b 100644 --- a/libc/arch-arm64/syscalls/__ioctl.S +++ b/libc/arch-arm64/syscalls/__ioctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ioctl) mov x8, __NR_ioctl svc #0 diff --git a/libc/arch-arm64/syscalls/__openat.S b/libc/arch-arm64/syscalls/__openat.S index e1b0da3c6..1ff0b4871 100644 --- a/libc/arch-arm64/syscalls/__openat.S +++ b/libc/arch-arm64/syscalls/__openat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__openat) mov x8, __NR_openat svc #0 diff --git a/libc/arch-arm64/syscalls/__ppoll.S b/libc/arch-arm64/syscalls/__ppoll.S index 31e5578f8..9517ce3fd 100644 --- a/libc/arch-arm64/syscalls/__ppoll.S +++ b/libc/arch-arm64/syscalls/__ppoll.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ppoll) mov x8, __NR_ppoll svc #0 diff --git a/libc/arch-arm64/syscalls/__pselect6.S b/libc/arch-arm64/syscalls/__pselect6.S index b0e4770fe..7e14e02df 100644 --- a/libc/arch-arm64/syscalls/__pselect6.S +++ b/libc/arch-arm64/syscalls/__pselect6.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__pselect6) mov x8, __NR_pselect6 svc #0 diff --git a/libc/arch-arm64/syscalls/__ptrace.S b/libc/arch-arm64/syscalls/__ptrace.S index 054bb6f01..b325e291d 100644 --- a/libc/arch-arm64/syscalls/__ptrace.S +++ b/libc/arch-arm64/syscalls/__ptrace.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ptrace) mov x8, __NR_ptrace svc #0 diff --git a/libc/arch-arm64/syscalls/__reboot.S b/libc/arch-arm64/syscalls/__reboot.S index e24553c98..04b18c9b9 100644 --- a/libc/arch-arm64/syscalls/__reboot.S +++ b/libc/arch-arm64/syscalls/__reboot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__reboot) mov x8, __NR_reboot svc #0 diff --git a/libc/arch-arm64/syscalls/__rt_sigaction.S b/libc/arch-arm64/syscalls/__rt_sigaction.S index 3d84544cf..3def55839 100644 --- a/libc/arch-arm64/syscalls/__rt_sigaction.S +++ b/libc/arch-arm64/syscalls/__rt_sigaction.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigaction) mov x8, __NR_rt_sigaction svc #0 diff --git a/libc/arch-arm64/syscalls/__rt_sigpending.S b/libc/arch-arm64/syscalls/__rt_sigpending.S index 60f0a1040..3ac0cb890 100644 --- a/libc/arch-arm64/syscalls/__rt_sigpending.S +++ b/libc/arch-arm64/syscalls/__rt_sigpending.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigpending) mov x8, __NR_rt_sigpending svc #0 diff --git a/libc/arch-arm64/syscalls/__rt_sigprocmask.S b/libc/arch-arm64/syscalls/__rt_sigprocmask.S index 7f5b3ac56..72c7ea6fb 100644 --- a/libc/arch-arm64/syscalls/__rt_sigprocmask.S +++ b/libc/arch-arm64/syscalls/__rt_sigprocmask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigprocmask) mov x8, __NR_rt_sigprocmask svc #0 diff --git a/libc/arch-arm64/syscalls/__rt_sigsuspend.S b/libc/arch-arm64/syscalls/__rt_sigsuspend.S index 08b1197ee..a289713f5 100644 --- a/libc/arch-arm64/syscalls/__rt_sigsuspend.S +++ b/libc/arch-arm64/syscalls/__rt_sigsuspend.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigsuspend) mov x8, __NR_rt_sigsuspend svc #0 diff --git a/libc/arch-arm64/syscalls/__rt_sigtimedwait.S b/libc/arch-arm64/syscalls/__rt_sigtimedwait.S index 8bc9a7a66..c61e4ac99 100644 --- a/libc/arch-arm64/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-arm64/syscalls/__rt_sigtimedwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigtimedwait) mov x8, __NR_rt_sigtimedwait svc #0 diff --git a/libc/arch-arm64/syscalls/__sched_getaffinity.S b/libc/arch-arm64/syscalls/__sched_getaffinity.S index c0d392c3a..5bee77e70 100644 --- a/libc/arch-arm64/syscalls/__sched_getaffinity.S +++ b/libc/arch-arm64/syscalls/__sched_getaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__sched_getaffinity) mov x8, __NR_sched_getaffinity svc #0 diff --git a/libc/arch-arm64/syscalls/__set_tid_address.S b/libc/arch-arm64/syscalls/__set_tid_address.S index 296c907bb..e4790bf65 100644 --- a/libc/arch-arm64/syscalls/__set_tid_address.S +++ b/libc/arch-arm64/syscalls/__set_tid_address.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__set_tid_address) mov x8, __NR_set_tid_address svc #0 diff --git a/libc/arch-arm64/syscalls/__signalfd4.S b/libc/arch-arm64/syscalls/__signalfd4.S index 393200370..a977a6cb6 100644 --- a/libc/arch-arm64/syscalls/__signalfd4.S +++ b/libc/arch-arm64/syscalls/__signalfd4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__signalfd4) mov x8, __NR_signalfd4 svc #0 diff --git a/libc/arch-arm64/syscalls/__socket.S b/libc/arch-arm64/syscalls/__socket.S index db7f2aab1..f8bb2ac2e 100644 --- a/libc/arch-arm64/syscalls/__socket.S +++ b/libc/arch-arm64/syscalls/__socket.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__socket) mov x8, __NR_socket svc #0 diff --git a/libc/arch-arm64/syscalls/__timer_create.S b/libc/arch-arm64/syscalls/__timer_create.S index a5e69e35f..bb54952d6 100644 --- a/libc/arch-arm64/syscalls/__timer_create.S +++ b/libc/arch-arm64/syscalls/__timer_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_create) mov x8, __NR_timer_create svc #0 diff --git a/libc/arch-arm64/syscalls/__timer_delete.S b/libc/arch-arm64/syscalls/__timer_delete.S index 44a7481cf..47d82f253 100644 --- a/libc/arch-arm64/syscalls/__timer_delete.S +++ b/libc/arch-arm64/syscalls/__timer_delete.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_delete) mov x8, __NR_timer_delete svc #0 diff --git a/libc/arch-arm64/syscalls/__timer_getoverrun.S b/libc/arch-arm64/syscalls/__timer_getoverrun.S index e1d959a19..9c0611284 100644 --- a/libc/arch-arm64/syscalls/__timer_getoverrun.S +++ b/libc/arch-arm64/syscalls/__timer_getoverrun.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_getoverrun) mov x8, __NR_timer_getoverrun svc #0 diff --git a/libc/arch-arm64/syscalls/__timer_gettime.S b/libc/arch-arm64/syscalls/__timer_gettime.S index 763229059..e7c7cfe40 100644 --- a/libc/arch-arm64/syscalls/__timer_gettime.S +++ b/libc/arch-arm64/syscalls/__timer_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_gettime) mov x8, __NR_timer_gettime svc #0 diff --git a/libc/arch-arm64/syscalls/__timer_settime.S b/libc/arch-arm64/syscalls/__timer_settime.S index 92e4a7625..d4a4996f8 100644 --- a/libc/arch-arm64/syscalls/__timer_settime.S +++ b/libc/arch-arm64/syscalls/__timer_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_settime) mov x8, __NR_timer_settime svc #0 diff --git a/libc/arch-arm64/syscalls/__waitid.S b/libc/arch-arm64/syscalls/__waitid.S index 9267239c2..5bff48804 100644 --- a/libc/arch-arm64/syscalls/__waitid.S +++ b/libc/arch-arm64/syscalls/__waitid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__waitid) mov x8, __NR_waitid svc #0 diff --git a/libc/arch-arm64/syscalls/_exit.S b/libc/arch-arm64/syscalls/_exit.S index 38b073bbc..e88e77acd 100644 --- a/libc/arch-arm64/syscalls/_exit.S +++ b/libc/arch-arm64/syscalls/_exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(_exit) mov x8, __NR_exit_group svc #0 diff --git a/libc/arch-arm64/syscalls/acct.S b/libc/arch-arm64/syscalls/acct.S index 15e30861c..97a8a0c85 100644 --- a/libc/arch-arm64/syscalls/acct.S +++ b/libc/arch-arm64/syscalls/acct.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(acct) mov x8, __NR_acct svc #0 diff --git a/libc/arch-arm64/syscalls/bind.S b/libc/arch-arm64/syscalls/bind.S index b3925db90..1d6d90189 100644 --- a/libc/arch-arm64/syscalls/bind.S +++ b/libc/arch-arm64/syscalls/bind.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(bind) mov x8, __NR_bind svc #0 diff --git a/libc/arch-arm64/syscalls/capget.S b/libc/arch-arm64/syscalls/capget.S index b897e5dc6..de849297a 100644 --- a/libc/arch-arm64/syscalls/capget.S +++ b/libc/arch-arm64/syscalls/capget.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capget) mov x8, __NR_capget svc #0 diff --git a/libc/arch-arm64/syscalls/capset.S b/libc/arch-arm64/syscalls/capset.S index 1d94aa3e0..1616f8f07 100644 --- a/libc/arch-arm64/syscalls/capset.S +++ b/libc/arch-arm64/syscalls/capset.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capset) mov x8, __NR_capset svc #0 diff --git a/libc/arch-arm64/syscalls/chdir.S b/libc/arch-arm64/syscalls/chdir.S index a7bf6c279..ccaa2e283 100644 --- a/libc/arch-arm64/syscalls/chdir.S +++ b/libc/arch-arm64/syscalls/chdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chdir) mov x8, __NR_chdir svc #0 diff --git a/libc/arch-arm64/syscalls/chroot.S b/libc/arch-arm64/syscalls/chroot.S index 98bd5d1bf..bede17204 100644 --- a/libc/arch-arm64/syscalls/chroot.S +++ b/libc/arch-arm64/syscalls/chroot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chroot) mov x8, __NR_chroot svc #0 diff --git a/libc/arch-arm64/syscalls/clock_getres.S b/libc/arch-arm64/syscalls/clock_getres.S index b6e7e5618..3944a155b 100644 --- a/libc/arch-arm64/syscalls/clock_getres.S +++ b/libc/arch-arm64/syscalls/clock_getres.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_getres) mov x8, __NR_clock_getres svc #0 diff --git a/libc/arch-arm64/syscalls/clock_nanosleep.S b/libc/arch-arm64/syscalls/clock_nanosleep.S index b64ff6824..2182f6713 100644 --- a/libc/arch-arm64/syscalls/clock_nanosleep.S +++ b/libc/arch-arm64/syscalls/clock_nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_nanosleep) mov x8, __NR_clock_nanosleep svc #0 diff --git a/libc/arch-arm64/syscalls/clock_settime.S b/libc/arch-arm64/syscalls/clock_settime.S index adc168020..14a662b29 100644 --- a/libc/arch-arm64/syscalls/clock_settime.S +++ b/libc/arch-arm64/syscalls/clock_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_settime) mov x8, __NR_clock_settime svc #0 diff --git a/libc/arch-arm64/syscalls/close.S b/libc/arch-arm64/syscalls/close.S index b4b72d9ea..da9a151af 100644 --- a/libc/arch-arm64/syscalls/close.S +++ b/libc/arch-arm64/syscalls/close.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(close) mov x8, __NR_close svc #0 diff --git a/libc/arch-arm64/syscalls/delete_module.S b/libc/arch-arm64/syscalls/delete_module.S index ed51847de..5dcd07f5c 100644 --- a/libc/arch-arm64/syscalls/delete_module.S +++ b/libc/arch-arm64/syscalls/delete_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(delete_module) mov x8, __NR_delete_module svc #0 diff --git a/libc/arch-arm64/syscalls/dup.S b/libc/arch-arm64/syscalls/dup.S index 9584c513a..33a1b6597 100644 --- a/libc/arch-arm64/syscalls/dup.S +++ b/libc/arch-arm64/syscalls/dup.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup) mov x8, __NR_dup svc #0 diff --git a/libc/arch-arm64/syscalls/dup3.S b/libc/arch-arm64/syscalls/dup3.S index e303fbad2..441fec9f1 100644 --- a/libc/arch-arm64/syscalls/dup3.S +++ b/libc/arch-arm64/syscalls/dup3.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup3) mov x8, __NR_dup3 svc #0 diff --git a/libc/arch-arm64/syscalls/epoll_create1.S b/libc/arch-arm64/syscalls/epoll_create1.S index 4ca8bfa87..d314f5557 100644 --- a/libc/arch-arm64/syscalls/epoll_create1.S +++ b/libc/arch-arm64/syscalls/epoll_create1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_create1) mov x8, __NR_epoll_create1 svc #0 diff --git a/libc/arch-arm64/syscalls/epoll_ctl.S b/libc/arch-arm64/syscalls/epoll_ctl.S index c1c0dbaad..004c0666e 100644 --- a/libc/arch-arm64/syscalls/epoll_ctl.S +++ b/libc/arch-arm64/syscalls/epoll_ctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_ctl) mov x8, __NR_epoll_ctl svc #0 diff --git a/libc/arch-arm64/syscalls/eventfd.S b/libc/arch-arm64/syscalls/eventfd.S index ace608e68..11e97d01f 100644 --- a/libc/arch-arm64/syscalls/eventfd.S +++ b/libc/arch-arm64/syscalls/eventfd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(eventfd) mov x8, __NR_eventfd2 svc #0 diff --git a/libc/arch-arm64/syscalls/execve.S b/libc/arch-arm64/syscalls/execve.S index ab0cb5707..7b6d943f4 100644 --- a/libc/arch-arm64/syscalls/execve.S +++ b/libc/arch-arm64/syscalls/execve.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(execve) mov x8, __NR_execve svc #0 diff --git a/libc/arch-arm64/syscalls/faccessat.S b/libc/arch-arm64/syscalls/faccessat.S index 30a385238..7bd866546 100644 --- a/libc/arch-arm64/syscalls/faccessat.S +++ b/libc/arch-arm64/syscalls/faccessat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(faccessat) mov x8, __NR_faccessat svc #0 diff --git a/libc/arch-arm64/syscalls/fallocate.S b/libc/arch-arm64/syscalls/fallocate.S index 3092b3414..d8795ae1e 100644 --- a/libc/arch-arm64/syscalls/fallocate.S +++ b/libc/arch-arm64/syscalls/fallocate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fallocate) mov x8, __NR_fallocate svc #0 diff --git a/libc/arch-arm64/syscalls/fchdir.S b/libc/arch-arm64/syscalls/fchdir.S index f7687f8b2..7739fedef 100644 --- a/libc/arch-arm64/syscalls/fchdir.S +++ b/libc/arch-arm64/syscalls/fchdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchdir) mov x8, __NR_fchdir svc #0 diff --git a/libc/arch-arm64/syscalls/fchmod.S b/libc/arch-arm64/syscalls/fchmod.S index acc671881..3eec6cbb5 100644 --- a/libc/arch-arm64/syscalls/fchmod.S +++ b/libc/arch-arm64/syscalls/fchmod.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmod) mov x8, __NR_fchmod svc #0 diff --git a/libc/arch-arm64/syscalls/fchmodat.S b/libc/arch-arm64/syscalls/fchmodat.S index 23c2fd5f0..f2f285eda 100644 --- a/libc/arch-arm64/syscalls/fchmodat.S +++ b/libc/arch-arm64/syscalls/fchmodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmodat) mov x8, __NR_fchmodat svc #0 diff --git a/libc/arch-arm64/syscalls/fchown.S b/libc/arch-arm64/syscalls/fchown.S index 8e9db6215..a689ba0c1 100644 --- a/libc/arch-arm64/syscalls/fchown.S +++ b/libc/arch-arm64/syscalls/fchown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchown) mov x8, __NR_fchown svc #0 diff --git a/libc/arch-arm64/syscalls/fchownat.S b/libc/arch-arm64/syscalls/fchownat.S index 3cf2c3dba..7ede083d7 100644 --- a/libc/arch-arm64/syscalls/fchownat.S +++ b/libc/arch-arm64/syscalls/fchownat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchownat) mov x8, __NR_fchownat svc #0 diff --git a/libc/arch-arm64/syscalls/fcntl.S b/libc/arch-arm64/syscalls/fcntl.S index 45eff74fb..257c765b5 100644 --- a/libc/arch-arm64/syscalls/fcntl.S +++ b/libc/arch-arm64/syscalls/fcntl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fcntl) mov x8, __NR_fcntl svc #0 diff --git a/libc/arch-arm64/syscalls/fdatasync.S b/libc/arch-arm64/syscalls/fdatasync.S index 77b76c49d..233abda7b 100644 --- a/libc/arch-arm64/syscalls/fdatasync.S +++ b/libc/arch-arm64/syscalls/fdatasync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fdatasync) mov x8, __NR_fdatasync svc #0 diff --git a/libc/arch-arm64/syscalls/fgetxattr.S b/libc/arch-arm64/syscalls/fgetxattr.S index 1f8edb69c..bd579ff45 100644 --- a/libc/arch-arm64/syscalls/fgetxattr.S +++ b/libc/arch-arm64/syscalls/fgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fgetxattr) mov x8, __NR_fgetxattr svc #0 diff --git a/libc/arch-arm64/syscalls/flistxattr.S b/libc/arch-arm64/syscalls/flistxattr.S index 997529eb3..95ccbe269 100644 --- a/libc/arch-arm64/syscalls/flistxattr.S +++ b/libc/arch-arm64/syscalls/flistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flistxattr) mov x8, __NR_flistxattr svc #0 diff --git a/libc/arch-arm64/syscalls/flock.S b/libc/arch-arm64/syscalls/flock.S index 0e1c3f5e7..2151d6cca 100644 --- a/libc/arch-arm64/syscalls/flock.S +++ b/libc/arch-arm64/syscalls/flock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flock) mov x8, __NR_flock svc #0 diff --git a/libc/arch-arm64/syscalls/fremovexattr.S b/libc/arch-arm64/syscalls/fremovexattr.S index d43430fd6..8dd107d06 100644 --- a/libc/arch-arm64/syscalls/fremovexattr.S +++ b/libc/arch-arm64/syscalls/fremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fremovexattr) mov x8, __NR_fremovexattr svc #0 diff --git a/libc/arch-arm64/syscalls/fsetxattr.S b/libc/arch-arm64/syscalls/fsetxattr.S index f40f87502..9e546869a 100644 --- a/libc/arch-arm64/syscalls/fsetxattr.S +++ b/libc/arch-arm64/syscalls/fsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsetxattr) mov x8, __NR_fsetxattr svc #0 diff --git a/libc/arch-arm64/syscalls/fstat64.S b/libc/arch-arm64/syscalls/fstat64.S index 9afe95bab..f354e1335 100644 --- a/libc/arch-arm64/syscalls/fstat64.S +++ b/libc/arch-arm64/syscalls/fstat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstat64) mov x8, __NR_fstat svc #0 diff --git a/libc/arch-arm64/syscalls/fstatat64.S b/libc/arch-arm64/syscalls/fstatat64.S index 30efd3bd8..2fe056e43 100644 --- a/libc/arch-arm64/syscalls/fstatat64.S +++ b/libc/arch-arm64/syscalls/fstatat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstatat64) mov x8, __NR_newfstatat svc #0 diff --git a/libc/arch-arm64/syscalls/fstatfs64.S b/libc/arch-arm64/syscalls/fstatfs64.S index 67ae67e40..c67ffd691 100644 --- a/libc/arch-arm64/syscalls/fstatfs64.S +++ b/libc/arch-arm64/syscalls/fstatfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstatfs64) mov x8, __NR_fstatfs svc #0 diff --git a/libc/arch-arm64/syscalls/fsync.S b/libc/arch-arm64/syscalls/fsync.S index e22589ec2..ae2fc61df 100644 --- a/libc/arch-arm64/syscalls/fsync.S +++ b/libc/arch-arm64/syscalls/fsync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsync) mov x8, __NR_fsync svc #0 diff --git a/libc/arch-arm64/syscalls/ftruncate.S b/libc/arch-arm64/syscalls/ftruncate.S index b45a17086..adf87fe4e 100644 --- a/libc/arch-arm64/syscalls/ftruncate.S +++ b/libc/arch-arm64/syscalls/ftruncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(ftruncate) mov x8, __NR_ftruncate svc #0 diff --git a/libc/arch-arm64/syscalls/getegid.S b/libc/arch-arm64/syscalls/getegid.S index 675731c69..5066cae47 100644 --- a/libc/arch-arm64/syscalls/getegid.S +++ b/libc/arch-arm64/syscalls/getegid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getegid) mov x8, __NR_getegid svc #0 diff --git a/libc/arch-arm64/syscalls/geteuid.S b/libc/arch-arm64/syscalls/geteuid.S index 8d9461ee9..25b1ea9fd 100644 --- a/libc/arch-arm64/syscalls/geteuid.S +++ b/libc/arch-arm64/syscalls/geteuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(geteuid) mov x8, __NR_geteuid svc #0 diff --git a/libc/arch-arm64/syscalls/getgid.S b/libc/arch-arm64/syscalls/getgid.S index 4653fd8fb..3f49cb44c 100644 --- a/libc/arch-arm64/syscalls/getgid.S +++ b/libc/arch-arm64/syscalls/getgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgid) mov x8, __NR_getgid svc #0 diff --git a/libc/arch-arm64/syscalls/getgroups.S b/libc/arch-arm64/syscalls/getgroups.S index f22f1e91c..3df4974cc 100644 --- a/libc/arch-arm64/syscalls/getgroups.S +++ b/libc/arch-arm64/syscalls/getgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgroups) mov x8, __NR_getgroups svc #0 diff --git a/libc/arch-arm64/syscalls/getitimer.S b/libc/arch-arm64/syscalls/getitimer.S index 25d0b381e..70cb73150 100644 --- a/libc/arch-arm64/syscalls/getitimer.S +++ b/libc/arch-arm64/syscalls/getitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getitimer) mov x8, __NR_getitimer svc #0 diff --git a/libc/arch-arm64/syscalls/getpeername.S b/libc/arch-arm64/syscalls/getpeername.S index aefd0c507..eefb24af5 100644 --- a/libc/arch-arm64/syscalls/getpeername.S +++ b/libc/arch-arm64/syscalls/getpeername.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpeername) mov x8, __NR_getpeername svc #0 diff --git a/libc/arch-arm64/syscalls/getpgid.S b/libc/arch-arm64/syscalls/getpgid.S index 4c750fbe0..d12ac5270 100644 --- a/libc/arch-arm64/syscalls/getpgid.S +++ b/libc/arch-arm64/syscalls/getpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpgid) mov x8, __NR_getpgid svc #0 diff --git a/libc/arch-arm64/syscalls/getppid.S b/libc/arch-arm64/syscalls/getppid.S index 540ecc411..af8965beb 100644 --- a/libc/arch-arm64/syscalls/getppid.S +++ b/libc/arch-arm64/syscalls/getppid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getppid) mov x8, __NR_getppid svc #0 diff --git a/libc/arch-arm64/syscalls/getresgid.S b/libc/arch-arm64/syscalls/getresgid.S index 3ce5799f6..3c1c0c098 100644 --- a/libc/arch-arm64/syscalls/getresgid.S +++ b/libc/arch-arm64/syscalls/getresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresgid) mov x8, __NR_getresgid svc #0 diff --git a/libc/arch-arm64/syscalls/getresuid.S b/libc/arch-arm64/syscalls/getresuid.S index 56851cc27..f50e060fa 100644 --- a/libc/arch-arm64/syscalls/getresuid.S +++ b/libc/arch-arm64/syscalls/getresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresuid) mov x8, __NR_getresuid svc #0 diff --git a/libc/arch-arm64/syscalls/getrlimit.S b/libc/arch-arm64/syscalls/getrlimit.S index 1f7477361..b759912b7 100644 --- a/libc/arch-arm64/syscalls/getrlimit.S +++ b/libc/arch-arm64/syscalls/getrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrlimit) mov x8, __NR_getrlimit svc #0 diff --git a/libc/arch-arm64/syscalls/getrusage.S b/libc/arch-arm64/syscalls/getrusage.S index 8154e4a0d..1a0d30f16 100644 --- a/libc/arch-arm64/syscalls/getrusage.S +++ b/libc/arch-arm64/syscalls/getrusage.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrusage) mov x8, __NR_getrusage svc #0 diff --git a/libc/arch-arm64/syscalls/getsid.S b/libc/arch-arm64/syscalls/getsid.S index f99623fe7..3c3d7530b 100644 --- a/libc/arch-arm64/syscalls/getsid.S +++ b/libc/arch-arm64/syscalls/getsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsid) mov x8, __NR_getsid svc #0 diff --git a/libc/arch-arm64/syscalls/getsockname.S b/libc/arch-arm64/syscalls/getsockname.S index e8bc00668..a337986d6 100644 --- a/libc/arch-arm64/syscalls/getsockname.S +++ b/libc/arch-arm64/syscalls/getsockname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockname) mov x8, __NR_getsockname svc #0 diff --git a/libc/arch-arm64/syscalls/getsockopt.S b/libc/arch-arm64/syscalls/getsockopt.S index 4559d1de9..4b3abd5c9 100644 --- a/libc/arch-arm64/syscalls/getsockopt.S +++ b/libc/arch-arm64/syscalls/getsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockopt) mov x8, __NR_getsockopt svc #0 diff --git a/libc/arch-arm64/syscalls/getuid.S b/libc/arch-arm64/syscalls/getuid.S index 4e37d47c2..a9193c5cc 100644 --- a/libc/arch-arm64/syscalls/getuid.S +++ b/libc/arch-arm64/syscalls/getuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getuid) mov x8, __NR_getuid svc #0 diff --git a/libc/arch-arm64/syscalls/getxattr.S b/libc/arch-arm64/syscalls/getxattr.S index 3f6995683..afa81ef85 100644 --- a/libc/arch-arm64/syscalls/getxattr.S +++ b/libc/arch-arm64/syscalls/getxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getxattr) mov x8, __NR_getxattr svc #0 diff --git a/libc/arch-arm64/syscalls/init_module.S b/libc/arch-arm64/syscalls/init_module.S index cc1a0da20..bf0f7d330 100644 --- a/libc/arch-arm64/syscalls/init_module.S +++ b/libc/arch-arm64/syscalls/init_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(init_module) mov x8, __NR_init_module svc #0 diff --git a/libc/arch-arm64/syscalls/inotify_add_watch.S b/libc/arch-arm64/syscalls/inotify_add_watch.S index fbc8dd4ef..dc30ae57d 100644 --- a/libc/arch-arm64/syscalls/inotify_add_watch.S +++ b/libc/arch-arm64/syscalls/inotify_add_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_add_watch) mov x8, __NR_inotify_add_watch svc #0 diff --git a/libc/arch-arm64/syscalls/inotify_init1.S b/libc/arch-arm64/syscalls/inotify_init1.S index 5726d0c4b..1b40ef2cb 100644 --- a/libc/arch-arm64/syscalls/inotify_init1.S +++ b/libc/arch-arm64/syscalls/inotify_init1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_init1) mov x8, __NR_inotify_init1 svc #0 diff --git a/libc/arch-arm64/syscalls/inotify_rm_watch.S b/libc/arch-arm64/syscalls/inotify_rm_watch.S index 37eabcf26..7c99e866d 100644 --- a/libc/arch-arm64/syscalls/inotify_rm_watch.S +++ b/libc/arch-arm64/syscalls/inotify_rm_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_rm_watch) mov x8, __NR_inotify_rm_watch svc #0 diff --git a/libc/arch-arm64/syscalls/kill.S b/libc/arch-arm64/syscalls/kill.S index 7fc2c5a74..e86e3a4d8 100644 --- a/libc/arch-arm64/syscalls/kill.S +++ b/libc/arch-arm64/syscalls/kill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(kill) mov x8, __NR_kill svc #0 diff --git a/libc/arch-arm64/syscalls/klogctl.S b/libc/arch-arm64/syscalls/klogctl.S index abbee5510..567db27fb 100644 --- a/libc/arch-arm64/syscalls/klogctl.S +++ b/libc/arch-arm64/syscalls/klogctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(klogctl) mov x8, __NR_syslog svc #0 diff --git a/libc/arch-arm64/syscalls/lgetxattr.S b/libc/arch-arm64/syscalls/lgetxattr.S index e1a760cb3..187462a7b 100644 --- a/libc/arch-arm64/syscalls/lgetxattr.S +++ b/libc/arch-arm64/syscalls/lgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lgetxattr) mov x8, __NR_lgetxattr svc #0 diff --git a/libc/arch-arm64/syscalls/linkat.S b/libc/arch-arm64/syscalls/linkat.S index c3e2cd894..7cfc2e036 100644 --- a/libc/arch-arm64/syscalls/linkat.S +++ b/libc/arch-arm64/syscalls/linkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(linkat) mov x8, __NR_linkat svc #0 diff --git a/libc/arch-arm64/syscalls/listen.S b/libc/arch-arm64/syscalls/listen.S index 9b7be2883..028b9bd42 100644 --- a/libc/arch-arm64/syscalls/listen.S +++ b/libc/arch-arm64/syscalls/listen.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listen) mov x8, __NR_listen svc #0 diff --git a/libc/arch-arm64/syscalls/listxattr.S b/libc/arch-arm64/syscalls/listxattr.S index a5e55c71a..335fafe82 100644 --- a/libc/arch-arm64/syscalls/listxattr.S +++ b/libc/arch-arm64/syscalls/listxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listxattr) mov x8, __NR_listxattr svc #0 diff --git a/libc/arch-arm64/syscalls/llistxattr.S b/libc/arch-arm64/syscalls/llistxattr.S index 447e2081f..e79674118 100644 --- a/libc/arch-arm64/syscalls/llistxattr.S +++ b/libc/arch-arm64/syscalls/llistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(llistxattr) mov x8, __NR_llistxattr svc #0 diff --git a/libc/arch-arm64/syscalls/lremovexattr.S b/libc/arch-arm64/syscalls/lremovexattr.S index 1f620dbee..9f4c02755 100644 --- a/libc/arch-arm64/syscalls/lremovexattr.S +++ b/libc/arch-arm64/syscalls/lremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lremovexattr) mov x8, __NR_lremovexattr svc #0 diff --git a/libc/arch-arm64/syscalls/lseek.S b/libc/arch-arm64/syscalls/lseek.S index 1b858b2aa..aa717687b 100644 --- a/libc/arch-arm64/syscalls/lseek.S +++ b/libc/arch-arm64/syscalls/lseek.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lseek) mov x8, __NR_lseek svc #0 diff --git a/libc/arch-arm64/syscalls/lsetxattr.S b/libc/arch-arm64/syscalls/lsetxattr.S index 8315bba6c..babf02d37 100644 --- a/libc/arch-arm64/syscalls/lsetxattr.S +++ b/libc/arch-arm64/syscalls/lsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lsetxattr) mov x8, __NR_lsetxattr svc #0 diff --git a/libc/arch-arm64/syscalls/madvise.S b/libc/arch-arm64/syscalls/madvise.S index 17282c008..3d393f1d8 100644 --- a/libc/arch-arm64/syscalls/madvise.S +++ b/libc/arch-arm64/syscalls/madvise.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(madvise) mov x8, __NR_madvise svc #0 diff --git a/libc/arch-arm64/syscalls/mincore.S b/libc/arch-arm64/syscalls/mincore.S index abdcf6c20..443257486 100644 --- a/libc/arch-arm64/syscalls/mincore.S +++ b/libc/arch-arm64/syscalls/mincore.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mincore) mov x8, __NR_mincore svc #0 diff --git a/libc/arch-arm64/syscalls/mkdirat.S b/libc/arch-arm64/syscalls/mkdirat.S index d6bafca8c..36c876d87 100644 --- a/libc/arch-arm64/syscalls/mkdirat.S +++ b/libc/arch-arm64/syscalls/mkdirat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mkdirat) mov x8, __NR_mkdirat svc #0 diff --git a/libc/arch-arm64/syscalls/mknodat.S b/libc/arch-arm64/syscalls/mknodat.S index 598e789ed..e0584dba3 100644 --- a/libc/arch-arm64/syscalls/mknodat.S +++ b/libc/arch-arm64/syscalls/mknodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mknodat) mov x8, __NR_mknodat svc #0 diff --git a/libc/arch-arm64/syscalls/mlock.S b/libc/arch-arm64/syscalls/mlock.S index 631ce02a6..10ddb077b 100644 --- a/libc/arch-arm64/syscalls/mlock.S +++ b/libc/arch-arm64/syscalls/mlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlock) mov x8, __NR_mlock svc #0 diff --git a/libc/arch-arm64/syscalls/mlockall.S b/libc/arch-arm64/syscalls/mlockall.S index 42dac9e47..3602d7170 100644 --- a/libc/arch-arm64/syscalls/mlockall.S +++ b/libc/arch-arm64/syscalls/mlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlockall) mov x8, __NR_mlockall svc #0 diff --git a/libc/arch-arm64/syscalls/mmap.S b/libc/arch-arm64/syscalls/mmap.S index da18e1006..e4e39ca69 100644 --- a/libc/arch-arm64/syscalls/mmap.S +++ b/libc/arch-arm64/syscalls/mmap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mmap) mov x8, __NR_mmap svc #0 diff --git a/libc/arch-arm64/syscalls/mount.S b/libc/arch-arm64/syscalls/mount.S index c43a71f1f..9b53754dc 100644 --- a/libc/arch-arm64/syscalls/mount.S +++ b/libc/arch-arm64/syscalls/mount.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mount) mov x8, __NR_mount svc #0 diff --git a/libc/arch-arm64/syscalls/mprotect.S b/libc/arch-arm64/syscalls/mprotect.S index a7d26dd01..788d46e87 100644 --- a/libc/arch-arm64/syscalls/mprotect.S +++ b/libc/arch-arm64/syscalls/mprotect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mprotect) mov x8, __NR_mprotect svc #0 diff --git a/libc/arch-arm64/syscalls/mremap.S b/libc/arch-arm64/syscalls/mremap.S index 337bbae59..861d52a04 100644 --- a/libc/arch-arm64/syscalls/mremap.S +++ b/libc/arch-arm64/syscalls/mremap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mremap) mov x8, __NR_mremap svc #0 diff --git a/libc/arch-arm64/syscalls/msync.S b/libc/arch-arm64/syscalls/msync.S index c54797eab..009ce18e4 100644 --- a/libc/arch-arm64/syscalls/msync.S +++ b/libc/arch-arm64/syscalls/msync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(msync) mov x8, __NR_msync svc #0 diff --git a/libc/arch-arm64/syscalls/munlock.S b/libc/arch-arm64/syscalls/munlock.S index b1ec0165d..45d6d17f8 100644 --- a/libc/arch-arm64/syscalls/munlock.S +++ b/libc/arch-arm64/syscalls/munlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlock) mov x8, __NR_munlock svc #0 diff --git a/libc/arch-arm64/syscalls/munlockall.S b/libc/arch-arm64/syscalls/munlockall.S index f9162a8ba..624062254 100644 --- a/libc/arch-arm64/syscalls/munlockall.S +++ b/libc/arch-arm64/syscalls/munlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlockall) mov x8, __NR_munlockall svc #0 diff --git a/libc/arch-arm64/syscalls/munmap.S b/libc/arch-arm64/syscalls/munmap.S index 6bd5afe67..029126858 100644 --- a/libc/arch-arm64/syscalls/munmap.S +++ b/libc/arch-arm64/syscalls/munmap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munmap) mov x8, __NR_munmap svc #0 diff --git a/libc/arch-arm64/syscalls/nanosleep.S b/libc/arch-arm64/syscalls/nanosleep.S index c84accc26..7496530de 100644 --- a/libc/arch-arm64/syscalls/nanosleep.S +++ b/libc/arch-arm64/syscalls/nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(nanosleep) mov x8, __NR_nanosleep svc #0 diff --git a/libc/arch-arm64/syscalls/personality.S b/libc/arch-arm64/syscalls/personality.S index 02bcf9ba8..1c6530c68 100644 --- a/libc/arch-arm64/syscalls/personality.S +++ b/libc/arch-arm64/syscalls/personality.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(personality) mov x8, __NR_personality svc #0 diff --git a/libc/arch-arm64/syscalls/pipe2.S b/libc/arch-arm64/syscalls/pipe2.S index f4da37d88..45538d35b 100644 --- a/libc/arch-arm64/syscalls/pipe2.S +++ b/libc/arch-arm64/syscalls/pipe2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pipe2) mov x8, __NR_pipe2 svc #0 diff --git a/libc/arch-arm64/syscalls/prctl.S b/libc/arch-arm64/syscalls/prctl.S index 2e6dca77d..ddfe5a61f 100644 --- a/libc/arch-arm64/syscalls/prctl.S +++ b/libc/arch-arm64/syscalls/prctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prctl) mov x8, __NR_prctl svc #0 diff --git a/libc/arch-arm64/syscalls/pread64.S b/libc/arch-arm64/syscalls/pread64.S index 2aba5966a..9c2fb3416 100644 --- a/libc/arch-arm64/syscalls/pread64.S +++ b/libc/arch-arm64/syscalls/pread64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pread64) mov x8, __NR_pread64 svc #0 diff --git a/libc/arch-arm64/syscalls/prlimit64.S b/libc/arch-arm64/syscalls/prlimit64.S index a2173d9c5..d3e07b9a4 100644 --- a/libc/arch-arm64/syscalls/prlimit64.S +++ b/libc/arch-arm64/syscalls/prlimit64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prlimit64) mov x8, __NR_prlimit64 svc #0 diff --git a/libc/arch-arm64/syscalls/pwrite64.S b/libc/arch-arm64/syscalls/pwrite64.S index 5674a7ce1..33ae24b4f 100644 --- a/libc/arch-arm64/syscalls/pwrite64.S +++ b/libc/arch-arm64/syscalls/pwrite64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pwrite64) mov x8, __NR_pwrite64 svc #0 diff --git a/libc/arch-arm64/syscalls/read.S b/libc/arch-arm64/syscalls/read.S index 906fb9826..344039187 100644 --- a/libc/arch-arm64/syscalls/read.S +++ b/libc/arch-arm64/syscalls/read.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(read) mov x8, __NR_read svc #0 diff --git a/libc/arch-arm64/syscalls/readahead.S b/libc/arch-arm64/syscalls/readahead.S index 2994b8334..73683f22f 100644 --- a/libc/arch-arm64/syscalls/readahead.S +++ b/libc/arch-arm64/syscalls/readahead.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readahead) mov x8, __NR_readahead svc #0 diff --git a/libc/arch-arm64/syscalls/readlinkat.S b/libc/arch-arm64/syscalls/readlinkat.S index 1782c9402..1a89d21c3 100644 --- a/libc/arch-arm64/syscalls/readlinkat.S +++ b/libc/arch-arm64/syscalls/readlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readlinkat) mov x8, __NR_readlinkat svc #0 diff --git a/libc/arch-arm64/syscalls/readv.S b/libc/arch-arm64/syscalls/readv.S index bc988d412..b5d154a87 100644 --- a/libc/arch-arm64/syscalls/readv.S +++ b/libc/arch-arm64/syscalls/readv.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readv) mov x8, __NR_readv svc #0 diff --git a/libc/arch-arm64/syscalls/recvfrom.S b/libc/arch-arm64/syscalls/recvfrom.S index 16f97d571..80bc1aa66 100644 --- a/libc/arch-arm64/syscalls/recvfrom.S +++ b/libc/arch-arm64/syscalls/recvfrom.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvfrom) mov x8, __NR_recvfrom svc #0 diff --git a/libc/arch-arm64/syscalls/recvmmsg.S b/libc/arch-arm64/syscalls/recvmmsg.S index bd1495a18..aa69442b5 100644 --- a/libc/arch-arm64/syscalls/recvmmsg.S +++ b/libc/arch-arm64/syscalls/recvmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmmsg) mov x8, __NR_recvmmsg svc #0 diff --git a/libc/arch-arm64/syscalls/recvmsg.S b/libc/arch-arm64/syscalls/recvmsg.S index c9b78c472..095e2aaac 100644 --- a/libc/arch-arm64/syscalls/recvmsg.S +++ b/libc/arch-arm64/syscalls/recvmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmsg) mov x8, __NR_recvmsg svc #0 diff --git a/libc/arch-arm64/syscalls/removexattr.S b/libc/arch-arm64/syscalls/removexattr.S index c12cc84ea..f279f01f5 100644 --- a/libc/arch-arm64/syscalls/removexattr.S +++ b/libc/arch-arm64/syscalls/removexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(removexattr) mov x8, __NR_removexattr svc #0 diff --git a/libc/arch-arm64/syscalls/renameat.S b/libc/arch-arm64/syscalls/renameat.S index cf794728b..7c308cd06 100644 --- a/libc/arch-arm64/syscalls/renameat.S +++ b/libc/arch-arm64/syscalls/renameat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(renameat) mov x8, __NR_renameat svc #0 diff --git a/libc/arch-arm64/syscalls/sched_get_priority_max.S b/libc/arch-arm64/syscalls/sched_get_priority_max.S index 672d0ea8e..e80ce3585 100644 --- a/libc/arch-arm64/syscalls/sched_get_priority_max.S +++ b/libc/arch-arm64/syscalls/sched_get_priority_max.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_max) mov x8, __NR_sched_get_priority_max svc #0 diff --git a/libc/arch-arm64/syscalls/sched_get_priority_min.S b/libc/arch-arm64/syscalls/sched_get_priority_min.S index f5cf1f332..3f5f4870a 100644 --- a/libc/arch-arm64/syscalls/sched_get_priority_min.S +++ b/libc/arch-arm64/syscalls/sched_get_priority_min.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_min) mov x8, __NR_sched_get_priority_min svc #0 diff --git a/libc/arch-arm64/syscalls/sched_getparam.S b/libc/arch-arm64/syscalls/sched_getparam.S index 7ffe8fb30..17568671e 100644 --- a/libc/arch-arm64/syscalls/sched_getparam.S +++ b/libc/arch-arm64/syscalls/sched_getparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getparam) mov x8, __NR_sched_getparam svc #0 diff --git a/libc/arch-arm64/syscalls/sched_getscheduler.S b/libc/arch-arm64/syscalls/sched_getscheduler.S index b69b8c0c3..8fa145f16 100644 --- a/libc/arch-arm64/syscalls/sched_getscheduler.S +++ b/libc/arch-arm64/syscalls/sched_getscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getscheduler) mov x8, __NR_sched_getscheduler svc #0 diff --git a/libc/arch-arm64/syscalls/sched_rr_get_interval.S b/libc/arch-arm64/syscalls/sched_rr_get_interval.S index 0be14ba32..7ff393c10 100644 --- a/libc/arch-arm64/syscalls/sched_rr_get_interval.S +++ b/libc/arch-arm64/syscalls/sched_rr_get_interval.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_rr_get_interval) mov x8, __NR_sched_rr_get_interval svc #0 diff --git a/libc/arch-arm64/syscalls/sched_setaffinity.S b/libc/arch-arm64/syscalls/sched_setaffinity.S index f5cbc7734..287845956 100644 --- a/libc/arch-arm64/syscalls/sched_setaffinity.S +++ b/libc/arch-arm64/syscalls/sched_setaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setaffinity) mov x8, __NR_sched_setaffinity svc #0 diff --git a/libc/arch-arm64/syscalls/sched_setparam.S b/libc/arch-arm64/syscalls/sched_setparam.S index cff64f5c6..413560655 100644 --- a/libc/arch-arm64/syscalls/sched_setparam.S +++ b/libc/arch-arm64/syscalls/sched_setparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setparam) mov x8, __NR_sched_setparam svc #0 diff --git a/libc/arch-arm64/syscalls/sched_setscheduler.S b/libc/arch-arm64/syscalls/sched_setscheduler.S index 31600a05c..e8f991ce9 100644 --- a/libc/arch-arm64/syscalls/sched_setscheduler.S +++ b/libc/arch-arm64/syscalls/sched_setscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setscheduler) mov x8, __NR_sched_setscheduler svc #0 diff --git a/libc/arch-arm64/syscalls/sched_yield.S b/libc/arch-arm64/syscalls/sched_yield.S index 21ad601ab..cd6a97871 100644 --- a/libc/arch-arm64/syscalls/sched_yield.S +++ b/libc/arch-arm64/syscalls/sched_yield.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_yield) mov x8, __NR_sched_yield svc #0 diff --git a/libc/arch-arm64/syscalls/sendfile.S b/libc/arch-arm64/syscalls/sendfile.S index db90caaa5..c5792247a 100644 --- a/libc/arch-arm64/syscalls/sendfile.S +++ b/libc/arch-arm64/syscalls/sendfile.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendfile) mov x8, __NR_sendfile svc #0 diff --git a/libc/arch-arm64/syscalls/sendmmsg.S b/libc/arch-arm64/syscalls/sendmmsg.S index e85798a1b..e9ce811be 100644 --- a/libc/arch-arm64/syscalls/sendmmsg.S +++ b/libc/arch-arm64/syscalls/sendmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmmsg) mov x8, __NR_sendmmsg svc #0 diff --git a/libc/arch-arm64/syscalls/sendmsg.S b/libc/arch-arm64/syscalls/sendmsg.S index 25eff846c..78c5e6837 100644 --- a/libc/arch-arm64/syscalls/sendmsg.S +++ b/libc/arch-arm64/syscalls/sendmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmsg) mov x8, __NR_sendmsg svc #0 diff --git a/libc/arch-arm64/syscalls/sendto.S b/libc/arch-arm64/syscalls/sendto.S index 39e4e4e2d..a3ef95deb 100644 --- a/libc/arch-arm64/syscalls/sendto.S +++ b/libc/arch-arm64/syscalls/sendto.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendto) mov x8, __NR_sendto svc #0 diff --git a/libc/arch-arm64/syscalls/setfsgid.S b/libc/arch-arm64/syscalls/setfsgid.S index d2f29ab76..4d28536e0 100644 --- a/libc/arch-arm64/syscalls/setfsgid.S +++ b/libc/arch-arm64/syscalls/setfsgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsgid) mov x8, __NR_setfsgid svc #0 diff --git a/libc/arch-arm64/syscalls/setfsuid.S b/libc/arch-arm64/syscalls/setfsuid.S index 852f97cbe..238bbf87b 100644 --- a/libc/arch-arm64/syscalls/setfsuid.S +++ b/libc/arch-arm64/syscalls/setfsuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsuid) mov x8, __NR_setfsuid svc #0 diff --git a/libc/arch-arm64/syscalls/setgid.S b/libc/arch-arm64/syscalls/setgid.S index a9789f7c2..182ce1faa 100644 --- a/libc/arch-arm64/syscalls/setgid.S +++ b/libc/arch-arm64/syscalls/setgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgid) mov x8, __NR_setgid svc #0 diff --git a/libc/arch-arm64/syscalls/setgroups.S b/libc/arch-arm64/syscalls/setgroups.S index ce9bf0143..2bc5c7fb5 100644 --- a/libc/arch-arm64/syscalls/setgroups.S +++ b/libc/arch-arm64/syscalls/setgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgroups) mov x8, __NR_setgroups svc #0 diff --git a/libc/arch-arm64/syscalls/setitimer.S b/libc/arch-arm64/syscalls/setitimer.S index d8e3d7e5e..1a5bbb353 100644 --- a/libc/arch-arm64/syscalls/setitimer.S +++ b/libc/arch-arm64/syscalls/setitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setitimer) mov x8, __NR_setitimer svc #0 diff --git a/libc/arch-arm64/syscalls/setns.S b/libc/arch-arm64/syscalls/setns.S index 615f8889c..68c32dad2 100644 --- a/libc/arch-arm64/syscalls/setns.S +++ b/libc/arch-arm64/syscalls/setns.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setns) mov x8, __NR_setns svc #0 diff --git a/libc/arch-arm64/syscalls/setpgid.S b/libc/arch-arm64/syscalls/setpgid.S index 601526467..890d35420 100644 --- a/libc/arch-arm64/syscalls/setpgid.S +++ b/libc/arch-arm64/syscalls/setpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpgid) mov x8, __NR_setpgid svc #0 diff --git a/libc/arch-arm64/syscalls/setpriority.S b/libc/arch-arm64/syscalls/setpriority.S index d2f517eb0..17550ea7e 100644 --- a/libc/arch-arm64/syscalls/setpriority.S +++ b/libc/arch-arm64/syscalls/setpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpriority) mov x8, __NR_setpriority svc #0 diff --git a/libc/arch-arm64/syscalls/setregid.S b/libc/arch-arm64/syscalls/setregid.S index 7b333bfaf..aa351a887 100644 --- a/libc/arch-arm64/syscalls/setregid.S +++ b/libc/arch-arm64/syscalls/setregid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setregid) mov x8, __NR_setregid svc #0 diff --git a/libc/arch-arm64/syscalls/setresgid.S b/libc/arch-arm64/syscalls/setresgid.S index 39504bd64..517e59eba 100644 --- a/libc/arch-arm64/syscalls/setresgid.S +++ b/libc/arch-arm64/syscalls/setresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresgid) mov x8, __NR_setresgid svc #0 diff --git a/libc/arch-arm64/syscalls/setresuid.S b/libc/arch-arm64/syscalls/setresuid.S index 5acbffda1..6829cef33 100644 --- a/libc/arch-arm64/syscalls/setresuid.S +++ b/libc/arch-arm64/syscalls/setresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresuid) mov x8, __NR_setresuid svc #0 diff --git a/libc/arch-arm64/syscalls/setreuid.S b/libc/arch-arm64/syscalls/setreuid.S index 63630d6a8..af342efad 100644 --- a/libc/arch-arm64/syscalls/setreuid.S +++ b/libc/arch-arm64/syscalls/setreuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setreuid) mov x8, __NR_setreuid svc #0 diff --git a/libc/arch-arm64/syscalls/setrlimit.S b/libc/arch-arm64/syscalls/setrlimit.S index f9f56a695..4401984fa 100644 --- a/libc/arch-arm64/syscalls/setrlimit.S +++ b/libc/arch-arm64/syscalls/setrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setrlimit) mov x8, __NR_setrlimit svc #0 diff --git a/libc/arch-arm64/syscalls/setsid.S b/libc/arch-arm64/syscalls/setsid.S index 04c28e310..64c76f221 100644 --- a/libc/arch-arm64/syscalls/setsid.S +++ b/libc/arch-arm64/syscalls/setsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsid) mov x8, __NR_setsid svc #0 diff --git a/libc/arch-arm64/syscalls/setsockopt.S b/libc/arch-arm64/syscalls/setsockopt.S index 0ebc6d0d4..51af8474b 100644 --- a/libc/arch-arm64/syscalls/setsockopt.S +++ b/libc/arch-arm64/syscalls/setsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsockopt) mov x8, __NR_setsockopt svc #0 diff --git a/libc/arch-arm64/syscalls/settimeofday.S b/libc/arch-arm64/syscalls/settimeofday.S index 474e40d7b..357998cd4 100644 --- a/libc/arch-arm64/syscalls/settimeofday.S +++ b/libc/arch-arm64/syscalls/settimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(settimeofday) mov x8, __NR_settimeofday svc #0 diff --git a/libc/arch-arm64/syscalls/setuid.S b/libc/arch-arm64/syscalls/setuid.S index fe52921fb..ad4243487 100644 --- a/libc/arch-arm64/syscalls/setuid.S +++ b/libc/arch-arm64/syscalls/setuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setuid) mov x8, __NR_setuid svc #0 diff --git a/libc/arch-arm64/syscalls/setxattr.S b/libc/arch-arm64/syscalls/setxattr.S index 8d0b4156a..cde2d5f3b 100644 --- a/libc/arch-arm64/syscalls/setxattr.S +++ b/libc/arch-arm64/syscalls/setxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setxattr) mov x8, __NR_setxattr svc #0 diff --git a/libc/arch-arm64/syscalls/shutdown.S b/libc/arch-arm64/syscalls/shutdown.S index e35cdea2d..48136471a 100644 --- a/libc/arch-arm64/syscalls/shutdown.S +++ b/libc/arch-arm64/syscalls/shutdown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(shutdown) mov x8, __NR_shutdown svc #0 diff --git a/libc/arch-arm64/syscalls/sigaltstack.S b/libc/arch-arm64/syscalls/sigaltstack.S index 6a3820306..74f7e50a9 100644 --- a/libc/arch-arm64/syscalls/sigaltstack.S +++ b/libc/arch-arm64/syscalls/sigaltstack.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sigaltstack) mov x8, __NR_sigaltstack svc #0 diff --git a/libc/arch-arm64/syscalls/socketpair.S b/libc/arch-arm64/syscalls/socketpair.S index dcd7223c7..ec2a3d257 100644 --- a/libc/arch-arm64/syscalls/socketpair.S +++ b/libc/arch-arm64/syscalls/socketpair.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(socketpair) mov x8, __NR_socketpair svc #0 diff --git a/libc/arch-arm64/syscalls/splice.S b/libc/arch-arm64/syscalls/splice.S index 103805ac6..30443a861 100644 --- a/libc/arch-arm64/syscalls/splice.S +++ b/libc/arch-arm64/syscalls/splice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(splice) mov x8, __NR_splice svc #0 diff --git a/libc/arch-arm64/syscalls/statfs64.S b/libc/arch-arm64/syscalls/statfs64.S index 55633c193..00b32e79a 100644 --- a/libc/arch-arm64/syscalls/statfs64.S +++ b/libc/arch-arm64/syscalls/statfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(statfs64) mov x8, __NR_statfs svc #0 diff --git a/libc/arch-arm64/syscalls/swapoff.S b/libc/arch-arm64/syscalls/swapoff.S index dcef4afe7..54dabb5a6 100644 --- a/libc/arch-arm64/syscalls/swapoff.S +++ b/libc/arch-arm64/syscalls/swapoff.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapoff) mov x8, __NR_swapoff svc #0 diff --git a/libc/arch-arm64/syscalls/swapon.S b/libc/arch-arm64/syscalls/swapon.S index aef7627a0..952252f4e 100644 --- a/libc/arch-arm64/syscalls/swapon.S +++ b/libc/arch-arm64/syscalls/swapon.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapon) mov x8, __NR_swapon svc #0 diff --git a/libc/arch-arm64/syscalls/symlinkat.S b/libc/arch-arm64/syscalls/symlinkat.S index 9830865cf..27f9334f6 100644 --- a/libc/arch-arm64/syscalls/symlinkat.S +++ b/libc/arch-arm64/syscalls/symlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(symlinkat) mov x8, __NR_symlinkat svc #0 diff --git a/libc/arch-arm64/syscalls/sync.S b/libc/arch-arm64/syscalls/sync.S index 3ef04607d..622b028e4 100644 --- a/libc/arch-arm64/syscalls/sync.S +++ b/libc/arch-arm64/syscalls/sync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sync) mov x8, __NR_sync svc #0 diff --git a/libc/arch-arm64/syscalls/sysinfo.S b/libc/arch-arm64/syscalls/sysinfo.S index 7dbe152ae..81d8a944a 100644 --- a/libc/arch-arm64/syscalls/sysinfo.S +++ b/libc/arch-arm64/syscalls/sysinfo.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sysinfo) mov x8, __NR_sysinfo svc #0 diff --git a/libc/arch-arm64/syscalls/tee.S b/libc/arch-arm64/syscalls/tee.S index d730076f6..cb317aad3 100644 --- a/libc/arch-arm64/syscalls/tee.S +++ b/libc/arch-arm64/syscalls/tee.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tee) mov x8, __NR_tee svc #0 diff --git a/libc/arch-arm64/syscalls/tgkill.S b/libc/arch-arm64/syscalls/tgkill.S index 477c47793..908811db6 100644 --- a/libc/arch-arm64/syscalls/tgkill.S +++ b/libc/arch-arm64/syscalls/tgkill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tgkill) mov x8, __NR_tgkill svc #0 diff --git a/libc/arch-arm64/syscalls/timerfd_create.S b/libc/arch-arm64/syscalls/timerfd_create.S index 83b5910d0..5487492f9 100644 --- a/libc/arch-arm64/syscalls/timerfd_create.S +++ b/libc/arch-arm64/syscalls/timerfd_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_create) mov x8, __NR_timerfd_create svc #0 diff --git a/libc/arch-arm64/syscalls/timerfd_gettime.S b/libc/arch-arm64/syscalls/timerfd_gettime.S index 253cb79b9..1c5151f8a 100644 --- a/libc/arch-arm64/syscalls/timerfd_gettime.S +++ b/libc/arch-arm64/syscalls/timerfd_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_gettime) mov x8, __NR_timerfd_gettime svc #0 diff --git a/libc/arch-arm64/syscalls/timerfd_settime.S b/libc/arch-arm64/syscalls/timerfd_settime.S index 887248177..edd81facd 100644 --- a/libc/arch-arm64/syscalls/timerfd_settime.S +++ b/libc/arch-arm64/syscalls/timerfd_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_settime) mov x8, __NR_timerfd_settime svc #0 diff --git a/libc/arch-arm64/syscalls/times.S b/libc/arch-arm64/syscalls/times.S index 33c7d55c4..554173288 100644 --- a/libc/arch-arm64/syscalls/times.S +++ b/libc/arch-arm64/syscalls/times.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(times) mov x8, __NR_times svc #0 diff --git a/libc/arch-arm64/syscalls/truncate.S b/libc/arch-arm64/syscalls/truncate.S index f15253b97..be5765c43 100644 --- a/libc/arch-arm64/syscalls/truncate.S +++ b/libc/arch-arm64/syscalls/truncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(truncate) mov x8, __NR_truncate svc #0 diff --git a/libc/arch-arm64/syscalls/umask.S b/libc/arch-arm64/syscalls/umask.S index 8b907b4e8..c605b8f3f 100644 --- a/libc/arch-arm64/syscalls/umask.S +++ b/libc/arch-arm64/syscalls/umask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umask) mov x8, __NR_umask svc #0 diff --git a/libc/arch-arm64/syscalls/umount2.S b/libc/arch-arm64/syscalls/umount2.S index 5646dbaa3..73ed3307d 100644 --- a/libc/arch-arm64/syscalls/umount2.S +++ b/libc/arch-arm64/syscalls/umount2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umount2) mov x8, __NR_umount2 svc #0 diff --git a/libc/arch-arm64/syscalls/uname.S b/libc/arch-arm64/syscalls/uname.S index 09ec096ef..4d5219006 100644 --- a/libc/arch-arm64/syscalls/uname.S +++ b/libc/arch-arm64/syscalls/uname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(uname) mov x8, __NR_uname svc #0 diff --git a/libc/arch-arm64/syscalls/unlinkat.S b/libc/arch-arm64/syscalls/unlinkat.S index 992f67557..8fde96e49 100644 --- a/libc/arch-arm64/syscalls/unlinkat.S +++ b/libc/arch-arm64/syscalls/unlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unlinkat) mov x8, __NR_unlinkat svc #0 diff --git a/libc/arch-arm64/syscalls/unshare.S b/libc/arch-arm64/syscalls/unshare.S index 1062dcd58..ba960e228 100644 --- a/libc/arch-arm64/syscalls/unshare.S +++ b/libc/arch-arm64/syscalls/unshare.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unshare) mov x8, __NR_unshare svc #0 diff --git a/libc/arch-arm64/syscalls/utimensat.S b/libc/arch-arm64/syscalls/utimensat.S index 8a25ed630..9e4b1ca43 100644 --- a/libc/arch-arm64/syscalls/utimensat.S +++ b/libc/arch-arm64/syscalls/utimensat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(utimensat) mov x8, __NR_utimensat svc #0 diff --git a/libc/arch-arm64/syscalls/vmsplice.S b/libc/arch-arm64/syscalls/vmsplice.S index b4bec3f1e..6a13c5b64 100644 --- a/libc/arch-arm64/syscalls/vmsplice.S +++ b/libc/arch-arm64/syscalls/vmsplice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(vmsplice) mov x8, __NR_vmsplice svc #0 diff --git a/libc/arch-arm64/syscalls/wait4.S b/libc/arch-arm64/syscalls/wait4.S index a0d5d6270..f2bcd34ec 100644 --- a/libc/arch-arm64/syscalls/wait4.S +++ b/libc/arch-arm64/syscalls/wait4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(wait4) mov x8, __NR_wait4 svc #0 diff --git a/libc/arch-arm64/syscalls/write.S b/libc/arch-arm64/syscalls/write.S index d64552ecf..1fedabe72 100644 --- a/libc/arch-arm64/syscalls/write.S +++ b/libc/arch-arm64/syscalls/write.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(write) mov x8, __NR_write svc #0 diff --git a/libc/arch-arm64/syscalls/writev.S b/libc/arch-arm64/syscalls/writev.S index 45d5c8db3..9942ddb3b 100644 --- a/libc/arch-arm64/syscalls/writev.S +++ b/libc/arch-arm64/syscalls/writev.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(writev) mov x8, __NR_writev svc #0 diff --git a/libc/arch-mips/syscalls/__accept4.S b/libc/arch-mips/syscalls/__accept4.S index 8634a3564..2fc8b2af4 100644 --- a/libc/arch-mips/syscalls/__accept4.S +++ b/libc/arch-mips/syscalls/__accept4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__accept4) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__brk.S b/libc/arch-mips/syscalls/__brk.S index 9325c2608..0593b4fc1 100644 --- a/libc/arch-mips/syscalls/__brk.S +++ b/libc/arch-mips/syscalls/__brk.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__brk) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__connect.S b/libc/arch-mips/syscalls/__connect.S index f7ac916cb..20f60e4a3 100644 --- a/libc/arch-mips/syscalls/__connect.S +++ b/libc/arch-mips/syscalls/__connect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__connect) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__epoll_pwait.S b/libc/arch-mips/syscalls/__epoll_pwait.S index a417cdd6b..3e735f18e 100644 --- a/libc/arch-mips/syscalls/__epoll_pwait.S +++ b/libc/arch-mips/syscalls/__epoll_pwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__epoll_pwait) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__exit.S b/libc/arch-mips/syscalls/__exit.S index 1515b41da..40c2f87d4 100644 --- a/libc/arch-mips/syscalls/__exit.S +++ b/libc/arch-mips/syscalls/__exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__exit) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__fcntl64.S b/libc/arch-mips/syscalls/__fcntl64.S index b9815a1f0..b541edd37 100644 --- a/libc/arch-mips/syscalls/__fcntl64.S +++ b/libc/arch-mips/syscalls/__fcntl64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__fcntl64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__fstatfs64.S b/libc/arch-mips/syscalls/__fstatfs64.S index 8774a530c..d1d68abd0 100644 --- a/libc/arch-mips/syscalls/__fstatfs64.S +++ b/libc/arch-mips/syscalls/__fstatfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__fstatfs64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__getcpu.S b/libc/arch-mips/syscalls/__getcpu.S index 2352e0174..ab3acca36 100644 --- a/libc/arch-mips/syscalls/__getcpu.S +++ b/libc/arch-mips/syscalls/__getcpu.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcpu) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__getcwd.S b/libc/arch-mips/syscalls/__getcwd.S index e844f9a7d..af1c494b7 100644 --- a/libc/arch-mips/syscalls/__getcwd.S +++ b/libc/arch-mips/syscalls/__getcwd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcwd) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__getdents64.S b/libc/arch-mips/syscalls/__getdents64.S index 136b4080e..e88c6df76 100644 --- a/libc/arch-mips/syscalls/__getdents64.S +++ b/libc/arch-mips/syscalls/__getdents64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getdents64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__getpid.S b/libc/arch-mips/syscalls/__getpid.S index 52cf6f426..d20188b94 100644 --- a/libc/arch-mips/syscalls/__getpid.S +++ b/libc/arch-mips/syscalls/__getpid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__getpriority.S b/libc/arch-mips/syscalls/__getpriority.S index 882386b12..bc1efb345 100644 --- a/libc/arch-mips/syscalls/__getpriority.S +++ b/libc/arch-mips/syscalls/__getpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpriority) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__ioctl.S b/libc/arch-mips/syscalls/__ioctl.S index ddf532325..28af834ae 100644 --- a/libc/arch-mips/syscalls/__ioctl.S +++ b/libc/arch-mips/syscalls/__ioctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ioctl) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__llseek.S b/libc/arch-mips/syscalls/__llseek.S index 10819f7a3..81cf45994 100644 --- a/libc/arch-mips/syscalls/__llseek.S +++ b/libc/arch-mips/syscalls/__llseek.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__llseek) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__mmap2.S b/libc/arch-mips/syscalls/__mmap2.S index 53728178f..e6022c382 100644 --- a/libc/arch-mips/syscalls/__mmap2.S +++ b/libc/arch-mips/syscalls/__mmap2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__mmap2) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__openat.S b/libc/arch-mips/syscalls/__openat.S index f833dd878..0482b5abe 100644 --- a/libc/arch-mips/syscalls/__openat.S +++ b/libc/arch-mips/syscalls/__openat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__openat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__ppoll.S b/libc/arch-mips/syscalls/__ppoll.S index a5711d9af..7cd29f68c 100644 --- a/libc/arch-mips/syscalls/__ppoll.S +++ b/libc/arch-mips/syscalls/__ppoll.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ppoll) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__pselect6.S b/libc/arch-mips/syscalls/__pselect6.S index 4c0a0a53e..b4279b86f 100644 --- a/libc/arch-mips/syscalls/__pselect6.S +++ b/libc/arch-mips/syscalls/__pselect6.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__pselect6) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__ptrace.S b/libc/arch-mips/syscalls/__ptrace.S index fcbe5293f..07dcd8fff 100644 --- a/libc/arch-mips/syscalls/__ptrace.S +++ b/libc/arch-mips/syscalls/__ptrace.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ptrace) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__reboot.S b/libc/arch-mips/syscalls/__reboot.S index 4aa0e7a76..3a0a70b70 100644 --- a/libc/arch-mips/syscalls/__reboot.S +++ b/libc/arch-mips/syscalls/__reboot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__reboot) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__rt_sigaction.S b/libc/arch-mips/syscalls/__rt_sigaction.S index 6c5bc37f2..858a241df 100644 --- a/libc/arch-mips/syscalls/__rt_sigaction.S +++ b/libc/arch-mips/syscalls/__rt_sigaction.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigaction) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__rt_sigpending.S b/libc/arch-mips/syscalls/__rt_sigpending.S index e62f07954..484da4fe3 100644 --- a/libc/arch-mips/syscalls/__rt_sigpending.S +++ b/libc/arch-mips/syscalls/__rt_sigpending.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigpending) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__rt_sigprocmask.S b/libc/arch-mips/syscalls/__rt_sigprocmask.S index 94ef493fb..5e61f5273 100644 --- a/libc/arch-mips/syscalls/__rt_sigprocmask.S +++ b/libc/arch-mips/syscalls/__rt_sigprocmask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigprocmask) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__rt_sigsuspend.S b/libc/arch-mips/syscalls/__rt_sigsuspend.S index 077746f7a..d128caa88 100644 --- a/libc/arch-mips/syscalls/__rt_sigsuspend.S +++ b/libc/arch-mips/syscalls/__rt_sigsuspend.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigsuspend) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__rt_sigtimedwait.S b/libc/arch-mips/syscalls/__rt_sigtimedwait.S index 404eab72b..7e70660cb 100644 --- a/libc/arch-mips/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-mips/syscalls/__rt_sigtimedwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigtimedwait) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__sched_getaffinity.S b/libc/arch-mips/syscalls/__sched_getaffinity.S index da7170954..f83b7baf6 100644 --- a/libc/arch-mips/syscalls/__sched_getaffinity.S +++ b/libc/arch-mips/syscalls/__sched_getaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__sched_getaffinity) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__set_tid_address.S b/libc/arch-mips/syscalls/__set_tid_address.S index 146cd0d80..7ec0f635b 100644 --- a/libc/arch-mips/syscalls/__set_tid_address.S +++ b/libc/arch-mips/syscalls/__set_tid_address.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__set_tid_address) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__set_tls.S b/libc/arch-mips/syscalls/__set_tls.S index e5b0ca2e4..bb2fa6dfc 100644 --- a/libc/arch-mips/syscalls/__set_tls.S +++ b/libc/arch-mips/syscalls/__set_tls.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__set_tls) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__sigaction.S b/libc/arch-mips/syscalls/__sigaction.S index 03dd9da0c..03eb58215 100644 --- a/libc/arch-mips/syscalls/__sigaction.S +++ b/libc/arch-mips/syscalls/__sigaction.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__sigaction) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__signalfd4.S b/libc/arch-mips/syscalls/__signalfd4.S index cc9b21259..9b191c2a9 100644 --- a/libc/arch-mips/syscalls/__signalfd4.S +++ b/libc/arch-mips/syscalls/__signalfd4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__signalfd4) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__socket.S b/libc/arch-mips/syscalls/__socket.S index 6508911d2..9e9a926df 100644 --- a/libc/arch-mips/syscalls/__socket.S +++ b/libc/arch-mips/syscalls/__socket.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__socket) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__statfs64.S b/libc/arch-mips/syscalls/__statfs64.S index 9f94e6a28..5017e96a6 100644 --- a/libc/arch-mips/syscalls/__statfs64.S +++ b/libc/arch-mips/syscalls/__statfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__statfs64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__timer_create.S b/libc/arch-mips/syscalls/__timer_create.S index 449bd2837..81cc8c4e5 100644 --- a/libc/arch-mips/syscalls/__timer_create.S +++ b/libc/arch-mips/syscalls/__timer_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_create) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__timer_delete.S b/libc/arch-mips/syscalls/__timer_delete.S index 7bc5e0598..fddb703f6 100644 --- a/libc/arch-mips/syscalls/__timer_delete.S +++ b/libc/arch-mips/syscalls/__timer_delete.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_delete) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__timer_getoverrun.S b/libc/arch-mips/syscalls/__timer_getoverrun.S index 7382c9150..3a7313dcc 100644 --- a/libc/arch-mips/syscalls/__timer_getoverrun.S +++ b/libc/arch-mips/syscalls/__timer_getoverrun.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_getoverrun) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__timer_gettime.S b/libc/arch-mips/syscalls/__timer_gettime.S index d6195b9ba..7b9bed746 100644 --- a/libc/arch-mips/syscalls/__timer_gettime.S +++ b/libc/arch-mips/syscalls/__timer_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_gettime) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__timer_settime.S b/libc/arch-mips/syscalls/__timer_settime.S index 9fbab8625..b1198de03 100644 --- a/libc/arch-mips/syscalls/__timer_settime.S +++ b/libc/arch-mips/syscalls/__timer_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_settime) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/__waitid.S b/libc/arch-mips/syscalls/__waitid.S index 4c9142e84..e60da7f95 100644 --- a/libc/arch-mips/syscalls/__waitid.S +++ b/libc/arch-mips/syscalls/__waitid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__waitid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/_exit.S b/libc/arch-mips/syscalls/_exit.S index f546b66f6..ae1d61f7b 100644 --- a/libc/arch-mips/syscalls/_exit.S +++ b/libc/arch-mips/syscalls/_exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(_exit) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/_flush_cache.S b/libc/arch-mips/syscalls/_flush_cache.S index 64967fe1a..0074578fd 100644 --- a/libc/arch-mips/syscalls/_flush_cache.S +++ b/libc/arch-mips/syscalls/_flush_cache.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(_flush_cache) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/acct.S b/libc/arch-mips/syscalls/acct.S index 6e4a4f21b..29a71198e 100644 --- a/libc/arch-mips/syscalls/acct.S +++ b/libc/arch-mips/syscalls/acct.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(acct) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/bind.S b/libc/arch-mips/syscalls/bind.S index 9119aa852..6d92fd0f3 100644 --- a/libc/arch-mips/syscalls/bind.S +++ b/libc/arch-mips/syscalls/bind.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(bind) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/capget.S b/libc/arch-mips/syscalls/capget.S index 549dc7679..de76fa33f 100644 --- a/libc/arch-mips/syscalls/capget.S +++ b/libc/arch-mips/syscalls/capget.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capget) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/capset.S b/libc/arch-mips/syscalls/capset.S index 637ac374c..77fb3a703 100644 --- a/libc/arch-mips/syscalls/capset.S +++ b/libc/arch-mips/syscalls/capset.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capset) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/chdir.S b/libc/arch-mips/syscalls/chdir.S index 752e4e7de..2668d6994 100644 --- a/libc/arch-mips/syscalls/chdir.S +++ b/libc/arch-mips/syscalls/chdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chdir) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/chroot.S b/libc/arch-mips/syscalls/chroot.S index d1ffc97fe..d804c4f0c 100644 --- a/libc/arch-mips/syscalls/chroot.S +++ b/libc/arch-mips/syscalls/chroot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chroot) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/clock_getres.S b/libc/arch-mips/syscalls/clock_getres.S index 49d9bba7e..5219b32f9 100644 --- a/libc/arch-mips/syscalls/clock_getres.S +++ b/libc/arch-mips/syscalls/clock_getres.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_getres) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/clock_gettime.S b/libc/arch-mips/syscalls/clock_gettime.S index 42929e810..32120b1ab 100644 --- a/libc/arch-mips/syscalls/clock_gettime.S +++ b/libc/arch-mips/syscalls/clock_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_gettime) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/clock_nanosleep.S b/libc/arch-mips/syscalls/clock_nanosleep.S index e7c25cef3..01bab5aa8 100644 --- a/libc/arch-mips/syscalls/clock_nanosleep.S +++ b/libc/arch-mips/syscalls/clock_nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_nanosleep) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/clock_settime.S b/libc/arch-mips/syscalls/clock_settime.S index e7dda913c..6b642a1c1 100644 --- a/libc/arch-mips/syscalls/clock_settime.S +++ b/libc/arch-mips/syscalls/clock_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_settime) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/close.S b/libc/arch-mips/syscalls/close.S index bc2c32588..4e3ab6758 100644 --- a/libc/arch-mips/syscalls/close.S +++ b/libc/arch-mips/syscalls/close.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(close) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/delete_module.S b/libc/arch-mips/syscalls/delete_module.S index 9247f5af6..5c849305d 100644 --- a/libc/arch-mips/syscalls/delete_module.S +++ b/libc/arch-mips/syscalls/delete_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(delete_module) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/dup.S b/libc/arch-mips/syscalls/dup.S index 61b1c03fe..696955365 100644 --- a/libc/arch-mips/syscalls/dup.S +++ b/libc/arch-mips/syscalls/dup.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/dup3.S b/libc/arch-mips/syscalls/dup3.S index d0694e8e6..39e403d5c 100644 --- a/libc/arch-mips/syscalls/dup3.S +++ b/libc/arch-mips/syscalls/dup3.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup3) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/epoll_create1.S b/libc/arch-mips/syscalls/epoll_create1.S index 2043f3982..6feb71597 100644 --- a/libc/arch-mips/syscalls/epoll_create1.S +++ b/libc/arch-mips/syscalls/epoll_create1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_create1) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/epoll_ctl.S b/libc/arch-mips/syscalls/epoll_ctl.S index 9474d3ad4..4517ea18b 100644 --- a/libc/arch-mips/syscalls/epoll_ctl.S +++ b/libc/arch-mips/syscalls/epoll_ctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_ctl) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/eventfd.S b/libc/arch-mips/syscalls/eventfd.S index 5282a914d..167a851b2 100644 --- a/libc/arch-mips/syscalls/eventfd.S +++ b/libc/arch-mips/syscalls/eventfd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(eventfd) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/execve.S b/libc/arch-mips/syscalls/execve.S index fcaec0a9b..e6f3af64e 100644 --- a/libc/arch-mips/syscalls/execve.S +++ b/libc/arch-mips/syscalls/execve.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(execve) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/faccessat.S b/libc/arch-mips/syscalls/faccessat.S index e7afe2ada..3bf7717ce 100644 --- a/libc/arch-mips/syscalls/faccessat.S +++ b/libc/arch-mips/syscalls/faccessat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(faccessat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fallocate64.S b/libc/arch-mips/syscalls/fallocate64.S index d81460695..5395c6fff 100644 --- a/libc/arch-mips/syscalls/fallocate64.S +++ b/libc/arch-mips/syscalls/fallocate64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fallocate64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fchdir.S b/libc/arch-mips/syscalls/fchdir.S index daac0f5d8..4a5c1e3c5 100644 --- a/libc/arch-mips/syscalls/fchdir.S +++ b/libc/arch-mips/syscalls/fchdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchdir) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fchmod.S b/libc/arch-mips/syscalls/fchmod.S index e947e41a1..78dc3f70a 100644 --- a/libc/arch-mips/syscalls/fchmod.S +++ b/libc/arch-mips/syscalls/fchmod.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmod) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fchmodat.S b/libc/arch-mips/syscalls/fchmodat.S index 4d2a7d3a6..ebc3a7449 100644 --- a/libc/arch-mips/syscalls/fchmodat.S +++ b/libc/arch-mips/syscalls/fchmodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmodat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fchown.S b/libc/arch-mips/syscalls/fchown.S index f59c0f4e0..74956e052 100644 --- a/libc/arch-mips/syscalls/fchown.S +++ b/libc/arch-mips/syscalls/fchown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchown) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fchownat.S b/libc/arch-mips/syscalls/fchownat.S index af44cbc3d..54d1fde8c 100644 --- a/libc/arch-mips/syscalls/fchownat.S +++ b/libc/arch-mips/syscalls/fchownat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchownat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fdatasync.S b/libc/arch-mips/syscalls/fdatasync.S index 07e3592b6..f2d1b1fe4 100644 --- a/libc/arch-mips/syscalls/fdatasync.S +++ b/libc/arch-mips/syscalls/fdatasync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fdatasync) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fgetxattr.S b/libc/arch-mips/syscalls/fgetxattr.S index 035e71ca5..096cd9744 100644 --- a/libc/arch-mips/syscalls/fgetxattr.S +++ b/libc/arch-mips/syscalls/fgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fgetxattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/flistxattr.S b/libc/arch-mips/syscalls/flistxattr.S index 500cd9792..b577e5790 100644 --- a/libc/arch-mips/syscalls/flistxattr.S +++ b/libc/arch-mips/syscalls/flistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flistxattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/flock.S b/libc/arch-mips/syscalls/flock.S index 7d843ab39..87e9e0409 100644 --- a/libc/arch-mips/syscalls/flock.S +++ b/libc/arch-mips/syscalls/flock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flock) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fremovexattr.S b/libc/arch-mips/syscalls/fremovexattr.S index 9f161866f..8f7e74efc 100644 --- a/libc/arch-mips/syscalls/fremovexattr.S +++ b/libc/arch-mips/syscalls/fremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fremovexattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fsetxattr.S b/libc/arch-mips/syscalls/fsetxattr.S index 03471288b..e9a3490ea 100644 --- a/libc/arch-mips/syscalls/fsetxattr.S +++ b/libc/arch-mips/syscalls/fsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsetxattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fstat64.S b/libc/arch-mips/syscalls/fstat64.S index 722854115..c6d2a32ae 100644 --- a/libc/arch-mips/syscalls/fstat64.S +++ b/libc/arch-mips/syscalls/fstat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstat64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fstatat64.S b/libc/arch-mips/syscalls/fstatat64.S index b2903f25a..2418b0218 100644 --- a/libc/arch-mips/syscalls/fstatat64.S +++ b/libc/arch-mips/syscalls/fstatat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstatat64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/fsync.S b/libc/arch-mips/syscalls/fsync.S index 96b417df3..c5528dc50 100644 --- a/libc/arch-mips/syscalls/fsync.S +++ b/libc/arch-mips/syscalls/fsync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsync) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/ftruncate.S b/libc/arch-mips/syscalls/ftruncate.S index bd428fb1a..dfd57a9b4 100644 --- a/libc/arch-mips/syscalls/ftruncate.S +++ b/libc/arch-mips/syscalls/ftruncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(ftruncate) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/ftruncate64.S b/libc/arch-mips/syscalls/ftruncate64.S index 357e9a583..a1df9e8a8 100644 --- a/libc/arch-mips/syscalls/ftruncate64.S +++ b/libc/arch-mips/syscalls/ftruncate64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(ftruncate64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getegid.S b/libc/arch-mips/syscalls/getegid.S index c3a3ac0e4..10f102c9a 100644 --- a/libc/arch-mips/syscalls/getegid.S +++ b/libc/arch-mips/syscalls/getegid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getegid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/geteuid.S b/libc/arch-mips/syscalls/geteuid.S index 66e6d4f00..bac3b74d4 100644 --- a/libc/arch-mips/syscalls/geteuid.S +++ b/libc/arch-mips/syscalls/geteuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(geteuid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getgid.S b/libc/arch-mips/syscalls/getgid.S index 674d5271e..a1814bbb5 100644 --- a/libc/arch-mips/syscalls/getgid.S +++ b/libc/arch-mips/syscalls/getgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getgroups.S b/libc/arch-mips/syscalls/getgroups.S index caa031bdf..51ed5234c 100644 --- a/libc/arch-mips/syscalls/getgroups.S +++ b/libc/arch-mips/syscalls/getgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgroups) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getitimer.S b/libc/arch-mips/syscalls/getitimer.S index e7a655a97..1afeee48e 100644 --- a/libc/arch-mips/syscalls/getitimer.S +++ b/libc/arch-mips/syscalls/getitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getitimer) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getpeername.S b/libc/arch-mips/syscalls/getpeername.S index 31df8adbd..b6e5f0797 100644 --- a/libc/arch-mips/syscalls/getpeername.S +++ b/libc/arch-mips/syscalls/getpeername.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpeername) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getpgid.S b/libc/arch-mips/syscalls/getpgid.S index 7e3e4398f..01c6ec593 100644 --- a/libc/arch-mips/syscalls/getpgid.S +++ b/libc/arch-mips/syscalls/getpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpgid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getppid.S b/libc/arch-mips/syscalls/getppid.S index 3d76fc2b1..9ed04c047 100644 --- a/libc/arch-mips/syscalls/getppid.S +++ b/libc/arch-mips/syscalls/getppid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getppid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getresgid.S b/libc/arch-mips/syscalls/getresgid.S index 235902af0..a2e16d4b9 100644 --- a/libc/arch-mips/syscalls/getresgid.S +++ b/libc/arch-mips/syscalls/getresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresgid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getresuid.S b/libc/arch-mips/syscalls/getresuid.S index c6c4c135b..ff162e0fc 100644 --- a/libc/arch-mips/syscalls/getresuid.S +++ b/libc/arch-mips/syscalls/getresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresuid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getrlimit.S b/libc/arch-mips/syscalls/getrlimit.S index ef4ae89ac..1632f4d9e 100644 --- a/libc/arch-mips/syscalls/getrlimit.S +++ b/libc/arch-mips/syscalls/getrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrlimit) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getrusage.S b/libc/arch-mips/syscalls/getrusage.S index 21cabfa34..b9c4207d3 100644 --- a/libc/arch-mips/syscalls/getrusage.S +++ b/libc/arch-mips/syscalls/getrusage.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrusage) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getsid.S b/libc/arch-mips/syscalls/getsid.S index b0b21a0bc..cb56f54da 100644 --- a/libc/arch-mips/syscalls/getsid.S +++ b/libc/arch-mips/syscalls/getsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getsockname.S b/libc/arch-mips/syscalls/getsockname.S index 82d0b831e..f7bff60e2 100644 --- a/libc/arch-mips/syscalls/getsockname.S +++ b/libc/arch-mips/syscalls/getsockname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockname) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getsockopt.S b/libc/arch-mips/syscalls/getsockopt.S index ad360e3df..1490aa325 100644 --- a/libc/arch-mips/syscalls/getsockopt.S +++ b/libc/arch-mips/syscalls/getsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockopt) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/gettimeofday.S b/libc/arch-mips/syscalls/gettimeofday.S index e66fd77d1..a72ced64c 100644 --- a/libc/arch-mips/syscalls/gettimeofday.S +++ b/libc/arch-mips/syscalls/gettimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(gettimeofday) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getuid.S b/libc/arch-mips/syscalls/getuid.S index 345af7181..290a7014f 100644 --- a/libc/arch-mips/syscalls/getuid.S +++ b/libc/arch-mips/syscalls/getuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getuid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/getxattr.S b/libc/arch-mips/syscalls/getxattr.S index c7e215e3f..6ed431651 100644 --- a/libc/arch-mips/syscalls/getxattr.S +++ b/libc/arch-mips/syscalls/getxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getxattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/init_module.S b/libc/arch-mips/syscalls/init_module.S index 21ba5b169..6caf450e5 100644 --- a/libc/arch-mips/syscalls/init_module.S +++ b/libc/arch-mips/syscalls/init_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(init_module) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/inotify_add_watch.S b/libc/arch-mips/syscalls/inotify_add_watch.S index beb70ec5c..8464f8f3a 100644 --- a/libc/arch-mips/syscalls/inotify_add_watch.S +++ b/libc/arch-mips/syscalls/inotify_add_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_add_watch) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/inotify_init1.S b/libc/arch-mips/syscalls/inotify_init1.S index 6c825c60d..b6cb6bc03 100644 --- a/libc/arch-mips/syscalls/inotify_init1.S +++ b/libc/arch-mips/syscalls/inotify_init1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_init1) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/inotify_rm_watch.S b/libc/arch-mips/syscalls/inotify_rm_watch.S index 280f2b43a..87a396a6f 100644 --- a/libc/arch-mips/syscalls/inotify_rm_watch.S +++ b/libc/arch-mips/syscalls/inotify_rm_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_rm_watch) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/kill.S b/libc/arch-mips/syscalls/kill.S index 0941717db..3dda006fb 100644 --- a/libc/arch-mips/syscalls/kill.S +++ b/libc/arch-mips/syscalls/kill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(kill) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/klogctl.S b/libc/arch-mips/syscalls/klogctl.S index ebc88371f..ae9a445d0 100644 --- a/libc/arch-mips/syscalls/klogctl.S +++ b/libc/arch-mips/syscalls/klogctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(klogctl) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/lgetxattr.S b/libc/arch-mips/syscalls/lgetxattr.S index 8c4a25273..63c5add51 100644 --- a/libc/arch-mips/syscalls/lgetxattr.S +++ b/libc/arch-mips/syscalls/lgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lgetxattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/linkat.S b/libc/arch-mips/syscalls/linkat.S index cc7278de0..5bea417f2 100644 --- a/libc/arch-mips/syscalls/linkat.S +++ b/libc/arch-mips/syscalls/linkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(linkat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/listen.S b/libc/arch-mips/syscalls/listen.S index 68eba523a..8d945f5ef 100644 --- a/libc/arch-mips/syscalls/listen.S +++ b/libc/arch-mips/syscalls/listen.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listen) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/listxattr.S b/libc/arch-mips/syscalls/listxattr.S index 006bfcebe..260d0899a 100644 --- a/libc/arch-mips/syscalls/listxattr.S +++ b/libc/arch-mips/syscalls/listxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listxattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/llistxattr.S b/libc/arch-mips/syscalls/llistxattr.S index 7f833ade0..69474d82d 100644 --- a/libc/arch-mips/syscalls/llistxattr.S +++ b/libc/arch-mips/syscalls/llistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(llistxattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/lremovexattr.S b/libc/arch-mips/syscalls/lremovexattr.S index 21d00ea4b..e33f31fd9 100644 --- a/libc/arch-mips/syscalls/lremovexattr.S +++ b/libc/arch-mips/syscalls/lremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lremovexattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/lseek.S b/libc/arch-mips/syscalls/lseek.S index 82c2776dd..21abe1c58 100644 --- a/libc/arch-mips/syscalls/lseek.S +++ b/libc/arch-mips/syscalls/lseek.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lseek) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/lsetxattr.S b/libc/arch-mips/syscalls/lsetxattr.S index d54ec6928..dcd510abe 100644 --- a/libc/arch-mips/syscalls/lsetxattr.S +++ b/libc/arch-mips/syscalls/lsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lsetxattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/madvise.S b/libc/arch-mips/syscalls/madvise.S index 9aa28152d..49c007ade 100644 --- a/libc/arch-mips/syscalls/madvise.S +++ b/libc/arch-mips/syscalls/madvise.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(madvise) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/mincore.S b/libc/arch-mips/syscalls/mincore.S index 0db4313ff..07102a67b 100644 --- a/libc/arch-mips/syscalls/mincore.S +++ b/libc/arch-mips/syscalls/mincore.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mincore) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/mkdirat.S b/libc/arch-mips/syscalls/mkdirat.S index 0ac98d460..96a2d08a8 100644 --- a/libc/arch-mips/syscalls/mkdirat.S +++ b/libc/arch-mips/syscalls/mkdirat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mkdirat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/mknodat.S b/libc/arch-mips/syscalls/mknodat.S index b85d8bfad..a88b9061d 100644 --- a/libc/arch-mips/syscalls/mknodat.S +++ b/libc/arch-mips/syscalls/mknodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mknodat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/mlock.S b/libc/arch-mips/syscalls/mlock.S index 0ba2bca8c..eff66b8f9 100644 --- a/libc/arch-mips/syscalls/mlock.S +++ b/libc/arch-mips/syscalls/mlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlock) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/mlockall.S b/libc/arch-mips/syscalls/mlockall.S index 642c6e296..c31eeafe1 100644 --- a/libc/arch-mips/syscalls/mlockall.S +++ b/libc/arch-mips/syscalls/mlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlockall) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/mount.S b/libc/arch-mips/syscalls/mount.S index f0c5f6bf5..cb1f1d164 100644 --- a/libc/arch-mips/syscalls/mount.S +++ b/libc/arch-mips/syscalls/mount.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mount) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/mprotect.S b/libc/arch-mips/syscalls/mprotect.S index c0ce98869..4e390eb82 100644 --- a/libc/arch-mips/syscalls/mprotect.S +++ b/libc/arch-mips/syscalls/mprotect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mprotect) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/mremap.S b/libc/arch-mips/syscalls/mremap.S index bd4c385ca..7b9a68a48 100644 --- a/libc/arch-mips/syscalls/mremap.S +++ b/libc/arch-mips/syscalls/mremap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mremap) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/msync.S b/libc/arch-mips/syscalls/msync.S index e8ecb2ab5..7b19a830b 100644 --- a/libc/arch-mips/syscalls/msync.S +++ b/libc/arch-mips/syscalls/msync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(msync) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/munlock.S b/libc/arch-mips/syscalls/munlock.S index f8ddc3a6a..17dc7199b 100644 --- a/libc/arch-mips/syscalls/munlock.S +++ b/libc/arch-mips/syscalls/munlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlock) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/munlockall.S b/libc/arch-mips/syscalls/munlockall.S index 5ced5c650..f0dc2d4c4 100644 --- a/libc/arch-mips/syscalls/munlockall.S +++ b/libc/arch-mips/syscalls/munlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlockall) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/munmap.S b/libc/arch-mips/syscalls/munmap.S index 527825c31..dc3a52459 100644 --- a/libc/arch-mips/syscalls/munmap.S +++ b/libc/arch-mips/syscalls/munmap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munmap) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/nanosleep.S b/libc/arch-mips/syscalls/nanosleep.S index 8dc816a9d..fa74288b1 100644 --- a/libc/arch-mips/syscalls/nanosleep.S +++ b/libc/arch-mips/syscalls/nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(nanosleep) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/personality.S b/libc/arch-mips/syscalls/personality.S index e8449a71a..467f2ec70 100644 --- a/libc/arch-mips/syscalls/personality.S +++ b/libc/arch-mips/syscalls/personality.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(personality) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/pipe2.S b/libc/arch-mips/syscalls/pipe2.S index 478d364ba..c50595686 100644 --- a/libc/arch-mips/syscalls/pipe2.S +++ b/libc/arch-mips/syscalls/pipe2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pipe2) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/prctl.S b/libc/arch-mips/syscalls/prctl.S index e9aff3c11..60c18be69 100644 --- a/libc/arch-mips/syscalls/prctl.S +++ b/libc/arch-mips/syscalls/prctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prctl) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/pread64.S b/libc/arch-mips/syscalls/pread64.S index 55a54c6b0..debc55880 100644 --- a/libc/arch-mips/syscalls/pread64.S +++ b/libc/arch-mips/syscalls/pread64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pread64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/prlimit64.S b/libc/arch-mips/syscalls/prlimit64.S index c695d18e8..ce1686f26 100644 --- a/libc/arch-mips/syscalls/prlimit64.S +++ b/libc/arch-mips/syscalls/prlimit64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prlimit64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/pwrite64.S b/libc/arch-mips/syscalls/pwrite64.S index 64d3ee157..b1ff89b4b 100644 --- a/libc/arch-mips/syscalls/pwrite64.S +++ b/libc/arch-mips/syscalls/pwrite64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pwrite64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/read.S b/libc/arch-mips/syscalls/read.S index ff548ab7f..d98c9a691 100644 --- a/libc/arch-mips/syscalls/read.S +++ b/libc/arch-mips/syscalls/read.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(read) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/readahead.S b/libc/arch-mips/syscalls/readahead.S index 674286afa..7dd44730d 100644 --- a/libc/arch-mips/syscalls/readahead.S +++ b/libc/arch-mips/syscalls/readahead.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readahead) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/readlinkat.S b/libc/arch-mips/syscalls/readlinkat.S index a1c7d6b1f..99f07a4c3 100644 --- a/libc/arch-mips/syscalls/readlinkat.S +++ b/libc/arch-mips/syscalls/readlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readlinkat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/readv.S b/libc/arch-mips/syscalls/readv.S index af5a4cb4e..3985c9c6a 100644 --- a/libc/arch-mips/syscalls/readv.S +++ b/libc/arch-mips/syscalls/readv.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readv) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/recvfrom.S b/libc/arch-mips/syscalls/recvfrom.S index 04b04f6da..afda11e4d 100644 --- a/libc/arch-mips/syscalls/recvfrom.S +++ b/libc/arch-mips/syscalls/recvfrom.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvfrom) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/recvmmsg.S b/libc/arch-mips/syscalls/recvmmsg.S index 23e511b0a..1122c014d 100644 --- a/libc/arch-mips/syscalls/recvmmsg.S +++ b/libc/arch-mips/syscalls/recvmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmmsg) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/recvmsg.S b/libc/arch-mips/syscalls/recvmsg.S index a0a3a3ff7..a64606b32 100644 --- a/libc/arch-mips/syscalls/recvmsg.S +++ b/libc/arch-mips/syscalls/recvmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmsg) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/removexattr.S b/libc/arch-mips/syscalls/removexattr.S index 0f72ebf0e..a35616069 100644 --- a/libc/arch-mips/syscalls/removexattr.S +++ b/libc/arch-mips/syscalls/removexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(removexattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/renameat.S b/libc/arch-mips/syscalls/renameat.S index 210b439f6..63de839c6 100644 --- a/libc/arch-mips/syscalls/renameat.S +++ b/libc/arch-mips/syscalls/renameat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(renameat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sched_get_priority_max.S b/libc/arch-mips/syscalls/sched_get_priority_max.S index d15a86830..ea88c0f27 100644 --- a/libc/arch-mips/syscalls/sched_get_priority_max.S +++ b/libc/arch-mips/syscalls/sched_get_priority_max.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_max) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sched_get_priority_min.S b/libc/arch-mips/syscalls/sched_get_priority_min.S index 5ff21c657..032084770 100644 --- a/libc/arch-mips/syscalls/sched_get_priority_min.S +++ b/libc/arch-mips/syscalls/sched_get_priority_min.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_min) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sched_getparam.S b/libc/arch-mips/syscalls/sched_getparam.S index 1cbe72093..4be69b331 100644 --- a/libc/arch-mips/syscalls/sched_getparam.S +++ b/libc/arch-mips/syscalls/sched_getparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getparam) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sched_getscheduler.S b/libc/arch-mips/syscalls/sched_getscheduler.S index 88b16e042..aaf0e9147 100644 --- a/libc/arch-mips/syscalls/sched_getscheduler.S +++ b/libc/arch-mips/syscalls/sched_getscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getscheduler) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sched_rr_get_interval.S b/libc/arch-mips/syscalls/sched_rr_get_interval.S index 647ee3ccf..fcf2bcbb8 100644 --- a/libc/arch-mips/syscalls/sched_rr_get_interval.S +++ b/libc/arch-mips/syscalls/sched_rr_get_interval.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_rr_get_interval) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sched_setaffinity.S b/libc/arch-mips/syscalls/sched_setaffinity.S index 118476693..b9394c53d 100644 --- a/libc/arch-mips/syscalls/sched_setaffinity.S +++ b/libc/arch-mips/syscalls/sched_setaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setaffinity) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sched_setparam.S b/libc/arch-mips/syscalls/sched_setparam.S index 1811c7403..90c82fe69 100644 --- a/libc/arch-mips/syscalls/sched_setparam.S +++ b/libc/arch-mips/syscalls/sched_setparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setparam) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sched_setscheduler.S b/libc/arch-mips/syscalls/sched_setscheduler.S index 8921d3073..05e4e8b05 100644 --- a/libc/arch-mips/syscalls/sched_setscheduler.S +++ b/libc/arch-mips/syscalls/sched_setscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setscheduler) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sched_yield.S b/libc/arch-mips/syscalls/sched_yield.S index 37f09be8a..15565802f 100644 --- a/libc/arch-mips/syscalls/sched_yield.S +++ b/libc/arch-mips/syscalls/sched_yield.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_yield) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sendfile.S b/libc/arch-mips/syscalls/sendfile.S index 84466b95a..eb99d0941 100644 --- a/libc/arch-mips/syscalls/sendfile.S +++ b/libc/arch-mips/syscalls/sendfile.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendfile) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sendfile64.S b/libc/arch-mips/syscalls/sendfile64.S index d9733f60a..1d5c5f095 100644 --- a/libc/arch-mips/syscalls/sendfile64.S +++ b/libc/arch-mips/syscalls/sendfile64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendfile64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sendmmsg.S b/libc/arch-mips/syscalls/sendmmsg.S index d99ba9335..16f37a1eb 100644 --- a/libc/arch-mips/syscalls/sendmmsg.S +++ b/libc/arch-mips/syscalls/sendmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmmsg) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sendmsg.S b/libc/arch-mips/syscalls/sendmsg.S index 5c37c6225..31bb56300 100644 --- a/libc/arch-mips/syscalls/sendmsg.S +++ b/libc/arch-mips/syscalls/sendmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmsg) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sendto.S b/libc/arch-mips/syscalls/sendto.S index 580d14250..2ba696da2 100644 --- a/libc/arch-mips/syscalls/sendto.S +++ b/libc/arch-mips/syscalls/sendto.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendto) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setfsgid.S b/libc/arch-mips/syscalls/setfsgid.S index 6a5956581..81d33d0d3 100644 --- a/libc/arch-mips/syscalls/setfsgid.S +++ b/libc/arch-mips/syscalls/setfsgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsgid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setfsuid.S b/libc/arch-mips/syscalls/setfsuid.S index 1c2317a7b..68890777b 100644 --- a/libc/arch-mips/syscalls/setfsuid.S +++ b/libc/arch-mips/syscalls/setfsuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsuid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setgid.S b/libc/arch-mips/syscalls/setgid.S index 8fa188e22..83649da37 100644 --- a/libc/arch-mips/syscalls/setgid.S +++ b/libc/arch-mips/syscalls/setgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setgroups.S b/libc/arch-mips/syscalls/setgroups.S index f2d271cd0..b98608c48 100644 --- a/libc/arch-mips/syscalls/setgroups.S +++ b/libc/arch-mips/syscalls/setgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgroups) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setitimer.S b/libc/arch-mips/syscalls/setitimer.S index a2eea84cd..dc9a8f389 100644 --- a/libc/arch-mips/syscalls/setitimer.S +++ b/libc/arch-mips/syscalls/setitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setitimer) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setns.S b/libc/arch-mips/syscalls/setns.S index 8a4f6742b..9a4939d03 100644 --- a/libc/arch-mips/syscalls/setns.S +++ b/libc/arch-mips/syscalls/setns.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setns) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setpgid.S b/libc/arch-mips/syscalls/setpgid.S index c68f9a6e2..cbc1ff3d0 100644 --- a/libc/arch-mips/syscalls/setpgid.S +++ b/libc/arch-mips/syscalls/setpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpgid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setpriority.S b/libc/arch-mips/syscalls/setpriority.S index 2bf9f47b3..6b8a504da 100644 --- a/libc/arch-mips/syscalls/setpriority.S +++ b/libc/arch-mips/syscalls/setpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpriority) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setregid.S b/libc/arch-mips/syscalls/setregid.S index de77e3979..6388784de 100644 --- a/libc/arch-mips/syscalls/setregid.S +++ b/libc/arch-mips/syscalls/setregid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setregid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setresgid.S b/libc/arch-mips/syscalls/setresgid.S index b2fd85f97..76968a8c9 100644 --- a/libc/arch-mips/syscalls/setresgid.S +++ b/libc/arch-mips/syscalls/setresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresgid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setresuid.S b/libc/arch-mips/syscalls/setresuid.S index ad9ea9b53..fae15f802 100644 --- a/libc/arch-mips/syscalls/setresuid.S +++ b/libc/arch-mips/syscalls/setresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresuid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setreuid.S b/libc/arch-mips/syscalls/setreuid.S index 888d21913..8350cb718 100644 --- a/libc/arch-mips/syscalls/setreuid.S +++ b/libc/arch-mips/syscalls/setreuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setreuid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setrlimit.S b/libc/arch-mips/syscalls/setrlimit.S index 71b49ac48..d708c2d60 100644 --- a/libc/arch-mips/syscalls/setrlimit.S +++ b/libc/arch-mips/syscalls/setrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setrlimit) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setsid.S b/libc/arch-mips/syscalls/setsid.S index 9467a080c..cb5838d30 100644 --- a/libc/arch-mips/syscalls/setsid.S +++ b/libc/arch-mips/syscalls/setsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setsockopt.S b/libc/arch-mips/syscalls/setsockopt.S index e8dd3f674..da348f112 100644 --- a/libc/arch-mips/syscalls/setsockopt.S +++ b/libc/arch-mips/syscalls/setsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsockopt) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/settimeofday.S b/libc/arch-mips/syscalls/settimeofday.S index b9b588fd0..cd52b406c 100644 --- a/libc/arch-mips/syscalls/settimeofday.S +++ b/libc/arch-mips/syscalls/settimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(settimeofday) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setuid.S b/libc/arch-mips/syscalls/setuid.S index 55c75c1c8..a80ec5cf0 100644 --- a/libc/arch-mips/syscalls/setuid.S +++ b/libc/arch-mips/syscalls/setuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setuid) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/setxattr.S b/libc/arch-mips/syscalls/setxattr.S index 0cca64c17..df7bcdb9d 100644 --- a/libc/arch-mips/syscalls/setxattr.S +++ b/libc/arch-mips/syscalls/setxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setxattr) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/shutdown.S b/libc/arch-mips/syscalls/shutdown.S index f6e997951..71e636661 100644 --- a/libc/arch-mips/syscalls/shutdown.S +++ b/libc/arch-mips/syscalls/shutdown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(shutdown) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sigaltstack.S b/libc/arch-mips/syscalls/sigaltstack.S index 6632164c2..b52c60aa8 100644 --- a/libc/arch-mips/syscalls/sigaltstack.S +++ b/libc/arch-mips/syscalls/sigaltstack.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sigaltstack) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/socketpair.S b/libc/arch-mips/syscalls/socketpair.S index 625732744..47223e14e 100644 --- a/libc/arch-mips/syscalls/socketpair.S +++ b/libc/arch-mips/syscalls/socketpair.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(socketpair) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/splice.S b/libc/arch-mips/syscalls/splice.S index d344a6c9e..611a06292 100644 --- a/libc/arch-mips/syscalls/splice.S +++ b/libc/arch-mips/syscalls/splice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(splice) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/swapoff.S b/libc/arch-mips/syscalls/swapoff.S index 04b5b7095..8b570688d 100644 --- a/libc/arch-mips/syscalls/swapoff.S +++ b/libc/arch-mips/syscalls/swapoff.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapoff) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/swapon.S b/libc/arch-mips/syscalls/swapon.S index 1fe369826..ef3a53754 100644 --- a/libc/arch-mips/syscalls/swapon.S +++ b/libc/arch-mips/syscalls/swapon.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapon) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/symlinkat.S b/libc/arch-mips/syscalls/symlinkat.S index 5bd6e6c2c..65971a973 100644 --- a/libc/arch-mips/syscalls/symlinkat.S +++ b/libc/arch-mips/syscalls/symlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(symlinkat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sync.S b/libc/arch-mips/syscalls/sync.S index eb788f0c9..d62ae768b 100644 --- a/libc/arch-mips/syscalls/sync.S +++ b/libc/arch-mips/syscalls/sync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sync) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/sysinfo.S b/libc/arch-mips/syscalls/sysinfo.S index 7cdccb907..600e086ce 100644 --- a/libc/arch-mips/syscalls/sysinfo.S +++ b/libc/arch-mips/syscalls/sysinfo.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sysinfo) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/tee.S b/libc/arch-mips/syscalls/tee.S index e51732dcf..90ec91180 100644 --- a/libc/arch-mips/syscalls/tee.S +++ b/libc/arch-mips/syscalls/tee.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tee) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/tgkill.S b/libc/arch-mips/syscalls/tgkill.S index 99388433d..39a148b4f 100644 --- a/libc/arch-mips/syscalls/tgkill.S +++ b/libc/arch-mips/syscalls/tgkill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tgkill) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/timerfd_create.S b/libc/arch-mips/syscalls/timerfd_create.S index c42f4e172..b50903a4d 100644 --- a/libc/arch-mips/syscalls/timerfd_create.S +++ b/libc/arch-mips/syscalls/timerfd_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_create) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/timerfd_gettime.S b/libc/arch-mips/syscalls/timerfd_gettime.S index 469d174e2..97d304544 100644 --- a/libc/arch-mips/syscalls/timerfd_gettime.S +++ b/libc/arch-mips/syscalls/timerfd_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_gettime) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/timerfd_settime.S b/libc/arch-mips/syscalls/timerfd_settime.S index c7c6f47fc..1e56f86fb 100644 --- a/libc/arch-mips/syscalls/timerfd_settime.S +++ b/libc/arch-mips/syscalls/timerfd_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_settime) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/times.S b/libc/arch-mips/syscalls/times.S index 157b34cb0..60904d1cd 100644 --- a/libc/arch-mips/syscalls/times.S +++ b/libc/arch-mips/syscalls/times.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(times) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/truncate.S b/libc/arch-mips/syscalls/truncate.S index 7fe4a0fad..ec7bc4989 100644 --- a/libc/arch-mips/syscalls/truncate.S +++ b/libc/arch-mips/syscalls/truncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(truncate) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/truncate64.S b/libc/arch-mips/syscalls/truncate64.S index 0911f5f64..b6a0234ce 100644 --- a/libc/arch-mips/syscalls/truncate64.S +++ b/libc/arch-mips/syscalls/truncate64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(truncate64) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/umask.S b/libc/arch-mips/syscalls/umask.S index 57a6aed9c..8f66e7703 100644 --- a/libc/arch-mips/syscalls/umask.S +++ b/libc/arch-mips/syscalls/umask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umask) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/umount2.S b/libc/arch-mips/syscalls/umount2.S index bf8267dd9..58e31f3ab 100644 --- a/libc/arch-mips/syscalls/umount2.S +++ b/libc/arch-mips/syscalls/umount2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umount2) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/uname.S b/libc/arch-mips/syscalls/uname.S index ce77bd523..401d139e8 100644 --- a/libc/arch-mips/syscalls/uname.S +++ b/libc/arch-mips/syscalls/uname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(uname) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/unlinkat.S b/libc/arch-mips/syscalls/unlinkat.S index 82e584b2b..b6e849d45 100644 --- a/libc/arch-mips/syscalls/unlinkat.S +++ b/libc/arch-mips/syscalls/unlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unlinkat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/unshare.S b/libc/arch-mips/syscalls/unshare.S index 0521f305d..526283208 100644 --- a/libc/arch-mips/syscalls/unshare.S +++ b/libc/arch-mips/syscalls/unshare.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unshare) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/utimensat.S b/libc/arch-mips/syscalls/utimensat.S index 208ef58fd..9ecb5c018 100644 --- a/libc/arch-mips/syscalls/utimensat.S +++ b/libc/arch-mips/syscalls/utimensat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(utimensat) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/vmsplice.S b/libc/arch-mips/syscalls/vmsplice.S index 24da5159e..5ad23a6e9 100644 --- a/libc/arch-mips/syscalls/vmsplice.S +++ b/libc/arch-mips/syscalls/vmsplice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(vmsplice) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/wait4.S b/libc/arch-mips/syscalls/wait4.S index ec6bd84f2..8f8d8795d 100644 --- a/libc/arch-mips/syscalls/wait4.S +++ b/libc/arch-mips/syscalls/wait4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(wait4) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/write.S b/libc/arch-mips/syscalls/write.S index d10e55ae9..3e37919e5 100644 --- a/libc/arch-mips/syscalls/write.S +++ b/libc/arch-mips/syscalls/write.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(write) .set noreorder .cpload t9 diff --git a/libc/arch-mips/syscalls/writev.S b/libc/arch-mips/syscalls/writev.S index 0a2c033fc..72ea2f2c2 100644 --- a/libc/arch-mips/syscalls/writev.S +++ b/libc/arch-mips/syscalls/writev.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(writev) .set noreorder .cpload t9 diff --git a/libc/arch-mips64/syscalls/__accept4.S b/libc/arch-mips64/syscalls/__accept4.S index e68bdb63a..0891d7f11 100644 --- a/libc/arch-mips64/syscalls/__accept4.S +++ b/libc/arch-mips64/syscalls/__accept4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__accept4) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__brk.S b/libc/arch-mips64/syscalls/__brk.S index 99a108ac9..86f390c54 100644 --- a/libc/arch-mips64/syscalls/__brk.S +++ b/libc/arch-mips64/syscalls/__brk.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__brk) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__connect.S b/libc/arch-mips64/syscalls/__connect.S index b1475fb5a..2efbb2a88 100644 --- a/libc/arch-mips64/syscalls/__connect.S +++ b/libc/arch-mips64/syscalls/__connect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__connect) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__epoll_pwait.S b/libc/arch-mips64/syscalls/__epoll_pwait.S index fc3867afb..430d9bbb0 100644 --- a/libc/arch-mips64/syscalls/__epoll_pwait.S +++ b/libc/arch-mips64/syscalls/__epoll_pwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__epoll_pwait) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__exit.S b/libc/arch-mips64/syscalls/__exit.S index dac53b9f5..ebee0d158 100644 --- a/libc/arch-mips64/syscalls/__exit.S +++ b/libc/arch-mips64/syscalls/__exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__exit) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__getcpu.S b/libc/arch-mips64/syscalls/__getcpu.S index 9c08710be..34a8acb5c 100644 --- a/libc/arch-mips64/syscalls/__getcpu.S +++ b/libc/arch-mips64/syscalls/__getcpu.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcpu) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__getcwd.S b/libc/arch-mips64/syscalls/__getcwd.S index 79fbca35f..e7a09a6b2 100644 --- a/libc/arch-mips64/syscalls/__getcwd.S +++ b/libc/arch-mips64/syscalls/__getcwd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcwd) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__getdents64.S b/libc/arch-mips64/syscalls/__getdents64.S index 6df556a21..dc51e7282 100644 --- a/libc/arch-mips64/syscalls/__getdents64.S +++ b/libc/arch-mips64/syscalls/__getdents64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getdents64) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__getpid.S b/libc/arch-mips64/syscalls/__getpid.S index 0977ff023..86b407180 100644 --- a/libc/arch-mips64/syscalls/__getpid.S +++ b/libc/arch-mips64/syscalls/__getpid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__getpriority.S b/libc/arch-mips64/syscalls/__getpriority.S index 6ca2e1f3a..f0c7267bb 100644 --- a/libc/arch-mips64/syscalls/__getpriority.S +++ b/libc/arch-mips64/syscalls/__getpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpriority) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__ioctl.S b/libc/arch-mips64/syscalls/__ioctl.S index 013ce1836..1f94075db 100644 --- a/libc/arch-mips64/syscalls/__ioctl.S +++ b/libc/arch-mips64/syscalls/__ioctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ioctl) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__openat.S b/libc/arch-mips64/syscalls/__openat.S index 1d46ef68a..6cc56daeb 100644 --- a/libc/arch-mips64/syscalls/__openat.S +++ b/libc/arch-mips64/syscalls/__openat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__openat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__ppoll.S b/libc/arch-mips64/syscalls/__ppoll.S index fb0e19a99..ce3a5513e 100644 --- a/libc/arch-mips64/syscalls/__ppoll.S +++ b/libc/arch-mips64/syscalls/__ppoll.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ppoll) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__pselect6.S b/libc/arch-mips64/syscalls/__pselect6.S index 3055b31a0..dbfe79f04 100644 --- a/libc/arch-mips64/syscalls/__pselect6.S +++ b/libc/arch-mips64/syscalls/__pselect6.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__pselect6) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__ptrace.S b/libc/arch-mips64/syscalls/__ptrace.S index bae77334d..e26217fc1 100644 --- a/libc/arch-mips64/syscalls/__ptrace.S +++ b/libc/arch-mips64/syscalls/__ptrace.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ptrace) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__reboot.S b/libc/arch-mips64/syscalls/__reboot.S index 31a97e36a..a4f4e71ff 100644 --- a/libc/arch-mips64/syscalls/__reboot.S +++ b/libc/arch-mips64/syscalls/__reboot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__reboot) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__rt_sigaction.S b/libc/arch-mips64/syscalls/__rt_sigaction.S index 3728c5870..10f359860 100644 --- a/libc/arch-mips64/syscalls/__rt_sigaction.S +++ b/libc/arch-mips64/syscalls/__rt_sigaction.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigaction) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__rt_sigpending.S b/libc/arch-mips64/syscalls/__rt_sigpending.S index e0d40ccaf..7855cca09 100644 --- a/libc/arch-mips64/syscalls/__rt_sigpending.S +++ b/libc/arch-mips64/syscalls/__rt_sigpending.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigpending) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__rt_sigprocmask.S b/libc/arch-mips64/syscalls/__rt_sigprocmask.S index d34a34b61..f1ba2e934 100644 --- a/libc/arch-mips64/syscalls/__rt_sigprocmask.S +++ b/libc/arch-mips64/syscalls/__rt_sigprocmask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigprocmask) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__rt_sigsuspend.S b/libc/arch-mips64/syscalls/__rt_sigsuspend.S index f36e1c339..50ebf5e22 100644 --- a/libc/arch-mips64/syscalls/__rt_sigsuspend.S +++ b/libc/arch-mips64/syscalls/__rt_sigsuspend.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigsuspend) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__rt_sigtimedwait.S b/libc/arch-mips64/syscalls/__rt_sigtimedwait.S index 798d6f85e..304d049d8 100644 --- a/libc/arch-mips64/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-mips64/syscalls/__rt_sigtimedwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigtimedwait) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__sched_getaffinity.S b/libc/arch-mips64/syscalls/__sched_getaffinity.S index a28781575..cf590c37f 100644 --- a/libc/arch-mips64/syscalls/__sched_getaffinity.S +++ b/libc/arch-mips64/syscalls/__sched_getaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__sched_getaffinity) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__set_tid_address.S b/libc/arch-mips64/syscalls/__set_tid_address.S index 8757001e1..d08aa7b7e 100644 --- a/libc/arch-mips64/syscalls/__set_tid_address.S +++ b/libc/arch-mips64/syscalls/__set_tid_address.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__set_tid_address) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__set_tls.S b/libc/arch-mips64/syscalls/__set_tls.S index f1c31b440..430c5fbf2 100644 --- a/libc/arch-mips64/syscalls/__set_tls.S +++ b/libc/arch-mips64/syscalls/__set_tls.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__set_tls) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__signalfd4.S b/libc/arch-mips64/syscalls/__signalfd4.S index c4fe77b53..020013896 100644 --- a/libc/arch-mips64/syscalls/__signalfd4.S +++ b/libc/arch-mips64/syscalls/__signalfd4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__signalfd4) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__socket.S b/libc/arch-mips64/syscalls/__socket.S index d1e0058b2..ac7586ab8 100644 --- a/libc/arch-mips64/syscalls/__socket.S +++ b/libc/arch-mips64/syscalls/__socket.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__socket) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__timer_create.S b/libc/arch-mips64/syscalls/__timer_create.S index 5a4daac14..518207dbe 100644 --- a/libc/arch-mips64/syscalls/__timer_create.S +++ b/libc/arch-mips64/syscalls/__timer_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_create) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__timer_delete.S b/libc/arch-mips64/syscalls/__timer_delete.S index 8bbbdb78a..4db1c8526 100644 --- a/libc/arch-mips64/syscalls/__timer_delete.S +++ b/libc/arch-mips64/syscalls/__timer_delete.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_delete) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__timer_getoverrun.S b/libc/arch-mips64/syscalls/__timer_getoverrun.S index 3bf06ccb4..c5aa40f60 100644 --- a/libc/arch-mips64/syscalls/__timer_getoverrun.S +++ b/libc/arch-mips64/syscalls/__timer_getoverrun.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_getoverrun) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__timer_gettime.S b/libc/arch-mips64/syscalls/__timer_gettime.S index a15ec1770..8bebdd82d 100644 --- a/libc/arch-mips64/syscalls/__timer_gettime.S +++ b/libc/arch-mips64/syscalls/__timer_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_gettime) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__timer_settime.S b/libc/arch-mips64/syscalls/__timer_settime.S index 10e2ca8c4..536c816d9 100644 --- a/libc/arch-mips64/syscalls/__timer_settime.S +++ b/libc/arch-mips64/syscalls/__timer_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_settime) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/__waitid.S b/libc/arch-mips64/syscalls/__waitid.S index 4d971e617..28b99bca1 100644 --- a/libc/arch-mips64/syscalls/__waitid.S +++ b/libc/arch-mips64/syscalls/__waitid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__waitid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/_exit.S b/libc/arch-mips64/syscalls/_exit.S index eb84def8c..370960e82 100644 --- a/libc/arch-mips64/syscalls/_exit.S +++ b/libc/arch-mips64/syscalls/_exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(_exit) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/_flush_cache.S b/libc/arch-mips64/syscalls/_flush_cache.S index 132fd4e40..997ccecb0 100644 --- a/libc/arch-mips64/syscalls/_flush_cache.S +++ b/libc/arch-mips64/syscalls/_flush_cache.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(_flush_cache) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/acct.S b/libc/arch-mips64/syscalls/acct.S index 718587756..70bdd3ec0 100644 --- a/libc/arch-mips64/syscalls/acct.S +++ b/libc/arch-mips64/syscalls/acct.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(acct) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/bind.S b/libc/arch-mips64/syscalls/bind.S index cb28bb45d..fab9b4243 100644 --- a/libc/arch-mips64/syscalls/bind.S +++ b/libc/arch-mips64/syscalls/bind.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(bind) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/capget.S b/libc/arch-mips64/syscalls/capget.S index 068e076eb..6c1a13cc2 100644 --- a/libc/arch-mips64/syscalls/capget.S +++ b/libc/arch-mips64/syscalls/capget.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capget) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/capset.S b/libc/arch-mips64/syscalls/capset.S index f29501bbd..da8e9e6dc 100644 --- a/libc/arch-mips64/syscalls/capset.S +++ b/libc/arch-mips64/syscalls/capset.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capset) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/chdir.S b/libc/arch-mips64/syscalls/chdir.S index c2753bd32..37f8f6923 100644 --- a/libc/arch-mips64/syscalls/chdir.S +++ b/libc/arch-mips64/syscalls/chdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chdir) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/chroot.S b/libc/arch-mips64/syscalls/chroot.S index ca1d4a8dd..7dced37e5 100644 --- a/libc/arch-mips64/syscalls/chroot.S +++ b/libc/arch-mips64/syscalls/chroot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chroot) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/clock_getres.S b/libc/arch-mips64/syscalls/clock_getres.S index e7a8dd3f0..72ad1461a 100644 --- a/libc/arch-mips64/syscalls/clock_getres.S +++ b/libc/arch-mips64/syscalls/clock_getres.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_getres) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/clock_gettime.S b/libc/arch-mips64/syscalls/clock_gettime.S index 4c92a38dc..431e6671f 100644 --- a/libc/arch-mips64/syscalls/clock_gettime.S +++ b/libc/arch-mips64/syscalls/clock_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_gettime) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/clock_nanosleep.S b/libc/arch-mips64/syscalls/clock_nanosleep.S index 29345911c..c0db78118 100644 --- a/libc/arch-mips64/syscalls/clock_nanosleep.S +++ b/libc/arch-mips64/syscalls/clock_nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_nanosleep) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/clock_settime.S b/libc/arch-mips64/syscalls/clock_settime.S index 1969cb69a..c9a4a7950 100644 --- a/libc/arch-mips64/syscalls/clock_settime.S +++ b/libc/arch-mips64/syscalls/clock_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_settime) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/close.S b/libc/arch-mips64/syscalls/close.S index f44600060..ff093e449 100644 --- a/libc/arch-mips64/syscalls/close.S +++ b/libc/arch-mips64/syscalls/close.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(close) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/delete_module.S b/libc/arch-mips64/syscalls/delete_module.S index d24adf875..86c64d614 100644 --- a/libc/arch-mips64/syscalls/delete_module.S +++ b/libc/arch-mips64/syscalls/delete_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(delete_module) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/dup.S b/libc/arch-mips64/syscalls/dup.S index 5d2d7defa..23aa5c01f 100644 --- a/libc/arch-mips64/syscalls/dup.S +++ b/libc/arch-mips64/syscalls/dup.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/dup3.S b/libc/arch-mips64/syscalls/dup3.S index 90f0f89c6..a5392dcb1 100644 --- a/libc/arch-mips64/syscalls/dup3.S +++ b/libc/arch-mips64/syscalls/dup3.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup3) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/epoll_create1.S b/libc/arch-mips64/syscalls/epoll_create1.S index 312887f61..c3219d4bd 100644 --- a/libc/arch-mips64/syscalls/epoll_create1.S +++ b/libc/arch-mips64/syscalls/epoll_create1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_create1) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/epoll_ctl.S b/libc/arch-mips64/syscalls/epoll_ctl.S index 461ad7be3..9b740d02a 100644 --- a/libc/arch-mips64/syscalls/epoll_ctl.S +++ b/libc/arch-mips64/syscalls/epoll_ctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_ctl) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/eventfd.S b/libc/arch-mips64/syscalls/eventfd.S index da8866ee5..ea3a2c687 100644 --- a/libc/arch-mips64/syscalls/eventfd.S +++ b/libc/arch-mips64/syscalls/eventfd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(eventfd) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/execve.S b/libc/arch-mips64/syscalls/execve.S index 3cb49b68e..af2c6d045 100644 --- a/libc/arch-mips64/syscalls/execve.S +++ b/libc/arch-mips64/syscalls/execve.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(execve) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/faccessat.S b/libc/arch-mips64/syscalls/faccessat.S index d06f42046..c8ee9e5bc 100644 --- a/libc/arch-mips64/syscalls/faccessat.S +++ b/libc/arch-mips64/syscalls/faccessat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(faccessat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fallocate.S b/libc/arch-mips64/syscalls/fallocate.S index d1e64b53f..9e7c89e04 100644 --- a/libc/arch-mips64/syscalls/fallocate.S +++ b/libc/arch-mips64/syscalls/fallocate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fallocate) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fchdir.S b/libc/arch-mips64/syscalls/fchdir.S index 0c8ab73d0..780a8a245 100644 --- a/libc/arch-mips64/syscalls/fchdir.S +++ b/libc/arch-mips64/syscalls/fchdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchdir) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fchmod.S b/libc/arch-mips64/syscalls/fchmod.S index 4ebb796ac..b9e7cab54 100644 --- a/libc/arch-mips64/syscalls/fchmod.S +++ b/libc/arch-mips64/syscalls/fchmod.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmod) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fchmodat.S b/libc/arch-mips64/syscalls/fchmodat.S index 48873241a..ff04c8c3c 100644 --- a/libc/arch-mips64/syscalls/fchmodat.S +++ b/libc/arch-mips64/syscalls/fchmodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmodat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fchown.S b/libc/arch-mips64/syscalls/fchown.S index c21c83131..97bd20883 100644 --- a/libc/arch-mips64/syscalls/fchown.S +++ b/libc/arch-mips64/syscalls/fchown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchown) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fchownat.S b/libc/arch-mips64/syscalls/fchownat.S index eba230cfc..0e5635a07 100644 --- a/libc/arch-mips64/syscalls/fchownat.S +++ b/libc/arch-mips64/syscalls/fchownat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchownat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fcntl.S b/libc/arch-mips64/syscalls/fcntl.S index 1f54b0e33..325d9fd6a 100644 --- a/libc/arch-mips64/syscalls/fcntl.S +++ b/libc/arch-mips64/syscalls/fcntl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fcntl) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fdatasync.S b/libc/arch-mips64/syscalls/fdatasync.S index ba1eccc47..8a714c31d 100644 --- a/libc/arch-mips64/syscalls/fdatasync.S +++ b/libc/arch-mips64/syscalls/fdatasync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fdatasync) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fgetxattr.S b/libc/arch-mips64/syscalls/fgetxattr.S index 5b9c8edc4..87a21ce01 100644 --- a/libc/arch-mips64/syscalls/fgetxattr.S +++ b/libc/arch-mips64/syscalls/fgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fgetxattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/flistxattr.S b/libc/arch-mips64/syscalls/flistxattr.S index c0bf93cae..b430931c3 100644 --- a/libc/arch-mips64/syscalls/flistxattr.S +++ b/libc/arch-mips64/syscalls/flistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flistxattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/flock.S b/libc/arch-mips64/syscalls/flock.S index b63f6fcec..bc4c83589 100644 --- a/libc/arch-mips64/syscalls/flock.S +++ b/libc/arch-mips64/syscalls/flock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flock) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fremovexattr.S b/libc/arch-mips64/syscalls/fremovexattr.S index be20d000c..412122385 100644 --- a/libc/arch-mips64/syscalls/fremovexattr.S +++ b/libc/arch-mips64/syscalls/fremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fremovexattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fsetxattr.S b/libc/arch-mips64/syscalls/fsetxattr.S index 92198ceb4..4180bd098 100644 --- a/libc/arch-mips64/syscalls/fsetxattr.S +++ b/libc/arch-mips64/syscalls/fsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsetxattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fstat64.S b/libc/arch-mips64/syscalls/fstat64.S index 078e3dd26..03cbf6922 100644 --- a/libc/arch-mips64/syscalls/fstat64.S +++ b/libc/arch-mips64/syscalls/fstat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstat64) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fstatat64.S b/libc/arch-mips64/syscalls/fstatat64.S index cc38de1f9..55ae243b7 100644 --- a/libc/arch-mips64/syscalls/fstatat64.S +++ b/libc/arch-mips64/syscalls/fstatat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstatat64) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fstatfs64.S b/libc/arch-mips64/syscalls/fstatfs64.S index 3474bc28a..5fb5d95a7 100644 --- a/libc/arch-mips64/syscalls/fstatfs64.S +++ b/libc/arch-mips64/syscalls/fstatfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstatfs64) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/fsync.S b/libc/arch-mips64/syscalls/fsync.S index 3543fef2a..fa5de8752 100644 --- a/libc/arch-mips64/syscalls/fsync.S +++ b/libc/arch-mips64/syscalls/fsync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsync) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/ftruncate.S b/libc/arch-mips64/syscalls/ftruncate.S index cd97b87ca..b605a3725 100644 --- a/libc/arch-mips64/syscalls/ftruncate.S +++ b/libc/arch-mips64/syscalls/ftruncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(ftruncate) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getegid.S b/libc/arch-mips64/syscalls/getegid.S index d6b3d7f93..7ef8fe35c 100644 --- a/libc/arch-mips64/syscalls/getegid.S +++ b/libc/arch-mips64/syscalls/getegid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getegid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/geteuid.S b/libc/arch-mips64/syscalls/geteuid.S index a1d971331..c21f0efd5 100644 --- a/libc/arch-mips64/syscalls/geteuid.S +++ b/libc/arch-mips64/syscalls/geteuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(geteuid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getgid.S b/libc/arch-mips64/syscalls/getgid.S index c89d70905..bd690dcb6 100644 --- a/libc/arch-mips64/syscalls/getgid.S +++ b/libc/arch-mips64/syscalls/getgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getgroups.S b/libc/arch-mips64/syscalls/getgroups.S index 8d9cddb5e..d7aded76b 100644 --- a/libc/arch-mips64/syscalls/getgroups.S +++ b/libc/arch-mips64/syscalls/getgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgroups) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getitimer.S b/libc/arch-mips64/syscalls/getitimer.S index 12dad0314..a438faafd 100644 --- a/libc/arch-mips64/syscalls/getitimer.S +++ b/libc/arch-mips64/syscalls/getitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getitimer) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getpeername.S b/libc/arch-mips64/syscalls/getpeername.S index 278428af9..bf40141fe 100644 --- a/libc/arch-mips64/syscalls/getpeername.S +++ b/libc/arch-mips64/syscalls/getpeername.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpeername) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getpgid.S b/libc/arch-mips64/syscalls/getpgid.S index 56551efab..739a6e2d8 100644 --- a/libc/arch-mips64/syscalls/getpgid.S +++ b/libc/arch-mips64/syscalls/getpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpgid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getppid.S b/libc/arch-mips64/syscalls/getppid.S index 97066f824..e642a7984 100644 --- a/libc/arch-mips64/syscalls/getppid.S +++ b/libc/arch-mips64/syscalls/getppid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getppid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getresgid.S b/libc/arch-mips64/syscalls/getresgid.S index f07fc11a2..d88516f1a 100644 --- a/libc/arch-mips64/syscalls/getresgid.S +++ b/libc/arch-mips64/syscalls/getresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresgid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getresuid.S b/libc/arch-mips64/syscalls/getresuid.S index 4f1ba8652..b43921151 100644 --- a/libc/arch-mips64/syscalls/getresuid.S +++ b/libc/arch-mips64/syscalls/getresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresuid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getrlimit.S b/libc/arch-mips64/syscalls/getrlimit.S index f825db94c..423bc0fa0 100644 --- a/libc/arch-mips64/syscalls/getrlimit.S +++ b/libc/arch-mips64/syscalls/getrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrlimit) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getrusage.S b/libc/arch-mips64/syscalls/getrusage.S index 49f3c4227..9f57b8424 100644 --- a/libc/arch-mips64/syscalls/getrusage.S +++ b/libc/arch-mips64/syscalls/getrusage.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrusage) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getsid.S b/libc/arch-mips64/syscalls/getsid.S index 6fa362c91..125da4ed5 100644 --- a/libc/arch-mips64/syscalls/getsid.S +++ b/libc/arch-mips64/syscalls/getsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getsockname.S b/libc/arch-mips64/syscalls/getsockname.S index 5e16aff25..3481d652c 100644 --- a/libc/arch-mips64/syscalls/getsockname.S +++ b/libc/arch-mips64/syscalls/getsockname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockname) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getsockopt.S b/libc/arch-mips64/syscalls/getsockopt.S index fab05b130..2e9b6d706 100644 --- a/libc/arch-mips64/syscalls/getsockopt.S +++ b/libc/arch-mips64/syscalls/getsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockopt) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/gettimeofday.S b/libc/arch-mips64/syscalls/gettimeofday.S index 07407a49c..9bbbd288e 100644 --- a/libc/arch-mips64/syscalls/gettimeofday.S +++ b/libc/arch-mips64/syscalls/gettimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(gettimeofday) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getuid.S b/libc/arch-mips64/syscalls/getuid.S index 87c16e187..4809a5a55 100644 --- a/libc/arch-mips64/syscalls/getuid.S +++ b/libc/arch-mips64/syscalls/getuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getuid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/getxattr.S b/libc/arch-mips64/syscalls/getxattr.S index b42ca1ea5..7a7a4d4e7 100644 --- a/libc/arch-mips64/syscalls/getxattr.S +++ b/libc/arch-mips64/syscalls/getxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getxattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/init_module.S b/libc/arch-mips64/syscalls/init_module.S index 90fb6b1f1..e46dedceb 100644 --- a/libc/arch-mips64/syscalls/init_module.S +++ b/libc/arch-mips64/syscalls/init_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(init_module) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/inotify_add_watch.S b/libc/arch-mips64/syscalls/inotify_add_watch.S index 17db414e1..4a4fe5f11 100644 --- a/libc/arch-mips64/syscalls/inotify_add_watch.S +++ b/libc/arch-mips64/syscalls/inotify_add_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_add_watch) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/inotify_init1.S b/libc/arch-mips64/syscalls/inotify_init1.S index 356dd2d3d..6ef6021a5 100644 --- a/libc/arch-mips64/syscalls/inotify_init1.S +++ b/libc/arch-mips64/syscalls/inotify_init1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_init1) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/inotify_rm_watch.S b/libc/arch-mips64/syscalls/inotify_rm_watch.S index 4096ca383..10e239a0a 100644 --- a/libc/arch-mips64/syscalls/inotify_rm_watch.S +++ b/libc/arch-mips64/syscalls/inotify_rm_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_rm_watch) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/kill.S b/libc/arch-mips64/syscalls/kill.S index 2d8b45210..f85a3ef8c 100644 --- a/libc/arch-mips64/syscalls/kill.S +++ b/libc/arch-mips64/syscalls/kill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(kill) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/klogctl.S b/libc/arch-mips64/syscalls/klogctl.S index 2f9ca6a8f..8e94b62f3 100644 --- a/libc/arch-mips64/syscalls/klogctl.S +++ b/libc/arch-mips64/syscalls/klogctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(klogctl) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/lgetxattr.S b/libc/arch-mips64/syscalls/lgetxattr.S index f8e57b3e8..c5990ab67 100644 --- a/libc/arch-mips64/syscalls/lgetxattr.S +++ b/libc/arch-mips64/syscalls/lgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lgetxattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/linkat.S b/libc/arch-mips64/syscalls/linkat.S index a866fa6b5..88db867ea 100644 --- a/libc/arch-mips64/syscalls/linkat.S +++ b/libc/arch-mips64/syscalls/linkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(linkat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/listen.S b/libc/arch-mips64/syscalls/listen.S index 0768c72c3..4db878946 100644 --- a/libc/arch-mips64/syscalls/listen.S +++ b/libc/arch-mips64/syscalls/listen.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listen) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/listxattr.S b/libc/arch-mips64/syscalls/listxattr.S index f2c00f6e5..56b13f637 100644 --- a/libc/arch-mips64/syscalls/listxattr.S +++ b/libc/arch-mips64/syscalls/listxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listxattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/llistxattr.S b/libc/arch-mips64/syscalls/llistxattr.S index f324e2c1a..d800f7f46 100644 --- a/libc/arch-mips64/syscalls/llistxattr.S +++ b/libc/arch-mips64/syscalls/llistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(llistxattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/lremovexattr.S b/libc/arch-mips64/syscalls/lremovexattr.S index e44c9d0d9..e05733f2e 100644 --- a/libc/arch-mips64/syscalls/lremovexattr.S +++ b/libc/arch-mips64/syscalls/lremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lremovexattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/lseek.S b/libc/arch-mips64/syscalls/lseek.S index 2858aa857..34533cfe1 100644 --- a/libc/arch-mips64/syscalls/lseek.S +++ b/libc/arch-mips64/syscalls/lseek.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lseek) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/lsetxattr.S b/libc/arch-mips64/syscalls/lsetxattr.S index ed1b4df03..dea6add71 100644 --- a/libc/arch-mips64/syscalls/lsetxattr.S +++ b/libc/arch-mips64/syscalls/lsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lsetxattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/madvise.S b/libc/arch-mips64/syscalls/madvise.S index fe6a828d9..ab174e9ed 100644 --- a/libc/arch-mips64/syscalls/madvise.S +++ b/libc/arch-mips64/syscalls/madvise.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(madvise) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/mincore.S b/libc/arch-mips64/syscalls/mincore.S index 1e0b54455..349d2f6dc 100644 --- a/libc/arch-mips64/syscalls/mincore.S +++ b/libc/arch-mips64/syscalls/mincore.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mincore) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/mkdirat.S b/libc/arch-mips64/syscalls/mkdirat.S index b1c94e1e4..b395ba4ea 100644 --- a/libc/arch-mips64/syscalls/mkdirat.S +++ b/libc/arch-mips64/syscalls/mkdirat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mkdirat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/mknodat.S b/libc/arch-mips64/syscalls/mknodat.S index edbd3b6b4..c13d97942 100644 --- a/libc/arch-mips64/syscalls/mknodat.S +++ b/libc/arch-mips64/syscalls/mknodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mknodat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/mlock.S b/libc/arch-mips64/syscalls/mlock.S index ae599cdc4..82338f3a9 100644 --- a/libc/arch-mips64/syscalls/mlock.S +++ b/libc/arch-mips64/syscalls/mlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlock) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/mlockall.S b/libc/arch-mips64/syscalls/mlockall.S index b214758e5..b34cf81df 100644 --- a/libc/arch-mips64/syscalls/mlockall.S +++ b/libc/arch-mips64/syscalls/mlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlockall) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/mmap.S b/libc/arch-mips64/syscalls/mmap.S index ba6d4fac1..814b745e2 100644 --- a/libc/arch-mips64/syscalls/mmap.S +++ b/libc/arch-mips64/syscalls/mmap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mmap) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/mount.S b/libc/arch-mips64/syscalls/mount.S index 71e08a768..3f42df5fb 100644 --- a/libc/arch-mips64/syscalls/mount.S +++ b/libc/arch-mips64/syscalls/mount.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mount) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/mprotect.S b/libc/arch-mips64/syscalls/mprotect.S index 66ffa1aba..adf9a67c0 100644 --- a/libc/arch-mips64/syscalls/mprotect.S +++ b/libc/arch-mips64/syscalls/mprotect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mprotect) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/mremap.S b/libc/arch-mips64/syscalls/mremap.S index c73320fcd..70c8a8c3c 100644 --- a/libc/arch-mips64/syscalls/mremap.S +++ b/libc/arch-mips64/syscalls/mremap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mremap) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/msync.S b/libc/arch-mips64/syscalls/msync.S index a97cba8ef..dced6e709 100644 --- a/libc/arch-mips64/syscalls/msync.S +++ b/libc/arch-mips64/syscalls/msync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(msync) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/munlock.S b/libc/arch-mips64/syscalls/munlock.S index f5919ae8f..075c0615c 100644 --- a/libc/arch-mips64/syscalls/munlock.S +++ b/libc/arch-mips64/syscalls/munlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlock) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/munlockall.S b/libc/arch-mips64/syscalls/munlockall.S index 39e717c2d..10ff2748e 100644 --- a/libc/arch-mips64/syscalls/munlockall.S +++ b/libc/arch-mips64/syscalls/munlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlockall) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/munmap.S b/libc/arch-mips64/syscalls/munmap.S index c1c9b0146..5d0b0b0d4 100644 --- a/libc/arch-mips64/syscalls/munmap.S +++ b/libc/arch-mips64/syscalls/munmap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munmap) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/nanosleep.S b/libc/arch-mips64/syscalls/nanosleep.S index 6bfd73e8b..a0c7d36ca 100644 --- a/libc/arch-mips64/syscalls/nanosleep.S +++ b/libc/arch-mips64/syscalls/nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(nanosleep) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/personality.S b/libc/arch-mips64/syscalls/personality.S index e2346367a..326cf243f 100644 --- a/libc/arch-mips64/syscalls/personality.S +++ b/libc/arch-mips64/syscalls/personality.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(personality) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/pipe2.S b/libc/arch-mips64/syscalls/pipe2.S index 52d5baaea..8e207acd3 100644 --- a/libc/arch-mips64/syscalls/pipe2.S +++ b/libc/arch-mips64/syscalls/pipe2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pipe2) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/prctl.S b/libc/arch-mips64/syscalls/prctl.S index 01d422eb4..9e805f456 100644 --- a/libc/arch-mips64/syscalls/prctl.S +++ b/libc/arch-mips64/syscalls/prctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prctl) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/pread64.S b/libc/arch-mips64/syscalls/pread64.S index 5ab8389c5..3aa06203d 100644 --- a/libc/arch-mips64/syscalls/pread64.S +++ b/libc/arch-mips64/syscalls/pread64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pread64) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/prlimit64.S b/libc/arch-mips64/syscalls/prlimit64.S index e52ca9254..f767ac17d 100644 --- a/libc/arch-mips64/syscalls/prlimit64.S +++ b/libc/arch-mips64/syscalls/prlimit64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prlimit64) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/pwrite64.S b/libc/arch-mips64/syscalls/pwrite64.S index 8d7a8b5d0..8b3bcc0be 100644 --- a/libc/arch-mips64/syscalls/pwrite64.S +++ b/libc/arch-mips64/syscalls/pwrite64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pwrite64) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/read.S b/libc/arch-mips64/syscalls/read.S index 3f805caf1..ab687d161 100644 --- a/libc/arch-mips64/syscalls/read.S +++ b/libc/arch-mips64/syscalls/read.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(read) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/readahead.S b/libc/arch-mips64/syscalls/readahead.S index 8f5c8c6a2..1d9b15b5e 100644 --- a/libc/arch-mips64/syscalls/readahead.S +++ b/libc/arch-mips64/syscalls/readahead.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readahead) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/readlinkat.S b/libc/arch-mips64/syscalls/readlinkat.S index 1381c229a..24da46bc3 100644 --- a/libc/arch-mips64/syscalls/readlinkat.S +++ b/libc/arch-mips64/syscalls/readlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readlinkat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/readv.S b/libc/arch-mips64/syscalls/readv.S index 9c7afd5e3..6aca131bd 100644 --- a/libc/arch-mips64/syscalls/readv.S +++ b/libc/arch-mips64/syscalls/readv.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readv) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/recvfrom.S b/libc/arch-mips64/syscalls/recvfrom.S index d3911c689..b9fb03779 100644 --- a/libc/arch-mips64/syscalls/recvfrom.S +++ b/libc/arch-mips64/syscalls/recvfrom.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvfrom) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/recvmmsg.S b/libc/arch-mips64/syscalls/recvmmsg.S index fa9fbb296..b187cf097 100644 --- a/libc/arch-mips64/syscalls/recvmmsg.S +++ b/libc/arch-mips64/syscalls/recvmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmmsg) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/recvmsg.S b/libc/arch-mips64/syscalls/recvmsg.S index 21ec51d91..49dbb4845 100644 --- a/libc/arch-mips64/syscalls/recvmsg.S +++ b/libc/arch-mips64/syscalls/recvmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmsg) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/removexattr.S b/libc/arch-mips64/syscalls/removexattr.S index ea3177101..61d6da166 100644 --- a/libc/arch-mips64/syscalls/removexattr.S +++ b/libc/arch-mips64/syscalls/removexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(removexattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/renameat.S b/libc/arch-mips64/syscalls/renameat.S index 074a6a453..f012fadaa 100644 --- a/libc/arch-mips64/syscalls/renameat.S +++ b/libc/arch-mips64/syscalls/renameat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(renameat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sched_get_priority_max.S b/libc/arch-mips64/syscalls/sched_get_priority_max.S index 1b67bbfbe..264545b7e 100644 --- a/libc/arch-mips64/syscalls/sched_get_priority_max.S +++ b/libc/arch-mips64/syscalls/sched_get_priority_max.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_max) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sched_get_priority_min.S b/libc/arch-mips64/syscalls/sched_get_priority_min.S index 2d6875260..4984abf3c 100644 --- a/libc/arch-mips64/syscalls/sched_get_priority_min.S +++ b/libc/arch-mips64/syscalls/sched_get_priority_min.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_min) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sched_getparam.S b/libc/arch-mips64/syscalls/sched_getparam.S index d0b206902..2837fc8d9 100644 --- a/libc/arch-mips64/syscalls/sched_getparam.S +++ b/libc/arch-mips64/syscalls/sched_getparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getparam) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sched_getscheduler.S b/libc/arch-mips64/syscalls/sched_getscheduler.S index f25bde5bf..3f8dbe3a2 100644 --- a/libc/arch-mips64/syscalls/sched_getscheduler.S +++ b/libc/arch-mips64/syscalls/sched_getscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getscheduler) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sched_rr_get_interval.S b/libc/arch-mips64/syscalls/sched_rr_get_interval.S index 48233f857..80ea18e5a 100644 --- a/libc/arch-mips64/syscalls/sched_rr_get_interval.S +++ b/libc/arch-mips64/syscalls/sched_rr_get_interval.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_rr_get_interval) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sched_setaffinity.S b/libc/arch-mips64/syscalls/sched_setaffinity.S index e60486354..843e06f23 100644 --- a/libc/arch-mips64/syscalls/sched_setaffinity.S +++ b/libc/arch-mips64/syscalls/sched_setaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setaffinity) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sched_setparam.S b/libc/arch-mips64/syscalls/sched_setparam.S index b02439f44..78435b199 100644 --- a/libc/arch-mips64/syscalls/sched_setparam.S +++ b/libc/arch-mips64/syscalls/sched_setparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setparam) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sched_setscheduler.S b/libc/arch-mips64/syscalls/sched_setscheduler.S index dda1ce51a..7f78cc737 100644 --- a/libc/arch-mips64/syscalls/sched_setscheduler.S +++ b/libc/arch-mips64/syscalls/sched_setscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setscheduler) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sched_yield.S b/libc/arch-mips64/syscalls/sched_yield.S index 509b029a6..f81b7ef67 100644 --- a/libc/arch-mips64/syscalls/sched_yield.S +++ b/libc/arch-mips64/syscalls/sched_yield.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_yield) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sendfile.S b/libc/arch-mips64/syscalls/sendfile.S index 684a83a47..c3e80de0c 100644 --- a/libc/arch-mips64/syscalls/sendfile.S +++ b/libc/arch-mips64/syscalls/sendfile.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendfile) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sendmmsg.S b/libc/arch-mips64/syscalls/sendmmsg.S index e4d80198f..40efcb671 100644 --- a/libc/arch-mips64/syscalls/sendmmsg.S +++ b/libc/arch-mips64/syscalls/sendmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmmsg) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sendmsg.S b/libc/arch-mips64/syscalls/sendmsg.S index 6983f9a0f..9f9071754 100644 --- a/libc/arch-mips64/syscalls/sendmsg.S +++ b/libc/arch-mips64/syscalls/sendmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmsg) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sendto.S b/libc/arch-mips64/syscalls/sendto.S index cfe774dde..3ebfbae4c 100644 --- a/libc/arch-mips64/syscalls/sendto.S +++ b/libc/arch-mips64/syscalls/sendto.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendto) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setfsgid.S b/libc/arch-mips64/syscalls/setfsgid.S index 7f75ed923..9b360382c 100644 --- a/libc/arch-mips64/syscalls/setfsgid.S +++ b/libc/arch-mips64/syscalls/setfsgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsgid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setfsuid.S b/libc/arch-mips64/syscalls/setfsuid.S index 4cab9d4cb..e42601f39 100644 --- a/libc/arch-mips64/syscalls/setfsuid.S +++ b/libc/arch-mips64/syscalls/setfsuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsuid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setgid.S b/libc/arch-mips64/syscalls/setgid.S index cc8d3abae..7ce85994d 100644 --- a/libc/arch-mips64/syscalls/setgid.S +++ b/libc/arch-mips64/syscalls/setgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setgroups.S b/libc/arch-mips64/syscalls/setgroups.S index 63f2329c7..2724068f4 100644 --- a/libc/arch-mips64/syscalls/setgroups.S +++ b/libc/arch-mips64/syscalls/setgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgroups) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setitimer.S b/libc/arch-mips64/syscalls/setitimer.S index 9ee02dcbc..f5dcff0c6 100644 --- a/libc/arch-mips64/syscalls/setitimer.S +++ b/libc/arch-mips64/syscalls/setitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setitimer) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setns.S b/libc/arch-mips64/syscalls/setns.S index 191a1a031..cbe2e061a 100644 --- a/libc/arch-mips64/syscalls/setns.S +++ b/libc/arch-mips64/syscalls/setns.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setns) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setpgid.S b/libc/arch-mips64/syscalls/setpgid.S index 89721600b..da4453215 100644 --- a/libc/arch-mips64/syscalls/setpgid.S +++ b/libc/arch-mips64/syscalls/setpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpgid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setpriority.S b/libc/arch-mips64/syscalls/setpriority.S index dce3a7652..150a5d4b7 100644 --- a/libc/arch-mips64/syscalls/setpriority.S +++ b/libc/arch-mips64/syscalls/setpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpriority) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setregid.S b/libc/arch-mips64/syscalls/setregid.S index d677b322b..b80115cb4 100644 --- a/libc/arch-mips64/syscalls/setregid.S +++ b/libc/arch-mips64/syscalls/setregid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setregid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setresgid.S b/libc/arch-mips64/syscalls/setresgid.S index 312eb3a35..0fbf302d1 100644 --- a/libc/arch-mips64/syscalls/setresgid.S +++ b/libc/arch-mips64/syscalls/setresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresgid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setresuid.S b/libc/arch-mips64/syscalls/setresuid.S index 4da79d0b5..89af745c3 100644 --- a/libc/arch-mips64/syscalls/setresuid.S +++ b/libc/arch-mips64/syscalls/setresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresuid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setreuid.S b/libc/arch-mips64/syscalls/setreuid.S index 33f6fce5e..797091ff0 100644 --- a/libc/arch-mips64/syscalls/setreuid.S +++ b/libc/arch-mips64/syscalls/setreuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setreuid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setrlimit.S b/libc/arch-mips64/syscalls/setrlimit.S index 3060298d2..034f3dbfb 100644 --- a/libc/arch-mips64/syscalls/setrlimit.S +++ b/libc/arch-mips64/syscalls/setrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setrlimit) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setsid.S b/libc/arch-mips64/syscalls/setsid.S index c8d1ad5db..ef14ebaba 100644 --- a/libc/arch-mips64/syscalls/setsid.S +++ b/libc/arch-mips64/syscalls/setsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setsockopt.S b/libc/arch-mips64/syscalls/setsockopt.S index b40aad185..5c263bdf1 100644 --- a/libc/arch-mips64/syscalls/setsockopt.S +++ b/libc/arch-mips64/syscalls/setsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsockopt) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/settimeofday.S b/libc/arch-mips64/syscalls/settimeofday.S index 2e333f8e3..a73638ff7 100644 --- a/libc/arch-mips64/syscalls/settimeofday.S +++ b/libc/arch-mips64/syscalls/settimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(settimeofday) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setuid.S b/libc/arch-mips64/syscalls/setuid.S index fb8125e10..4321fae0c 100644 --- a/libc/arch-mips64/syscalls/setuid.S +++ b/libc/arch-mips64/syscalls/setuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setuid) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/setxattr.S b/libc/arch-mips64/syscalls/setxattr.S index 04e746d77..58ccb5fdd 100644 --- a/libc/arch-mips64/syscalls/setxattr.S +++ b/libc/arch-mips64/syscalls/setxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setxattr) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/shutdown.S b/libc/arch-mips64/syscalls/shutdown.S index 59f437a0b..cdd6c786f 100644 --- a/libc/arch-mips64/syscalls/shutdown.S +++ b/libc/arch-mips64/syscalls/shutdown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(shutdown) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sigaltstack.S b/libc/arch-mips64/syscalls/sigaltstack.S index 0fbd3a157..a2e663cc8 100644 --- a/libc/arch-mips64/syscalls/sigaltstack.S +++ b/libc/arch-mips64/syscalls/sigaltstack.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sigaltstack) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/socketpair.S b/libc/arch-mips64/syscalls/socketpair.S index fa684d1c8..7be781467 100644 --- a/libc/arch-mips64/syscalls/socketpair.S +++ b/libc/arch-mips64/syscalls/socketpair.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(socketpair) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/splice.S b/libc/arch-mips64/syscalls/splice.S index d6269040a..efee6cd7d 100644 --- a/libc/arch-mips64/syscalls/splice.S +++ b/libc/arch-mips64/syscalls/splice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(splice) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/statfs64.S b/libc/arch-mips64/syscalls/statfs64.S index e835e414d..d3775229d 100644 --- a/libc/arch-mips64/syscalls/statfs64.S +++ b/libc/arch-mips64/syscalls/statfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(statfs64) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/swapoff.S b/libc/arch-mips64/syscalls/swapoff.S index dfaf1854b..b257b1e06 100644 --- a/libc/arch-mips64/syscalls/swapoff.S +++ b/libc/arch-mips64/syscalls/swapoff.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapoff) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/swapon.S b/libc/arch-mips64/syscalls/swapon.S index 8e844c497..e18ff4c26 100644 --- a/libc/arch-mips64/syscalls/swapon.S +++ b/libc/arch-mips64/syscalls/swapon.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapon) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/symlinkat.S b/libc/arch-mips64/syscalls/symlinkat.S index e43d59736..560bf0db8 100644 --- a/libc/arch-mips64/syscalls/symlinkat.S +++ b/libc/arch-mips64/syscalls/symlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(symlinkat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sync.S b/libc/arch-mips64/syscalls/sync.S index ec342a31e..240a6d483 100644 --- a/libc/arch-mips64/syscalls/sync.S +++ b/libc/arch-mips64/syscalls/sync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sync) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/sysinfo.S b/libc/arch-mips64/syscalls/sysinfo.S index 16486fdec..6b07be3e5 100644 --- a/libc/arch-mips64/syscalls/sysinfo.S +++ b/libc/arch-mips64/syscalls/sysinfo.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sysinfo) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/tee.S b/libc/arch-mips64/syscalls/tee.S index 429700c62..0115f714e 100644 --- a/libc/arch-mips64/syscalls/tee.S +++ b/libc/arch-mips64/syscalls/tee.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tee) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/tgkill.S b/libc/arch-mips64/syscalls/tgkill.S index d98d9ae14..bf30a8d7d 100644 --- a/libc/arch-mips64/syscalls/tgkill.S +++ b/libc/arch-mips64/syscalls/tgkill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tgkill) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/timerfd_create.S b/libc/arch-mips64/syscalls/timerfd_create.S index ab8e9e0f9..e65874f60 100644 --- a/libc/arch-mips64/syscalls/timerfd_create.S +++ b/libc/arch-mips64/syscalls/timerfd_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_create) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/timerfd_gettime.S b/libc/arch-mips64/syscalls/timerfd_gettime.S index 2ec7b9c15..a8435986e 100644 --- a/libc/arch-mips64/syscalls/timerfd_gettime.S +++ b/libc/arch-mips64/syscalls/timerfd_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_gettime) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/timerfd_settime.S b/libc/arch-mips64/syscalls/timerfd_settime.S index 0aec09fb6..8c5994f72 100644 --- a/libc/arch-mips64/syscalls/timerfd_settime.S +++ b/libc/arch-mips64/syscalls/timerfd_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_settime) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/times.S b/libc/arch-mips64/syscalls/times.S index 2457e0c62..ff504e715 100644 --- a/libc/arch-mips64/syscalls/times.S +++ b/libc/arch-mips64/syscalls/times.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(times) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/truncate.S b/libc/arch-mips64/syscalls/truncate.S index a0cbe5141..3fc06a2a1 100644 --- a/libc/arch-mips64/syscalls/truncate.S +++ b/libc/arch-mips64/syscalls/truncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(truncate) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/umask.S b/libc/arch-mips64/syscalls/umask.S index 33624d212..9e6c910fe 100644 --- a/libc/arch-mips64/syscalls/umask.S +++ b/libc/arch-mips64/syscalls/umask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umask) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/umount2.S b/libc/arch-mips64/syscalls/umount2.S index 6193459fc..f8d19966f 100644 --- a/libc/arch-mips64/syscalls/umount2.S +++ b/libc/arch-mips64/syscalls/umount2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umount2) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/uname.S b/libc/arch-mips64/syscalls/uname.S index df50f4599..ce93f08ff 100644 --- a/libc/arch-mips64/syscalls/uname.S +++ b/libc/arch-mips64/syscalls/uname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(uname) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/unlinkat.S b/libc/arch-mips64/syscalls/unlinkat.S index 29d44427e..870e8d7a5 100644 --- a/libc/arch-mips64/syscalls/unlinkat.S +++ b/libc/arch-mips64/syscalls/unlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unlinkat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/unshare.S b/libc/arch-mips64/syscalls/unshare.S index 6d8fbf3d0..231c29adc 100644 --- a/libc/arch-mips64/syscalls/unshare.S +++ b/libc/arch-mips64/syscalls/unshare.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unshare) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/utimensat.S b/libc/arch-mips64/syscalls/utimensat.S index 654b8a454..4b4243e0e 100644 --- a/libc/arch-mips64/syscalls/utimensat.S +++ b/libc/arch-mips64/syscalls/utimensat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(utimensat) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/vmsplice.S b/libc/arch-mips64/syscalls/vmsplice.S index aa03585d0..f85400419 100644 --- a/libc/arch-mips64/syscalls/vmsplice.S +++ b/libc/arch-mips64/syscalls/vmsplice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(vmsplice) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/wait4.S b/libc/arch-mips64/syscalls/wait4.S index e3755b58e..2d2b4876f 100644 --- a/libc/arch-mips64/syscalls/wait4.S +++ b/libc/arch-mips64/syscalls/wait4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(wait4) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/write.S b/libc/arch-mips64/syscalls/write.S index ce7f70232..f603fb541 100644 --- a/libc/arch-mips64/syscalls/write.S +++ b/libc/arch-mips64/syscalls/write.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(write) .set push .set noreorder diff --git a/libc/arch-mips64/syscalls/writev.S b/libc/arch-mips64/syscalls/writev.S index e2c7875eb..032e749d3 100644 --- a/libc/arch-mips64/syscalls/writev.S +++ b/libc/arch-mips64/syscalls/writev.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(writev) .set push .set noreorder diff --git a/libc/arch-x86/syscalls/__accept4.S b/libc/arch-x86/syscalls/__accept4.S index 2d9cc423c..c28f211ff 100644 --- a/libc/arch-x86/syscalls/__accept4.S +++ b/libc/arch-x86/syscalls/__accept4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__accept4) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__brk.S b/libc/arch-x86/syscalls/__brk.S index 632dfcf7a..c5702cfec 100644 --- a/libc/arch-x86/syscalls/__brk.S +++ b/libc/arch-x86/syscalls/__brk.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__brk) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__connect.S b/libc/arch-x86/syscalls/__connect.S index 5ee4fbf7f..4f845b734 100644 --- a/libc/arch-x86/syscalls/__connect.S +++ b/libc/arch-x86/syscalls/__connect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__connect) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__epoll_pwait.S b/libc/arch-x86/syscalls/__epoll_pwait.S index 641ca6d63..c7acb2b83 100644 --- a/libc/arch-x86/syscalls/__epoll_pwait.S +++ b/libc/arch-x86/syscalls/__epoll_pwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__epoll_pwait) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__exit.S b/libc/arch-x86/syscalls/__exit.S index 8578f56c5..bf76e0479 100644 --- a/libc/arch-x86/syscalls/__exit.S +++ b/libc/arch-x86/syscalls/__exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__exit) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__fcntl64.S b/libc/arch-x86/syscalls/__fcntl64.S index ef58d15e7..7c41c8858 100644 --- a/libc/arch-x86/syscalls/__fcntl64.S +++ b/libc/arch-x86/syscalls/__fcntl64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__fcntl64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__fstatfs64.S b/libc/arch-x86/syscalls/__fstatfs64.S index 0ca33606a..b182ae368 100644 --- a/libc/arch-x86/syscalls/__fstatfs64.S +++ b/libc/arch-x86/syscalls/__fstatfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__fstatfs64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__getcpu.S b/libc/arch-x86/syscalls/__getcpu.S index b181877f8..4cdbafac6 100644 --- a/libc/arch-x86/syscalls/__getcpu.S +++ b/libc/arch-x86/syscalls/__getcpu.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcpu) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__getcwd.S b/libc/arch-x86/syscalls/__getcwd.S index b71ba0de1..f5b9b9c71 100644 --- a/libc/arch-x86/syscalls/__getcwd.S +++ b/libc/arch-x86/syscalls/__getcwd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcwd) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__getdents64.S b/libc/arch-x86/syscalls/__getdents64.S index 3fc8719eb..0ff217d17 100644 --- a/libc/arch-x86/syscalls/__getdents64.S +++ b/libc/arch-x86/syscalls/__getdents64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getdents64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__getpid.S b/libc/arch-x86/syscalls/__getpid.S index f138d2f88..6a3602ebd 100644 --- a/libc/arch-x86/syscalls/__getpid.S +++ b/libc/arch-x86/syscalls/__getpid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpid) movl $__NR_getpid, %eax int $0x80 diff --git a/libc/arch-x86/syscalls/__getpriority.S b/libc/arch-x86/syscalls/__getpriority.S index 103431d26..6a94f4381 100644 --- a/libc/arch-x86/syscalls/__getpriority.S +++ b/libc/arch-x86/syscalls/__getpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpriority) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__ioctl.S b/libc/arch-x86/syscalls/__ioctl.S index 99d2d2c76..edb990a04 100644 --- a/libc/arch-x86/syscalls/__ioctl.S +++ b/libc/arch-x86/syscalls/__ioctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ioctl) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__llseek.S b/libc/arch-x86/syscalls/__llseek.S index 0cdb98aa1..db3910643 100644 --- a/libc/arch-x86/syscalls/__llseek.S +++ b/libc/arch-x86/syscalls/__llseek.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__llseek) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__mmap2.S b/libc/arch-x86/syscalls/__mmap2.S index 47131efee..5c8f2a31d 100644 --- a/libc/arch-x86/syscalls/__mmap2.S +++ b/libc/arch-x86/syscalls/__mmap2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__mmap2) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__openat.S b/libc/arch-x86/syscalls/__openat.S index aec10e585..87687e569 100644 --- a/libc/arch-x86/syscalls/__openat.S +++ b/libc/arch-x86/syscalls/__openat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__openat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__ppoll.S b/libc/arch-x86/syscalls/__ppoll.S index 92197b73c..e48f84123 100644 --- a/libc/arch-x86/syscalls/__ppoll.S +++ b/libc/arch-x86/syscalls/__ppoll.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ppoll) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__pselect6.S b/libc/arch-x86/syscalls/__pselect6.S index 38402f02d..53edb8ca1 100644 --- a/libc/arch-x86/syscalls/__pselect6.S +++ b/libc/arch-x86/syscalls/__pselect6.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__pselect6) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__ptrace.S b/libc/arch-x86/syscalls/__ptrace.S index cea5847fe..9d1e460ed 100644 --- a/libc/arch-x86/syscalls/__ptrace.S +++ b/libc/arch-x86/syscalls/__ptrace.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ptrace) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__reboot.S b/libc/arch-x86/syscalls/__reboot.S index 454699421..3ef78bb08 100644 --- a/libc/arch-x86/syscalls/__reboot.S +++ b/libc/arch-x86/syscalls/__reboot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__reboot) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__rt_sigaction.S b/libc/arch-x86/syscalls/__rt_sigaction.S index bfbe5baa4..1ce7ef96b 100644 --- a/libc/arch-x86/syscalls/__rt_sigaction.S +++ b/libc/arch-x86/syscalls/__rt_sigaction.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigaction) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__rt_sigpending.S b/libc/arch-x86/syscalls/__rt_sigpending.S index dac478a64..a4cb3c1ec 100644 --- a/libc/arch-x86/syscalls/__rt_sigpending.S +++ b/libc/arch-x86/syscalls/__rt_sigpending.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigpending) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__rt_sigprocmask.S b/libc/arch-x86/syscalls/__rt_sigprocmask.S index f1123603b..9d8e90d0a 100644 --- a/libc/arch-x86/syscalls/__rt_sigprocmask.S +++ b/libc/arch-x86/syscalls/__rt_sigprocmask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigprocmask) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__rt_sigsuspend.S b/libc/arch-x86/syscalls/__rt_sigsuspend.S index ef505c097..e0d0c3dd1 100644 --- a/libc/arch-x86/syscalls/__rt_sigsuspend.S +++ b/libc/arch-x86/syscalls/__rt_sigsuspend.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigsuspend) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__rt_sigtimedwait.S b/libc/arch-x86/syscalls/__rt_sigtimedwait.S index d19c7dbdb..091c1a721 100644 --- a/libc/arch-x86/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-x86/syscalls/__rt_sigtimedwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigtimedwait) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__sched_getaffinity.S b/libc/arch-x86/syscalls/__sched_getaffinity.S index e7cb8f1c5..2c278db3d 100644 --- a/libc/arch-x86/syscalls/__sched_getaffinity.S +++ b/libc/arch-x86/syscalls/__sched_getaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__sched_getaffinity) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__set_thread_area.S b/libc/arch-x86/syscalls/__set_thread_area.S index dda23a0d0..29e12388d 100644 --- a/libc/arch-x86/syscalls/__set_thread_area.S +++ b/libc/arch-x86/syscalls/__set_thread_area.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__set_thread_area) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__set_tid_address.S b/libc/arch-x86/syscalls/__set_tid_address.S index 1566d9a3e..35174427f 100644 --- a/libc/arch-x86/syscalls/__set_tid_address.S +++ b/libc/arch-x86/syscalls/__set_tid_address.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__set_tid_address) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__sigaction.S b/libc/arch-x86/syscalls/__sigaction.S index f1a51d2eb..0a3e77e10 100644 --- a/libc/arch-x86/syscalls/__sigaction.S +++ b/libc/arch-x86/syscalls/__sigaction.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__sigaction) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__signalfd4.S b/libc/arch-x86/syscalls/__signalfd4.S index 335e20627..acfced5c9 100644 --- a/libc/arch-x86/syscalls/__signalfd4.S +++ b/libc/arch-x86/syscalls/__signalfd4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__signalfd4) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__socket.S b/libc/arch-x86/syscalls/__socket.S index 368680f36..59988f3d0 100644 --- a/libc/arch-x86/syscalls/__socket.S +++ b/libc/arch-x86/syscalls/__socket.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__socket) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__statfs64.S b/libc/arch-x86/syscalls/__statfs64.S index 6bb9d993c..63d866e87 100644 --- a/libc/arch-x86/syscalls/__statfs64.S +++ b/libc/arch-x86/syscalls/__statfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__statfs64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__timer_create.S b/libc/arch-x86/syscalls/__timer_create.S index 3d28ae90b..1265aa662 100644 --- a/libc/arch-x86/syscalls/__timer_create.S +++ b/libc/arch-x86/syscalls/__timer_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_create) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__timer_delete.S b/libc/arch-x86/syscalls/__timer_delete.S index 7d64d6d44..bc1fbc570 100644 --- a/libc/arch-x86/syscalls/__timer_delete.S +++ b/libc/arch-x86/syscalls/__timer_delete.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_delete) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__timer_getoverrun.S b/libc/arch-x86/syscalls/__timer_getoverrun.S index cb3776533..2a8de1e51 100644 --- a/libc/arch-x86/syscalls/__timer_getoverrun.S +++ b/libc/arch-x86/syscalls/__timer_getoverrun.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_getoverrun) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__timer_gettime.S b/libc/arch-x86/syscalls/__timer_gettime.S index 5c43f4a10..9edd15a13 100644 --- a/libc/arch-x86/syscalls/__timer_gettime.S +++ b/libc/arch-x86/syscalls/__timer_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_gettime) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__timer_settime.S b/libc/arch-x86/syscalls/__timer_settime.S index da7c58715..4bb0790b9 100644 --- a/libc/arch-x86/syscalls/__timer_settime.S +++ b/libc/arch-x86/syscalls/__timer_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_settime) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/__waitid.S b/libc/arch-x86/syscalls/__waitid.S index 7e3ecdd9f..331baf561 100644 --- a/libc/arch-x86/syscalls/__waitid.S +++ b/libc/arch-x86/syscalls/__waitid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__waitid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/_exit.S b/libc/arch-x86/syscalls/_exit.S index 36e884a6a..0da6e7986 100644 --- a/libc/arch-x86/syscalls/_exit.S +++ b/libc/arch-x86/syscalls/_exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(_exit) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/acct.S b/libc/arch-x86/syscalls/acct.S index a0361145b..34a23a46e 100644 --- a/libc/arch-x86/syscalls/acct.S +++ b/libc/arch-x86/syscalls/acct.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(acct) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/bind.S b/libc/arch-x86/syscalls/bind.S index ab5a29e7e..1d4531906 100644 --- a/libc/arch-x86/syscalls/bind.S +++ b/libc/arch-x86/syscalls/bind.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(bind) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/capget.S b/libc/arch-x86/syscalls/capget.S index 5441e4906..82b5b73df 100644 --- a/libc/arch-x86/syscalls/capget.S +++ b/libc/arch-x86/syscalls/capget.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capget) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/capset.S b/libc/arch-x86/syscalls/capset.S index d04e4119e..79e874796 100644 --- a/libc/arch-x86/syscalls/capset.S +++ b/libc/arch-x86/syscalls/capset.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capset) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/chdir.S b/libc/arch-x86/syscalls/chdir.S index d32a0bdef..98bdf37ea 100644 --- a/libc/arch-x86/syscalls/chdir.S +++ b/libc/arch-x86/syscalls/chdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chdir) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/chroot.S b/libc/arch-x86/syscalls/chroot.S index 63d7e00ab..978eec7d6 100644 --- a/libc/arch-x86/syscalls/chroot.S +++ b/libc/arch-x86/syscalls/chroot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chroot) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/clock_getres.S b/libc/arch-x86/syscalls/clock_getres.S index 321299c35..c93a27927 100644 --- a/libc/arch-x86/syscalls/clock_getres.S +++ b/libc/arch-x86/syscalls/clock_getres.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_getres) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/clock_gettime.S b/libc/arch-x86/syscalls/clock_gettime.S index 54f769aff..9c5c2407e 100644 --- a/libc/arch-x86/syscalls/clock_gettime.S +++ b/libc/arch-x86/syscalls/clock_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_gettime) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/clock_nanosleep.S b/libc/arch-x86/syscalls/clock_nanosleep.S index ca961c0ea..edadec219 100644 --- a/libc/arch-x86/syscalls/clock_nanosleep.S +++ b/libc/arch-x86/syscalls/clock_nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_nanosleep) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/clock_settime.S b/libc/arch-x86/syscalls/clock_settime.S index ab8c43e7a..41012d0af 100644 --- a/libc/arch-x86/syscalls/clock_settime.S +++ b/libc/arch-x86/syscalls/clock_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_settime) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/close.S b/libc/arch-x86/syscalls/close.S index 0b3e73ab7..b73c4b400 100644 --- a/libc/arch-x86/syscalls/close.S +++ b/libc/arch-x86/syscalls/close.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(close) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/delete_module.S b/libc/arch-x86/syscalls/delete_module.S index 757c8c1b9..73a51283d 100644 --- a/libc/arch-x86/syscalls/delete_module.S +++ b/libc/arch-x86/syscalls/delete_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(delete_module) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/dup.S b/libc/arch-x86/syscalls/dup.S index 64e1538e5..f8e8772b5 100644 --- a/libc/arch-x86/syscalls/dup.S +++ b/libc/arch-x86/syscalls/dup.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/dup3.S b/libc/arch-x86/syscalls/dup3.S index a0ecd1942..1203e6453 100644 --- a/libc/arch-x86/syscalls/dup3.S +++ b/libc/arch-x86/syscalls/dup3.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup3) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/epoll_create1.S b/libc/arch-x86/syscalls/epoll_create1.S index 5b6a1baa2..6384b926b 100644 --- a/libc/arch-x86/syscalls/epoll_create1.S +++ b/libc/arch-x86/syscalls/epoll_create1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_create1) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/epoll_ctl.S b/libc/arch-x86/syscalls/epoll_ctl.S index 3fd8acd3c..cdc880e75 100644 --- a/libc/arch-x86/syscalls/epoll_ctl.S +++ b/libc/arch-x86/syscalls/epoll_ctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_ctl) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/eventfd.S b/libc/arch-x86/syscalls/eventfd.S index 55c5e6a30..fe859672e 100644 --- a/libc/arch-x86/syscalls/eventfd.S +++ b/libc/arch-x86/syscalls/eventfd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(eventfd) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/execve.S b/libc/arch-x86/syscalls/execve.S index 7ad54f761..a897c42d0 100644 --- a/libc/arch-x86/syscalls/execve.S +++ b/libc/arch-x86/syscalls/execve.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(execve) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/faccessat.S b/libc/arch-x86/syscalls/faccessat.S index 115d64574..4ac3e2a59 100644 --- a/libc/arch-x86/syscalls/faccessat.S +++ b/libc/arch-x86/syscalls/faccessat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(faccessat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fallocate64.S b/libc/arch-x86/syscalls/fallocate64.S index f8bde62c7..e1dfa085a 100644 --- a/libc/arch-x86/syscalls/fallocate64.S +++ b/libc/arch-x86/syscalls/fallocate64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fallocate64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fchdir.S b/libc/arch-x86/syscalls/fchdir.S index 56e496c77..af43acb0d 100644 --- a/libc/arch-x86/syscalls/fchdir.S +++ b/libc/arch-x86/syscalls/fchdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchdir) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fchmod.S b/libc/arch-x86/syscalls/fchmod.S index 4badceaae..5c5835990 100644 --- a/libc/arch-x86/syscalls/fchmod.S +++ b/libc/arch-x86/syscalls/fchmod.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmod) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fchmodat.S b/libc/arch-x86/syscalls/fchmodat.S index 552e85c49..aed8d2910 100644 --- a/libc/arch-x86/syscalls/fchmodat.S +++ b/libc/arch-x86/syscalls/fchmodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmodat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fchown.S b/libc/arch-x86/syscalls/fchown.S index 7e826379e..da80251d1 100644 --- a/libc/arch-x86/syscalls/fchown.S +++ b/libc/arch-x86/syscalls/fchown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchown) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fchownat.S b/libc/arch-x86/syscalls/fchownat.S index de039d0d9..851424370 100644 --- a/libc/arch-x86/syscalls/fchownat.S +++ b/libc/arch-x86/syscalls/fchownat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchownat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fdatasync.S b/libc/arch-x86/syscalls/fdatasync.S index fdb55788c..fc2c16332 100644 --- a/libc/arch-x86/syscalls/fdatasync.S +++ b/libc/arch-x86/syscalls/fdatasync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fdatasync) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fgetxattr.S b/libc/arch-x86/syscalls/fgetxattr.S index 3ed63d3d5..767a675ab 100644 --- a/libc/arch-x86/syscalls/fgetxattr.S +++ b/libc/arch-x86/syscalls/fgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fgetxattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/flistxattr.S b/libc/arch-x86/syscalls/flistxattr.S index 2840114cd..dbb49779c 100644 --- a/libc/arch-x86/syscalls/flistxattr.S +++ b/libc/arch-x86/syscalls/flistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flistxattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/flock.S b/libc/arch-x86/syscalls/flock.S index dc9ef0200..b4b748e82 100644 --- a/libc/arch-x86/syscalls/flock.S +++ b/libc/arch-x86/syscalls/flock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flock) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fremovexattr.S b/libc/arch-x86/syscalls/fremovexattr.S index 1e77f828f..c34cbc4a8 100644 --- a/libc/arch-x86/syscalls/fremovexattr.S +++ b/libc/arch-x86/syscalls/fremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fremovexattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fsetxattr.S b/libc/arch-x86/syscalls/fsetxattr.S index 703a8d73c..5593dca70 100644 --- a/libc/arch-x86/syscalls/fsetxattr.S +++ b/libc/arch-x86/syscalls/fsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsetxattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fstat64.S b/libc/arch-x86/syscalls/fstat64.S index 970eeb11f..2e29ae5f8 100644 --- a/libc/arch-x86/syscalls/fstat64.S +++ b/libc/arch-x86/syscalls/fstat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstat64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fstatat64.S b/libc/arch-x86/syscalls/fstatat64.S index 476578d36..72922cbfe 100644 --- a/libc/arch-x86/syscalls/fstatat64.S +++ b/libc/arch-x86/syscalls/fstatat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstatat64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/fsync.S b/libc/arch-x86/syscalls/fsync.S index 9fc84b70c..af10e9ad2 100644 --- a/libc/arch-x86/syscalls/fsync.S +++ b/libc/arch-x86/syscalls/fsync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsync) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/ftruncate.S b/libc/arch-x86/syscalls/ftruncate.S index 6765d984c..734398559 100644 --- a/libc/arch-x86/syscalls/ftruncate.S +++ b/libc/arch-x86/syscalls/ftruncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(ftruncate) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/ftruncate64.S b/libc/arch-x86/syscalls/ftruncate64.S index 21e26ce00..47b925b84 100644 --- a/libc/arch-x86/syscalls/ftruncate64.S +++ b/libc/arch-x86/syscalls/ftruncate64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(ftruncate64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getegid.S b/libc/arch-x86/syscalls/getegid.S index 445cd97da..bc21b5a35 100644 --- a/libc/arch-x86/syscalls/getegid.S +++ b/libc/arch-x86/syscalls/getegid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getegid) movl $__NR_getegid32, %eax int $0x80 diff --git a/libc/arch-x86/syscalls/geteuid.S b/libc/arch-x86/syscalls/geteuid.S index 8290a939b..469f9c9ad 100644 --- a/libc/arch-x86/syscalls/geteuid.S +++ b/libc/arch-x86/syscalls/geteuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(geteuid) movl $__NR_geteuid32, %eax int $0x80 diff --git a/libc/arch-x86/syscalls/getgid.S b/libc/arch-x86/syscalls/getgid.S index d90767f6f..6b15674b7 100644 --- a/libc/arch-x86/syscalls/getgid.S +++ b/libc/arch-x86/syscalls/getgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgid) movl $__NR_getgid32, %eax int $0x80 diff --git a/libc/arch-x86/syscalls/getgroups.S b/libc/arch-x86/syscalls/getgroups.S index d36c09cc8..a7aa1b2af 100644 --- a/libc/arch-x86/syscalls/getgroups.S +++ b/libc/arch-x86/syscalls/getgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgroups) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getitimer.S b/libc/arch-x86/syscalls/getitimer.S index ebf12601d..1b424a33b 100644 --- a/libc/arch-x86/syscalls/getitimer.S +++ b/libc/arch-x86/syscalls/getitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getitimer) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getpeername.S b/libc/arch-x86/syscalls/getpeername.S index abecd4edb..94b43fbcc 100644 --- a/libc/arch-x86/syscalls/getpeername.S +++ b/libc/arch-x86/syscalls/getpeername.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpeername) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getpgid.S b/libc/arch-x86/syscalls/getpgid.S index e74ed3b78..7d7149e46 100644 --- a/libc/arch-x86/syscalls/getpgid.S +++ b/libc/arch-x86/syscalls/getpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpgid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getppid.S b/libc/arch-x86/syscalls/getppid.S index 025fa42e4..3103ed2d6 100644 --- a/libc/arch-x86/syscalls/getppid.S +++ b/libc/arch-x86/syscalls/getppid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getppid) movl $__NR_getppid, %eax int $0x80 diff --git a/libc/arch-x86/syscalls/getresgid.S b/libc/arch-x86/syscalls/getresgid.S index fe08cdfcb..2f03a03c9 100644 --- a/libc/arch-x86/syscalls/getresgid.S +++ b/libc/arch-x86/syscalls/getresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresgid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getresuid.S b/libc/arch-x86/syscalls/getresuid.S index 8e292fc5b..d6fe91560 100644 --- a/libc/arch-x86/syscalls/getresuid.S +++ b/libc/arch-x86/syscalls/getresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresuid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getrlimit.S b/libc/arch-x86/syscalls/getrlimit.S index fdb5a03fa..4587a2e35 100644 --- a/libc/arch-x86/syscalls/getrlimit.S +++ b/libc/arch-x86/syscalls/getrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrlimit) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getrusage.S b/libc/arch-x86/syscalls/getrusage.S index ae5f79629..4b2e38b3a 100644 --- a/libc/arch-x86/syscalls/getrusage.S +++ b/libc/arch-x86/syscalls/getrusage.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrusage) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getsid.S b/libc/arch-x86/syscalls/getsid.S index e1dc87fde..eac9f2c4b 100644 --- a/libc/arch-x86/syscalls/getsid.S +++ b/libc/arch-x86/syscalls/getsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getsockname.S b/libc/arch-x86/syscalls/getsockname.S index 254b755c8..738fa6d44 100644 --- a/libc/arch-x86/syscalls/getsockname.S +++ b/libc/arch-x86/syscalls/getsockname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockname) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getsockopt.S b/libc/arch-x86/syscalls/getsockopt.S index 2ef630c0d..f8338f503 100644 --- a/libc/arch-x86/syscalls/getsockopt.S +++ b/libc/arch-x86/syscalls/getsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockopt) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/gettimeofday.S b/libc/arch-x86/syscalls/gettimeofday.S index 709a17ba5..96c1e111d 100644 --- a/libc/arch-x86/syscalls/gettimeofday.S +++ b/libc/arch-x86/syscalls/gettimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(gettimeofday) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/getuid.S b/libc/arch-x86/syscalls/getuid.S index c375d309d..cde5da8b6 100644 --- a/libc/arch-x86/syscalls/getuid.S +++ b/libc/arch-x86/syscalls/getuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getuid) movl $__NR_getuid32, %eax int $0x80 diff --git a/libc/arch-x86/syscalls/getxattr.S b/libc/arch-x86/syscalls/getxattr.S index db9c9dd68..7679cbf1c 100644 --- a/libc/arch-x86/syscalls/getxattr.S +++ b/libc/arch-x86/syscalls/getxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getxattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/init_module.S b/libc/arch-x86/syscalls/init_module.S index 543b31eec..02e55f0e2 100644 --- a/libc/arch-x86/syscalls/init_module.S +++ b/libc/arch-x86/syscalls/init_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(init_module) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/inotify_add_watch.S b/libc/arch-x86/syscalls/inotify_add_watch.S index f58c6d181..74a59f358 100644 --- a/libc/arch-x86/syscalls/inotify_add_watch.S +++ b/libc/arch-x86/syscalls/inotify_add_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_add_watch) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/inotify_init1.S b/libc/arch-x86/syscalls/inotify_init1.S index 2c7b10013..de714c962 100644 --- a/libc/arch-x86/syscalls/inotify_init1.S +++ b/libc/arch-x86/syscalls/inotify_init1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_init1) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/inotify_rm_watch.S b/libc/arch-x86/syscalls/inotify_rm_watch.S index c453478ce..3edc152c4 100644 --- a/libc/arch-x86/syscalls/inotify_rm_watch.S +++ b/libc/arch-x86/syscalls/inotify_rm_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_rm_watch) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/kill.S b/libc/arch-x86/syscalls/kill.S index 0c1e24ae9..0cf38a9e7 100644 --- a/libc/arch-x86/syscalls/kill.S +++ b/libc/arch-x86/syscalls/kill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(kill) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/klogctl.S b/libc/arch-x86/syscalls/klogctl.S index 869324a44..52b04e132 100644 --- a/libc/arch-x86/syscalls/klogctl.S +++ b/libc/arch-x86/syscalls/klogctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(klogctl) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/lgetxattr.S b/libc/arch-x86/syscalls/lgetxattr.S index 3ed4f1127..8c2eb473c 100644 --- a/libc/arch-x86/syscalls/lgetxattr.S +++ b/libc/arch-x86/syscalls/lgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lgetxattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/linkat.S b/libc/arch-x86/syscalls/linkat.S index e0c7e5f75..56b8368ec 100644 --- a/libc/arch-x86/syscalls/linkat.S +++ b/libc/arch-x86/syscalls/linkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(linkat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/listen.S b/libc/arch-x86/syscalls/listen.S index c65f97045..2c8cc7685 100644 --- a/libc/arch-x86/syscalls/listen.S +++ b/libc/arch-x86/syscalls/listen.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listen) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/listxattr.S b/libc/arch-x86/syscalls/listxattr.S index 98a51143d..f43ab3cd5 100644 --- a/libc/arch-x86/syscalls/listxattr.S +++ b/libc/arch-x86/syscalls/listxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listxattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/llistxattr.S b/libc/arch-x86/syscalls/llistxattr.S index a5ab636a6..d32652678 100644 --- a/libc/arch-x86/syscalls/llistxattr.S +++ b/libc/arch-x86/syscalls/llistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(llistxattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/lremovexattr.S b/libc/arch-x86/syscalls/lremovexattr.S index 508abbacd..b4f4817bb 100644 --- a/libc/arch-x86/syscalls/lremovexattr.S +++ b/libc/arch-x86/syscalls/lremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lremovexattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/lseek.S b/libc/arch-x86/syscalls/lseek.S index 5f77831cd..1115be867 100644 --- a/libc/arch-x86/syscalls/lseek.S +++ b/libc/arch-x86/syscalls/lseek.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lseek) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/lsetxattr.S b/libc/arch-x86/syscalls/lsetxattr.S index d8786849b..fc62cdd20 100644 --- a/libc/arch-x86/syscalls/lsetxattr.S +++ b/libc/arch-x86/syscalls/lsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lsetxattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/madvise.S b/libc/arch-x86/syscalls/madvise.S index 3e8c7fdee..1de44560a 100644 --- a/libc/arch-x86/syscalls/madvise.S +++ b/libc/arch-x86/syscalls/madvise.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(madvise) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/mincore.S b/libc/arch-x86/syscalls/mincore.S index 7096f6c57..118063cb1 100644 --- a/libc/arch-x86/syscalls/mincore.S +++ b/libc/arch-x86/syscalls/mincore.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mincore) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/mkdirat.S b/libc/arch-x86/syscalls/mkdirat.S index 862a18cfc..6969d2a5f 100644 --- a/libc/arch-x86/syscalls/mkdirat.S +++ b/libc/arch-x86/syscalls/mkdirat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mkdirat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/mknodat.S b/libc/arch-x86/syscalls/mknodat.S index e03ba42a9..6c743d278 100644 --- a/libc/arch-x86/syscalls/mknodat.S +++ b/libc/arch-x86/syscalls/mknodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mknodat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/mlock.S b/libc/arch-x86/syscalls/mlock.S index f582f7729..5ec799e7a 100644 --- a/libc/arch-x86/syscalls/mlock.S +++ b/libc/arch-x86/syscalls/mlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlock) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/mlockall.S b/libc/arch-x86/syscalls/mlockall.S index becca812c..72a8da597 100644 --- a/libc/arch-x86/syscalls/mlockall.S +++ b/libc/arch-x86/syscalls/mlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlockall) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/mount.S b/libc/arch-x86/syscalls/mount.S index 7be28115e..1e06b8e30 100644 --- a/libc/arch-x86/syscalls/mount.S +++ b/libc/arch-x86/syscalls/mount.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mount) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/mprotect.S b/libc/arch-x86/syscalls/mprotect.S index 0516c45f3..11037c3ef 100644 --- a/libc/arch-x86/syscalls/mprotect.S +++ b/libc/arch-x86/syscalls/mprotect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mprotect) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/mremap.S b/libc/arch-x86/syscalls/mremap.S index 42e75ced9..b7f96ff84 100644 --- a/libc/arch-x86/syscalls/mremap.S +++ b/libc/arch-x86/syscalls/mremap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mremap) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/msync.S b/libc/arch-x86/syscalls/msync.S index 66722f2e5..e2549f768 100644 --- a/libc/arch-x86/syscalls/msync.S +++ b/libc/arch-x86/syscalls/msync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(msync) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/munlock.S b/libc/arch-x86/syscalls/munlock.S index 2fc3aa703..6b79e9910 100644 --- a/libc/arch-x86/syscalls/munlock.S +++ b/libc/arch-x86/syscalls/munlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlock) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/munlockall.S b/libc/arch-x86/syscalls/munlockall.S index 1bc99ea0a..96e238b1e 100644 --- a/libc/arch-x86/syscalls/munlockall.S +++ b/libc/arch-x86/syscalls/munlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlockall) movl $__NR_munlockall, %eax int $0x80 diff --git a/libc/arch-x86/syscalls/munmap.S b/libc/arch-x86/syscalls/munmap.S index 878aae7aa..a77a77746 100644 --- a/libc/arch-x86/syscalls/munmap.S +++ b/libc/arch-x86/syscalls/munmap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munmap) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/nanosleep.S b/libc/arch-x86/syscalls/nanosleep.S index fe8af908d..444aa7e94 100644 --- a/libc/arch-x86/syscalls/nanosleep.S +++ b/libc/arch-x86/syscalls/nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(nanosleep) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/personality.S b/libc/arch-x86/syscalls/personality.S index 8c8e0ffa4..5344e1cc1 100644 --- a/libc/arch-x86/syscalls/personality.S +++ b/libc/arch-x86/syscalls/personality.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(personality) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/pipe2.S b/libc/arch-x86/syscalls/pipe2.S index 99c4e8b61..62665a05a 100644 --- a/libc/arch-x86/syscalls/pipe2.S +++ b/libc/arch-x86/syscalls/pipe2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pipe2) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/prctl.S b/libc/arch-x86/syscalls/prctl.S index 63ec899e3..28e84d8e2 100644 --- a/libc/arch-x86/syscalls/prctl.S +++ b/libc/arch-x86/syscalls/prctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prctl) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/pread64.S b/libc/arch-x86/syscalls/pread64.S index 6b3c8ad16..e7502b94c 100644 --- a/libc/arch-x86/syscalls/pread64.S +++ b/libc/arch-x86/syscalls/pread64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pread64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/prlimit64.S b/libc/arch-x86/syscalls/prlimit64.S index 6aa875fa3..2ca8b233b 100644 --- a/libc/arch-x86/syscalls/prlimit64.S +++ b/libc/arch-x86/syscalls/prlimit64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prlimit64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/pwrite64.S b/libc/arch-x86/syscalls/pwrite64.S index 7d5309527..b798a8e22 100644 --- a/libc/arch-x86/syscalls/pwrite64.S +++ b/libc/arch-x86/syscalls/pwrite64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pwrite64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/read.S b/libc/arch-x86/syscalls/read.S index 9814c8ffc..483c5ef96 100644 --- a/libc/arch-x86/syscalls/read.S +++ b/libc/arch-x86/syscalls/read.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(read) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/readahead.S b/libc/arch-x86/syscalls/readahead.S index 49a17d043..b1e0870e9 100644 --- a/libc/arch-x86/syscalls/readahead.S +++ b/libc/arch-x86/syscalls/readahead.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readahead) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/readlinkat.S b/libc/arch-x86/syscalls/readlinkat.S index 1a161c01a..a06ae73a6 100644 --- a/libc/arch-x86/syscalls/readlinkat.S +++ b/libc/arch-x86/syscalls/readlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readlinkat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/readv.S b/libc/arch-x86/syscalls/readv.S index 8b5ff4186..a0b46b886 100644 --- a/libc/arch-x86/syscalls/readv.S +++ b/libc/arch-x86/syscalls/readv.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readv) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/recvfrom.S b/libc/arch-x86/syscalls/recvfrom.S index 53d08f638..86f12c0c5 100644 --- a/libc/arch-x86/syscalls/recvfrom.S +++ b/libc/arch-x86/syscalls/recvfrom.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvfrom) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/recvmmsg.S b/libc/arch-x86/syscalls/recvmmsg.S index 3ef874027..f77f7942b 100644 --- a/libc/arch-x86/syscalls/recvmmsg.S +++ b/libc/arch-x86/syscalls/recvmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmmsg) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/recvmsg.S b/libc/arch-x86/syscalls/recvmsg.S index 150672d0a..5d25d7a60 100644 --- a/libc/arch-x86/syscalls/recvmsg.S +++ b/libc/arch-x86/syscalls/recvmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmsg) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/removexattr.S b/libc/arch-x86/syscalls/removexattr.S index e7c55eb03..cbbdf4ee7 100644 --- a/libc/arch-x86/syscalls/removexattr.S +++ b/libc/arch-x86/syscalls/removexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(removexattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/renameat.S b/libc/arch-x86/syscalls/renameat.S index 5dfe65ffb..e424daff5 100644 --- a/libc/arch-x86/syscalls/renameat.S +++ b/libc/arch-x86/syscalls/renameat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(renameat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sched_get_priority_max.S b/libc/arch-x86/syscalls/sched_get_priority_max.S index d8debe281..eee6f922f 100644 --- a/libc/arch-x86/syscalls/sched_get_priority_max.S +++ b/libc/arch-x86/syscalls/sched_get_priority_max.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_max) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sched_get_priority_min.S b/libc/arch-x86/syscalls/sched_get_priority_min.S index e9689fab1..0edcab130 100644 --- a/libc/arch-x86/syscalls/sched_get_priority_min.S +++ b/libc/arch-x86/syscalls/sched_get_priority_min.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_min) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sched_getparam.S b/libc/arch-x86/syscalls/sched_getparam.S index 6b5e7c86b..9a4ebbd4f 100644 --- a/libc/arch-x86/syscalls/sched_getparam.S +++ b/libc/arch-x86/syscalls/sched_getparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getparam) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sched_getscheduler.S b/libc/arch-x86/syscalls/sched_getscheduler.S index a2c5746b6..19a925e77 100644 --- a/libc/arch-x86/syscalls/sched_getscheduler.S +++ b/libc/arch-x86/syscalls/sched_getscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getscheduler) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sched_rr_get_interval.S b/libc/arch-x86/syscalls/sched_rr_get_interval.S index f8012f317..c2592a9ae 100644 --- a/libc/arch-x86/syscalls/sched_rr_get_interval.S +++ b/libc/arch-x86/syscalls/sched_rr_get_interval.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_rr_get_interval) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sched_setaffinity.S b/libc/arch-x86/syscalls/sched_setaffinity.S index 76013f9ab..4a0ac86d1 100644 --- a/libc/arch-x86/syscalls/sched_setaffinity.S +++ b/libc/arch-x86/syscalls/sched_setaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setaffinity) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sched_setparam.S b/libc/arch-x86/syscalls/sched_setparam.S index aca4bd902..a99c0de0f 100644 --- a/libc/arch-x86/syscalls/sched_setparam.S +++ b/libc/arch-x86/syscalls/sched_setparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setparam) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sched_setscheduler.S b/libc/arch-x86/syscalls/sched_setscheduler.S index fad72c607..dbfd01e5f 100644 --- a/libc/arch-x86/syscalls/sched_setscheduler.S +++ b/libc/arch-x86/syscalls/sched_setscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setscheduler) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sched_yield.S b/libc/arch-x86/syscalls/sched_yield.S index 8b4a9beba..87ebaf9c6 100644 --- a/libc/arch-x86/syscalls/sched_yield.S +++ b/libc/arch-x86/syscalls/sched_yield.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_yield) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sendfile.S b/libc/arch-x86/syscalls/sendfile.S index 7bd86d0a5..58433fb32 100644 --- a/libc/arch-x86/syscalls/sendfile.S +++ b/libc/arch-x86/syscalls/sendfile.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendfile) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sendfile64.S b/libc/arch-x86/syscalls/sendfile64.S index bd76043f7..97c714614 100644 --- a/libc/arch-x86/syscalls/sendfile64.S +++ b/libc/arch-x86/syscalls/sendfile64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendfile64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sendmmsg.S b/libc/arch-x86/syscalls/sendmmsg.S index 4bc3c4076..3c359eeb7 100644 --- a/libc/arch-x86/syscalls/sendmmsg.S +++ b/libc/arch-x86/syscalls/sendmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmmsg) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sendmsg.S b/libc/arch-x86/syscalls/sendmsg.S index eb8fc63f5..51288cc4c 100644 --- a/libc/arch-x86/syscalls/sendmsg.S +++ b/libc/arch-x86/syscalls/sendmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmsg) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sendto.S b/libc/arch-x86/syscalls/sendto.S index 8cb72c87c..4b77f2479 100644 --- a/libc/arch-x86/syscalls/sendto.S +++ b/libc/arch-x86/syscalls/sendto.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendto) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setfsgid.S b/libc/arch-x86/syscalls/setfsgid.S index fa7a5c59f..a8160c3f1 100644 --- a/libc/arch-x86/syscalls/setfsgid.S +++ b/libc/arch-x86/syscalls/setfsgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsgid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setfsuid.S b/libc/arch-x86/syscalls/setfsuid.S index 5856a16e0..abcf0b3bd 100644 --- a/libc/arch-x86/syscalls/setfsuid.S +++ b/libc/arch-x86/syscalls/setfsuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsuid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setgid.S b/libc/arch-x86/syscalls/setgid.S index baa1b1a4b..47c011e4d 100644 --- a/libc/arch-x86/syscalls/setgid.S +++ b/libc/arch-x86/syscalls/setgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setgroups.S b/libc/arch-x86/syscalls/setgroups.S index 364aaad0f..7a5891083 100644 --- a/libc/arch-x86/syscalls/setgroups.S +++ b/libc/arch-x86/syscalls/setgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgroups) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setitimer.S b/libc/arch-x86/syscalls/setitimer.S index 409c4c660..e87a26e0d 100644 --- a/libc/arch-x86/syscalls/setitimer.S +++ b/libc/arch-x86/syscalls/setitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setitimer) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setns.S b/libc/arch-x86/syscalls/setns.S index ddbe758e8..75f23faf7 100644 --- a/libc/arch-x86/syscalls/setns.S +++ b/libc/arch-x86/syscalls/setns.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setns) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setpgid.S b/libc/arch-x86/syscalls/setpgid.S index ac1b12d67..c20b7897b 100644 --- a/libc/arch-x86/syscalls/setpgid.S +++ b/libc/arch-x86/syscalls/setpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpgid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setpriority.S b/libc/arch-x86/syscalls/setpriority.S index 93c1e07bc..4606c23fb 100644 --- a/libc/arch-x86/syscalls/setpriority.S +++ b/libc/arch-x86/syscalls/setpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpriority) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setregid.S b/libc/arch-x86/syscalls/setregid.S index 0ecfa9ae7..ff6cf36d6 100644 --- a/libc/arch-x86/syscalls/setregid.S +++ b/libc/arch-x86/syscalls/setregid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setregid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setresgid.S b/libc/arch-x86/syscalls/setresgid.S index a6914c492..a4846aef7 100644 --- a/libc/arch-x86/syscalls/setresgid.S +++ b/libc/arch-x86/syscalls/setresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresgid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setresuid.S b/libc/arch-x86/syscalls/setresuid.S index c33c1cabc..6ed0fadc8 100644 --- a/libc/arch-x86/syscalls/setresuid.S +++ b/libc/arch-x86/syscalls/setresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresuid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setreuid.S b/libc/arch-x86/syscalls/setreuid.S index 4244988d2..57d75409c 100644 --- a/libc/arch-x86/syscalls/setreuid.S +++ b/libc/arch-x86/syscalls/setreuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setreuid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setrlimit.S b/libc/arch-x86/syscalls/setrlimit.S index 3e8650434..9ca613417 100644 --- a/libc/arch-x86/syscalls/setrlimit.S +++ b/libc/arch-x86/syscalls/setrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setrlimit) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setsid.S b/libc/arch-x86/syscalls/setsid.S index 398c11056..5c933b3ce 100644 --- a/libc/arch-x86/syscalls/setsid.S +++ b/libc/arch-x86/syscalls/setsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsid) movl $__NR_setsid, %eax int $0x80 diff --git a/libc/arch-x86/syscalls/setsockopt.S b/libc/arch-x86/syscalls/setsockopt.S index 6ef168f81..f002344df 100644 --- a/libc/arch-x86/syscalls/setsockopt.S +++ b/libc/arch-x86/syscalls/setsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsockopt) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/settimeofday.S b/libc/arch-x86/syscalls/settimeofday.S index 37e11c53c..b35791d72 100644 --- a/libc/arch-x86/syscalls/settimeofday.S +++ b/libc/arch-x86/syscalls/settimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(settimeofday) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setuid.S b/libc/arch-x86/syscalls/setuid.S index fcea66d97..f5b83150e 100644 --- a/libc/arch-x86/syscalls/setuid.S +++ b/libc/arch-x86/syscalls/setuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setuid) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/setxattr.S b/libc/arch-x86/syscalls/setxattr.S index d6473cdc5..24eb2c419 100644 --- a/libc/arch-x86/syscalls/setxattr.S +++ b/libc/arch-x86/syscalls/setxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setxattr) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/shutdown.S b/libc/arch-x86/syscalls/shutdown.S index 32fa17a3b..e5497e6dc 100644 --- a/libc/arch-x86/syscalls/shutdown.S +++ b/libc/arch-x86/syscalls/shutdown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(shutdown) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sigaltstack.S b/libc/arch-x86/syscalls/sigaltstack.S index 6882a7837..150e3986d 100644 --- a/libc/arch-x86/syscalls/sigaltstack.S +++ b/libc/arch-x86/syscalls/sigaltstack.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sigaltstack) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/socketpair.S b/libc/arch-x86/syscalls/socketpair.S index 945faa019..f2188e3e6 100644 --- a/libc/arch-x86/syscalls/socketpair.S +++ b/libc/arch-x86/syscalls/socketpair.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(socketpair) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/splice.S b/libc/arch-x86/syscalls/splice.S index 46e231275..38d9ddf1d 100644 --- a/libc/arch-x86/syscalls/splice.S +++ b/libc/arch-x86/syscalls/splice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(splice) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/swapoff.S b/libc/arch-x86/syscalls/swapoff.S index 0e210335d..a0cbc0e27 100644 --- a/libc/arch-x86/syscalls/swapoff.S +++ b/libc/arch-x86/syscalls/swapoff.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapoff) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/swapon.S b/libc/arch-x86/syscalls/swapon.S index a4d5e0305..5a2bc9499 100644 --- a/libc/arch-x86/syscalls/swapon.S +++ b/libc/arch-x86/syscalls/swapon.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapon) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/symlinkat.S b/libc/arch-x86/syscalls/symlinkat.S index 618f5d827..7d7a9da9b 100644 --- a/libc/arch-x86/syscalls/symlinkat.S +++ b/libc/arch-x86/syscalls/symlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(symlinkat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sync.S b/libc/arch-x86/syscalls/sync.S index a1f178239..423c01dce 100644 --- a/libc/arch-x86/syscalls/sync.S +++ b/libc/arch-x86/syscalls/sync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sync) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/sysinfo.S b/libc/arch-x86/syscalls/sysinfo.S index c3eabb06f..08707616a 100644 --- a/libc/arch-x86/syscalls/sysinfo.S +++ b/libc/arch-x86/syscalls/sysinfo.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sysinfo) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/tee.S b/libc/arch-x86/syscalls/tee.S index 9422660a8..85ff3cc5c 100644 --- a/libc/arch-x86/syscalls/tee.S +++ b/libc/arch-x86/syscalls/tee.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tee) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/tgkill.S b/libc/arch-x86/syscalls/tgkill.S index 385827ba4..aab80e169 100644 --- a/libc/arch-x86/syscalls/tgkill.S +++ b/libc/arch-x86/syscalls/tgkill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tgkill) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/timerfd_create.S b/libc/arch-x86/syscalls/timerfd_create.S index 343195e19..f1bef4cb6 100644 --- a/libc/arch-x86/syscalls/timerfd_create.S +++ b/libc/arch-x86/syscalls/timerfd_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_create) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/timerfd_gettime.S b/libc/arch-x86/syscalls/timerfd_gettime.S index 9b3a31457..d7ec28f2e 100644 --- a/libc/arch-x86/syscalls/timerfd_gettime.S +++ b/libc/arch-x86/syscalls/timerfd_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_gettime) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/timerfd_settime.S b/libc/arch-x86/syscalls/timerfd_settime.S index 819b7234d..7e03edb9d 100644 --- a/libc/arch-x86/syscalls/timerfd_settime.S +++ b/libc/arch-x86/syscalls/timerfd_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_settime) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/times.S b/libc/arch-x86/syscalls/times.S index f5739d32c..6a14cff0e 100644 --- a/libc/arch-x86/syscalls/times.S +++ b/libc/arch-x86/syscalls/times.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(times) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/truncate.S b/libc/arch-x86/syscalls/truncate.S index 427f95f93..33ce47f92 100644 --- a/libc/arch-x86/syscalls/truncate.S +++ b/libc/arch-x86/syscalls/truncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(truncate) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/truncate64.S b/libc/arch-x86/syscalls/truncate64.S index 2c497511f..2168eb426 100644 --- a/libc/arch-x86/syscalls/truncate64.S +++ b/libc/arch-x86/syscalls/truncate64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(truncate64) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/umask.S b/libc/arch-x86/syscalls/umask.S index 3affc8de2..03bee20c9 100644 --- a/libc/arch-x86/syscalls/umask.S +++ b/libc/arch-x86/syscalls/umask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umask) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/umount2.S b/libc/arch-x86/syscalls/umount2.S index d2b3549e2..9701e0399 100644 --- a/libc/arch-x86/syscalls/umount2.S +++ b/libc/arch-x86/syscalls/umount2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umount2) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/uname.S b/libc/arch-x86/syscalls/uname.S index e99680543..6de3b413e 100644 --- a/libc/arch-x86/syscalls/uname.S +++ b/libc/arch-x86/syscalls/uname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(uname) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/unlinkat.S b/libc/arch-x86/syscalls/unlinkat.S index 6417d2bdb..93ea20183 100644 --- a/libc/arch-x86/syscalls/unlinkat.S +++ b/libc/arch-x86/syscalls/unlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unlinkat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/unshare.S b/libc/arch-x86/syscalls/unshare.S index a289d4d55..9d1146690 100644 --- a/libc/arch-x86/syscalls/unshare.S +++ b/libc/arch-x86/syscalls/unshare.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unshare) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/utimensat.S b/libc/arch-x86/syscalls/utimensat.S index d8c908040..62e15256c 100644 --- a/libc/arch-x86/syscalls/utimensat.S +++ b/libc/arch-x86/syscalls/utimensat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(utimensat) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/vmsplice.S b/libc/arch-x86/syscalls/vmsplice.S index 2afba6043..470763544 100644 --- a/libc/arch-x86/syscalls/vmsplice.S +++ b/libc/arch-x86/syscalls/vmsplice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(vmsplice) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/wait4.S b/libc/arch-x86/syscalls/wait4.S index fda75c05f..137b721e8 100644 --- a/libc/arch-x86/syscalls/wait4.S +++ b/libc/arch-x86/syscalls/wait4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(wait4) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/write.S b/libc/arch-x86/syscalls/write.S index 115974e4b..2f040b21f 100644 --- a/libc/arch-x86/syscalls/write.S +++ b/libc/arch-x86/syscalls/write.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(write) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86/syscalls/writev.S b/libc/arch-x86/syscalls/writev.S index 77e5cd129..2840eead9 100644 --- a/libc/arch-x86/syscalls/writev.S +++ b/libc/arch-x86/syscalls/writev.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(writev) pushl %ebx .cfi_def_cfa_offset 8 diff --git a/libc/arch-x86_64/syscalls/__accept4.S b/libc/arch-x86_64/syscalls/__accept4.S index 375a78b9d..774cdd584 100644 --- a/libc/arch-x86_64/syscalls/__accept4.S +++ b/libc/arch-x86_64/syscalls/__accept4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__accept4) movq %rcx, %r10 movl $__NR_accept4, %eax diff --git a/libc/arch-x86_64/syscalls/__arch_prctl.S b/libc/arch-x86_64/syscalls/__arch_prctl.S index 6c72a6c8d..c0dad45d9 100644 --- a/libc/arch-x86_64/syscalls/__arch_prctl.S +++ b/libc/arch-x86_64/syscalls/__arch_prctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__arch_prctl) movl $__NR_arch_prctl, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__brk.S b/libc/arch-x86_64/syscalls/__brk.S index 18ebc105e..df942a1d5 100644 --- a/libc/arch-x86_64/syscalls/__brk.S +++ b/libc/arch-x86_64/syscalls/__brk.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__brk) movl $__NR_brk, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__clock_gettime.S b/libc/arch-x86_64/syscalls/__clock_gettime.S index 7e553b80a..6c11fb634 100644 --- a/libc/arch-x86_64/syscalls/__clock_gettime.S +++ b/libc/arch-x86_64/syscalls/__clock_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__clock_gettime) movl $__NR_clock_gettime, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__connect.S b/libc/arch-x86_64/syscalls/__connect.S index a7d2e9308..05a82022f 100644 --- a/libc/arch-x86_64/syscalls/__connect.S +++ b/libc/arch-x86_64/syscalls/__connect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__connect) movl $__NR_connect, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__epoll_pwait.S b/libc/arch-x86_64/syscalls/__epoll_pwait.S index 4271b53ad..b0aee80ac 100644 --- a/libc/arch-x86_64/syscalls/__epoll_pwait.S +++ b/libc/arch-x86_64/syscalls/__epoll_pwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__epoll_pwait) movq %rcx, %r10 movl $__NR_epoll_pwait, %eax diff --git a/libc/arch-x86_64/syscalls/__exit.S b/libc/arch-x86_64/syscalls/__exit.S index bcbaffcfd..e552f0415 100644 --- a/libc/arch-x86_64/syscalls/__exit.S +++ b/libc/arch-x86_64/syscalls/__exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__exit) movl $__NR_exit, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__getcpu.S b/libc/arch-x86_64/syscalls/__getcpu.S index c25f294e9..c415fd7df 100644 --- a/libc/arch-x86_64/syscalls/__getcpu.S +++ b/libc/arch-x86_64/syscalls/__getcpu.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcpu) movl $__NR_getcpu, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__getcwd.S b/libc/arch-x86_64/syscalls/__getcwd.S index 1743838f7..1ea565161 100644 --- a/libc/arch-x86_64/syscalls/__getcwd.S +++ b/libc/arch-x86_64/syscalls/__getcwd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getcwd) movl $__NR_getcwd, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__getdents64.S b/libc/arch-x86_64/syscalls/__getdents64.S index 64f82fd03..42c130c16 100644 --- a/libc/arch-x86_64/syscalls/__getdents64.S +++ b/libc/arch-x86_64/syscalls/__getdents64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getdents64) movl $__NR_getdents64, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__getpid.S b/libc/arch-x86_64/syscalls/__getpid.S index bd1bf1ee1..ae6bb49db 100644 --- a/libc/arch-x86_64/syscalls/__getpid.S +++ b/libc/arch-x86_64/syscalls/__getpid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpid) movl $__NR_getpid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__getpriority.S b/libc/arch-x86_64/syscalls/__getpriority.S index 349f57466..c82b00887 100644 --- a/libc/arch-x86_64/syscalls/__getpriority.S +++ b/libc/arch-x86_64/syscalls/__getpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__getpriority) movl $__NR_getpriority, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__gettimeofday.S b/libc/arch-x86_64/syscalls/__gettimeofday.S index a38eb64c7..e4b240930 100644 --- a/libc/arch-x86_64/syscalls/__gettimeofday.S +++ b/libc/arch-x86_64/syscalls/__gettimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__gettimeofday) movl $__NR_gettimeofday, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__ioctl.S b/libc/arch-x86_64/syscalls/__ioctl.S index 277591107..aa2f53869 100644 --- a/libc/arch-x86_64/syscalls/__ioctl.S +++ b/libc/arch-x86_64/syscalls/__ioctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ioctl) movl $__NR_ioctl, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__openat.S b/libc/arch-x86_64/syscalls/__openat.S index dce4c7c75..e7f5dc4c3 100644 --- a/libc/arch-x86_64/syscalls/__openat.S +++ b/libc/arch-x86_64/syscalls/__openat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__openat) movq %rcx, %r10 movl $__NR_openat, %eax diff --git a/libc/arch-x86_64/syscalls/__ppoll.S b/libc/arch-x86_64/syscalls/__ppoll.S index 31ba7e958..eb741ce87 100644 --- a/libc/arch-x86_64/syscalls/__ppoll.S +++ b/libc/arch-x86_64/syscalls/__ppoll.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ppoll) movq %rcx, %r10 movl $__NR_ppoll, %eax diff --git a/libc/arch-x86_64/syscalls/__pselect6.S b/libc/arch-x86_64/syscalls/__pselect6.S index a212c4e02..75ea416dc 100644 --- a/libc/arch-x86_64/syscalls/__pselect6.S +++ b/libc/arch-x86_64/syscalls/__pselect6.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__pselect6) movq %rcx, %r10 movl $__NR_pselect6, %eax diff --git a/libc/arch-x86_64/syscalls/__ptrace.S b/libc/arch-x86_64/syscalls/__ptrace.S index 0a64fee73..45724e48d 100644 --- a/libc/arch-x86_64/syscalls/__ptrace.S +++ b/libc/arch-x86_64/syscalls/__ptrace.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__ptrace) movq %rcx, %r10 movl $__NR_ptrace, %eax diff --git a/libc/arch-x86_64/syscalls/__reboot.S b/libc/arch-x86_64/syscalls/__reboot.S index 398d078f1..bbff3f205 100644 --- a/libc/arch-x86_64/syscalls/__reboot.S +++ b/libc/arch-x86_64/syscalls/__reboot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__reboot) movq %rcx, %r10 movl $__NR_reboot, %eax diff --git a/libc/arch-x86_64/syscalls/__rt_sigaction.S b/libc/arch-x86_64/syscalls/__rt_sigaction.S index f146b02f1..7ce3d8c41 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigaction.S +++ b/libc/arch-x86_64/syscalls/__rt_sigaction.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigaction) movq %rcx, %r10 movl $__NR_rt_sigaction, %eax diff --git a/libc/arch-x86_64/syscalls/__rt_sigpending.S b/libc/arch-x86_64/syscalls/__rt_sigpending.S index 9d1698b76..78c10edab 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigpending.S +++ b/libc/arch-x86_64/syscalls/__rt_sigpending.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigpending) movl $__NR_rt_sigpending, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__rt_sigprocmask.S b/libc/arch-x86_64/syscalls/__rt_sigprocmask.S index 1ac9b81d8..bf2841c1a 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigprocmask.S +++ b/libc/arch-x86_64/syscalls/__rt_sigprocmask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigprocmask) movq %rcx, %r10 movl $__NR_rt_sigprocmask, %eax diff --git a/libc/arch-x86_64/syscalls/__rt_sigsuspend.S b/libc/arch-x86_64/syscalls/__rt_sigsuspend.S index 1059f0b72..a82b0528a 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigsuspend.S +++ b/libc/arch-x86_64/syscalls/__rt_sigsuspend.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigsuspend) movl $__NR_rt_sigsuspend, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S b/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S index de2e4cbe2..aceacb2dd 100644 --- a/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S +++ b/libc/arch-x86_64/syscalls/__rt_sigtimedwait.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__rt_sigtimedwait) movq %rcx, %r10 movl $__NR_rt_sigtimedwait, %eax diff --git a/libc/arch-x86_64/syscalls/__sched_getaffinity.S b/libc/arch-x86_64/syscalls/__sched_getaffinity.S index 410954cdf..fd1f6075b 100644 --- a/libc/arch-x86_64/syscalls/__sched_getaffinity.S +++ b/libc/arch-x86_64/syscalls/__sched_getaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__sched_getaffinity) movl $__NR_sched_getaffinity, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__set_tid_address.S b/libc/arch-x86_64/syscalls/__set_tid_address.S index c59c8b8c4..7e5226d75 100644 --- a/libc/arch-x86_64/syscalls/__set_tid_address.S +++ b/libc/arch-x86_64/syscalls/__set_tid_address.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__set_tid_address) movl $__NR_set_tid_address, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__signalfd4.S b/libc/arch-x86_64/syscalls/__signalfd4.S index 6ddcf5a20..d27f63c42 100644 --- a/libc/arch-x86_64/syscalls/__signalfd4.S +++ b/libc/arch-x86_64/syscalls/__signalfd4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__signalfd4) movq %rcx, %r10 movl $__NR_signalfd4, %eax diff --git a/libc/arch-x86_64/syscalls/__socket.S b/libc/arch-x86_64/syscalls/__socket.S index 209e329b4..3b573e857 100644 --- a/libc/arch-x86_64/syscalls/__socket.S +++ b/libc/arch-x86_64/syscalls/__socket.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__socket) movl $__NR_socket, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__timer_create.S b/libc/arch-x86_64/syscalls/__timer_create.S index 3450d2b82..920c9355f 100644 --- a/libc/arch-x86_64/syscalls/__timer_create.S +++ b/libc/arch-x86_64/syscalls/__timer_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_create) movl $__NR_timer_create, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__timer_delete.S b/libc/arch-x86_64/syscalls/__timer_delete.S index fd60a1608..c76830e89 100644 --- a/libc/arch-x86_64/syscalls/__timer_delete.S +++ b/libc/arch-x86_64/syscalls/__timer_delete.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_delete) movl $__NR_timer_delete, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__timer_getoverrun.S b/libc/arch-x86_64/syscalls/__timer_getoverrun.S index f5309a331..e35ee9375 100644 --- a/libc/arch-x86_64/syscalls/__timer_getoverrun.S +++ b/libc/arch-x86_64/syscalls/__timer_getoverrun.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_getoverrun) movl $__NR_timer_getoverrun, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__timer_gettime.S b/libc/arch-x86_64/syscalls/__timer_gettime.S index 7e2bc92e1..8bb41d9bc 100644 --- a/libc/arch-x86_64/syscalls/__timer_gettime.S +++ b/libc/arch-x86_64/syscalls/__timer_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_gettime) movl $__NR_timer_gettime, %eax syscall diff --git a/libc/arch-x86_64/syscalls/__timer_settime.S b/libc/arch-x86_64/syscalls/__timer_settime.S index f5401a048..0eace4b7e 100644 --- a/libc/arch-x86_64/syscalls/__timer_settime.S +++ b/libc/arch-x86_64/syscalls/__timer_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__timer_settime) movq %rcx, %r10 movl $__NR_timer_settime, %eax diff --git a/libc/arch-x86_64/syscalls/__waitid.S b/libc/arch-x86_64/syscalls/__waitid.S index 229f20c5f..47bf7b378 100644 --- a/libc/arch-x86_64/syscalls/__waitid.S +++ b/libc/arch-x86_64/syscalls/__waitid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(__waitid) movq %rcx, %r10 movl $__NR_waitid, %eax diff --git a/libc/arch-x86_64/syscalls/_exit.S b/libc/arch-x86_64/syscalls/_exit.S index 9c80f0031..06465c43d 100644 --- a/libc/arch-x86_64/syscalls/_exit.S +++ b/libc/arch-x86_64/syscalls/_exit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(_exit) movl $__NR_exit_group, %eax syscall diff --git a/libc/arch-x86_64/syscalls/acct.S b/libc/arch-x86_64/syscalls/acct.S index 91ecf5b78..6bf59e37b 100644 --- a/libc/arch-x86_64/syscalls/acct.S +++ b/libc/arch-x86_64/syscalls/acct.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(acct) movl $__NR_acct, %eax syscall diff --git a/libc/arch-x86_64/syscalls/bind.S b/libc/arch-x86_64/syscalls/bind.S index 5d426cbbc..4300c005f 100644 --- a/libc/arch-x86_64/syscalls/bind.S +++ b/libc/arch-x86_64/syscalls/bind.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(bind) movl $__NR_bind, %eax syscall diff --git a/libc/arch-x86_64/syscalls/capget.S b/libc/arch-x86_64/syscalls/capget.S index d3d151ef1..8ce1846ee 100644 --- a/libc/arch-x86_64/syscalls/capget.S +++ b/libc/arch-x86_64/syscalls/capget.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capget) movl $__NR_capget, %eax syscall diff --git a/libc/arch-x86_64/syscalls/capset.S b/libc/arch-x86_64/syscalls/capset.S index 421f15623..3aff07c1a 100644 --- a/libc/arch-x86_64/syscalls/capset.S +++ b/libc/arch-x86_64/syscalls/capset.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(capset) movl $__NR_capset, %eax syscall diff --git a/libc/arch-x86_64/syscalls/chdir.S b/libc/arch-x86_64/syscalls/chdir.S index 7a6f651e4..f22b40d4e 100644 --- a/libc/arch-x86_64/syscalls/chdir.S +++ b/libc/arch-x86_64/syscalls/chdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chdir) movl $__NR_chdir, %eax syscall diff --git a/libc/arch-x86_64/syscalls/chroot.S b/libc/arch-x86_64/syscalls/chroot.S index 0f53fd95a..eb8a4633b 100644 --- a/libc/arch-x86_64/syscalls/chroot.S +++ b/libc/arch-x86_64/syscalls/chroot.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(chroot) movl $__NR_chroot, %eax syscall diff --git a/libc/arch-x86_64/syscalls/clock_getres.S b/libc/arch-x86_64/syscalls/clock_getres.S index bad0d782e..00b4ed67d 100644 --- a/libc/arch-x86_64/syscalls/clock_getres.S +++ b/libc/arch-x86_64/syscalls/clock_getres.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_getres) movl $__NR_clock_getres, %eax syscall diff --git a/libc/arch-x86_64/syscalls/clock_nanosleep.S b/libc/arch-x86_64/syscalls/clock_nanosleep.S index 2ef0d05c6..8bc87ae44 100644 --- a/libc/arch-x86_64/syscalls/clock_nanosleep.S +++ b/libc/arch-x86_64/syscalls/clock_nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_nanosleep) movq %rcx, %r10 movl $__NR_clock_nanosleep, %eax diff --git a/libc/arch-x86_64/syscalls/clock_settime.S b/libc/arch-x86_64/syscalls/clock_settime.S index 6a3b75b54..522577031 100644 --- a/libc/arch-x86_64/syscalls/clock_settime.S +++ b/libc/arch-x86_64/syscalls/clock_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(clock_settime) movl $__NR_clock_settime, %eax syscall diff --git a/libc/arch-x86_64/syscalls/close.S b/libc/arch-x86_64/syscalls/close.S index 41c840374..029d09ad6 100644 --- a/libc/arch-x86_64/syscalls/close.S +++ b/libc/arch-x86_64/syscalls/close.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(close) movl $__NR_close, %eax syscall diff --git a/libc/arch-x86_64/syscalls/delete_module.S b/libc/arch-x86_64/syscalls/delete_module.S index d3f3862cb..fc146bb6c 100644 --- a/libc/arch-x86_64/syscalls/delete_module.S +++ b/libc/arch-x86_64/syscalls/delete_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(delete_module) movl $__NR_delete_module, %eax syscall diff --git a/libc/arch-x86_64/syscalls/dup.S b/libc/arch-x86_64/syscalls/dup.S index bf2ca517e..53f06b0ec 100644 --- a/libc/arch-x86_64/syscalls/dup.S +++ b/libc/arch-x86_64/syscalls/dup.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup) movl $__NR_dup, %eax syscall diff --git a/libc/arch-x86_64/syscalls/dup3.S b/libc/arch-x86_64/syscalls/dup3.S index f5c929c46..fb99941ed 100644 --- a/libc/arch-x86_64/syscalls/dup3.S +++ b/libc/arch-x86_64/syscalls/dup3.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(dup3) movl $__NR_dup3, %eax syscall diff --git a/libc/arch-x86_64/syscalls/epoll_create1.S b/libc/arch-x86_64/syscalls/epoll_create1.S index 196a3c7c8..6aa19157d 100644 --- a/libc/arch-x86_64/syscalls/epoll_create1.S +++ b/libc/arch-x86_64/syscalls/epoll_create1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_create1) movl $__NR_epoll_create1, %eax syscall diff --git a/libc/arch-x86_64/syscalls/epoll_ctl.S b/libc/arch-x86_64/syscalls/epoll_ctl.S index 2a3517cca..c9dda01b5 100644 --- a/libc/arch-x86_64/syscalls/epoll_ctl.S +++ b/libc/arch-x86_64/syscalls/epoll_ctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(epoll_ctl) movq %rcx, %r10 movl $__NR_epoll_ctl, %eax diff --git a/libc/arch-x86_64/syscalls/eventfd.S b/libc/arch-x86_64/syscalls/eventfd.S index 3ed4baff0..ac7537f99 100644 --- a/libc/arch-x86_64/syscalls/eventfd.S +++ b/libc/arch-x86_64/syscalls/eventfd.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(eventfd) movl $__NR_eventfd2, %eax syscall diff --git a/libc/arch-x86_64/syscalls/execve.S b/libc/arch-x86_64/syscalls/execve.S index 1fe29c73c..a699303fb 100644 --- a/libc/arch-x86_64/syscalls/execve.S +++ b/libc/arch-x86_64/syscalls/execve.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(execve) movl $__NR_execve, %eax syscall diff --git a/libc/arch-x86_64/syscalls/faccessat.S b/libc/arch-x86_64/syscalls/faccessat.S index 3ea905c42..9426dd5d1 100644 --- a/libc/arch-x86_64/syscalls/faccessat.S +++ b/libc/arch-x86_64/syscalls/faccessat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(faccessat) movq %rcx, %r10 movl $__NR_faccessat, %eax diff --git a/libc/arch-x86_64/syscalls/fallocate.S b/libc/arch-x86_64/syscalls/fallocate.S index abaa303c5..91a2e6544 100644 --- a/libc/arch-x86_64/syscalls/fallocate.S +++ b/libc/arch-x86_64/syscalls/fallocate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fallocate) movq %rcx, %r10 movl $__NR_fallocate, %eax diff --git a/libc/arch-x86_64/syscalls/fchdir.S b/libc/arch-x86_64/syscalls/fchdir.S index b01bb5702..01c503086 100644 --- a/libc/arch-x86_64/syscalls/fchdir.S +++ b/libc/arch-x86_64/syscalls/fchdir.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchdir) movl $__NR_fchdir, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fchmod.S b/libc/arch-x86_64/syscalls/fchmod.S index 868638f05..1f4d02b70 100644 --- a/libc/arch-x86_64/syscalls/fchmod.S +++ b/libc/arch-x86_64/syscalls/fchmod.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmod) movl $__NR_fchmod, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fchmodat.S b/libc/arch-x86_64/syscalls/fchmodat.S index e045a1311..cee05e3d1 100644 --- a/libc/arch-x86_64/syscalls/fchmodat.S +++ b/libc/arch-x86_64/syscalls/fchmodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchmodat) movq %rcx, %r10 movl $__NR_fchmodat, %eax diff --git a/libc/arch-x86_64/syscalls/fchown.S b/libc/arch-x86_64/syscalls/fchown.S index 9ba775b6e..1c439915c 100644 --- a/libc/arch-x86_64/syscalls/fchown.S +++ b/libc/arch-x86_64/syscalls/fchown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchown) movl $__NR_fchown, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fchownat.S b/libc/arch-x86_64/syscalls/fchownat.S index 7789d2ddd..8f77888e1 100644 --- a/libc/arch-x86_64/syscalls/fchownat.S +++ b/libc/arch-x86_64/syscalls/fchownat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fchownat) movq %rcx, %r10 movl $__NR_fchownat, %eax diff --git a/libc/arch-x86_64/syscalls/fcntl.S b/libc/arch-x86_64/syscalls/fcntl.S index a20d9389c..d415467a0 100644 --- a/libc/arch-x86_64/syscalls/fcntl.S +++ b/libc/arch-x86_64/syscalls/fcntl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fcntl) movl $__NR_fcntl, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fdatasync.S b/libc/arch-x86_64/syscalls/fdatasync.S index 5ea8ebd8c..8ec419304 100644 --- a/libc/arch-x86_64/syscalls/fdatasync.S +++ b/libc/arch-x86_64/syscalls/fdatasync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fdatasync) movl $__NR_fdatasync, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fgetxattr.S b/libc/arch-x86_64/syscalls/fgetxattr.S index 096c30f05..9aacdbdb1 100644 --- a/libc/arch-x86_64/syscalls/fgetxattr.S +++ b/libc/arch-x86_64/syscalls/fgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fgetxattr) movq %rcx, %r10 movl $__NR_fgetxattr, %eax diff --git a/libc/arch-x86_64/syscalls/flistxattr.S b/libc/arch-x86_64/syscalls/flistxattr.S index e0e5b8bc8..53c58d07a 100644 --- a/libc/arch-x86_64/syscalls/flistxattr.S +++ b/libc/arch-x86_64/syscalls/flistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flistxattr) movl $__NR_flistxattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/flock.S b/libc/arch-x86_64/syscalls/flock.S index 981d86ed1..fe57b47d1 100644 --- a/libc/arch-x86_64/syscalls/flock.S +++ b/libc/arch-x86_64/syscalls/flock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(flock) movl $__NR_flock, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fremovexattr.S b/libc/arch-x86_64/syscalls/fremovexattr.S index 655bdef85..c37cc9303 100644 --- a/libc/arch-x86_64/syscalls/fremovexattr.S +++ b/libc/arch-x86_64/syscalls/fremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fremovexattr) movl $__NR_fremovexattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fsetxattr.S b/libc/arch-x86_64/syscalls/fsetxattr.S index fa2bddca7..cc3d7b7bf 100644 --- a/libc/arch-x86_64/syscalls/fsetxattr.S +++ b/libc/arch-x86_64/syscalls/fsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsetxattr) movq %rcx, %r10 movl $__NR_fsetxattr, %eax diff --git a/libc/arch-x86_64/syscalls/fstat64.S b/libc/arch-x86_64/syscalls/fstat64.S index 9e7aa2dd6..dbc676010 100644 --- a/libc/arch-x86_64/syscalls/fstat64.S +++ b/libc/arch-x86_64/syscalls/fstat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstat64) movl $__NR_fstat, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fstatat64.S b/libc/arch-x86_64/syscalls/fstatat64.S index 5418cd0af..28b91fa13 100644 --- a/libc/arch-x86_64/syscalls/fstatat64.S +++ b/libc/arch-x86_64/syscalls/fstatat64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstatat64) movq %rcx, %r10 movl $__NR_newfstatat, %eax diff --git a/libc/arch-x86_64/syscalls/fstatfs64.S b/libc/arch-x86_64/syscalls/fstatfs64.S index ee2daa2df..4b12afb05 100644 --- a/libc/arch-x86_64/syscalls/fstatfs64.S +++ b/libc/arch-x86_64/syscalls/fstatfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fstatfs64) movl $__NR_fstatfs, %eax syscall diff --git a/libc/arch-x86_64/syscalls/fsync.S b/libc/arch-x86_64/syscalls/fsync.S index 12eabd325..820502e8c 100644 --- a/libc/arch-x86_64/syscalls/fsync.S +++ b/libc/arch-x86_64/syscalls/fsync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(fsync) movl $__NR_fsync, %eax syscall diff --git a/libc/arch-x86_64/syscalls/ftruncate.S b/libc/arch-x86_64/syscalls/ftruncate.S index 11161a7cd..0b1440301 100644 --- a/libc/arch-x86_64/syscalls/ftruncate.S +++ b/libc/arch-x86_64/syscalls/ftruncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(ftruncate) movl $__NR_ftruncate, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getegid.S b/libc/arch-x86_64/syscalls/getegid.S index 6f9c2a80f..155d37ba4 100644 --- a/libc/arch-x86_64/syscalls/getegid.S +++ b/libc/arch-x86_64/syscalls/getegid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getegid) movl $__NR_getegid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/geteuid.S b/libc/arch-x86_64/syscalls/geteuid.S index 88000ef05..9ffa3cd5d 100644 --- a/libc/arch-x86_64/syscalls/geteuid.S +++ b/libc/arch-x86_64/syscalls/geteuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(geteuid) movl $__NR_geteuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getgid.S b/libc/arch-x86_64/syscalls/getgid.S index 8f8eaa6fe..d9c9da938 100644 --- a/libc/arch-x86_64/syscalls/getgid.S +++ b/libc/arch-x86_64/syscalls/getgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgid) movl $__NR_getgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getgroups.S b/libc/arch-x86_64/syscalls/getgroups.S index 5358a3e6f..9f0701a64 100644 --- a/libc/arch-x86_64/syscalls/getgroups.S +++ b/libc/arch-x86_64/syscalls/getgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getgroups) movl $__NR_getgroups, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getitimer.S b/libc/arch-x86_64/syscalls/getitimer.S index b6a6e8e5c..2d764306b 100644 --- a/libc/arch-x86_64/syscalls/getitimer.S +++ b/libc/arch-x86_64/syscalls/getitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getitimer) movl $__NR_getitimer, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getpeername.S b/libc/arch-x86_64/syscalls/getpeername.S index 98e06fb89..b6de1833d 100644 --- a/libc/arch-x86_64/syscalls/getpeername.S +++ b/libc/arch-x86_64/syscalls/getpeername.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpeername) movl $__NR_getpeername, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getpgid.S b/libc/arch-x86_64/syscalls/getpgid.S index 158f14de6..e321b6619 100644 --- a/libc/arch-x86_64/syscalls/getpgid.S +++ b/libc/arch-x86_64/syscalls/getpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getpgid) movl $__NR_getpgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getppid.S b/libc/arch-x86_64/syscalls/getppid.S index e4853e0d8..4a238ade6 100644 --- a/libc/arch-x86_64/syscalls/getppid.S +++ b/libc/arch-x86_64/syscalls/getppid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getppid) movl $__NR_getppid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getresgid.S b/libc/arch-x86_64/syscalls/getresgid.S index d65fb1392..4727d2972 100644 --- a/libc/arch-x86_64/syscalls/getresgid.S +++ b/libc/arch-x86_64/syscalls/getresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresgid) movl $__NR_getresgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getresuid.S b/libc/arch-x86_64/syscalls/getresuid.S index 80d85c676..1098d5646 100644 --- a/libc/arch-x86_64/syscalls/getresuid.S +++ b/libc/arch-x86_64/syscalls/getresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getresuid) movl $__NR_getresuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getrlimit.S b/libc/arch-x86_64/syscalls/getrlimit.S index ea0ca7da0..60e5881bf 100644 --- a/libc/arch-x86_64/syscalls/getrlimit.S +++ b/libc/arch-x86_64/syscalls/getrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrlimit) movl $__NR_getrlimit, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getrusage.S b/libc/arch-x86_64/syscalls/getrusage.S index 7a60738bd..0eb017663 100644 --- a/libc/arch-x86_64/syscalls/getrusage.S +++ b/libc/arch-x86_64/syscalls/getrusage.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getrusage) movl $__NR_getrusage, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getsid.S b/libc/arch-x86_64/syscalls/getsid.S index 75e3fad98..2543b1058 100644 --- a/libc/arch-x86_64/syscalls/getsid.S +++ b/libc/arch-x86_64/syscalls/getsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsid) movl $__NR_getsid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getsockname.S b/libc/arch-x86_64/syscalls/getsockname.S index 3c7c2f852..17cd5eaf6 100644 --- a/libc/arch-x86_64/syscalls/getsockname.S +++ b/libc/arch-x86_64/syscalls/getsockname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockname) movl $__NR_getsockname, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getsockopt.S b/libc/arch-x86_64/syscalls/getsockopt.S index 725757cd8..988a2cbcd 100644 --- a/libc/arch-x86_64/syscalls/getsockopt.S +++ b/libc/arch-x86_64/syscalls/getsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getsockopt) movq %rcx, %r10 movl $__NR_getsockopt, %eax diff --git a/libc/arch-x86_64/syscalls/getuid.S b/libc/arch-x86_64/syscalls/getuid.S index d7306e160..9b7a1d9d6 100644 --- a/libc/arch-x86_64/syscalls/getuid.S +++ b/libc/arch-x86_64/syscalls/getuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getuid) movl $__NR_getuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/getxattr.S b/libc/arch-x86_64/syscalls/getxattr.S index 7c66b0e4b..4d6aecf7a 100644 --- a/libc/arch-x86_64/syscalls/getxattr.S +++ b/libc/arch-x86_64/syscalls/getxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(getxattr) movq %rcx, %r10 movl $__NR_getxattr, %eax diff --git a/libc/arch-x86_64/syscalls/init_module.S b/libc/arch-x86_64/syscalls/init_module.S index 187f5a277..2c5141458 100644 --- a/libc/arch-x86_64/syscalls/init_module.S +++ b/libc/arch-x86_64/syscalls/init_module.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(init_module) movl $__NR_init_module, %eax syscall diff --git a/libc/arch-x86_64/syscalls/inotify_add_watch.S b/libc/arch-x86_64/syscalls/inotify_add_watch.S index 47e15ab57..da5aa36ee 100644 --- a/libc/arch-x86_64/syscalls/inotify_add_watch.S +++ b/libc/arch-x86_64/syscalls/inotify_add_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_add_watch) movl $__NR_inotify_add_watch, %eax syscall diff --git a/libc/arch-x86_64/syscalls/inotify_init1.S b/libc/arch-x86_64/syscalls/inotify_init1.S index 160b0d59e..46e5014b9 100644 --- a/libc/arch-x86_64/syscalls/inotify_init1.S +++ b/libc/arch-x86_64/syscalls/inotify_init1.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_init1) movl $__NR_inotify_init1, %eax syscall diff --git a/libc/arch-x86_64/syscalls/inotify_rm_watch.S b/libc/arch-x86_64/syscalls/inotify_rm_watch.S index 4c5874ea4..5920c9df0 100644 --- a/libc/arch-x86_64/syscalls/inotify_rm_watch.S +++ b/libc/arch-x86_64/syscalls/inotify_rm_watch.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(inotify_rm_watch) movl $__NR_inotify_rm_watch, %eax syscall diff --git a/libc/arch-x86_64/syscalls/kill.S b/libc/arch-x86_64/syscalls/kill.S index f234585c8..dff2da60f 100644 --- a/libc/arch-x86_64/syscalls/kill.S +++ b/libc/arch-x86_64/syscalls/kill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(kill) movl $__NR_kill, %eax syscall diff --git a/libc/arch-x86_64/syscalls/klogctl.S b/libc/arch-x86_64/syscalls/klogctl.S index 057b066c7..8560d2819 100644 --- a/libc/arch-x86_64/syscalls/klogctl.S +++ b/libc/arch-x86_64/syscalls/klogctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(klogctl) movl $__NR_syslog, %eax syscall diff --git a/libc/arch-x86_64/syscalls/lgetxattr.S b/libc/arch-x86_64/syscalls/lgetxattr.S index 525ee3be8..b4bc204bb 100644 --- a/libc/arch-x86_64/syscalls/lgetxattr.S +++ b/libc/arch-x86_64/syscalls/lgetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lgetxattr) movq %rcx, %r10 movl $__NR_lgetxattr, %eax diff --git a/libc/arch-x86_64/syscalls/linkat.S b/libc/arch-x86_64/syscalls/linkat.S index 815af86ff..509b57949 100644 --- a/libc/arch-x86_64/syscalls/linkat.S +++ b/libc/arch-x86_64/syscalls/linkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(linkat) movq %rcx, %r10 movl $__NR_linkat, %eax diff --git a/libc/arch-x86_64/syscalls/listen.S b/libc/arch-x86_64/syscalls/listen.S index d3d7103fb..6bd46a551 100644 --- a/libc/arch-x86_64/syscalls/listen.S +++ b/libc/arch-x86_64/syscalls/listen.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listen) movl $__NR_listen, %eax syscall diff --git a/libc/arch-x86_64/syscalls/listxattr.S b/libc/arch-x86_64/syscalls/listxattr.S index 89fd63ce2..102518f11 100644 --- a/libc/arch-x86_64/syscalls/listxattr.S +++ b/libc/arch-x86_64/syscalls/listxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(listxattr) movl $__NR_listxattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/llistxattr.S b/libc/arch-x86_64/syscalls/llistxattr.S index cfff2e79b..74d58a851 100644 --- a/libc/arch-x86_64/syscalls/llistxattr.S +++ b/libc/arch-x86_64/syscalls/llistxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(llistxattr) movl $__NR_llistxattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/lremovexattr.S b/libc/arch-x86_64/syscalls/lremovexattr.S index 0b6994a52..2566e3397 100644 --- a/libc/arch-x86_64/syscalls/lremovexattr.S +++ b/libc/arch-x86_64/syscalls/lremovexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lremovexattr) movl $__NR_lremovexattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/lseek.S b/libc/arch-x86_64/syscalls/lseek.S index b2e8c16a5..93e5f0c58 100644 --- a/libc/arch-x86_64/syscalls/lseek.S +++ b/libc/arch-x86_64/syscalls/lseek.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lseek) movl $__NR_lseek, %eax syscall diff --git a/libc/arch-x86_64/syscalls/lsetxattr.S b/libc/arch-x86_64/syscalls/lsetxattr.S index fdaf98ae4..905bd3b85 100644 --- a/libc/arch-x86_64/syscalls/lsetxattr.S +++ b/libc/arch-x86_64/syscalls/lsetxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(lsetxattr) movq %rcx, %r10 movl $__NR_lsetxattr, %eax diff --git a/libc/arch-x86_64/syscalls/madvise.S b/libc/arch-x86_64/syscalls/madvise.S index 3f567fd03..c565ca3b1 100644 --- a/libc/arch-x86_64/syscalls/madvise.S +++ b/libc/arch-x86_64/syscalls/madvise.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(madvise) movl $__NR_madvise, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mincore.S b/libc/arch-x86_64/syscalls/mincore.S index e6b252155..f8acdeb25 100644 --- a/libc/arch-x86_64/syscalls/mincore.S +++ b/libc/arch-x86_64/syscalls/mincore.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mincore) movl $__NR_mincore, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mkdirat.S b/libc/arch-x86_64/syscalls/mkdirat.S index abba2d571..b554d125d 100644 --- a/libc/arch-x86_64/syscalls/mkdirat.S +++ b/libc/arch-x86_64/syscalls/mkdirat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mkdirat) movl $__NR_mkdirat, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mknodat.S b/libc/arch-x86_64/syscalls/mknodat.S index d3d78c9c5..dd6496a14 100644 --- a/libc/arch-x86_64/syscalls/mknodat.S +++ b/libc/arch-x86_64/syscalls/mknodat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mknodat) movq %rcx, %r10 movl $__NR_mknodat, %eax diff --git a/libc/arch-x86_64/syscalls/mlock.S b/libc/arch-x86_64/syscalls/mlock.S index 0c69eb71b..78389e29b 100644 --- a/libc/arch-x86_64/syscalls/mlock.S +++ b/libc/arch-x86_64/syscalls/mlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlock) movl $__NR_mlock, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mlockall.S b/libc/arch-x86_64/syscalls/mlockall.S index 89ba9b6e6..3ac878a7f 100644 --- a/libc/arch-x86_64/syscalls/mlockall.S +++ b/libc/arch-x86_64/syscalls/mlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mlockall) movl $__NR_mlockall, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mmap.S b/libc/arch-x86_64/syscalls/mmap.S index 7b9f6e033..44189a993 100644 --- a/libc/arch-x86_64/syscalls/mmap.S +++ b/libc/arch-x86_64/syscalls/mmap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mmap) movq %rcx, %r10 movl $__NR_mmap, %eax diff --git a/libc/arch-x86_64/syscalls/mount.S b/libc/arch-x86_64/syscalls/mount.S index 04534c9d3..369e8df58 100644 --- a/libc/arch-x86_64/syscalls/mount.S +++ b/libc/arch-x86_64/syscalls/mount.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mount) movq %rcx, %r10 movl $__NR_mount, %eax diff --git a/libc/arch-x86_64/syscalls/mprotect.S b/libc/arch-x86_64/syscalls/mprotect.S index d849bb130..44888da2d 100644 --- a/libc/arch-x86_64/syscalls/mprotect.S +++ b/libc/arch-x86_64/syscalls/mprotect.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mprotect) movl $__NR_mprotect, %eax syscall diff --git a/libc/arch-x86_64/syscalls/mremap.S b/libc/arch-x86_64/syscalls/mremap.S index 8af367ed8..74a05e24a 100644 --- a/libc/arch-x86_64/syscalls/mremap.S +++ b/libc/arch-x86_64/syscalls/mremap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(mremap) movq %rcx, %r10 movl $__NR_mremap, %eax diff --git a/libc/arch-x86_64/syscalls/msync.S b/libc/arch-x86_64/syscalls/msync.S index c0ff0f9b7..1d0e785c2 100644 --- a/libc/arch-x86_64/syscalls/msync.S +++ b/libc/arch-x86_64/syscalls/msync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(msync) movl $__NR_msync, %eax syscall diff --git a/libc/arch-x86_64/syscalls/munlock.S b/libc/arch-x86_64/syscalls/munlock.S index d669f5400..17e368b89 100644 --- a/libc/arch-x86_64/syscalls/munlock.S +++ b/libc/arch-x86_64/syscalls/munlock.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlock) movl $__NR_munlock, %eax syscall diff --git a/libc/arch-x86_64/syscalls/munlockall.S b/libc/arch-x86_64/syscalls/munlockall.S index b7a9abcc7..6bb7aa648 100644 --- a/libc/arch-x86_64/syscalls/munlockall.S +++ b/libc/arch-x86_64/syscalls/munlockall.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munlockall) movl $__NR_munlockall, %eax syscall diff --git a/libc/arch-x86_64/syscalls/munmap.S b/libc/arch-x86_64/syscalls/munmap.S index 4360bd0b2..f423a6672 100644 --- a/libc/arch-x86_64/syscalls/munmap.S +++ b/libc/arch-x86_64/syscalls/munmap.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(munmap) movl $__NR_munmap, %eax syscall diff --git a/libc/arch-x86_64/syscalls/nanosleep.S b/libc/arch-x86_64/syscalls/nanosleep.S index 2eced5b2c..caa1ae685 100644 --- a/libc/arch-x86_64/syscalls/nanosleep.S +++ b/libc/arch-x86_64/syscalls/nanosleep.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(nanosleep) movl $__NR_nanosleep, %eax syscall diff --git a/libc/arch-x86_64/syscalls/personality.S b/libc/arch-x86_64/syscalls/personality.S index 17ad7eeac..a742dbf15 100644 --- a/libc/arch-x86_64/syscalls/personality.S +++ b/libc/arch-x86_64/syscalls/personality.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(personality) movl $__NR_personality, %eax syscall diff --git a/libc/arch-x86_64/syscalls/pipe2.S b/libc/arch-x86_64/syscalls/pipe2.S index 83eb0a61b..e34ca69be 100644 --- a/libc/arch-x86_64/syscalls/pipe2.S +++ b/libc/arch-x86_64/syscalls/pipe2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pipe2) movl $__NR_pipe2, %eax syscall diff --git a/libc/arch-x86_64/syscalls/prctl.S b/libc/arch-x86_64/syscalls/prctl.S index c79220d44..b4cdaa50a 100644 --- a/libc/arch-x86_64/syscalls/prctl.S +++ b/libc/arch-x86_64/syscalls/prctl.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prctl) movq %rcx, %r10 movl $__NR_prctl, %eax diff --git a/libc/arch-x86_64/syscalls/pread64.S b/libc/arch-x86_64/syscalls/pread64.S index 1c4dc68da..1d042efc2 100644 --- a/libc/arch-x86_64/syscalls/pread64.S +++ b/libc/arch-x86_64/syscalls/pread64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pread64) movq %rcx, %r10 movl $__NR_pread64, %eax diff --git a/libc/arch-x86_64/syscalls/prlimit64.S b/libc/arch-x86_64/syscalls/prlimit64.S index 823feba5c..52151a8f4 100644 --- a/libc/arch-x86_64/syscalls/prlimit64.S +++ b/libc/arch-x86_64/syscalls/prlimit64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(prlimit64) movq %rcx, %r10 movl $__NR_prlimit64, %eax diff --git a/libc/arch-x86_64/syscalls/pwrite64.S b/libc/arch-x86_64/syscalls/pwrite64.S index 13bcb58bf..2fb0f16af 100644 --- a/libc/arch-x86_64/syscalls/pwrite64.S +++ b/libc/arch-x86_64/syscalls/pwrite64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(pwrite64) movq %rcx, %r10 movl $__NR_pwrite64, %eax diff --git a/libc/arch-x86_64/syscalls/read.S b/libc/arch-x86_64/syscalls/read.S index 400c87ac8..3f2862e3b 100644 --- a/libc/arch-x86_64/syscalls/read.S +++ b/libc/arch-x86_64/syscalls/read.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(read) movl $__NR_read, %eax syscall diff --git a/libc/arch-x86_64/syscalls/readahead.S b/libc/arch-x86_64/syscalls/readahead.S index 2a2978ba3..df3aba168 100644 --- a/libc/arch-x86_64/syscalls/readahead.S +++ b/libc/arch-x86_64/syscalls/readahead.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readahead) movl $__NR_readahead, %eax syscall diff --git a/libc/arch-x86_64/syscalls/readlinkat.S b/libc/arch-x86_64/syscalls/readlinkat.S index 51d1f0c7e..554b8b6f2 100644 --- a/libc/arch-x86_64/syscalls/readlinkat.S +++ b/libc/arch-x86_64/syscalls/readlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readlinkat) movq %rcx, %r10 movl $__NR_readlinkat, %eax diff --git a/libc/arch-x86_64/syscalls/readv.S b/libc/arch-x86_64/syscalls/readv.S index 419975183..75d04e956 100644 --- a/libc/arch-x86_64/syscalls/readv.S +++ b/libc/arch-x86_64/syscalls/readv.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(readv) movl $__NR_readv, %eax syscall diff --git a/libc/arch-x86_64/syscalls/recvfrom.S b/libc/arch-x86_64/syscalls/recvfrom.S index 61ca1b219..4ee56318c 100644 --- a/libc/arch-x86_64/syscalls/recvfrom.S +++ b/libc/arch-x86_64/syscalls/recvfrom.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvfrom) movq %rcx, %r10 movl $__NR_recvfrom, %eax diff --git a/libc/arch-x86_64/syscalls/recvmmsg.S b/libc/arch-x86_64/syscalls/recvmmsg.S index ce14ba50c..327932547 100644 --- a/libc/arch-x86_64/syscalls/recvmmsg.S +++ b/libc/arch-x86_64/syscalls/recvmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmmsg) movq %rcx, %r10 movl $__NR_recvmmsg, %eax diff --git a/libc/arch-x86_64/syscalls/recvmsg.S b/libc/arch-x86_64/syscalls/recvmsg.S index 8655d072d..7c186fd5b 100644 --- a/libc/arch-x86_64/syscalls/recvmsg.S +++ b/libc/arch-x86_64/syscalls/recvmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(recvmsg) movl $__NR_recvmsg, %eax syscall diff --git a/libc/arch-x86_64/syscalls/removexattr.S b/libc/arch-x86_64/syscalls/removexattr.S index 97364633f..909164729 100644 --- a/libc/arch-x86_64/syscalls/removexattr.S +++ b/libc/arch-x86_64/syscalls/removexattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(removexattr) movl $__NR_removexattr, %eax syscall diff --git a/libc/arch-x86_64/syscalls/renameat.S b/libc/arch-x86_64/syscalls/renameat.S index 0be2ef909..7258712f7 100644 --- a/libc/arch-x86_64/syscalls/renameat.S +++ b/libc/arch-x86_64/syscalls/renameat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(renameat) movq %rcx, %r10 movl $__NR_renameat, %eax diff --git a/libc/arch-x86_64/syscalls/sched_get_priority_max.S b/libc/arch-x86_64/syscalls/sched_get_priority_max.S index 0f9273942..604d6c89e 100644 --- a/libc/arch-x86_64/syscalls/sched_get_priority_max.S +++ b/libc/arch-x86_64/syscalls/sched_get_priority_max.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_max) movl $__NR_sched_get_priority_max, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_get_priority_min.S b/libc/arch-x86_64/syscalls/sched_get_priority_min.S index 8450e9db3..eaeb7654f 100644 --- a/libc/arch-x86_64/syscalls/sched_get_priority_min.S +++ b/libc/arch-x86_64/syscalls/sched_get_priority_min.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_get_priority_min) movl $__NR_sched_get_priority_min, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_getparam.S b/libc/arch-x86_64/syscalls/sched_getparam.S index a784640a0..e269c7d0f 100644 --- a/libc/arch-x86_64/syscalls/sched_getparam.S +++ b/libc/arch-x86_64/syscalls/sched_getparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getparam) movl $__NR_sched_getparam, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_getscheduler.S b/libc/arch-x86_64/syscalls/sched_getscheduler.S index 090b32246..0cf3b5403 100644 --- a/libc/arch-x86_64/syscalls/sched_getscheduler.S +++ b/libc/arch-x86_64/syscalls/sched_getscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_getscheduler) movl $__NR_sched_getscheduler, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_rr_get_interval.S b/libc/arch-x86_64/syscalls/sched_rr_get_interval.S index 0977f2ed9..662a28c4a 100644 --- a/libc/arch-x86_64/syscalls/sched_rr_get_interval.S +++ b/libc/arch-x86_64/syscalls/sched_rr_get_interval.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_rr_get_interval) movl $__NR_sched_rr_get_interval, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_setaffinity.S b/libc/arch-x86_64/syscalls/sched_setaffinity.S index af8e7a2ae..79b43fd27 100644 --- a/libc/arch-x86_64/syscalls/sched_setaffinity.S +++ b/libc/arch-x86_64/syscalls/sched_setaffinity.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setaffinity) movl $__NR_sched_setaffinity, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_setparam.S b/libc/arch-x86_64/syscalls/sched_setparam.S index 2964607db..871b49262 100644 --- a/libc/arch-x86_64/syscalls/sched_setparam.S +++ b/libc/arch-x86_64/syscalls/sched_setparam.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setparam) movl $__NR_sched_setparam, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_setscheduler.S b/libc/arch-x86_64/syscalls/sched_setscheduler.S index 333d1b86c..0dcb47d33 100644 --- a/libc/arch-x86_64/syscalls/sched_setscheduler.S +++ b/libc/arch-x86_64/syscalls/sched_setscheduler.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_setscheduler) movl $__NR_sched_setscheduler, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sched_yield.S b/libc/arch-x86_64/syscalls/sched_yield.S index a97215462..12de511fb 100644 --- a/libc/arch-x86_64/syscalls/sched_yield.S +++ b/libc/arch-x86_64/syscalls/sched_yield.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sched_yield) movl $__NR_sched_yield, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sendfile.S b/libc/arch-x86_64/syscalls/sendfile.S index c1b6497b8..0255bf29f 100644 --- a/libc/arch-x86_64/syscalls/sendfile.S +++ b/libc/arch-x86_64/syscalls/sendfile.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendfile) movq %rcx, %r10 movl $__NR_sendfile, %eax diff --git a/libc/arch-x86_64/syscalls/sendmmsg.S b/libc/arch-x86_64/syscalls/sendmmsg.S index 940c0b6ee..47b2e3a75 100644 --- a/libc/arch-x86_64/syscalls/sendmmsg.S +++ b/libc/arch-x86_64/syscalls/sendmmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmmsg) movq %rcx, %r10 movl $__NR_sendmmsg, %eax diff --git a/libc/arch-x86_64/syscalls/sendmsg.S b/libc/arch-x86_64/syscalls/sendmsg.S index 6d94bb691..e9eecf6b6 100644 --- a/libc/arch-x86_64/syscalls/sendmsg.S +++ b/libc/arch-x86_64/syscalls/sendmsg.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendmsg) movl $__NR_sendmsg, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sendto.S b/libc/arch-x86_64/syscalls/sendto.S index bfe46361f..f8cc14935 100644 --- a/libc/arch-x86_64/syscalls/sendto.S +++ b/libc/arch-x86_64/syscalls/sendto.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sendto) movq %rcx, %r10 movl $__NR_sendto, %eax diff --git a/libc/arch-x86_64/syscalls/setfsgid.S b/libc/arch-x86_64/syscalls/setfsgid.S index e9f50b80d..bfc9c5dd1 100644 --- a/libc/arch-x86_64/syscalls/setfsgid.S +++ b/libc/arch-x86_64/syscalls/setfsgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsgid) movl $__NR_setfsgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setfsuid.S b/libc/arch-x86_64/syscalls/setfsuid.S index cfdb86cc8..2540a36a1 100644 --- a/libc/arch-x86_64/syscalls/setfsuid.S +++ b/libc/arch-x86_64/syscalls/setfsuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setfsuid) movl $__NR_setfsuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setgid.S b/libc/arch-x86_64/syscalls/setgid.S index ef4fb31b9..8f9ce5322 100644 --- a/libc/arch-x86_64/syscalls/setgid.S +++ b/libc/arch-x86_64/syscalls/setgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgid) movl $__NR_setgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setgroups.S b/libc/arch-x86_64/syscalls/setgroups.S index 65e618072..81023ab4b 100644 --- a/libc/arch-x86_64/syscalls/setgroups.S +++ b/libc/arch-x86_64/syscalls/setgroups.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setgroups) movl $__NR_setgroups, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setitimer.S b/libc/arch-x86_64/syscalls/setitimer.S index bee4996c2..6882564b5 100644 --- a/libc/arch-x86_64/syscalls/setitimer.S +++ b/libc/arch-x86_64/syscalls/setitimer.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setitimer) movl $__NR_setitimer, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setns.S b/libc/arch-x86_64/syscalls/setns.S index 521769b91..15dc51c99 100644 --- a/libc/arch-x86_64/syscalls/setns.S +++ b/libc/arch-x86_64/syscalls/setns.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setns) movl $__NR_setns, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setpgid.S b/libc/arch-x86_64/syscalls/setpgid.S index 348612bd7..0cbb9a33a 100644 --- a/libc/arch-x86_64/syscalls/setpgid.S +++ b/libc/arch-x86_64/syscalls/setpgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpgid) movl $__NR_setpgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setpriority.S b/libc/arch-x86_64/syscalls/setpriority.S index 094036816..e2ee77581 100644 --- a/libc/arch-x86_64/syscalls/setpriority.S +++ b/libc/arch-x86_64/syscalls/setpriority.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setpriority) movl $__NR_setpriority, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setregid.S b/libc/arch-x86_64/syscalls/setregid.S index 0338ecf90..1d53e4caa 100644 --- a/libc/arch-x86_64/syscalls/setregid.S +++ b/libc/arch-x86_64/syscalls/setregid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setregid) movl $__NR_setregid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setresgid.S b/libc/arch-x86_64/syscalls/setresgid.S index 10e12447e..7663cc68f 100644 --- a/libc/arch-x86_64/syscalls/setresgid.S +++ b/libc/arch-x86_64/syscalls/setresgid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresgid) movl $__NR_setresgid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setresuid.S b/libc/arch-x86_64/syscalls/setresuid.S index 229b11b33..96e691f52 100644 --- a/libc/arch-x86_64/syscalls/setresuid.S +++ b/libc/arch-x86_64/syscalls/setresuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setresuid) movl $__NR_setresuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setreuid.S b/libc/arch-x86_64/syscalls/setreuid.S index e96e2d386..9ee7208d4 100644 --- a/libc/arch-x86_64/syscalls/setreuid.S +++ b/libc/arch-x86_64/syscalls/setreuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setreuid) movl $__NR_setreuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setrlimit.S b/libc/arch-x86_64/syscalls/setrlimit.S index 662587d48..393a5c186 100644 --- a/libc/arch-x86_64/syscalls/setrlimit.S +++ b/libc/arch-x86_64/syscalls/setrlimit.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setrlimit) movl $__NR_setrlimit, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setsid.S b/libc/arch-x86_64/syscalls/setsid.S index 293ecf555..bed06c9e2 100644 --- a/libc/arch-x86_64/syscalls/setsid.S +++ b/libc/arch-x86_64/syscalls/setsid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsid) movl $__NR_setsid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setsockopt.S b/libc/arch-x86_64/syscalls/setsockopt.S index aee661391..3c12cd60e 100644 --- a/libc/arch-x86_64/syscalls/setsockopt.S +++ b/libc/arch-x86_64/syscalls/setsockopt.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setsockopt) movq %rcx, %r10 movl $__NR_setsockopt, %eax diff --git a/libc/arch-x86_64/syscalls/settimeofday.S b/libc/arch-x86_64/syscalls/settimeofday.S index 0d00c8947..317946a42 100644 --- a/libc/arch-x86_64/syscalls/settimeofday.S +++ b/libc/arch-x86_64/syscalls/settimeofday.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(settimeofday) movl $__NR_settimeofday, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setuid.S b/libc/arch-x86_64/syscalls/setuid.S index 19e2a1042..8da7d86fa 100644 --- a/libc/arch-x86_64/syscalls/setuid.S +++ b/libc/arch-x86_64/syscalls/setuid.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setuid) movl $__NR_setuid, %eax syscall diff --git a/libc/arch-x86_64/syscalls/setxattr.S b/libc/arch-x86_64/syscalls/setxattr.S index 3e4d50bf0..2abaa7675 100644 --- a/libc/arch-x86_64/syscalls/setxattr.S +++ b/libc/arch-x86_64/syscalls/setxattr.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(setxattr) movq %rcx, %r10 movl $__NR_setxattr, %eax diff --git a/libc/arch-x86_64/syscalls/shutdown.S b/libc/arch-x86_64/syscalls/shutdown.S index 346be331d..b5840d74b 100644 --- a/libc/arch-x86_64/syscalls/shutdown.S +++ b/libc/arch-x86_64/syscalls/shutdown.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(shutdown) movl $__NR_shutdown, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sigaltstack.S b/libc/arch-x86_64/syscalls/sigaltstack.S index 271fafc09..2dd6aa4bf 100644 --- a/libc/arch-x86_64/syscalls/sigaltstack.S +++ b/libc/arch-x86_64/syscalls/sigaltstack.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sigaltstack) movl $__NR_sigaltstack, %eax syscall diff --git a/libc/arch-x86_64/syscalls/socketpair.S b/libc/arch-x86_64/syscalls/socketpair.S index 5466dc9db..cb32a8aff 100644 --- a/libc/arch-x86_64/syscalls/socketpair.S +++ b/libc/arch-x86_64/syscalls/socketpair.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(socketpair) movq %rcx, %r10 movl $__NR_socketpair, %eax diff --git a/libc/arch-x86_64/syscalls/splice.S b/libc/arch-x86_64/syscalls/splice.S index 3c245a554..351e1c7f9 100644 --- a/libc/arch-x86_64/syscalls/splice.S +++ b/libc/arch-x86_64/syscalls/splice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(splice) movq %rcx, %r10 movl $__NR_splice, %eax diff --git a/libc/arch-x86_64/syscalls/statfs64.S b/libc/arch-x86_64/syscalls/statfs64.S index 6a2637ca3..26c3d535f 100644 --- a/libc/arch-x86_64/syscalls/statfs64.S +++ b/libc/arch-x86_64/syscalls/statfs64.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(statfs64) movl $__NR_statfs, %eax syscall diff --git a/libc/arch-x86_64/syscalls/swapoff.S b/libc/arch-x86_64/syscalls/swapoff.S index 7e55758ab..1bf331c2b 100644 --- a/libc/arch-x86_64/syscalls/swapoff.S +++ b/libc/arch-x86_64/syscalls/swapoff.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapoff) movl $__NR_swapoff, %eax syscall diff --git a/libc/arch-x86_64/syscalls/swapon.S b/libc/arch-x86_64/syscalls/swapon.S index d2f5f660b..7405ccb9f 100644 --- a/libc/arch-x86_64/syscalls/swapon.S +++ b/libc/arch-x86_64/syscalls/swapon.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(swapon) movl $__NR_swapon, %eax syscall diff --git a/libc/arch-x86_64/syscalls/symlinkat.S b/libc/arch-x86_64/syscalls/symlinkat.S index 5bbf1cbdb..bea2da886 100644 --- a/libc/arch-x86_64/syscalls/symlinkat.S +++ b/libc/arch-x86_64/syscalls/symlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(symlinkat) movl $__NR_symlinkat, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sync.S b/libc/arch-x86_64/syscalls/sync.S index 991171543..97aa427e7 100644 --- a/libc/arch-x86_64/syscalls/sync.S +++ b/libc/arch-x86_64/syscalls/sync.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sync) movl $__NR_sync, %eax syscall diff --git a/libc/arch-x86_64/syscalls/sysinfo.S b/libc/arch-x86_64/syscalls/sysinfo.S index 104bb2ced..de8fb8fb8 100644 --- a/libc/arch-x86_64/syscalls/sysinfo.S +++ b/libc/arch-x86_64/syscalls/sysinfo.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(sysinfo) movl $__NR_sysinfo, %eax syscall diff --git a/libc/arch-x86_64/syscalls/tee.S b/libc/arch-x86_64/syscalls/tee.S index ad5698c9d..41e2370c6 100644 --- a/libc/arch-x86_64/syscalls/tee.S +++ b/libc/arch-x86_64/syscalls/tee.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tee) movq %rcx, %r10 movl $__NR_tee, %eax diff --git a/libc/arch-x86_64/syscalls/tgkill.S b/libc/arch-x86_64/syscalls/tgkill.S index e3b9972c7..00b2b42ee 100644 --- a/libc/arch-x86_64/syscalls/tgkill.S +++ b/libc/arch-x86_64/syscalls/tgkill.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(tgkill) movl $__NR_tgkill, %eax syscall diff --git a/libc/arch-x86_64/syscalls/timerfd_create.S b/libc/arch-x86_64/syscalls/timerfd_create.S index 3f1b23afc..eef3208f6 100644 --- a/libc/arch-x86_64/syscalls/timerfd_create.S +++ b/libc/arch-x86_64/syscalls/timerfd_create.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_create) movl $__NR_timerfd_create, %eax syscall diff --git a/libc/arch-x86_64/syscalls/timerfd_gettime.S b/libc/arch-x86_64/syscalls/timerfd_gettime.S index b1017ad90..9f11c5af8 100644 --- a/libc/arch-x86_64/syscalls/timerfd_gettime.S +++ b/libc/arch-x86_64/syscalls/timerfd_gettime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_gettime) movl $__NR_timerfd_gettime, %eax syscall diff --git a/libc/arch-x86_64/syscalls/timerfd_settime.S b/libc/arch-x86_64/syscalls/timerfd_settime.S index 8610a1d4f..65a17e1ad 100644 --- a/libc/arch-x86_64/syscalls/timerfd_settime.S +++ b/libc/arch-x86_64/syscalls/timerfd_settime.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(timerfd_settime) movq %rcx, %r10 movl $__NR_timerfd_settime, %eax diff --git a/libc/arch-x86_64/syscalls/times.S b/libc/arch-x86_64/syscalls/times.S index 07590b9f3..5ee21be78 100644 --- a/libc/arch-x86_64/syscalls/times.S +++ b/libc/arch-x86_64/syscalls/times.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(times) movl $__NR_times, %eax syscall diff --git a/libc/arch-x86_64/syscalls/truncate.S b/libc/arch-x86_64/syscalls/truncate.S index db2121f86..2dc179306 100644 --- a/libc/arch-x86_64/syscalls/truncate.S +++ b/libc/arch-x86_64/syscalls/truncate.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(truncate) movl $__NR_truncate, %eax syscall diff --git a/libc/arch-x86_64/syscalls/umask.S b/libc/arch-x86_64/syscalls/umask.S index badea7608..ad102bd75 100644 --- a/libc/arch-x86_64/syscalls/umask.S +++ b/libc/arch-x86_64/syscalls/umask.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umask) movl $__NR_umask, %eax syscall diff --git a/libc/arch-x86_64/syscalls/umount2.S b/libc/arch-x86_64/syscalls/umount2.S index 93e6fa034..31588de89 100644 --- a/libc/arch-x86_64/syscalls/umount2.S +++ b/libc/arch-x86_64/syscalls/umount2.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(umount2) movl $__NR_umount2, %eax syscall diff --git a/libc/arch-x86_64/syscalls/uname.S b/libc/arch-x86_64/syscalls/uname.S index 4b0d1c5e2..ad2d8f456 100644 --- a/libc/arch-x86_64/syscalls/uname.S +++ b/libc/arch-x86_64/syscalls/uname.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(uname) movl $__NR_uname, %eax syscall diff --git a/libc/arch-x86_64/syscalls/unlinkat.S b/libc/arch-x86_64/syscalls/unlinkat.S index f322f7d2e..e6aac2e4a 100644 --- a/libc/arch-x86_64/syscalls/unlinkat.S +++ b/libc/arch-x86_64/syscalls/unlinkat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unlinkat) movl $__NR_unlinkat, %eax syscall diff --git a/libc/arch-x86_64/syscalls/unshare.S b/libc/arch-x86_64/syscalls/unshare.S index b5395c141..6594df025 100644 --- a/libc/arch-x86_64/syscalls/unshare.S +++ b/libc/arch-x86_64/syscalls/unshare.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(unshare) movl $__NR_unshare, %eax syscall diff --git a/libc/arch-x86_64/syscalls/utimensat.S b/libc/arch-x86_64/syscalls/utimensat.S index f90caf210..5eaac1b55 100644 --- a/libc/arch-x86_64/syscalls/utimensat.S +++ b/libc/arch-x86_64/syscalls/utimensat.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(utimensat) movq %rcx, %r10 movl $__NR_utimensat, %eax diff --git a/libc/arch-x86_64/syscalls/vmsplice.S b/libc/arch-x86_64/syscalls/vmsplice.S index cc94cc601..6f9e5d1b5 100644 --- a/libc/arch-x86_64/syscalls/vmsplice.S +++ b/libc/arch-x86_64/syscalls/vmsplice.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(vmsplice) movq %rcx, %r10 movl $__NR_vmsplice, %eax diff --git a/libc/arch-x86_64/syscalls/wait4.S b/libc/arch-x86_64/syscalls/wait4.S index 794833153..141fe19fc 100644 --- a/libc/arch-x86_64/syscalls/wait4.S +++ b/libc/arch-x86_64/syscalls/wait4.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(wait4) movq %rcx, %r10 movl $__NR_wait4, %eax diff --git a/libc/arch-x86_64/syscalls/write.S b/libc/arch-x86_64/syscalls/write.S index 7e3a56340..498fca71c 100644 --- a/libc/arch-x86_64/syscalls/write.S +++ b/libc/arch-x86_64/syscalls/write.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(write) movl $__NR_write, %eax syscall diff --git a/libc/arch-x86_64/syscalls/writev.S b/libc/arch-x86_64/syscalls/writev.S index 5fc040a04..ef80eb898 100644 --- a/libc/arch-x86_64/syscalls/writev.S +++ b/libc/arch-x86_64/syscalls/writev.S @@ -2,6 +2,8 @@ #include + .hidden __set_errno + ENTRY(writev) movl $__NR_writev, %eax syscall diff --git a/libc/tools/gensyscalls.py b/libc/tools/gensyscalls.py index 42f2c916b..4619ec690 100755 --- a/libc/tools/gensyscalls.py +++ b/libc/tools/gensyscalls.py @@ -48,6 +48,8 @@ syscall_stub_header = "/* " + warning + " */\n" + \ """ #include + .hidden __set_errno + ENTRY(%(func)s) """