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

Nicholas Piggin npiggin at gmail.com
Wed Jun 21 14:29:02 AEST 2023


On Wed Jun 21, 2023 at 12:52 AM AEST, Christophe Lombard wrote:
> 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>

Reviewed-by: Nicholas Piggin <npiggin at gmail.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
>
> _______________________________________________
> Skiboot mailing list
> Skiboot at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/skiboot



More information about the Skiboot mailing list