diff options
Diffstat (limited to 'arch/platform/linux/bits/errno.elna')
| -rw-r--r-- | arch/platform/linux/bits/errno.elna | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/arch/platform/linux/bits/errno.elna b/arch/platform/linux/bits/errno.elna index b3b8835..87da6d9 100644 --- a/arch/platform/linux/bits/errno.elna +++ b/arch/platform/linux/bits/errno.elna @@ -3,45 +3,47 @@ obtain one at https://mozilla.org/MPL/2.0/. *) module +import sys.ffi + const - EPERM* = 1i32 - ENOENT* = 2i32 - ESRCH* = 3i32 - EINTR* = 4i32 - EIO* = 5i32 - ENXIO* = 6i32 - E2BIG* = 7i32 - ENOEXEC* = 8i32 - EBADF* = 9i32 - ECHILD* = 10i32 - EAGAIN* = 11i32 - ENOMEM* = 12i32 - EACCES* = 13i32 - EFAULT* = 14i32 - EBUSY* = 16i32 - EEXIST* = 17i32 - EXDEV* = 18i32 - ENODEV* = 19i32 - ENOTDIR* = 20i32 - EISDIR* = 21i32 - EINVAL* = 22i32 - ENFILE* = 23i32 - EMFILE* = 24i32 - ENOTTY* = 25i32 - ETXTBSY* = 26i32 - EFBIG* = 27i32 - ENOSPC* = 28i32 - ESPIPE* = 29i32 - EROFS* = 30i32 - EMLINK* = 31i32 - EPIPE* = 32i32 - EDOM* = 33i32 - ERANGE* = 34i32 + EPERM* = cast(1: CInt) + ENOENT* = cast(2: CInt) + ESRCH* = cast(3: CInt) + EINTR* = cast(4: CInt) + EIO* = cast(5: CInt) + ENXIO* = cast(6: CInt) + E2BIG* = cast(7: CInt) + ENOEXEC* = cast(8: CInt) + EBADF* = cast(9: CInt) + ECHILD* = cast(10: CInt) + EAGAIN* = cast(11: CInt) + ENOMEM* = cast(12: CInt) + EACCES* = cast(13: CInt) + EFAULT* = cast(14: CInt) + EBUSY* = cast(16: CInt) + EEXIST* = cast(17: CInt) + EXDEV* = cast(18: CInt) + ENODEV* = cast(19: CInt) + ENOTDIR* = cast(20: CInt) + EISDIR* = cast(21: CInt) + EINVAL* = cast(22: CInt) + ENFILE* = cast(23: CInt) + EMFILE* = cast(24: CInt) + ENOTTY* = cast(25: CInt) + ETXTBSY* = cast(26: CInt) + EFBIG* = cast(27: CInt) + ENOSPC* = cast(28: CInt) + ESPIPE* = cast(29: CInt) + EROFS* = cast(30: CInt) + EMLINK* = cast(31: CInt) + EPIPE* = cast(32: CInt) + EDOM* = cast(33: CInt) + ERANGE* = cast(34: CInt) -proc __errno_location() -> ^Int32 +proc __errno_location() -> ^CInt extern -proc errno*() -> ^Int32 +proc errno*() -> ^CInt return __errno_location() end. |
