From d73c5ac9891ea3a88fa6a5ec1339df1f5cdf1a49 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 3 Sep 2022 23:41:17 +0200 Subject: user/libc: generate strerror from camellia/errno.h --- src/shared/include/camellia/errno.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/shared') 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 -- cgit v1.2.3