wasi-libc/libc-bottom-half/headers/public/__errno_values.h
Dan Gohman 320054e84f WASI libc prototype implementation.
This incoporates pieces from musl-libc, cloudlibc, cloudabi, libpreopen,
and dlmalloc, as well as a significant amount of new code.
2019-03-27 07:59:55 -07:00

87 lines
2.5 KiB
C

#ifndef __wasilibc___errno_values_h
#define __wasilibc___errno_values_h
#include <wasi/core.h>
#define E2BIG __WASI_E2BIG
#define EACCES __WASI_EACCES
#define EADDRINUSE __WASI_EADDRINUSE
#define EADDRNOTAVAIL __WASI_EADDRNOTAVAIL
#define EAFNOSUPPORT __WASI_EAFNOSUPPORT
#define EAGAIN __WASI_EAGAIN
#define EALREADY __WASI_EALREADY
#define EBADF __WASI_EBADF
#define EBADMSG __WASI_EBADMSG
#define EBUSY __WASI_EBUSY
#define ECANCELED __WASI_ECANCELED
#define ECHILD __WASI_ECHILD
#define ECONNABORTED __WASI_ECONNABORTED
#define ECONNREFUSED __WASI_ECONNREFUSED
#define ECONNRESET __WASI_ECONNRESET
#define EDEADLK __WASI_EDEADLK
#define EDESTADDRREQ __WASI_EDESTADDRREQ
#define EDOM __WASI_EDOM
#define EDQUOT __WASI_EDQUOT
#define EEXIST __WASI_EEXIST
#define EFAULT __WASI_EFAULT
#define EFBIG __WASI_EFBIG
#define EHOSTUNREACH __WASI_EHOSTUNREACH
#define EIDRM __WASI_EIDRM
#define EILSEQ __WASI_EILSEQ
#define EINPROGRESS __WASI_EINPROGRESS
#define EINTR __WASI_EINTR
#define EINVAL __WASI_EINVAL
#define EIO __WASI_EIO
#define EISCONN __WASI_EISCONN
#define EISDIR __WASI_EISDIR
#define ELOOP __WASI_ELOOP
#define EMFILE __WASI_EMFILE
#define EMLINK __WASI_EMLINK
#define EMSGSIZE __WASI_EMSGSIZE
#define EMULTIHOP __WASI_EMULTIHOP
#define ENAMETOOLONG __WASI_ENAMETOOLONG
#define ENETDOWN __WASI_ENETDOWN
#define ENETRESET __WASI_ENETRESET
#define ENETUNREACH __WASI_ENETUNREACH
#define ENFILE __WASI_ENFILE
#define ENOBUFS __WASI_ENOBUFS
#define ENODEV __WASI_ENODEV
#define ENOENT __WASI_ENOENT
#define ENOEXEC __WASI_ENOEXEC
#define ENOLCK __WASI_ENOLCK
#define ENOLINK __WASI_ENOLINK
#define ENOMEM __WASI_ENOMEM
#define ENOMSG __WASI_ENOMSG
#define ENOPROTOOPT __WASI_ENOPROTOOPT
#define ENOSPC __WASI_ENOSPC
#define ENOSYS __WASI_ENOSYS
#define ENOTCONN __WASI_ENOTCONN
#define ENOTDIR __WASI_ENOTDIR
#define ENOTEMPTY __WASI_ENOTEMPTY
#define ENOTRECOVERABLE __WASI_ENOTRECOVERABLE
#define ENOTSOCK __WASI_ENOTSOCK
#define ENOTSUP __WASI_ENOTSUP
#define ENOTTY __WASI_ENOTTY
#define ENXIO __WASI_ENXIO
#define EOVERFLOW __WASI_EOVERFLOW
#define EOWNERDEAD __WASI_EOWNERDEAD
#define EPERM __WASI_EPERM
#define EPIPE __WASI_EPIPE
#define EPROTO __WASI_EPROTO
#define EPROTONOSUPPORT __WASI_EPROTONOSUPPORT
#define EPROTOTYPE __WASI_EPROTOTYPE
#define ERANGE __WASI_ERANGE
#define EROFS __WASI_EROFS
#define ESPIPE __WASI_ESPIPE
#define ESRCH __WASI_ESRCH
#define ESTALE __WASI_ESTALE
#define ETIMEDOUT __WASI_ETIMEDOUT
#define ETXTBSY __WASI_ETXTBSY
#define EXDEV __WASI_EXDEV
#define ENOTCAPABLE __WASI_ENOTCAPABLE
#define EOPNOTSUPP ENOTSUP
#define EWOULDBLOCK EAGAIN
#endif