diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-09-05 17:48:45 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-09-05 17:51:25 -0700 |
commit | 2bba9cd409ce4b53639328e17da81db8dbda72c7 (patch) | |
tree | 410719d8bc3e23ea9140f71d81b8b4b7024ea339 /lib/string.in.h | |
parent | 2c1d8397788c1385debef514c59a6461b2e5408e (diff) | |
download | emacs-2bba9cd409ce4b53639328e17da81db8dbda72c7.tar.gz |
Update from Gnulib
This incorporates:
2020-09-05 verify: avoid __builtin_assume
2020-08-30 strerrorname_np: New module
2020-08-26 include_next, stdint, time_rz: Change configure message
* lib/gnulib.mk.in: Regenerate.
* lib/string.in.h, lib/verify.h, m4/include_next.m4, m4/stdint.m4:
* m4/string_h.m4, m4/time_rz.m4: Copy from Gnulib.
Diffstat (limited to 'lib/string.in.h')
-rw-r--r-- | lib/string.in.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/string.in.h b/lib/string.in.h index 776133c5eba..9724addef43 100644 --- a/lib/string.in.h +++ b/lib/string.in.h @@ -1045,6 +1045,30 @@ _GL_WARN_ON_USE (strerror_r, "strerror_r is unportable - " # endif #endif +/* Return the name of the system error code ERRNUM. */ +#if @GNULIB_STRERRORNAME_NP@ +# if @REPLACE_STRERRORNAME_NP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strerrorname_np +# define strerrorname_np rpl_strerrorname_np +# endif +_GL_FUNCDECL_RPL (strerrorname_np, const char *, (int errnum)); +_GL_CXXALIAS_RPL (strerrorname_np, const char *, (int errnum)); +# else +# if !@HAVE_STRERRORNAME_NP@ +_GL_FUNCDECL_SYS (strerrorname_np, const char *, (int errnum)); +# endif +_GL_CXXALIAS_SYS (strerrorname_np, const char *, (int errnum)); +# endif +_GL_CXXALIASWARN (strerrorname_np); +#elif defined GNULIB_POSIXCHECK +# undef strerrorname_np +# if HAVE_RAW_DECL_STRERRORNAME_NP +_GL_WARN_ON_USE (strerrorname_np, "strerrorname_np is unportable - " + "use gnulib module strerrorname_np for portability"); +# endif +#endif + /* Return an abbreviation string for the signal number SIG. */ #if @GNULIB_SIGABBREV_NP@ # if ! @HAVE_SIGABBREV_NP@ |