summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2025-08-25 08:34:23 +0200
committerCarlos Maiolino <[email protected]>2025-08-25 08:34:23 +0200
commitbbba609cd83cc99fe65feb6230347d164f621b30 (patch)
treefe7cdfb311b855dd4f46059bea5714d08aaa3b29 /src
parent74c5f1825f7ab0ab42656919032fe907c0aaeb8d (diff)
Add error numbers
This is supposed to be compliand with POSIX Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/include/toxic/errno.h15
1 files changed, 15 insertions, 0 deletions
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 */