Support thread local storage

This commit is contained in:
Justine Tunney 2022-05-16 13:20:08 -07:00
parent 91ee2b19d4
commit 55de4ca6b5
197 changed files with 1483 additions and 874 deletions

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
e2big: .leafprologue
.profilable
mov E2BIG(%rip),%eax
mov %eax,errno(%rip)
mov E2BIG(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eacces: .leafprologue
.profilable
mov EACCES(%rip),%eax
mov %eax,errno(%rip)
mov EACCES(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eaddrinuse:
.leafprologue
.profilable
mov EADDRINUSE(%rip),%eax
mov %eax,errno(%rip)
mov EADDRINUSE(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eaddrnotavail:
.leafprologue
.profilable
mov EADDRNOTAVAIL(%rip),%eax
mov %eax,errno(%rip)
mov EADDRNOTAVAIL(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eadv: .leafprologue
.profilable
mov EADV(%rip),%eax
mov %eax,errno(%rip)
mov EADV(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eafnosupport:
.leafprologue
.profilable
mov EAFNOSUPPORT(%rip),%eax
mov %eax,errno(%rip)
mov EAFNOSUPPORT(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eagain: .leafprologue
.profilable
mov EAGAIN(%rip),%eax
mov %eax,errno(%rip)
mov EAGAIN(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ealready:
.leafprologue
.profilable
mov EALREADY(%rip),%eax
mov %eax,errno(%rip)
mov EALREADY(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ebade: .leafprologue
.profilable
mov EBADE(%rip),%eax
mov %eax,errno(%rip)
mov EBADE(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ebadf: .leafprologue
.profilable
mov EBADF(%rip),%eax
mov %eax,errno(%rip)
mov EBADF(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ebadfd: .leafprologue
.profilable
mov EBADFD(%rip),%eax
mov %eax,errno(%rip)
mov EBADFD(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ebadmsg:
.leafprologue
.profilable
mov EBADMSG(%rip),%eax
mov %eax,errno(%rip)
mov EBADMSG(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ebadr: .leafprologue
.profilable
mov EBADR(%rip),%eax
mov %eax,errno(%rip)
mov EBADR(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ebadrqc:
.leafprologue
.profilable
mov EBADRQC(%rip),%eax
mov %eax,errno(%rip)
mov EBADRQC(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ebadslt:
.leafprologue
.profilable
mov EBADSLT(%rip),%eax
mov %eax,errno(%rip)
mov EBADSLT(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ebusy: .leafprologue
.profilable
mov EBUSY(%rip),%eax
mov %eax,errno(%rip)
mov EBUSY(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ecanceled:
.leafprologue
.profilable
mov ECANCELED(%rip),%eax
mov %eax,errno(%rip)
mov ECANCELED(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
echild: .leafprologue
.profilable
mov ECHILD(%rip),%eax
mov %eax,errno(%rip)
mov ECHILD(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
echrng: .leafprologue
.profilable
mov ECHRNG(%rip),%eax
mov %eax,errno(%rip)
mov ECHRNG(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ecomm: .leafprologue
.profilable
mov ECOMM(%rip),%eax
mov %eax,errno(%rip)
mov ECOMM(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
econnaborted:
.leafprologue
.profilable
mov ECONNABORTED(%rip),%eax
mov %eax,errno(%rip)
mov ECONNABORTED(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
econnrefused:
.leafprologue
.profilable
mov ECONNREFUSED(%rip),%eax
mov %eax,errno(%rip)
mov ECONNREFUSED(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
econnreset:
.leafprologue
.profilable
mov ECONNRESET(%rip),%eax
mov %eax,errno(%rip)
mov ECONNRESET(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
edeadlk:
.leafprologue
.profilable
mov EDEADLK(%rip),%eax
mov %eax,errno(%rip)
mov EDEADLK(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
edestaddrreq:
.leafprologue
.profilable
mov EDESTADDRREQ(%rip),%eax
mov %eax,errno(%rip)
mov EDESTADDRREQ(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
edom: .leafprologue
.profilable
mov EDOM(%rip),%eax
mov %eax,errno(%rip)
mov EDOM(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
edotdot:
.leafprologue
.profilable
mov EDOTDOT(%rip),%eax
mov %eax,errno(%rip)
mov EDOTDOT(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
edquot: .leafprologue
.profilable
mov EDQUOT(%rip),%eax
mov %eax,errno(%rip)
mov EDQUOT(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eexist: .leafprologue
.profilable
mov EEXIST(%rip),%eax
mov %eax,errno(%rip)
mov EEXIST(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
efault: .leafprologue
.profilable
mov EFAULT(%rip),%eax
mov %eax,errno(%rip)
mov EFAULT(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
efbig: .leafprologue
.profilable
mov EFBIG(%rip),%eax
mov %eax,errno(%rip)
mov EFBIG(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ehostdown:
.leafprologue
.profilable
mov EHOSTDOWN(%rip),%eax
mov %eax,errno(%rip)
mov EHOSTDOWN(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ehostunreach:
.leafprologue
.profilable
mov EHOSTUNREACH(%rip),%eax
mov %eax,errno(%rip)
mov EHOSTUNREACH(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ehwpoison:
.leafprologue
.profilable
mov EHWPOISON(%rip),%eax
mov %eax,errno(%rip)
mov EHWPOISON(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eidrm: .leafprologue
.profilable
mov EIDRM(%rip),%eax
mov %eax,errno(%rip)
mov EIDRM(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eilseq: .leafprologue
.profilable
mov EILSEQ(%rip),%eax
mov %eax,errno(%rip)
mov EILSEQ(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
einprogress:
.leafprologue
.profilable
mov EINPROGRESS(%rip),%eax
mov %eax,errno(%rip)
mov EINPROGRESS(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eintr: .leafprologue
.profilable
mov EINTR(%rip),%eax
mov %eax,errno(%rip)
mov EINTR(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
einval: .leafprologue
.profilable
mov EINVAL(%rip),%eax
mov %eax,errno(%rip)
mov EINVAL(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eio: .leafprologue
.profilable
mov EIO(%rip),%eax
mov %eax,errno(%rip)
mov EIO(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eisconn:
.leafprologue
.profilable
mov EISCONN(%rip),%eax
mov %eax,errno(%rip)
mov EISCONN(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eisdir: .leafprologue
.profilable
mov EISDIR(%rip),%eax
mov %eax,errno(%rip)
mov EISDIR(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eisnam: .leafprologue
.profilable
mov EISNAM(%rip),%eax
mov %eax,errno(%rip)
mov EISNAM(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ekeyexpired:
.leafprologue
.profilable
mov EKEYEXPIRED(%rip),%eax
mov %eax,errno(%rip)
mov EKEYEXPIRED(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ekeyrejected:
.leafprologue
.profilable
mov EKEYREJECTED(%rip),%eax
mov %eax,errno(%rip)
mov EKEYREJECTED(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
ekeyrevoked:
.leafprologue
.profilable
mov EKEYREVOKED(%rip),%eax
mov %eax,errno(%rip)
mov EKEYREVOKED(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
el2hlt: .leafprologue
.profilable
mov EL2HLT(%rip),%eax
mov %eax,errno(%rip)
mov EL2HLT(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
el2nsync:
.leafprologue
.profilable
mov EL2NSYNC(%rip),%eax
mov %eax,errno(%rip)
mov EL2NSYNC(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
el3hlt: .leafprologue
.profilable
mov EL3HLT(%rip),%eax
mov %eax,errno(%rip)
mov EL3HLT(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
el3rst: .leafprologue
.profilable
mov EL3RST(%rip),%eax
mov %eax,errno(%rip)
mov EL3RST(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
elibacc:
.leafprologue
.profilable
mov ELIBACC(%rip),%eax
mov %eax,errno(%rip)
mov ELIBACC(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
elibbad:
.leafprologue
.profilable
mov ELIBBAD(%rip),%eax
mov %eax,errno(%rip)
mov ELIBBAD(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
elibexec:
.leafprologue
.profilable
mov ELIBEXEC(%rip),%eax
mov %eax,errno(%rip)
mov ELIBEXEC(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
elibmax:
.leafprologue
.profilable
mov ELIBMAX(%rip),%eax
mov %eax,errno(%rip)
mov ELIBMAX(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
elibscn:
.leafprologue
.profilable
mov ELIBSCN(%rip),%eax
mov %eax,errno(%rip)
mov ELIBSCN(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
elnrng: .leafprologue
.profilable
mov ELNRNG(%rip),%eax
mov %eax,errno(%rip)
mov ELNRNG(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eloop: .leafprologue
.profilable
mov ELOOP(%rip),%eax
mov %eax,errno(%rip)
mov ELOOP(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
emediumtype:
.leafprologue
.profilable
mov EMEDIUMTYPE(%rip),%eax
mov %eax,errno(%rip)
mov EMEDIUMTYPE(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
emfile: .leafprologue
.profilable
mov EMFILE(%rip),%eax
mov %eax,errno(%rip)
mov EMFILE(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
emlink: .leafprologue
.profilable
mov EMLINK(%rip),%eax
mov %eax,errno(%rip)
mov EMLINK(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
emsgsize:
.leafprologue
.profilable
mov EMSGSIZE(%rip),%eax
mov %eax,errno(%rip)
mov EMSGSIZE(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
emultihop:
.leafprologue
.profilable
mov EMULTIHOP(%rip),%eax
mov %eax,errno(%rip)
mov EMULTIHOP(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enametoolong:
.leafprologue
.profilable
mov ENAMETOOLONG(%rip),%eax
mov %eax,errno(%rip)
mov ENAMETOOLONG(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enavail:
.leafprologue
.profilable
mov ENAVAIL(%rip),%eax
mov %eax,errno(%rip)
mov ENAVAIL(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enetdown:
.leafprologue
.profilable
mov ENETDOWN(%rip),%eax
mov %eax,errno(%rip)
mov ENETDOWN(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enetreset:
.leafprologue
.profilable
mov ENETRESET(%rip),%eax
mov %eax,errno(%rip)
mov ENETRESET(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enetunreach:
.leafprologue
.profilable
mov ENETUNREACH(%rip),%eax
mov %eax,errno(%rip)
mov ENETUNREACH(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enfile: .leafprologue
.profilable
mov ENFILE(%rip),%eax
mov %eax,errno(%rip)
mov ENFILE(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enoano: .leafprologue
.profilable
mov ENOANO(%rip),%eax
mov %eax,errno(%rip)
mov ENOANO(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enobufs:
.leafprologue
.profilable
mov ENOBUFS(%rip),%eax
mov %eax,errno(%rip)
mov ENOBUFS(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enocsi: .leafprologue
.profilable
mov ENOCSI(%rip),%eax
mov %eax,errno(%rip)
mov ENOCSI(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enodata:
.leafprologue
.profilable
mov ENODATA(%rip),%eax
mov %eax,errno(%rip)
mov ENODATA(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enodev: .leafprologue
.profilable
mov ENODEV(%rip),%eax
mov %eax,errno(%rip)
mov ENODEV(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enoent: .leafprologue
.profilable
mov ENOENT(%rip),%eax
mov %eax,errno(%rip)
mov ENOENT(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enoexec:
.leafprologue
.profilable
mov ENOEXEC(%rip),%eax
mov %eax,errno(%rip)
mov ENOEXEC(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enokey: .leafprologue
.profilable
mov ENOKEY(%rip),%eax
mov %eax,errno(%rip)
mov ENOKEY(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enolck: .leafprologue
.profilable
mov ENOLCK(%rip),%eax
mov %eax,errno(%rip)
mov ENOLCK(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enolink:
.leafprologue
.profilable
mov ENOLINK(%rip),%eax
mov %eax,errno(%rip)
mov ENOLINK(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enomedium:
.leafprologue
.profilable
mov ENOMEDIUM(%rip),%eax
mov %eax,errno(%rip)
mov ENOMEDIUM(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enomem: .leafprologue
.profilable
mov ENOMEM(%rip),%eax
mov %eax,errno(%rip)
mov ENOMEM(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enomsg: .leafprologue
.profilable
mov ENOMSG(%rip),%eax
mov %eax,errno(%rip)
mov ENOMSG(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enonet: .leafprologue
.profilable
mov ENONET(%rip),%eax
mov %eax,errno(%rip)
mov ENONET(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enopkg: .leafprologue
.profilable
mov ENOPKG(%rip),%eax
mov %eax,errno(%rip)
mov ENOPKG(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enoprotoopt:
.leafprologue
.profilable
mov ENOPROTOOPT(%rip),%eax
mov %eax,errno(%rip)
mov ENOPROTOOPT(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enospc: .leafprologue
.profilable
mov ENOSPC(%rip),%eax
mov %eax,errno(%rip)
mov ENOSPC(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enosr: .leafprologue
.profilable
mov ENOSR(%rip),%eax
mov %eax,errno(%rip)
mov ENOSR(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enostr: .leafprologue
.profilable
mov ENOSTR(%rip),%eax
mov %eax,errno(%rip)
mov ENOSTR(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enosys: .leafprologue
.profilable
mov ENOSYS(%rip),%eax
mov %eax,errno(%rip)
mov ENOSYS(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enotblk:
.leafprologue
.profilable
mov ENOTBLK(%rip),%eax
mov %eax,errno(%rip)
mov ENOTBLK(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enotconn:
.leafprologue
.profilable
mov ENOTCONN(%rip),%eax
mov %eax,errno(%rip)
mov ENOTCONN(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enotdir:
.leafprologue
.profilable
mov ENOTDIR(%rip),%eax
mov %eax,errno(%rip)
mov ENOTDIR(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enotempty:
.leafprologue
.profilable
mov ENOTEMPTY(%rip),%eax
mov %eax,errno(%rip)
mov ENOTEMPTY(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enotnam:
.leafprologue
.profilable
mov ENOTNAM(%rip),%eax
mov %eax,errno(%rip)
mov ENOTNAM(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enotrecoverable:
.leafprologue
.profilable
mov ENOTRECOVERABLE(%rip),%eax
mov %eax,errno(%rip)
mov ENOTRECOVERABLE(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enotsock:
.leafprologue
.profilable
mov ENOTSOCK(%rip),%eax
mov %eax,errno(%rip)
mov ENOTSOCK(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enotsup:
.leafprologue
.profilable
mov ENOTSUP(%rip),%eax
mov %eax,errno(%rip)
mov ENOTSUP(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enotty: .leafprologue
.profilable
mov ENOTTY(%rip),%eax
mov %eax,errno(%rip)
mov ENOTTY(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enotuniq:
.leafprologue
.profilable
mov ENOTUNIQ(%rip),%eax
mov %eax,errno(%rip)
mov ENOTUNIQ(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,10 +1,12 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
enxio: .leafprologue
.profilable
mov ENXIO(%rip),%eax
mov %eax,errno(%rip)
mov ENXIO(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

View file

@ -1,11 +1,13 @@
#include "libc/macros.internal.h"
.text.unlikely
.section .privileged,"ax",@progbits
eopnotsupp:
.leafprologue
.profilable
mov EOPNOTSUPP(%rip),%eax
mov %eax,errno(%rip)
mov EOPNOTSUPP(%rip),%ecx
.errno
mov %ecx,(%rax)
push $-1
pop %rax
.leafepilogue

Some files were not shown because too many files have changed in this diff Show more