aboutsummaryrefslogtreecommitdiff
path: root/arch/platform/darwin
diff options
context:
space:
mode:
Diffstat (limited to 'arch/platform/darwin')
-rw-r--r--arch/platform/darwin/bits/errno.elna47
1 files changed, 47 insertions, 0 deletions
diff --git a/arch/platform/darwin/bits/errno.elna b/arch/platform/darwin/bits/errno.elna
new file mode 100644
index 0000000..547e99a
--- /dev/null
+++ b/arch/platform/darwin/bits/errno.elna
@@ -0,0 +1,47 @@
+(* This Source Code Form is subject to the terms of the Mozilla Public License,
+ v. 2.0. If a copy of the MPL was not distributed with this file, You can
+ obtain one at https://mozilla.org/MPL/2.0/. *)
+module
+
+const
+ EPERM* = 1i32
+ ENOENT* = 2i32
+ ESRCH* = 3i32
+ EINTR* = 4i32
+ EIO* = 5i32
+ ENXIO* = 6i32
+ E2BIG* = 7i32
+ ENOEXEC* = 8i32
+ EBADF* = 9i32
+ ECHILD* = 10i32
+ 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
+ EAGAIN* = 35i32
+
+proc __error() -> ^Int32
+extern
+
+proc errno*() -> ^Int32
+return __error()
+
+end.