// POSIX errno declarations backed by nt-lite per-thread personality state. #pragma once #include // errno values are an nt-lite POSIX personality ABI. POSIX specifies the // symbolic names, not their numeric representation, so keep this table compact // and personality-owned instead of inheriting numbers from another Unix ABI. #define EPERM 1 #define ENOENT 2 #define ESRCH 3 #define EINTR 4 #define EIO 5 #define ENOEXEC 6 #define EBADF 7 #define ECHILD 8 #define ENOMEM 9 #define EACCES 10 #define EFAULT 11 #define EEXIST 12 #define EXDEV 13 #define ENODEV 14 #define ENOTDIR 15 #define EISDIR 16 #define EINVAL 17 #define EMFILE 18 #define EFBIG 19 #define ENOSPC 20 #define ESPIPE 21 #define EROFS 22 #define EMLINK 23 #define EPIPE 24 #define ERANGE 25 #define EAGAIN 26 #define EWOULDBLOCK EAGAIN #define ENAMETOOLONG 27 #define ENOSYS 28 #define ENOTEMPTY 29 #define EDEADLK 30 #define ENOTSOCK 31 #define EAFNOSUPPORT 32 #define ECONNRESET 33 #define EINPROGRESS 34 #define ETIMEDOUT 35 #define ECANCELED 36 #define E2BIG 37 NTL_POSIX_API int* __ntl_posix_errno_location(void); #define errno (*__ntl_posix_errno_location())