diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-02-23 01:24:21 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-02-23 01:27:19 -0800 |
commit | b6be1ce644a07b6dc30eaa24dec082effd7add40 (patch) | |
tree | 02de8983f45751bf5da9b2f409758f2934306746 /lib/string.in.h | |
parent | bce17355ac9f6a6f8ed778bd310f3baaea514270 (diff) | |
download | emacs-b6be1ce644a07b6dc30eaa24dec082effd7add40.tar.gz |
Update from Gnulib
This incorporates:
2020-02-22 fchmodat, lchmod: simplify
2020-02-22 lchmod: fix link error on Solaris 10
2020-02-22 use 'restrict' in all POSIX function declarations
2020-02-22 chmodat, chownat: new modules
* lib/gnulib.mk.in: Regenerate.
* lib/inttypes.in.h, lib/openat.h, lib/signal.in.h:
* lib/stdio.in.h, lib/stdlib.in.h, lib/string.in.h:
* lib/sys_stat.in.h, lib/time.in.h, lib/unistd.in.h, m4/inttypes.m4:
* m4/signal_h.m4, m4/stdio_h.m4, m4/stdlib_h.m4, m4/string_h.m4:
* m4/sys_socket_h.m4, m4/sys_stat_h.m4, m4/time_h.m4:
* m4/unistd_h.m4: Copy from Gnulib.
Diffstat (limited to 'lib/string.in.h')
-rw-r--r-- | lib/string.in.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/string.in.h b/lib/string.in.h index 2c04e5f4f71..5bc00845205 100644 --- a/lib/string.in.h +++ b/lib/string.in.h @@ -411,11 +411,14 @@ _GL_WARN_ON_USE (strdup, "strdup is unportable - " # undef strncat # define strncat rpl_strncat # endif -_GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n) - _GL_ARG_NONNULL ((1, 2))); -_GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n)); +_GL_FUNCDECL_RPL (strncat, char *, + (char *restrict dest, const char *restrict src, size_t n) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (strncat, char *, + (char *restrict dest, const char *restrict src, size_t n)); # else -_GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n)); +_GL_CXXALIAS_SYS (strncat, char *, + (char *restrict dest, const char *restrict src, size_t n)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (strncat); |