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