[PATCH] errlist: add missing entries for MIPS/SPARC
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Aug 4 14:13:35 GMT 2025
On 29/07/25 09:07, luca.boccassi@gmail.com wrote:
> From: Luca Boccassi <luca.boccassi@gmail.com>
>
> These are defined in the kernel headers but missing from the list
> of names, so strerrorname_np() returns NULL.
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/mips/include/uapi/asm/errno.h#n95
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/sparc/include/uapi/asm/errno.h#n55
>
> Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
LGTM, thanks.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
> ---
> Found while trying to use strerrorname_np in systemd:
> https://github.com/systemd/systemd/pull/38398
>
> sysdeps/gnu/errlist.h | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/sysdeps/gnu/errlist.h b/sysdeps/gnu/errlist.h
> index e8416448da..d7d907a70f 100644
> --- a/sysdeps/gnu/errlist.h
> +++ b/sysdeps/gnu/errlist.h
> @@ -797,3 +797,12 @@ _S(ED, N_("?"))
> #ifdef EPROGUNAVAIL
> _S(EPROGUNAVAIL, N_("RPC program not available"))
> #endif
> +#ifdef EINIT
> +_S(EINIT, N_("Initialization error"))
> +#endif
> +#ifdef EREMDEV
> +_S(EREMDEV, N_("Device is remote"))
> +#endif
> +#ifdef ERREMOTE
> +_S(ERREMOTE, N_("Too many levels of remote in path"))
> +#endif
More information about the Libc-alpha
mailing list