[Skiboot] [PATCH V2 02/10] libc: Add ENXIO error code

Christophe Lombard clombard at linux.vnet.ibm.com
Tue Mar 15 23:49:06 AEDT 2022


Add ENXIO error code (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.vnet.ibm.com>
---
 libc/include/errno.h | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/libc/include/errno.h b/libc/include/errno.h
index c2bd9877..4fd1a2f0 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,6 @@ 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	/* Function not implemented */
 
 #endif
-- 
2.35.1



More information about the Skiboot mailing list