[Skiboot] [PATCH V4 2/9] libc: Add ENXIO error code

Christophe Lombard clombard at linux.ibm.com
Wed Jun 21 00:52:00 AEST 2023


Add ENXIO and EMSGSIZE error codes (No such device or address.) in skiboot libc.
This error code are required by the external library: libmctp.

Signed-off-by: Christophe Lombard <clombard at linux.ibm.com>
---
 libc/include/errno.h | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/libc/include/errno.h b/libc/include/errno.h
index c2bd9877..ce641bbd 100644
--- a/libc/include/errno.h
+++ b/libc/include/errno.h
@@ -18,10 +18,11 @@ extern int errno;
 /*
  * Error number definitions
  */
-#define EPERM		1	/* not permitted */
-#define ENOENT		2	/* file or directory not found */
-#define EIO		5	/* input/output error */
-#define EBADF        9  /* Bad file number */
+#define EPERM		 1	/* not permitted */
+#define ENOENT		 2	/* file or directory not found */
+#define EIO		 5	/* input/output error */
+#define	ENXIO		 6	/* No such device or address */
+#define EBADF		 9	/* Bad file number */
 #define ENOMEM		12	/* not enough space */
 #define EACCES		13	/* permission denied */
 #define EFAULT		14	/* bad address */
@@ -31,6 +32,7 @@ extern int errno;
 #define EINVAL		22	/* invalid argument */
 #define EDOM		33	/* math argument out of domain of func */
 #define ERANGE		34	/* math result not representable */
-#define ENOSYS      38  /* Function not implemented */
+#define ENOSYS		38	/* invalid syscall nr */
+#define EMSGSIZE        90	/* Message too long */
 
 #endif
-- 
2.40.1



More information about the Skiboot mailing list