From bbba609cd83cc99fe65feb6230347d164f621b30 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Mon, 25 Aug 2025 08:34:23 +0200 Subject: Add error numbers This is supposed to be compliand with POSIX Signed-off-by: Carlos Maiolino --- src/include/toxic/errno.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/include/toxic/errno.h (limited to 'src') diff --git a/src/include/toxic/errno.h b/src/include/toxic/errno.h new file mode 100644 index 0000000..329da50 --- /dev/null +++ b/src/include/toxic/errno.h @@ -0,0 +1,15 @@ +#ifndef ERRNO_H +#define ERRNO_H + +/* + * Use POSIX error codes + * + * I think POSIX does not explicitly define the error code values, + * so just use Linux/FreeBSD values + * + */ +#define EIO 5 +#define ENOMEM 12 +#define EINVAL 22 + +#endif /* ERRNO_H */ -- cgit v1.2.3