1 #ifndef __wasilibc___errno_values_h
2 #define __wasilibc___errno_values_h
3 
4 #include <wasi/api.h>
5 
6 #define E2BIG __WASI_ERRNO_2BIG
7 #define EACCES __WASI_ERRNO_ACCES
8 #define EADDRINUSE __WASI_ERRNO_ADDRINUSE
9 #define EADDRNOTAVAIL __WASI_ERRNO_ADDRNOTAVAIL
10 #define EAFNOSUPPORT __WASI_ERRNO_AFNOSUPPORT
11 #define EAGAIN __WASI_ERRNO_AGAIN
12 #define EALREADY __WASI_ERRNO_ALREADY
13 #define EBADF __WASI_ERRNO_BADF
14 #define EBADMSG __WASI_ERRNO_BADMSG
15 #define EBUSY __WASI_ERRNO_BUSY
16 #define ECANCELED __WASI_ERRNO_CANCELED
17 #define ECHILD __WASI_ERRNO_CHILD
18 #define ECONNABORTED __WASI_ERRNO_CONNABORTED
19 #define ECONNREFUSED __WASI_ERRNO_CONNREFUSED
20 #define ECONNRESET __WASI_ERRNO_CONNRESET
21 #define EDEADLK __WASI_ERRNO_DEADLK
22 #define EDESTADDRREQ __WASI_ERRNO_DESTADDRREQ
23 #define EDOM __WASI_ERRNO_DOM
24 #define EDQUOT __WASI_ERRNO_DQUOT
25 #define EEXIST __WASI_ERRNO_EXIST
26 #define EFAULT __WASI_ERRNO_FAULT
27 #define EFBIG __WASI_ERRNO_FBIG
28 #define EHOSTUNREACH __WASI_ERRNO_HOSTUNREACH
29 #define EIDRM __WASI_ERRNO_IDRM
30 #define EILSEQ __WASI_ERRNO_ILSEQ
31 #define EINPROGRESS __WASI_ERRNO_INPROGRESS
32 #define EINTR __WASI_ERRNO_INTR
33 #define EINVAL __WASI_ERRNO_INVAL
34 #define EIO __WASI_ERRNO_IO
35 #define EISCONN __WASI_ERRNO_ISCONN
36 #define EISDIR __WASI_ERRNO_ISDIR
37 #define ELOOP __WASI_ERRNO_LOOP
38 #define EMFILE __WASI_ERRNO_MFILE
39 #define EMLINK __WASI_ERRNO_MLINK
40 #define EMSGSIZE __WASI_ERRNO_MSGSIZE
41 #define EMULTIHOP __WASI_ERRNO_MULTIHOP
42 #define ENAMETOOLONG __WASI_ERRNO_NAMETOOLONG
43 #define ENETDOWN __WASI_ERRNO_NETDOWN
44 #define ENETRESET __WASI_ERRNO_NETRESET
45 #define ENETUNREACH __WASI_ERRNO_NETUNREACH
46 #define ENFILE __WASI_ERRNO_NFILE
47 #define ENOBUFS __WASI_ERRNO_NOBUFS
48 #define ENODEV __WASI_ERRNO_NODEV
49 #define ENOENT __WASI_ERRNO_NOENT
50 #define ENOEXEC __WASI_ERRNO_NOEXEC
51 #define ENOLCK __WASI_ERRNO_NOLCK
52 #define ENOLINK __WASI_ERRNO_NOLINK
53 #define ENOMEM __WASI_ERRNO_NOMEM
54 #define ENOMSG __WASI_ERRNO_NOMSG
55 #define ENOPROTOOPT __WASI_ERRNO_NOPROTOOPT
56 #define ENOSPC __WASI_ERRNO_NOSPC
57 #define ENOSYS __WASI_ERRNO_NOSYS
58 #define ENOTCONN __WASI_ERRNO_NOTCONN
59 #define ENOTDIR __WASI_ERRNO_NOTDIR
60 #define ENOTEMPTY __WASI_ERRNO_NOTEMPTY
61 #define ENOTRECOVERABLE __WASI_ERRNO_NOTRECOVERABLE
62 #define ENOTSOCK __WASI_ERRNO_NOTSOCK
63 #define ENOTSUP __WASI_ERRNO_NOTSUP
64 #define ENOTTY __WASI_ERRNO_NOTTY
65 #define ENXIO __WASI_ERRNO_NXIO
66 #define EOVERFLOW __WASI_ERRNO_OVERFLOW
67 #define EOWNERDEAD __WASI_ERRNO_OWNERDEAD
68 #define EPERM __WASI_ERRNO_PERM
69 #define EPIPE __WASI_ERRNO_PIPE
70 #define EPROTO __WASI_ERRNO_PROTO
71 #define EPROTONOSUPPORT __WASI_ERRNO_PROTONOSUPPORT
72 #define EPROTOTYPE __WASI_ERRNO_PROTOTYPE
73 #define ERANGE __WASI_ERRNO_RANGE
74 #define EROFS __WASI_ERRNO_ROFS
75 #define ESPIPE __WASI_ERRNO_SPIPE
76 #define ESRCH __WASI_ERRNO_SRCH
77 #define ESTALE __WASI_ERRNO_STALE
78 #define ETIMEDOUT __WASI_ERRNO_TIMEDOUT
79 #define ETXTBSY __WASI_ERRNO_TXTBSY
80 #define EXDEV __WASI_ERRNO_XDEV
81 #define ENOTCAPABLE __WASI_ERRNO_NOTCAPABLE
82 
83 #define EOPNOTSUPP ENOTSUP
84 #define EWOULDBLOCK EAGAIN
85 
86 #endif
87