diff options
| author | Paul Eggert | 2020-02-23 01:24:21 -0800 |
|---|---|---|
| committer | Paul Eggert | 2020-02-23 01:27:19 -0800 |
| commit | b6be1ce644a07b6dc30eaa24dec082effd7add40 (patch) | |
| tree | 02de8983f45751bf5da9b2f409758f2934306746 /m4 | |
| parent | bce17355ac9f6a6f8ed778bd310f3baaea514270 (diff) | |
| download | emacs-b6be1ce644a07b6dc30eaa24dec082effd7add40.tar.gz emacs-b6be1ce644a07b6dc30eaa24dec082effd7add40.zip | |
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 'm4')
| -rw-r--r-- | m4/inttypes.m4 | 4 | ||||
| -rw-r--r-- | m4/signal_h.m4 | 4 | ||||
| -rw-r--r-- | m4/stdio_h.m4 | 4 | ||||
| -rw-r--r-- | m4/stdlib_h.m4 | 4 | ||||
| -rw-r--r-- | m4/string_h.m4 | 5 | ||||
| -rw-r--r-- | m4/sys_socket_h.m4 | 4 | ||||
| -rw-r--r-- | m4/sys_stat_h.m4 | 7 | ||||
| -rw-r--r-- | m4/time_h.m4 | 6 | ||||
| -rw-r--r-- | m4/unistd_h.m4 | 4 |
9 files changed, 29 insertions, 13 deletions
diff --git a/m4/inttypes.m4 b/m4/inttypes.m4 index d0487d6368c..224d0cdd8e2 100644 --- a/m4/inttypes.m4 +++ b/m4/inttypes.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # inttypes.m4 serial 28 | 1 | # inttypes.m4 serial 29 |
| 2 | dnl Copyright (C) 2006-2020 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2006-2020 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -28,6 +28,8 @@ AC_DEFUN_ONCE([gl_INTTYPES_INCOMPLETE], | |||
| 28 | dnl corresponding gnulib module is not in use. | 28 | dnl corresponding gnulib module is not in use. |
| 29 | gl_WARN_ON_USE_PREPARE([[#include <inttypes.h> | 29 | gl_WARN_ON_USE_PREPARE([[#include <inttypes.h> |
| 30 | ]], [imaxabs imaxdiv strtoimax strtoumax]) | 30 | ]], [imaxabs imaxdiv strtoimax strtoumax]) |
| 31 | |||
| 32 | AC_REQUIRE([AC_C_RESTRICT]) | ||
| 31 | ]) | 33 | ]) |
| 32 | 34 | ||
| 33 | # Ensure that the PRI* and SCN* macros are defined appropriately. | 35 | # Ensure that the PRI* and SCN* macros are defined appropriately. |
diff --git a/m4/signal_h.m4 b/m4/signal_h.m4 index 08684384314..b2629809f18 100644 --- a/m4/signal_h.m4 +++ b/m4/signal_h.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # signal_h.m4 serial 18 | 1 | # signal_h.m4 serial 19 |
| 2 | dnl Copyright (C) 2007-2020 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2007-2020 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -34,6 +34,8 @@ AC_DEFUN([gl_SIGNAL_H], | |||
| 34 | ]], [pthread_sigmask sigaction | 34 | ]], [pthread_sigmask sigaction |
| 35 | sigaddset sigdelset sigemptyset sigfillset sigismember | 35 | sigaddset sigdelset sigemptyset sigfillset sigismember |
| 36 | sigpending sigprocmask]) | 36 | sigpending sigprocmask]) |
| 37 | |||
| 38 | AC_REQUIRE([AC_C_RESTRICT]) | ||
| 37 | ]) | 39 | ]) |
| 38 | 40 | ||
| 39 | AC_DEFUN([gl_CHECK_TYPE_SIGSET_T], | 41 | AC_DEFUN([gl_CHECK_TYPE_SIGSET_T], |
diff --git a/m4/stdio_h.m4 b/m4/stdio_h.m4 index c603b514d96..5f968bc26a5 100644 --- a/m4/stdio_h.m4 +++ b/m4/stdio_h.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # stdio_h.m4 serial 49 | 1 | # stdio_h.m4 serial 50 |
| 2 | dnl Copyright (C) 2007-2020 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2007-2020 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -107,6 +107,8 @@ AC_DEFUN([gl_STDIO_H], | |||
| 107 | gl_WARN_ON_USE_PREPARE([[#include <stdio.h> | 107 | gl_WARN_ON_USE_PREPARE([[#include <stdio.h> |
| 108 | ]], [dprintf fpurge fseeko ftello getdelim getline gets pclose popen | 108 | ]], [dprintf fpurge fseeko ftello getdelim getline gets pclose popen |
| 109 | renameat snprintf tmpfile vdprintf vsnprintf]) | 109 | renameat snprintf tmpfile vdprintf vsnprintf]) |
| 110 | |||
| 111 | AC_REQUIRE([AC_C_RESTRICT]) | ||
| 110 | ]) | 112 | ]) |
| 111 | 113 | ||
| 112 | AC_DEFUN([gl_STDIO_MODULE_INDICATOR], | 114 | AC_DEFUN([gl_STDIO_MODULE_INDICATOR], |
diff --git a/m4/stdlib_h.m4 b/m4/stdlib_h.m4 index 61a3e31edac..743066a6336 100644 --- a/m4/stdlib_h.m4 +++ b/m4/stdlib_h.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # stdlib_h.m4 serial 48 | 1 | # stdlib_h.m4 serial 49 |
| 2 | dnl Copyright (C) 2007-2020 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2007-2020 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -27,6 +27,8 @@ AC_DEFUN([gl_STDLIB_H], | |||
| 27 | posix_openpt ptsname ptsname_r qsort_r random random_r reallocarray | 27 | posix_openpt ptsname ptsname_r qsort_r random random_r reallocarray |
| 28 | realpath rpmatch secure_getenv setenv setstate setstate_r srandom | 28 | realpath rpmatch secure_getenv setenv setstate setstate_r srandom |
| 29 | srandom_r strtod strtold strtoll strtoull unlockpt unsetenv]) | 29 | srandom_r strtod strtold strtoll strtoull unlockpt unsetenv]) |
| 30 | |||
| 31 | AC_REQUIRE([AC_C_RESTRICT]) | ||
| 30 | ]) | 32 | ]) |
| 31 | 33 | ||
| 32 | AC_DEFUN([gl_STDLIB_MODULE_INDICATOR], | 34 | AC_DEFUN([gl_STDLIB_MODULE_INDICATOR], |
diff --git a/m4/string_h.m4 b/m4/string_h.m4 index 4c1f685eabd..cc51337f0d1 100644 --- a/m4/string_h.m4 +++ b/m4/string_h.m4 | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | # gives unlimited permission to copy and/or distribute it, | 5 | # gives unlimited permission to copy and/or distribute it, |
| 6 | # with or without modifications, as long as this notice is preserved. | 6 | # with or without modifications, as long as this notice is preserved. |
| 7 | 7 | ||
| 8 | # serial 22 | 8 | # serial 23 |
| 9 | 9 | ||
| 10 | # Written by Paul Eggert. | 10 | # Written by Paul Eggert. |
| 11 | 11 | ||
| @@ -18,7 +18,6 @@ AC_DEFUN([gl_HEADER_STRING_H], | |||
| 18 | 18 | ||
| 19 | AC_DEFUN([gl_HEADER_STRING_H_BODY], | 19 | AC_DEFUN([gl_HEADER_STRING_H_BODY], |
| 20 | [ | 20 | [ |
| 21 | AC_REQUIRE([AC_C_RESTRICT]) | ||
| 22 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) | 21 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) |
| 23 | gl_NEXT_HEADERS([string.h]) | 22 | gl_NEXT_HEADERS([string.h]) |
| 24 | 23 | ||
| @@ -30,6 +29,8 @@ AC_DEFUN([gl_HEADER_STRING_H_BODY], | |||
| 30 | [ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul | 29 | [ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul |
| 31 | strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r | 30 | strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r |
| 32 | strerror_r strsignal strverscmp]) | 31 | strerror_r strsignal strverscmp]) |
| 32 | |||
| 33 | AC_REQUIRE([AC_C_RESTRICT]) | ||
| 33 | ]) | 34 | ]) |
| 34 | 35 | ||
| 35 | AC_DEFUN([gl_STRING_MODULE_INDICATOR], | 36 | AC_DEFUN([gl_STRING_MODULE_INDICATOR], |
diff --git a/m4/sys_socket_h.m4 b/m4/sys_socket_h.m4 index 1471aeaec41..bf902f08108 100644 --- a/m4/sys_socket_h.m4 +++ b/m4/sys_socket_h.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # sys_socket_h.m4 serial 24 | 1 | # sys_socket_h.m4 serial 25 |
| 2 | dnl Copyright (C) 2005-2020 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2005-2020 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -95,6 +95,8 @@ AC_DEFUN([gl_HEADER_SYS_SOCKET], | |||
| 95 | #include <sys/socket.h> | 95 | #include <sys/socket.h> |
| 96 | ]], [socket connect accept bind getpeername getsockname getsockopt | 96 | ]], [socket connect accept bind getpeername getsockname getsockopt |
| 97 | listen recv send recvfrom sendto setsockopt shutdown accept4]) | 97 | listen recv send recvfrom sendto setsockopt shutdown accept4]) |
| 98 | |||
| 99 | AC_REQUIRE([AC_C_RESTRICT]) | ||
| 98 | ]) | 100 | ]) |
| 99 | 101 | ||
| 100 | AC_DEFUN([gl_PREREQ_SYS_H_SOCKET], | 102 | AC_DEFUN([gl_PREREQ_SYS_H_SOCKET], |
diff --git a/m4/sys_stat_h.m4 b/m4/sys_stat_h.m4 index a5f35d46dd9..3efba5a7b98 100644 --- a/m4/sys_stat_h.m4 +++ b/m4/sys_stat_h.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # sys_stat_h.m4 serial 32 -*- Autoconf -*- | 1 | # sys_stat_h.m4 serial 33 -*- Autoconf -*- |
| 2 | dnl Copyright (C) 2006-2020 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2006-2020 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -48,7 +48,9 @@ AC_DEFUN([gl_HEADER_SYS_STAT_H], | |||
| 48 | gl_WARN_ON_USE_PREPARE([[#include <sys/stat.h> | 48 | gl_WARN_ON_USE_PREPARE([[#include <sys/stat.h> |
| 49 | ]], [fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat | 49 | ]], [fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat |
| 50 | mknod mknodat stat utimensat]) | 50 | mknod mknodat stat utimensat]) |
| 51 | ]) # gl_HEADER_SYS_STAT_H | 51 | |
| 52 | AC_REQUIRE([AC_C_RESTRICT]) | ||
| 53 | ]) | ||
| 52 | 54 | ||
| 53 | AC_DEFUN([gl_SYS_STAT_MODULE_INDICATOR], | 55 | AC_DEFUN([gl_SYS_STAT_MODULE_INDICATOR], |
| 54 | [ | 56 | [ |
| @@ -92,7 +94,6 @@ AC_DEFUN([gl_SYS_STAT_H_DEFAULTS], | |||
| 92 | REPLACE_FSTAT=0; AC_SUBST([REPLACE_FSTAT]) | 94 | REPLACE_FSTAT=0; AC_SUBST([REPLACE_FSTAT]) |
| 93 | REPLACE_FSTATAT=0; AC_SUBST([REPLACE_FSTATAT]) | 95 | REPLACE_FSTATAT=0; AC_SUBST([REPLACE_FSTATAT]) |
| 94 | REPLACE_FUTIMENS=0; AC_SUBST([REPLACE_FUTIMENS]) | 96 | REPLACE_FUTIMENS=0; AC_SUBST([REPLACE_FUTIMENS]) |
| 95 | REPLACE_LCHMOD=0; AC_SUBST([REPLACE_LCHMOD]) | ||
| 96 | REPLACE_LSTAT=0; AC_SUBST([REPLACE_LSTAT]) | 97 | REPLACE_LSTAT=0; AC_SUBST([REPLACE_LSTAT]) |
| 97 | REPLACE_MKDIR=0; AC_SUBST([REPLACE_MKDIR]) | 98 | REPLACE_MKDIR=0; AC_SUBST([REPLACE_MKDIR]) |
| 98 | REPLACE_MKFIFO=0; AC_SUBST([REPLACE_MKFIFO]) | 99 | REPLACE_MKFIFO=0; AC_SUBST([REPLACE_MKFIFO]) |
diff --git a/m4/time_h.m4 b/m4/time_h.m4 index aae0ae22741..d0f89327c4b 100644 --- a/m4/time_h.m4 +++ b/m4/time_h.m4 | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | # Copyright (C) 2000-2001, 2003-2007, 2009-2020 Free Software Foundation, Inc. | 3 | # Copyright (C) 2000-2001, 2003-2007, 2009-2020 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | # serial 11 | 5 | # serial 12 |
| 6 | 6 | ||
| 7 | # This file is free software; the Free Software Foundation | 7 | # This file is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy and/or distribute it, | 8 | # gives unlimited permission to copy and/or distribute it, |
| @@ -19,10 +19,12 @@ AC_DEFUN([gl_HEADER_TIME_H], | |||
| 19 | 19 | ||
| 20 | AC_DEFUN([gl_HEADER_TIME_H_BODY], | 20 | AC_DEFUN([gl_HEADER_TIME_H_BODY], |
| 21 | [ | 21 | [ |
| 22 | AC_REQUIRE([AC_C_RESTRICT]) | ||
| 23 | AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS]) | 22 | AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS]) |
| 23 | |||
| 24 | gl_NEXT_HEADERS([time.h]) | 24 | gl_NEXT_HEADERS([time.h]) |
| 25 | AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC]) | 25 | AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC]) |
| 26 | |||
| 27 | AC_REQUIRE([AC_C_RESTRICT]) | ||
| 26 | ]) | 28 | ]) |
| 27 | 29 | ||
| 28 | dnl Check whether 'struct timespec' is declared | 30 | dnl Check whether 'struct timespec' is declared |
diff --git a/m4/unistd_h.m4 b/m4/unistd_h.m4 index ea2bb016dbb..e776f3bd445 100644 --- a/m4/unistd_h.m4 +++ b/m4/unistd_h.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # unistd_h.m4 serial 77 | 1 | # unistd_h.m4 serial 78 |
| 2 | dnl Copyright (C) 2006-2020 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2006-2020 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -48,6 +48,8 @@ AC_DEFUN([gl_UNISTD_H], | |||
| 48 | group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite | 48 | group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite |
| 49 | readlink readlinkat rmdir sethostname sleep symlink symlinkat | 49 | readlink readlinkat rmdir sethostname sleep symlink symlinkat |
| 50 | truncate ttyname_r unlink unlinkat usleep]) | 50 | truncate ttyname_r unlink unlinkat usleep]) |
| 51 | |||
| 52 | AC_REQUIRE([AC_C_RESTRICT]) | ||
| 51 | ]) | 53 | ]) |
| 52 | 54 | ||
| 53 | AC_DEFUN([gl_UNISTD_MODULE_INDICATOR], | 55 | AC_DEFUN([gl_UNISTD_MODULE_INDICATOR], |