From 39db5d5b89dfd2086d73d171487ab9f185a0adf0 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 6 Nov 2026 23:23:28 +0100 Subject: Tokenize traits --- arch/platform/linux/bits/errno.elna | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 arch/platform/linux/bits/errno.elna (limited to 'arch/platform/linux/bits/errno.elna') diff --git a/arch/platform/linux/bits/errno.elna b/arch/platform/linux/bits/errno.elna new file mode 100644 index 0000000..b3b8835 --- /dev/null +++ b/arch/platform/linux/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 + 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 + +proc __errno_location() -> ^Int32 +extern + +proc errno*() -> ^Int32 +return __errno_location() + +end. -- cgit v1.2.3