[PATCH v4] string: Add strerrorname and strerrordesc

Andreas Schwab schwab@linux-m68k.org
Tue Jun 9 13:28:44 GMT 2020


On Jun 09 2020, Adhemerval Zanella via Libc-alpha wrote:

> diff --git a/string/string.h b/string/string.h
> index c01a78495a..191b8449a5 100644
> --- a/string/string.h
> +++ b/string/string.h
> @@ -428,6 +428,11 @@ extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen)
>  extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
>       __THROW __nonnull ((2)) __wur  __attr_access ((__write_only__, 2, 3));
>  # endif
> +
> +# ifdef __USE_GNU
> +extern const char *strerrordesc (int __err) __THROW;
> +extern const char *strerrorname (int __err) __THROW;

All declarations should have a comment.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list