summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authordzwdz2022-09-03 23:41:17 +0200
committerdzwdz2022-09-03 23:41:17 +0200
commitd73c5ac9891ea3a88fa6a5ec1339df1f5cdf1a49 (patch)
treed7a6ea63772d9bcf2c27e9a6eaa4989f2ea1c175 /src/shared
parentecc54f4be44fa1fd1ce79b0458a04eef2667cba8 (diff)
user/libc: generate strerror from camellia/errno.h
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/include/camellia/errno.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/shared/include/camellia/errno.h b/src/shared/include/camellia/errno.h
index 1e4841c..263bd25 100644
--- a/src/shared/include/camellia/errno.h
+++ b/src/shared/include/camellia/errno.h
@@ -1,15 +1,18 @@
#pragma once
+/* the comments are directly pasted into user visible strings.
+ * keep them short, don't include " */
+#define EGENERIC 1 /* unknown error */
#define EFAULT 2
-#define EBADF 3 /* Invalid file descriptor. */
+#define EBADF 3 /* bad file descriptor */
#define EINVAL 4
-#define ENOSYS 5 /* Unsupported. */
+#define ENOSYS 5 /* unsupported */
#define ERANGE 6
#define ENOMEM 7
#define ENOENT 8
#define ENOTEMPTY 9
#define EACCES 10
-#define EMFILE 11 /* All file descriptors taken. */
+#define EMFILE 11 /* all file descriptors taken */
#define ECONNRESET 12
#define EISDIR 200