]> git.eshelyaron.com Git - emacs.git/commitdiff
Update from Gnulib by running admin/merge-gnulib
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 11 May 2024 20:16:48 +0000 (13:16 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sun, 12 May 2024 15:49:26 +0000 (17:49 +0200)
(cherry picked from commit 7ae091d933b03d0a1e1e0b39a949c2811c4c3618)

165 files changed:
lib/acl.h
lib/allocator.h
lib/binary-io.h
lib/boot-time-aux.h
lib/careadlinkat.h
lib/cloexec.h
lib/close-stream.h
lib/execinfo.in.h
lib/fcntl.in.h
lib/filevercmp.h
lib/fpending.h
lib/fsusage.h
lib/ftoastr.h
lib/gnulib.mk.in
lib/idx.h
lib/intprops-internal.h
lib/memset_explicit.c
lib/mini-gmp.c
lib/openat-priv.h
lib/openat.h
lib/save-cwd.h
lib/stddef.in.h
lib/stdio.in.h
lib/stdlib.in.h
lib/strftime.c
lib/sys_types.in.h
lib/u64.h
lib/unistd.in.h
lib/utimens.h
m4/00gnulib.m4
m4/__inline.m4
m4/absolute-header.m4
m4/acl.m4
m4/alloca.m4
m4/assert_h.m4
m4/builtin-expect.m4
m4/byteswap.m4
m4/c-bool.m4
m4/canonicalize.m4
m4/clock_time.m4
m4/codeset.m4
m4/copy-file-range.m4
m4/d-type.m4
m4/dirent_h.m4
m4/dirfd.m4
m4/double-slash-root.m4
m4/dup2.m4
m4/eealloc.m4
m4/environ.m4
m4/errno_h.m4
m4/euidaccess.m4
m4/execinfo.m4
m4/extensions.m4
m4/extern-inline.m4
m4/faccessat.m4
m4/fchmodat.m4
m4/fcntl.m4
m4/fcntl_h.m4
m4/fdopendir.m4
m4/filemode.m4
m4/flexmember.m4
m4/fpending.m4
m4/fpieee.m4
m4/free.m4
m4/fstatat.m4
m4/fsusage.m4
m4/fsync.m4
m4/futimens.m4
m4/getdelim.m4
m4/getdtablesize.m4
m4/getgroups.m4
m4/getline.m4
m4/getloadavg.m4
m4/getopt.m4
m4/getrandom.m4
m4/gettime.m4
m4/gettimeofday.m4
m4/gnulib-common.m4
m4/gnulib-comp.m4
m4/group-member.m4
m4/ieee754-h.m4
m4/include_next.m4
m4/inttypes.m4
m4/largefile.m4
m4/lchmod.m4
m4/libgmp.m4
m4/limits-h.m4
m4/lstat.m4
m4/malloc.m4
m4/manywarnings.m4
m4/mbstate_t.m4
m4/md5.m4
m4/memmem.m4
m4/mempcpy.m4
m4/memrchr.m4
m4/memset_explicit.m4
m4/minmax.m4
m4/mkostemp.m4
m4/mktime.m4
m4/mode_t.m4
m4/multiarch.m4
m4/musl.m4
m4/nanosleep.m4
m4/nocrash.m4
m4/nproc.m4
m4/nstrftime.m4
m4/off_t.m4
m4/open-cloexec.m4
m4/open-slash.m4
m4/open.m4
m4/pathmax.m4
m4/pid_t.m4
m4/pipe2.m4
m4/pselect.m4
m4/pthread_sigmask.m4
m4/rawmemchr.m4
m4/readlink.m4
m4/readlinkat.m4
m4/readutmp.m4
m4/realloc.m4
m4/regex.m4
m4/sha1.m4
m4/sha256.m4
m4/sha512.m4
m4/sig2str.m4
m4/sigdescr_np.m4
m4/signal_h.m4
m4/socklen.m4
m4/ssize_t.m4
m4/stat-time.m4
m4/std-gnu11.m4
m4/stdalign.m4
m4/stddef_h.m4
m4/stdint.m4
m4/stdio_h.m4
m4/stdlib_h.m4
m4/stpcpy.m4
m4/string_h.m4
m4/strnlen.m4
m4/strtoimax.m4
m4/strtoll.m4
m4/symlink.m4
m4/sys_random_h.m4
m4/sys_select_h.m4
m4/sys_socket_h.m4
m4/sys_stat_h.m4
m4/sys_time_h.m4
m4/sys_types_h.m4
m4/tempname.m4
m4/time_h.m4
m4/time_r.m4
m4/time_rz.m4
m4/timegm.m4
m4/timer_time.m4
m4/timespec.m4
m4/tm_gmtoff.m4
m4/unistd_h.m4
m4/unlocked-io.m4
m4/utimens.m4
m4/utimensat.m4
m4/vararrays.m4
m4/warnings.m4
m4/wchar_t.m4
m4/xattr.m4
m4/zzgnulib.m4

index a3aeb8fc86ae53e4b0ec5d0639d4579e46650d44..0bf78a654d25d1d70e38bdad426b2ca3e3080cb2 100644 (file)
--- a/lib/acl.h
+++ b/lib/acl.h
 #include <sys/types.h>
 #include <sys/stat.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 bool acl_errno_valid (int) _GL_ATTRIBUTE_CONST;
 int file_has_acl (char const *, struct stat const *);
 int qset_acl (char const *, int, mode_t);
@@ -36,4 +41,9 @@ int qcopy_acl (char const *, int, char const *, int, mode_t);
 int copy_acl (char const *, int, char const *, int, mode_t);
 int chmod_or_fchmod (char const *, int, mode_t);
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif
index bb30a3440c2d631b6d130bfd355ee5a79aa7230a..53c8dfcacdf582e81967f7856a39c5ab430ab354 100644 (file)
 
 #include <stddef.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* An object describing a memory allocator family.  */
 
 struct allocator
@@ -55,4 +60,9 @@ struct allocator
 /* An allocator using the stdlib functions and a null DIE function.  */
 extern struct allocator const stdlib_allocator;
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _GL_ALLOCATOR_H */
index 0cc5c11748ca665df77ecdf3422cca5e4d1600f1..1da018fad85669fda555a1d04929f5a7dfad375a 100644 (file)
@@ -55,6 +55,11 @@ __gl_setmode (_GL_UNUSED int fd, _GL_UNUSED int mode)
 }
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Set FD's mode to MODE, which should be either O_TEXT or O_BINARY.
    Return the old mode if successful, -1 (setting errno) on failure.
    Ordinarily this function would be called 'setmode', since that is
@@ -74,6 +79,11 @@ set_binary_mode (int fd, int mode)
 /* This macro is obsolescent.  */
 #define SET_BINARY(fd) ((void) set_binary_mode (fd, O_BINARY))
 
+
+#ifdef __cplusplus
+}
+#endif
+
 _GL_INLINE_HEADER_END
 
 #endif /* _BINARY_H */
index 8b966fe691fc76d39749479d476e33a11f525e15..7f8c5405e4c09e03b0c926734c8439298014043c 100644 (file)
@@ -304,18 +304,35 @@ get_windows_boot_time (struct timespec *p_boot_time)
      Instead, on Windows, the boot time can be retrieved by looking at the
      time stamp of a file that (normally) gets touched only during the boot
      process, namely C:\pagefile.sys.  */
-  const char * const boot_touched_file =
-    #if defined __CYGWIN__ && !defined _WIN32
-    "/cygdrive/c/pagefile.sys"
-    #else
-    "C:\\pagefile.sys"
-    #endif
-    ;
-  struct stat statbuf;
-  if (stat (boot_touched_file, &statbuf) >= 0)
+  const char * const boot_touched_files[] =
     {
-      *p_boot_time = get_stat_mtime (&statbuf);
-      return 0;
+      #if defined __CYGWIN__ && !defined _WIN32
+      /* It is more portable to use /proc/cygdrive/c than /cygdrive/c.  */
+      "/proc/cygdrive/c/pagefile.sys",
+      /* A fallback, working around a Cygwin 3.5.3 bug.  It has a modification
+         time about 1.5 minutes after the last boot; but that's better than
+         nothing.  */
+      "/proc/cygdrive/c/ProgramData/Microsoft/Windows/DeviceMetadataCache/dmrc.idx"
+      #else
+      "C:\\pagefile.sys"
+      #endif
+    };
+  for (idx_t i = 0; i < SIZEOF (boot_touched_files); i++)
+    {
+      const char *filename = boot_touched_files[i];
+      struct stat statbuf;
+      if (stat (filename, &statbuf) >= 0)
+        {
+# if defined __CYGWIN__ && !defined _WIN32
+          /* Work around a Cygwin 3.5.3 bug.
+             <https://cygwin.com/pipermail/cygwin/2024-May/255931.html>  */
+          if (!S_ISDIR (statbuf.st_mode))
+# endif
+            {
+              *p_boot_time = get_stat_mtime (&statbuf);
+              return 0;
+            }
+        }
     }
   return -1;
 }
index 473e6531e67acacf02c8ddb8f5b1eff8ab2d635b..2c552b692af7a141eff971a2ac74912840326c1d 100644 (file)
 #include <fcntl.h>
 #include <unistd.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 struct allocator;
 
 /* Assuming the current directory is FD, get the symbolic link value
@@ -69,4 +74,9 @@ char *careadlinkat (int fd, char const *filename,
 # endif
 #endif
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _GL_CAREADLINKAT_H */
index f52e5f2ec0fbcb862f22751328038866eb9fca0e..a7944d6dd5dd711cb9b432251c098e65af109bc2 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true,
    or clear the flag if VALUE is false.
    Return 0 on success, or -1 on error with 'errno' set.
@@ -32,3 +37,8 @@ int set_cloexec_flag (int desc, bool value);
    be duplicated.  */
 
 int dup_cloexec (int fd);
+
+
+#ifdef __cplusplus
+}
+#endif
index 8a1b3c7ac2c9da3ca85b2e87906f3d5c6e63161d..3c421dce5137a6817b3e91e909c69403993d283f 100644 (file)
 
 #include <stdio.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 int close_stream (FILE *stream);
+
+
+#ifdef __cplusplus
+}
+#endif
index 0ffb2c386e797861b1ce2307d59b2eb31b81c710..e017947bca4fe28938d3af957fc8fd1fa498ac15 100644 (file)
@@ -30,6 +30,11 @@ _GL_INLINE_HEADER_BEGIN
 # define _GL_EXECINFO_INLINE _GL_INLINE
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 _GL_EXECINFO_INLINE int
 backtrace (void **buffer, int size)
 {
@@ -54,6 +59,11 @@ backtrace_symbols_fd (void *const *buffer, int size, int fd)
   (void) fd;
 }
 
+
+#ifdef __cplusplus
+}
+#endif
+
 _GL_INLINE_HEADER_END
 
 #endif
index eea3b9542a514fcd046bac5878f45435285b2918..1465ce594d7aedab9de984d9baceca5d9b06f0d8 100644 (file)
@@ -51,7 +51,8 @@
 #ifndef _@GUARD_PREFIX@_FCNTL_H
 
 /* Needed before <sys/stat.h>.
-   May also define off_t to a 64-bit type on native Windows.  */
+   May also define off_t to a 64-bit type on native Windows.
+   Also defines off64_t on macOS, NetBSD, OpenBSD, MSVC, Cygwin, Haiku.  */
 #include <sys/types.h>
 /* On some systems other than glibc, <sys/stat.h> is a prerequisite of
    <fcntl.h>.  On glibc systems, we would like to avoid namespace pollution.
index 8c549fcda00730b12e58af1f71b64e87d194c424..81f821d5267bc6902e5e2acf88485f1613c653e6 100644 (file)
 
 #include <stddef.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Compare strings A and B as file names containing version numbers,
    and return an integer that is negative, zero, or positive depending
    on whether A compares less than, equal to, or greater than B.
@@ -80,4 +85,9 @@ int filevercmp (char const *a, char const *b) _GL_ATTRIBUTE_PURE;
 int filenvercmp (char const *a, ptrdiff_t alen, char const *b, ptrdiff_t blen)
   _GL_ATTRIBUTE_PURE;
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* FILEVERCMP_H */
index 28db3b403d99760c01981b17573cd89c4198d899..345c0bc71d98562a59fa8fdec0c4e18329401ac8 100644 (file)
 # include <stdio_ext.h>
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 #if !HAVE_DECL___FPENDING
 size_t __fpending (FILE *) _GL_ATTRIBUTE_PURE;
 #endif
+
+
+#ifdef __cplusplus
+}
+#endif
index d7ae5f63a36c1bec169744869f38a97745a1e817..da87859060caa73bdf2c1a88885d4ccba45940d0 100644 (file)
 /* Space usage statistics for a file system.  Blocks are 512-byte. */
 
 #if !defined FSUSAGE_H_
-# define FSUSAGE_H_
+#define FSUSAGE_H_
+
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
-# include <stdint.h>
 
 struct fs_usage
 {
@@ -36,4 +41,9 @@ struct fs_usage
 
 int get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp);
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif
index ed43c961a0421441a5a1197251a04b58f5432d61..94554863a1e199576a0a0c9ae25e2766ddc232ac 100644 (file)
 #include <float.h>
 #include <stddef.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Store into BUF (of size BUFSIZE) an accurate minimal-precision
    string representation of a floating point number.  FLAGS affect the
    formatting of the number.  Pad the output string with spaces as
@@ -149,4 +154,9 @@ enum
 #define  DBL_BUFSIZE_BOUND ( DBL_STRLEN_BOUND + 1)
 #define LDBL_BUFSIZE_BOUND (LDBL_STRLEN_BOUND + 1)
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _GL_FTOASTR_H */
index 711ddcf126081348c3123826d59959a8fa309e25..a5c009cfb85d2544ea87be147ab9dac4eeb2146d 100644 (file)
@@ -618,6 +618,7 @@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@
 GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@
 GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@
 GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@
+GL_GNULIB_STRTOF = @GL_GNULIB_STRTOF@
 GL_GNULIB_STRTOIMAX = @GL_GNULIB_STRTOIMAX@
 GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@
 GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@
@@ -809,6 +810,7 @@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@
 HAVE_MODULES = @HAVE_MODULES@
 HAVE_NANOSLEEP = @HAVE_NANOSLEEP@
 HAVE_NATIVE_COMP = @HAVE_NATIVE_COMP@
+HAVE_OFF64_T = @HAVE_OFF64_T@
 HAVE_OPENAT = @HAVE_OPENAT@
 HAVE_OPENDIR = @HAVE_OPENDIR@
 HAVE_OS_H = @HAVE_OS_H@
@@ -872,6 +874,7 @@ HAVE_STRPBRK = @HAVE_STRPBRK@
 HAVE_STRPTIME = @HAVE_STRPTIME@
 HAVE_STRSEP = @HAVE_STRSEP@
 HAVE_STRTOD = @HAVE_STRTOD@
+HAVE_STRTOF = @HAVE_STRTOF@
 HAVE_STRTOL = @HAVE_STRTOL@
 HAVE_STRTOLD = @HAVE_STRTOLD@
 HAVE_STRTOLL = @HAVE_STRTOLL@
@@ -922,12 +925,10 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@
 INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@
+IS_D8_R8 = @IS_D8_R8@
 JARSIGNER = @JARSIGNER@
 JAVAC = @JAVAC@
 JPEG_CFLAGS = @JPEG_CFLAGS@
-JSON_CFLAGS = @JSON_CFLAGS@
-JSON_LIBS = @JSON_LIBS@
-JSON_OBJ = @JSON_OBJ@
 KQUEUE_CFLAGS = @KQUEUE_CFLAGS@
 KQUEUE_LIBS = @KQUEUE_LIBS@
 KRB4LIB = @KRB4LIB@
@@ -1017,9 +1018,12 @@ NDK_BUILD_ARCH = @NDK_BUILD_ARCH@
 NDK_BUILD_CC = @NDK_BUILD_CC@
 NDK_BUILD_CFLAGS = @NDK_BUILD_CFLAGS@
 NDK_BUILD_CXX = @NDK_BUILD_CXX@
+NDK_BUILD_CXX_LDFLAGS = @NDK_BUILD_CXX_LDFLAGS@
 NDK_BUILD_CXX_SHARED = @NDK_BUILD_CXX_SHARED@
+NDK_BUILD_CXX_STL = @NDK_BUILD_CXX_STL@
 NDK_BUILD_MODULES = @NDK_BUILD_MODULES@
 NDK_BUILD_NASM = @NDK_BUILD_NASM@
+NDK_BUILD_READELF = @NDK_BUILD_READELF@
 NDK_BUILD_SDK = @NDK_BUILD_SDK@
 NEXT_ASSERT_H = @NEXT_ASSERT_H@
 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H = @NEXT_AS_FIRST_DIRECTIVE_ASSERT_H@
@@ -1068,6 +1072,7 @@ NS_OBJ = @NS_OBJ@
 NS_OBJC_OBJ = @NS_OBJC_OBJ@
 NTDIR = @NTDIR@
 NTLIB = @NTLIB@
+NULLPTR_T_NEEDS_STDDEF = @NULLPTR_T_NEEDS_STDDEF@
 OBJC = @OBJC@
 OBJCFLAGS = @OBJCFLAGS@
 OBJEXT = @OBJEXT@
@@ -1101,6 +1106,7 @@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
 QCOPY_ACL_LIB = @QCOPY_ACL_LIB@
 RALLOC_OBJ = @RALLOC_OBJ@
 RANLIB = @RANLIB@
+READELF = @READELF@
 REPLACE_ACCESS = @REPLACE_ACCESS@
 REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@
 REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@
@@ -1258,6 +1264,7 @@ REPLACE_STRNLEN = @REPLACE_STRNLEN@
 REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@
 REPLACE_STRSTR = @REPLACE_STRSTR@
 REPLACE_STRTOD = @REPLACE_STRTOD@
+REPLACE_STRTOF = @REPLACE_STRTOF@
 REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@
 REPLACE_STRTOK_R = @REPLACE_STRTOK_R@
 REPLACE_STRTOL = @REPLACE_STRTOL@
@@ -1308,6 +1315,7 @@ SQLITE3_CFLAGS = @SQLITE3_CFLAGS@
 SQLITE3_LIBS = @SQLITE3_LIBS@
 STDCKDINT_H = @STDCKDINT_H@
 STDDEF_H = @STDDEF_H@
+STDDEF_NOT_IDEMPOTENT = @STDDEF_NOT_IDEMPOTENT@
 STDINT_H = @STDINT_H@
 SUBDIR_MAKEFILES_IN = @SUBDIR_MAKEFILES_IN@
 SYSTEM_TYPE = @SYSTEM_TYPE@
@@ -2195,6 +2203,7 @@ SED_HEADER_STDOUT = sed -e 1h -e '1$(SED_HEADER_NOEDIT)' -e 1G
 SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) -n -e 'w $@-t'
 
 # Use $(gl_V_at) instead of $(AM_V_GEN) or $(AM_V_at) on a line that
+# is its recipe's first line if and only if @NMD@ lines are absent.
 gl_V_at = $(AM_V_GEN)
 
 endif
@@ -3078,9 +3087,11 @@ stddef.h: stddef.in.h $(top_builddir)/config.status
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
              -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
              -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
+             -e 's|@''NULLPTR_T_NEEDS_STDDEF''@|$(NULLPTR_T_NEEDS_STDDEF)|g' \
+             -e 's|@''STDDEF_NOT_IDEMPOTENT''@|$(STDDEF_NOT_IDEMPOTENT)|g' \
+             -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
              -e 's|@''HAVE_MAX_ALIGN_T''@|$(HAVE_MAX_ALIGN_T)|g' \
              -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
-             -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
              $(srcdir)/stddef.in.h > $@-t
        $(AM_V_at)mv $@-t $@
 else
@@ -3347,6 +3358,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
              -e 's/@''GNULIB_SECURE_GETENV''@/$(GL_GNULIB_SECURE_GETENV)/g' \
              -e 's/@''GNULIB_SETENV''@/$(GL_GNULIB_SETENV)/g' \
              -e 's/@''GNULIB_STRTOD''@/$(GL_GNULIB_STRTOD)/g' \
+             -e 's/@''GNULIB_STRTOF''@/$(GL_GNULIB_STRTOF)/g' \
              -e 's/@''GNULIB_STRTOL''@/$(GL_GNULIB_STRTOL)/g' \
              -e 's/@''GNULIB_STRTOLD''@/$(GL_GNULIB_STRTOLD)/g' \
              -e 's/@''GNULIB_STRTOLL''@/$(GL_GNULIB_STRTOLL)/g' \
@@ -3399,6 +3411,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
              -e 's|@''HAVE_SETSTATE''@|$(HAVE_SETSTATE)|g' \
              -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \
              -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
+             -e 's|@''HAVE_STRTOF''@|$(HAVE_STRTOF)|g' \
              -e 's|@''HAVE_STRTOL''@|$(HAVE_STRTOL)|g' \
              -e 's|@''HAVE_STRTOLD''@|$(HAVE_STRTOLD)|g' \
              -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
@@ -3444,6 +3457,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
              -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
              -e 's|@''REPLACE_SETSTATE''@|$(REPLACE_SETSTATE)|g' \
              -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
+             -e 's|@''REPLACE_STRTOF''@|$(REPLACE_STRTOF)|g' \
              -e 's|@''REPLACE_STRTOL''@|$(REPLACE_STRTOL)|g' \
              -e 's|@''REPLACE_STRTOLD''@|$(REPLACE_STRTOLD)|g' \
              -e 's|@''REPLACE_STRTOLL''@|$(REPLACE_STRTOLL)|g' \
@@ -3833,6 +3847,7 @@ sys/types.h: sys_types.in.h $(top_builddir)/config.status
              -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
              -e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \
              -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
+             -e 's|@''HAVE_OFF64_T''@|$(HAVE_OFF64_T)|g' \
              -e 's|@''WINDOWS_STAT_INODES''@|$(WINDOWS_STAT_INODES)|g' \
              $(srcdir)/sys_types.in.h > $@-t
        $(AM_V_at)mv $@-t $@
index f9ce0acd57d019a78241c360904bdd3118031e8a..43793f2d6257bc662e6b444ac7af838986500e7f 100644 (file)
--- a/lib/idx.h
+++ b/lib/idx.h
        help producing good code and good warnings.  The type 'idx_t' could
        then be typedef'ed to a range type that is signed after promotion.  */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* In the future, idx_t could be typedef'ed to a signed range type.
    The clang "extended integer types", supported in Clang 11 or newer
    <https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types>,
@@ -131,4 +136,9 @@ typedef ptrdiff_t idx_t;
    Perhaps there should be another macro IDX_VALUE_BITS that does not
    count the sign bit and is therefore one less than PTRDIFF_WIDTH.  */
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _IDX_H */
index c8a87d2bb27bc0643b0315c9aa0b907a41987776..443024c66573c6f484254a40c5fc946412650271 100644 (file)
    /* Work around GCC bug 91450.  */
 #  define _GL_INT_MULTIPLY_WRAPV(a, b, r) \
     ((!_GL_SIGNED_TYPE_OR_EXPR (*(r)) && _GL_EXPR_SIGNED (a) && _GL_EXPR_SIGNED (b) \
-      && _GL_INT_MULTIPLY_RANGE_OVERFLOW (a, b, 0, (__typeof__ (*(r))) -1)) \
+      && _GL_INT_MULTIPLY_RANGE_OVERFLOW (a, b, \
+                                          (__typeof__ (*(r))) 0, \
+                                          (__typeof__ (*(r))) -1)) \
      ? ((void) __builtin_mul_overflow (a, b, r), 1) \
      : __builtin_mul_overflow (a, b, r))
 # endif
 /* Nonzero if this compiler has GCC bug 68193 or Clang bug 25390.  See:
    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193
    https://llvm.org/bugs/show_bug.cgi?id=25390
-   For now, assume all versions of GCC-like compilers generate bogus
+   For now, assume GCC < 14 and all Clang versions generate bogus
    warnings for _Generic.  This matters only for compilers that
    lack relevant builtins.  */
-#if __GNUC__ || defined __clang__
+#if (__GNUC__ && __GNUC__ < 14) || defined __clang__
 # define _GL__GENERIC_BOGUS 1
 #else
 # define _GL__GENERIC_BOGUS 0
index cf6cc6478477b7ae0f6f6a79d13cebc693735648..33c098734820e2d04a852768a12ae5edf839fabc 100644 (file)
 
 #include <config.h>
 
-/* memset_s need this define */
-#if HAVE_MEMSET_S
-# define __STDC_WANT_LIB_EXT1__ 1
-#endif
-
+/* Specification.  */
 #include <string.h>
 
 /* Set S's bytes to C, where S has LEN bytes.  The compiler will not
index 69a72bfd4601aa88ecf8984dd75acd7c903c37cd..c580a8fc0253605fc7cfeb569fa03a9ab92cfcf1 100644 (file)
@@ -2809,6 +2809,7 @@ mpz_gcdext (mpz_t g, mpz_t s, mpz_t t, const mpz_t u, const mpz_t v)
   mpz_t tu, tv, s0, s1, t0, t1;
   mp_bitcnt_t uz, vz, gz;
   mp_bitcnt_t power;
+  int cmp;
 
   if (u->_mp_size == 0)
     {
@@ -2960,12 +2961,21 @@ mpz_gcdext (mpz_t g, mpz_t s, mpz_t t, const mpz_t u, const mpz_t v)
       mpz_tdiv_q_2exp (t0, t0, 1);
     }
 
-  /* Arrange so that |s| < |u| / 2g */
+  /* Choose small cofactors (they should generally satify
+
+       |s| < |u| / 2g and |t| < |v| / 2g,
+
+     with some documented exceptions). Always choose the smallest s,
+     if there are two choices for s with same absolute value, choose
+     the one with smallest corresponding t (this asymmetric condition
+     is needed to prefer s = 0, |t| = 1 when g = |a| = |b|). */
   mpz_add (s1, s0, s1);
-  if (mpz_cmpabs (s0, s1) > 0)
+  mpz_sub (t1, t0, t1);
+  cmp = mpz_cmpabs (s0, s1);
+  if (cmp > 0 || (cmp == 0 && mpz_cmpabs (t0, t1) > 0))
     {
       mpz_swap (s0, s1);
-      mpz_sub (t0, t0, t1);
+      mpz_swap (t0, t1);
     }
   if (u->_mp_size < 0)
     mpz_neg (s0, s0);
index 7fd4beb5a73a9e5750036472a43c0a673e63bbec..63093f4597e28a7c6b1048ea4f2dd48a8bfaa8e0 100644 (file)
 #include <limits.h>
 #include <stdlib.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Maximum number of bytes that it is safe to allocate as a single
    array on the stack, and that is known as a compile-time constant.
    The assumption is that we'll touch the array very quickly, or a
@@ -61,4 +66,9 @@ int at_func2 (int fd1, char const *file1,
               int fd2, char const *file2,
               int (*func) (char const *file1, char const *file2));
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _GL_HEADER_OPENAT_PRIV */
index dc34092bb3f1b48e7b5f72aad2a2d22819545abb..b6b94f68c75d8aa996b0eab8060f786a65d0cfbb 100644 (file)
 
 _GL_INLINE_HEADER_BEGIN
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 #if !HAVE_OPENAT
 
 int openat_permissive (int fd, char const *file, int flags, mode_t mode,
@@ -122,6 +127,11 @@ lstatat (int fd, char const *name, struct stat *st)
    wrappers are not provided for accessat or euidaccessat, so as to
    avoid dragging in -lgen on some platforms.  */
 
+
+#ifdef __cplusplus
+}
+#endif
+
 _GL_INLINE_HEADER_END
 
 #endif /* _GL_HEADER_OPENAT */
index 692e4b97be2e7ef71072226163119df0af1a2243..9d314c2cf454d00f4d07d0669411521aff7fc7fd 100644 (file)
 /* Written by Jim Meyering.  */
 
 #ifndef SAVE_CWD_H
-# define SAVE_CWD_H 1
+#define SAVE_CWD_H 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 
 struct saved_cwd
   {
@@ -31,4 +36,9 @@ int save_cwd (struct saved_cwd *cwd);
 int restore_cwd (const struct saved_cwd *cwd);
 void free_cwd (struct saved_cwd *cwd);
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* SAVE_CWD_H */
index fa8998d9b72097fb78745aa5eaf5fb2506fc7084..63bb500e2621faf2774a8b369a0aed055c7c8cf6 100644 (file)
 #endif
 @PRAGMA_COLUMNS@
 
-#if defined __need_wchar_t || defined __need_size_t  \
-  || defined __need_ptrdiff_t || defined __need_NULL \
-  || defined __need_wint_t
+#if (defined __need_wchar_t || defined __need_size_t                \
+     || defined __need_ptrdiff_t || defined __need_NULL             \
+     || defined __need_wint_t)                                      \
+    /* Avoid warning triggered by "gcc -std=gnu23 -Wsystem-headers" \
+       in Fedora 40 with gcc 14.0.1.                                \
+       <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114870>.  */   \
+    && !@STDDEF_NOT_IDEMPOTENT@
 /* Special invocation convention inside gcc header files.  In
-   particular, gcc provides a version of <stddef.h> that blindly
-   redefines NULL even when __need_wint_t was defined, even though
-   wint_t is not normally provided by <stddef.h>.  Hence, we must
+   particular, <stddef.h> in some ancient versions of GCC blindly
+   redefined NULL when __need_wint_t was defined, even though wint_t
+   is not normally provided by <stddef.h>.
+   (FIXME: It's not clear what GCC versions those were - perhaps so
+   ancient that we can stop worrying about this?)
+   Although glibc 2.26 (2017) and later do not use __need_wint_t,
+   for portability to macOS, Cygwin, Haiku, and older Glibc + GCC,
    remember if special invocation has ever been used to obtain wint_t,
    in which case we need to clean up NULL yet again.  */
 
 # endif
 
 #else
+/* For @STDDEF_NOT_IDEMPOTENT@.  */
+# undef __need_wchar_t
+# undef __need_size_t
+# undef __need_ptrdiff_t
+# undef __need_NULL
+# undef __need_wint_t
+
 /* Normal invocation convention.  */
 
 # ifndef _@GUARD_PREFIX@_STDDEF_H
@@ -74,6 +89,12 @@ typedef long max_align_t;
 #   endif
 #  endif
 
+#  if !defined _GCC_NULLPTR_T && !@NULLPTR_T_NEEDS_STDDEF@
+    /* Suppress unwanted nullptr_t typedef.  See
+       <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114869>.  */
+#   define _GCC_NULLPTR_T
+#  endif
+
 /* The include_next requires a split double-inclusion guard.  */
 
 #  @INCLUDE_NEXT@ @NEXT_STDDEF_H@
index 4947307e578e9ffc6417fa9adb2e83caf1b32224..1c0c9661bfeb61312642b457716f8532453ba7b1 100644 (file)
@@ -77,7 +77,8 @@
 
 /* Get off_t and ssize_t.  Needed on many systems, including glibc 2.8
    and eglibc 2.11.2.
-   May also define off_t to a 64-bit type on native Windows.  */
+   May also define off_t to a 64-bit type on native Windows.
+   Also defines off64_t on macOS, NetBSD, OpenBSD, MSVC, Cygwin, Haiku.  */
 #include <sys/types.h>
 
 /* Solaris 10 and NetBSD 7.0 declare renameat in <unistd.h>, not in <stdio.h>.  */
@@ -907,14 +908,14 @@ _GL_CXXALIAS_SYS (fwrite, size_t,
        && !defined __cplusplus)
 #   undef fwrite
 #   undef fwrite_unlocked
-extern size_t __REDIRECT (rpl_fwrite,
-                          (const void *__restrict, size_t, size_t,
-                           FILE *__restrict),
-                          fwrite);
-extern size_t __REDIRECT (rpl_fwrite_unlocked,
-                          (const void *__restrict, size_t, size_t,
-                           FILE *__restrict),
-                          fwrite_unlocked);
+_GL_EXTERN_C size_t __REDIRECT (rpl_fwrite,
+                                (const void *__restrict, size_t, size_t,
+                                 FILE *__restrict),
+                                fwrite);
+_GL_EXTERN_C size_t __REDIRECT (rpl_fwrite_unlocked,
+                                (const void *__restrict, size_t, size_t,
+                                 FILE *__restrict),
+                                fwrite_unlocked);
 #   define fwrite rpl_fwrite
 #   define fwrite_unlocked rpl_fwrite_unlocked
 #  endif
index b901d175aebf33b759951287162b4eea90519832..e74e7c18d19e0550ef6ca23e40f52e6b615caf85 100644 (file)
@@ -1591,6 +1591,38 @@ _GL_WARN_ON_USE (strtod, "strtod is unportable - "
 # endif
 #endif
 
+#if @GNULIB_STRTOF@
+ /* Parse a float from STRING, updating ENDP if appropriate.  */
+# if @REPLACE_STRTOF@
+#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+#   define strtof rpl_strtof
+#  endif
+#  define GNULIB_defined_strtof_function 1
+_GL_FUNCDECL_RPL (strtof, float,
+                  (const char *restrict str, char **restrict endp)
+                  _GL_ARG_NONNULL ((1)));
+_GL_CXXALIAS_RPL (strtof, float,
+                  (const char *restrict str, char **restrict endp));
+# else
+#  if !@HAVE_STRTOF@
+_GL_FUNCDECL_SYS (strtof, float,
+                  (const char *restrict str, char **restrict endp)
+                  _GL_ARG_NONNULL ((1)));
+#  endif
+_GL_CXXALIAS_SYS (strtof, float,
+                  (const char *restrict str, char **restrict endp));
+# endif
+# if __GLIBC__ >= 2
+_GL_CXXALIASWARN (strtof);
+# endif
+#elif defined GNULIB_POSIXCHECK
+# undef strtof
+# if HAVE_RAW_DECL_STRTOF
+_GL_WARN_ON_USE (strtof, "strtof is unportable - "
+                 "use gnulib module strtof for portability");
+# endif
+#endif
+
 #if @GNULIB_STRTOLD@
  /* Parse a 'long double' from STRING, updating ENDP if appropriate.  */
 # if @REPLACE_STRTOLD@
index 128176cad40c9b93b4d7193ffcc21295d9616cd6..9b205e48023b49b7d8f80eef4978763b4e0b025b 100644 (file)
@@ -141,6 +141,15 @@ extern char *tzname[];
    ? (a) >> (b)         \
    : ((a) + ((a) < 0)) / (1 << (b)) - ((a) < 0))
 
+enum pad_style
+{
+  ZERO_PAD,      /* (default) Pad with 0 unless format says otherwise.  */
+  ALWAYS_ZERO_PAD,     /* '0' Always pad with 0.  */
+  SIGN_PAD,            /* '+' Always output a sign.  */
+  SPACE_PAD,           /* '_' Pad with space.  */
+  NO_PAD               /* '-' Do not pad.  */
+};
+
 #define TM_YEAR_BASE 1900
 
 #ifndef __isleap
@@ -193,7 +202,7 @@ extern char *tzname[];
   do                                                                          \
     {                                                                         \
       size_t _n = (n);                                                        \
-      size_t _w = pad == L_('-') || width < 0 ? 0 : width;                    \
+      size_t _w = pad == NO_PAD || width < 0 ? 0 : width;                    \
       size_t _incr = _n < _w ? _w : _n;                                       \
       if (_incr >= maxsize - i)                                               \
         {                                                                     \
@@ -205,7 +214,7 @@ extern char *tzname[];
           if (_n < _w)                                                        \
             {                                                                 \
               size_t _delta = _w - _n;                                        \
-              if (pad == L_('0') || pad == L_('+'))                           \
+              if (pad == ALWAYS_ZERO_PAD || pad == SIGN_PAD)                  \
                 memset_zero (p, _delta);                                      \
               else                                                            \
                 memset_space (p, _delta);                                     \
@@ -825,7 +834,7 @@ static CHAR_T const c_month_names[][sizeof "September"] =
 
 static size_t __strftime_internal (STREAM_OR_CHAR_T *, STRFTIME_ARG (size_t)
                                    const CHAR_T *, const struct tm *,
-                                   bool, int, int, bool *
+                                   bool, enum pad_style, int, bool *
                                    extra_args_spec LOCALE_PARAM);
 
 /* Write information from TP into S according to the format
@@ -841,7 +850,8 @@ my_strftime (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
 {
   bool tzset_called = false;
   return __strftime_internal (s, STRFTIME_ARG (maxsize) format, tp, false,
-                              0, -1, &tzset_called extra_args LOCALE_ARG);
+                              ZERO_PAD, -1,
+                              &tzset_called extra_args LOCALE_ARG);
 }
 libc_hidden_def (my_strftime)
 
@@ -853,7 +863,7 @@ static size_t
 __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
                      const CHAR_T *format,
                      const struct tm *tp, bool upcase,
-                     int yr_spec, int width, bool *tzset_called
+                     enum pad_style yr_spec, int width, bool *tzset_called
                      extra_args_spec LOCALE_PARAM)
 {
 #if defined _LIBC && defined USE_IN_EXTENDED_LOCALE_MODEL
@@ -977,7 +987,7 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
 
   for (f = format; *f != '\0'; width = -1, f++)
     {
-      int pad = 0;  /* Padding for number ('_', '-', '+', '0', or 0).  */
+      enum pad_style pad = ZERO_PAD;
       int modifier;             /* Field modifier ('E', 'O', or 0).  */
       int digits = 0;           /* Max digits for numeric format.  */
       int number_value;         /* Numeric value to be printed.  */
@@ -1095,12 +1105,10 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
           switch (*++f)
             {
               /* This influences the number formats.  */
-            case L_('_'):
-            case L_('-'):
-            case L_('+'):
-            case L_('0'):
-              pad = *f;
-              continue;
+            case L_('_'): pad = SPACE_PAD; continue;
+            case L_('-'): pad = NO_PAD; continue;
+            case L_('+'): pad = SIGN_PAD; continue;
+            case L_('0'): pad = ALWAYS_ZERO_PAD; continue;
 
               /* This changes textual output.  */
             case L_('^'):
@@ -1336,7 +1344,7 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
 # endif
             if (len != 0)
               {
-# if defined __NetBSD__ || defined __sun /* NetBSD, Solaris */
+# if (__GLIBC__ == 2 && __GLIBC_MINOR__ < 31) || defined __NetBSD__ || defined __sun /* glibc < 2.31, NetBSD, Solaris */
                 if (format_char == L_('c'))
                   {
                     /* The output of the strftime %c directive consists of the
@@ -1374,7 +1382,7 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
                           }
                       }
                   }
-#  if REQUIRE_GNUISH_STRFTIME_AM_PM
+#  if (defined __NetBSD__ || defined __sun) && REQUIRE_GNUISH_STRFTIME_AM_PM
                 /* The output of the strftime %p and %r directives contains
                    an AM/PM indicator even for locales where it is not
                    suitable, such as French.  Remove this indicator.  */
@@ -1483,17 +1491,17 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
           goto do_number_body;
 
         do_yearish:
-          if (pad == 0)
+          if (pad == ZERO_PAD)
             pad = yr_spec;
           always_output_a_sign
-            = (pad == L_('+')
+            = (pad == SIGN_PAD
                && ((digits == 2 ? 99 : 9999) < u_number_value
                    || digits < width));
           goto do_maybe_signed_number;
 
         do_number_spacepad:
-          if (pad == 0)
-            pad = L_('_');
+          if (pad == ZERO_PAD)
+            pad = SPACE_PAD;
 
         do_number:
           /* Format NUMBER_VALUE according to the MODIFIER flag.  */
@@ -1551,8 +1559,8 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
           while (u_number_value != 0 || tz_colon_mask != 0);
 
         do_number_sign_and_padding:
-          if (pad == 0)
-            pad = L_('0');
+          if (pad == ZERO_PAD)
+            pad = ALWAYS_ZERO_PAD;
           if (width < 0)
             width = digits;
 
@@ -1562,11 +1570,11 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
                                 : 0);
             int numlen = buf + sizeof buf / sizeof buf[0] - bufp;
             int shortage = width - !!sign_char - numlen;
-            int padding = pad == L_('-') || shortage <= 0 ? 0 : shortage;
+            int padding = pad == NO_PAD || shortage <= 0 ? 0 : shortage;
 
             if (sign_char)
               {
-                if (pad == L_('_'))
+                if (pad == SPACE_PAD)
                   {
                     if (p)
                       memset_space (p, padding);
@@ -1584,9 +1592,9 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
         case L_('F'):
           if (modifier != 0)
             goto bad_format;
-          if (pad == 0 && width < 0)
+          if (pad == ZERO_PAD && width < 0)
             {
-              pad = L_('+');
+              pad = SIGN_PAD;
               subwidth = 4;
             }
           else
@@ -1653,8 +1661,8 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
               ndigs--, n /= 10;
             for (int j = ndigs; 0 < j; j--)
               buf[j - 1] = n % 10 + L_('0'), n /= 10;
-            if (!pad)
-              pad = L_('0');
+            if (pad == ZERO_PAD)
+              pad = ALWAYS_ZERO_PAD;
             width_cpy (0, ndigs, buf);
             width_add (width - ndigs, 0, (void) 0);
           }
@@ -1864,7 +1872,7 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
 # else
                   subfmt = era->era_format;
 # endif
-                  if (pad == 0)
+                  if (pad == ZERO_PAD)
                     pad = yr_spec;
                   goto subformat;
                 }
@@ -1887,7 +1895,7 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
               if (era)
                 {
                   int delta = tp->tm_year - era->start_date[0];
-                  if (pad == 0)
+                  if (pad == ZERO_PAD)
                     pad = yr_spec;
                   DO_NUMBER (2, (era->offset
                                  + delta * era->absolute_direction));
@@ -1916,7 +1924,7 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
           {
             /* The zone string is always given in multibyte form.  We have
                to convert it to wide character.  */
-            size_t w = pad == L_('-') || width < 0 ? 0 : width;
+            size_t w = pad == NO_PAD || width < 0 ? 0 : width;
             char const *z = zone;
             mbstate_t st = {0};
             size_t len = __mbsrtowcs_l (p, &z, maxsize - i, &st, loc);
@@ -1934,7 +1942,8 @@ __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize)
                   {
                     size_t delta = w - len;
                     __wmemmove (p + delta, p, len);
-                    wchar_t wc = pad == L_('0') || pad == L_('+') ? L'0' : L' ';
+                    wchar_t wc = (pad == ALWAYS_ZERO_PAD || pad == SIGN_PAD
+                                  ? L'0' : L' ');
                     wmemset (p, wc, delta);
                   }
                 p += incr;
index 0a0ccc3c3791171425b77395ee002eceb4bc9f87..4eb2e926960aceaf5e1f899ff3928a7007cd9110 100644 (file)
 # define _GL_WINDOWS_64_BIT_OFF_T 1
 #endif
 
+/* Define the off64_t type.  */
+#if !@HAVE_OFF64_T@
+# if !GNULIB_defined_off64_t
+/* Define off64_t to int64_t always.  */
+typedef long long off64_t;
+#  define GNULIB_defined_off64_t 1
+# endif
+#endif
+
 /* Override dev_t and ino_t if distinguishable inodes support is requested
    on native Windows.  */
 #if @WINDOWS_STAT_INODES@
index 63339cca0fca41a095ece3e1e59bb9a95f41d681..4eca03e985ea7f945dcac310701ded0059fb6068 100644 (file)
--- a/lib/u64.h
+++ b/lib/u64.h
@@ -29,6 +29,11 @@ _GL_INLINE_HEADER_BEGIN
 # define _GL_U64_INLINE _GL_INLINE
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Return X rotated left by N bits, where 0 < N < 64.  */
 #define u64rol(x, n) u64or (u64shl (x, n), u64shr (x, 64 - n))
 
@@ -178,4 +183,9 @@ u64shr (u64 x, int n)
 
 #endif
 
+
+#ifdef __cplusplus
+}
+#endif
+
 _GL_INLINE_HEADER_END
index b412966367d40c04b139816bbcd509cf5f2c5e29..fa99d7472f41af292d0f5758503dc8408826604e 100644 (file)
 #endif
 
 /* MSVC defines off_t in <sys/types.h>.
-   May also define off_t to a 64-bit type on native Windows.  */
-/* Get off_t, ssize_t, mode_t.  */
+   May also define off_t to a 64-bit type on native Windows.
+   Also defines off64_t on macOS, NetBSD, OpenBSD, MSVC, Cygwin, Haiku.  */
+/* Get off_t, off64_t, ssize_t, mode_t.  */
 #include <sys/types.h>
 
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
index 7c740afd36d064cc1b877b64e39e5f88275cdf49..b20d4f4f7ee4a17b4170eca158d036b109f28ee1 100644 (file)
 #endif
 
 #include <time.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int fdutimens (int, char const *, struct timespec const [2]);
 int utimens (char const *, struct timespec const [2]);
 int lutimens (char const *, struct timespec const [2]);
 
+#ifdef __cplusplus
+}
+#endif
+
+
 #if GNULIB_FDUTIMENSAT
+
 # include <fcntl.h>
 # include <sys/stat.h>
 
@@ -36,6 +47,10 @@ _GL_INLINE_HEADER_BEGIN
 # define _GL_UTIMENS_INLINE _GL_INLINE
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int fdutimensat (int fd, int dir, char const *name, struct timespec const [2],
                  int atflag);
 
@@ -46,6 +61,10 @@ lutimensat (int dir, char const *file, struct timespec const times[2])
   return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW);
 }
 
+#ifdef __cplusplus
+}
+#endif
+
 _GL_INLINE_HEADER_END
 
 #endif
index 99c99d1b0fbe4e232d6fc01546671d910c9514bb..cd16771848cf2dd8467eebe6352daf7cbb593ae4 100644 (file)
@@ -1,4 +1,5 @@
-# 00gnulib.m4 serial 9
+# 00gnulib.m4
+# serial 9
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 992e16f4ea7015b3c7b0e50c6a674ad7ce4902f3..20baf16437f8c9fbcc1cfda2ab5bc0bf6c937351 100644 (file)
@@ -1,9 +1,12 @@
-# Test for __inline keyword
+# __inline.m4
+# serial 1
 dnl Copyright 2017-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# Test for __inline keyword
+
 AC_DEFUN([gl___INLINE],
 [
   AC_CACHE_CHECK([whether the compiler supports the __inline keyword],
index 0e9f9ba763af19083e02f292494d4e264d3f711e..0abd6d9002c5972cb2e4477991ef9593de8634b9 100644 (file)
@@ -1,4 +1,5 @@
-# absolute-header.m4 serial 18
+# absolute-header.m4
+# serial 18
 dnl Copyright (C) 2006-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 2050d108b0c9664f8b7544806d2e2040c29458ff..c7b6ec2b14e301cda592fd2526c0fb0b68b19309 100644 (file)
--- a/m4/acl.m4
+++ b/m4/acl.m4
@@ -1,10 +1,11 @@
-# acl.m4 - check for access control list (ACL) primitives
+# acl.m4
 # serial 30
+dnl Copyright (C) 2002, 2004-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
-# Copyright (C) 2002, 2004-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# Check for access control list (ACL) primitives
 
 # Written by Paul Eggert and Jim Meyering.
 
index 909602153820bcba9f787988d5a99a495bc768af..dc78dc19a8791aa73a1ea992e568281548d96467 100644 (file)
@@ -1,4 +1,5 @@
-# alloca.m4 serial 21
+# alloca.m4
+# serial 21
 dnl Copyright (C) 2002-2004, 2006-2007, 2009-2024 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
index d3d4c42519f79e336ef2cc4da980fa6eb9a69f70..b90d0f193904da1f25b0cf2ea36ad060e5ccf1b0 100644 (file)
@@ -1,4 +1,5 @@
-# assert-h.m4
+# assert_h.m4
+# serial 1
 dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 8faffc503543c812c4ec8fb33af340add8c663d1..c7af926b34c3b4e57c5a690aaea62ad62f984ea5 100644 (file)
@@ -1,10 +1,12 @@
-dnl Check for __builtin_expect.
-
+# builtin-expect.m4
+# serial 1
 dnl Copyright 2016-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+dnl Check for __builtin_expect.
+
 dnl Written by Paul Eggert.
 
 AC_DEFUN([gl___BUILTIN_EXPECT],
index 5493d9019166eb9558e9ac435fd521fb71b7ee64..0c76fe9312d08f129fa031ae3f5d9ed5e81fc6dc 100644 (file)
@@ -1,4 +1,5 @@
-# byteswap.m4 serial 5
+# byteswap.m4
+# serial 5
 dnl Copyright (C) 2005, 2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 44fba3c012fcf7677e8bb0452cd761dbe12b3b2e..0fb0de3b59ede38ea9886df5560b9d81568f62d7 100644 (file)
@@ -1,10 +1,12 @@
-# Check for bool that conforms to C2023.
-
+# c-bool.m4
+# serial 1
 dnl Copyright 2022-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# Check for bool that conforms to C2023.
+
 AC_DEFUN([gl_C_BOOL],
 [
   AC_CACHE_CHECK([for bool, true, false], [gl_cv_c_bool],
index 05dc6dd264dcc341dac55976f2251badacdc5987..b63391a6ad7d4a397b306aaf3f427628c5c5d3f3 100644 (file)
@@ -1,4 +1,5 @@
-# canonicalize.m4 serial 39
+# canonicalize.m4
+# serial 39
 
 dnl Copyright (C) 2003-2007, 2009-2024 Free Software Foundation, Inc.
 
index c016575c8eadfb9d8c7e6633521fbfa2f05b9b64..27f6fd153a3051f235e382ed0b61599ae1d5a357 100644 (file)
@@ -1,4 +1,5 @@
-# clock_time.m4 serial 14
+# clock_time.m4
+# serial 14
 dnl Copyright (C) 2002-2006, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 94dccce7775175e2ef26a3f6bbeb66141ba7bc69..e69b7402fc215039897bca035a80332eb82cdd6c 100644 (file)
@@ -1,4 +1,5 @@
-# codeset.m4 serial 5 (gettext-0.18.2)
+# codeset.m4
+# serial 5 (gettext-0.18.2)
 dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016, 2019-2024 Free Software
 dnl Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
index 443e598ba55e895645add2d93cd6b12fb018e72e..4ef75f62d40ae5e3111d01ac968f3cf24f567632 100644 (file)
@@ -1,4 +1,5 @@
-# copy-file-range.m4 serial 5
+# copy-file-range.m4
+# serial 5
 dnl Copyright 2019-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index b06bca5a7dc310d1aa6ab646cde724985ac2aee0..0ef89b86b15629ec40afd68ba73c3715ccb71a06 100644 (file)
@@ -1,15 +1,13 @@
+# d-type.m4
 # serial 12
+dnl Copyright (C) 1997, 1999-2004, 2006, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 dnl From Jim Meyering.
 dnl
 dnl Check whether struct dirent has a member named d_type.
-dnl
-
-# Copyright (C) 1997, 1999-2004, 2006, 2009-2024 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE],
   [AC_CACHE_CHECK([for d_type member in directory struct],
index 3e3d967f4993eae3e8b154960bf8063999446f72..037ae369a2d4918c4842acfd7f0d850d20c5b157 100644 (file)
@@ -1,4 +1,5 @@
-# dirent_h.m4 serial 22
+# dirent_h.m4
+# serial 22
 dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index e58582e6145ee1e15f0be64cb1650cd56811885d..605cb706c0a6202d76d849a0dccc2ba27169b180 100644 (file)
@@ -1,12 +1,12 @@
+# dirfd.m4
 # serial 30   -*- Autoconf -*-
+dnl Copyright (C) 2001-2006, 2008-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 dnl Find out how to get the file descriptor associated with an open DIR*.
 
-# Copyright (C) 2001-2006, 2008-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
 dnl From Jim Meyering
 
 AC_DEFUN([gl_FUNC_DIRFD],
index 00f23a70b0cad04ba894dad83b0c93f4798a79c9..3437c699adaa5a118db7050b7639f72f25382667 100644 (file)
@@ -1,4 +1,5 @@
-# double-slash-root.m4 serial 4   -*- Autoconf -*-
+# double-slash-root.m4
+# serial 4   -*- Autoconf -*-
 dnl Copyright (C) 2006, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index f6759b647a62c4ebe74f04854a29dd413c6af56f..786121fd8f3a12ba473c14c3773a4bb9a710bbf0 100644 (file)
@@ -1,4 +1,5 @@
-#serial 28
+# dup2.m4
+# serial 28
 dnl Copyright (C) 2002, 2005, 2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index d8862a1e0f3d5e0cd3445f894bb6ae1574d3dfa4..8a15e705541537327f6bb75dfbd6c7bfa416b9b6 100644 (file)
@@ -1,4 +1,5 @@
-# eealloc.m4 serial 3
+# eealloc.m4
+# serial 3
 dnl Copyright (C) 2003, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 5b9e06b0088dc3b17e1aceb37e6393cc3686757e..107960b2e77f6c3f111f8dda512ee8655e0ef7fd 100644 (file)
@@ -1,4 +1,5 @@
-# environ.m4 serial 8
+# environ.m4
+# serial 8
 dnl Copyright (C) 2001-2004, 2006-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 8900d6c7257011b9da37ae7f5d3825b9973c60e1..b6050e5d8e0b5fee2102644542a5a319e5cbc1b6 100644 (file)
@@ -1,4 +1,5 @@
-# errno_h.m4 serial 14
+# errno_h.m4
+# serial 14
 dnl Copyright (C) 2004, 2006, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index e3d828f6ca55986fdf9d50a6cc7d79da0897143e..3ade282f4ecae30b41fe995624f86b6f9c017b09 100644 (file)
@@ -1,4 +1,5 @@
-# euidaccess.m4 serial 17
+# euidaccess.m4
+# serial 17
 dnl Copyright (C) 2002-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index a76c33525e625eae530a2b33fa252e8707840ed7..9dc8d6d489d2fef9787a310787248f17cf6b6bff 100644 (file)
@@ -1,10 +1,12 @@
-# Check for GNU-style execinfo.h.
-
+# execinfo.m4
+# serial 1
 dnl Copyright 2012-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# Check for GNU-style execinfo.h.
+
 AC_DEFUN([gl_EXECINFO_H],
 [
   AC_CHECK_HEADERS_ONCE([execinfo.h])
index 6fc2e300e0ae409e59adaebc3e16e79eb252c66d..1fb68956b3311dd5d5ca6f6c877768795e87b241 100644 (file)
@@ -1,10 +1,11 @@
-# serial 23  -*- Autoconf -*-
-# Enable extensions on systems that normally disable them.
+# extensions.m4
+# serial 25  -*- Autoconf -*-
+dnl Copyright (C) 2003, 2006-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
-# Copyright (C) 2003, 2006-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# Enable extensions on systems that normally disable them.
 
 dnl Define to empty for the benefit of Autoconf 2.69 and earlier, so that
 dnl AC_USE_SYSTEM_EXTENSIONS (below) can be used unchanged from Autoconf 2.70+.
@@ -229,4 +230,15 @@ AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS],
         [Define to enable the declarations of ISO C 11 types and functions.])
       ;;
   esac
+
+  dnl On OpenSolaris derivatives, the include files contains a couple of
+  dnl declarations that are only activated with an explicit
+  dnl -D__STDC_WANT_LIB_EXT1__.
+  AH_VERBATIM([USE_ISO_C_23_ANNEX_K_EXTENSIONS],
+[/* Define to enable the declarations of ISO C 23 Annex K types and functions.  */
+#if !(defined __STDC_WANT_LIB_EXT1__ && __STDC_WANT_LIB_EXT1__)
+#undef/**/__STDC_WANT_LIB_EXT1__
+#define __STDC_WANT_LIB_EXT1__ 1
+#endif
+])
 ])
index 680250ec77452f62208ad165d2bdd6f9ae2fe8d6..547da82afa5cb17258a0ebe5c3974406117ed7dd 100644 (file)
@@ -1,10 +1,12 @@
-dnl 'extern inline' a la ISO C99.
-
+# extern-inline.m4
+# serial 1
 dnl Copyright 2012-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+dnl 'extern inline' a la ISO C99.
+
 AC_DEFUN([gl_EXTERN_INLINE],
 [
   AC_CACHE_CHECK([whether ctype.h defines __header_inline],
index b8c058cef2826912532d94917436c064d57c5aaa..c5f40e52900c4a06bd25fb3582470d779842ff1f 100644 (file)
@@ -1,11 +1,12 @@
+# faccessat.m4
 # serial 12
-# See if we need to provide faccessat replacement.
-
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# See if we need to provide faccessat replacement.
+
 # Written by Eric Blake.
 
 AC_DEFUN([gl_FUNC_FACCESSAT],
index 9750572a5a3f38aeaacffca6ea7cdb39d595af68..e71ee8e8ef695e1fa2240e29293e5e6195f6e121 100644 (file)
@@ -1,4 +1,5 @@
-# fchmodat.m4 serial 8
+# fchmodat.m4
+# serial 8
 dnl Copyright (C) 2004-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 02b93f8357cda19ec7aeb4e3bd8c9cd968276e7c..f6d0f37731950af54a96c0e8c3eef73521aac6ea 100644 (file)
@@ -1,4 +1,5 @@
-# fcntl.m4 serial 11
+# fcntl.m4
+# serial 12
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -82,7 +83,7 @@ AC_DEFUN([gl_FUNC_FCNTL],
     esac
 
     dnl Many systems lack F_DUPFD_CLOEXEC.
-    dnl NetBSD 9.0 declares F_DUPFD_CLOEXEC but it works only like F_DUPFD.
+    dnl NetBSD 10.0 declares F_DUPFD_CLOEXEC but it works only like F_DUPFD.
     AC_CACHE_CHECK([whether fcntl understands F_DUPFD_CLOEXEC],
       [gl_cv_func_fcntl_f_dupfd_cloexec],
       [AC_RUN_IFELSE(
index ba4eb4494dbb5213015bdae7f301678c596ba521..b69f7a0ca81a0bad63a8db5d11cf7188d87c0a30 100644 (file)
@@ -1,10 +1,12 @@
+# fcntl_h.m4
 # serial 20
-# Configure fcntl.h.
 dnl Copyright (C) 2006-2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# Configure fcntl.h.
+
 dnl Written by Paul Eggert.
 
 AC_DEFUN_ONCE([gl_FCNTL_H],
index bf361ff154c1264e86f816b126fbbae2acc2f65c..e9268378d6e7ffd772249c4d0acb4b81a83f5e3d 100644 (file)
@@ -1,11 +1,12 @@
+# fdopendir.m4
 # serial 15
-# See if we need to provide fdopendir.
-
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# See if we need to provide fdopendir.
+
 # Written by Eric Blake.
 
 AC_DEFUN([gl_FUNC_FDOPENDIR],
index b72317281b3fd383714bebd5c8495e1329d3b668..cb87a564cfdffe96a67712c6b1f618f9c58c4c50 100644 (file)
@@ -1,4 +1,5 @@
-# filemode.m4 serial 9
+# filemode.m4
+# serial 9
 dnl Copyright (C) 2002, 2005-2006, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 9df6c03cd3bab4c4ab40dbc1309b39ba6643a8ee..73fb6142fafdf749a65827c7bad4ff2bd99917c9 100644 (file)
@@ -1,10 +1,11 @@
+# flexmember.m4
 # serial 5
-# Check for flexible array member support.
+dnl Copyright (C) 2006, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
-# Copyright (C) 2006, 2009-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# Check for flexible array member support.
 
 # Written by Paul Eggert.
 
index 05064b851ecb76b1fe3a6fdb4e464b4740b60685..9f2d83fb1174908df9cecb2a92a774210e0eb147 100644 (file)
@@ -1,9 +1,9 @@
+# fpending.m4
 # serial 23
-
-# Copyright (C) 2000-2001, 2004-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+dnl Copyright (C) 2000-2001, 2004-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 dnl From Jim Meyering
 dnl Using code from emacs, based on suggestions from Paul Eggert
index 239cf4a7e2d7226305a74037f83169b3796afc24..665543d0ed8ffb437b8aad9881883c745ab01fa1 100644 (file)
@@ -1,4 +1,5 @@
-# fpieee.m4 serial 2  -*- coding: utf-8 -*-
+# fpieee.m4
+# serial 2  -*- coding: utf-8 -*-
 dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 4f6dc2e256d90555de2dfa31c2a99efc33442930..a2b596d67f72df417c298901f3efad430a83287c 100644 (file)
@@ -1,8 +1,9 @@
-# free.m4 serial 6
-# Copyright (C) 2003-2005, 2009-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# free.m4
+# serial 6
+dnl Copyright (C) 2003-2005, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 # Written by Paul Eggert and Bruno Haible.
 
index c22569b7961093781427d9af83644199c9757556..c5ef7dfb197e4bfa5cf80816e0344b11fc0def04 100644 (file)
@@ -1,4 +1,5 @@
-# fstatat.m4 serial 5
+# fstatat.m4
+# serial 5
 dnl Copyright (C) 2004-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 31d424c857dfe2ae6208d758aea190e8b1fe8e22..1ce90660858fb523488785bd7b0776e68238fcd7 100644 (file)
@@ -1,11 +1,11 @@
+# fsusage.m4
 # serial 35
-# Obtaining file system usage information.
+dnl Copyright (C) 1997-1998, 2000-2001, 2003-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
-# Copyright (C) 1997-1998, 2000-2001, 2003-2024 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# Obtaining file system usage information.
 
 # Written by Jim Meyering.
 
index 08e3db8931e8b49fb83e461a0f6fb1645f9ec16e..6f49321c2db6a1f138712309dda9e8be9e6d90aa 100644 (file)
@@ -1,4 +1,5 @@
-# fsync.m4 serial 2
+# fsync.m4
+# serial 2
 dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index ac961e7bde5f4cf252bba9500f20480691bb59c0..b5f22605f49048a13905f90d24f92e65083d5cc1 100644 (file)
@@ -1,11 +1,12 @@
+# futimens.m4
 # serial 11
-# See if we need to provide futimens replacement.
-
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# See if we need to provide futimens replacement.
+
 # Written by Eric Blake.
 
 AC_DEFUN([gl_FUNC_FUTIMENS],
index 0dbd8bc6f8b9b3acb39b0d63792c06fff3ffb038..61139039554a7d833fd639e8c7aaa7668776d1d4 100644 (file)
@@ -1,4 +1,5 @@
-# getdelim.m4 serial 19
+# getdelim.m4
+# serial 19
 
 dnl Copyright (C) 2005-2007, 2009-2024 Free Software Foundation, Inc.
 dnl
index 3b89456baf90d4194820b1b323eef6bdb9eeca7b..aaefe9b298331aa0f50b118e3d95c62660cdda52 100644 (file)
@@ -1,4 +1,5 @@
-# getdtablesize.m4 serial 8
+# getdtablesize.m4
+# serial 8
 dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index f6e0cbd3fcef3efbb2143b8eb99bd7a774638818..5457275e9e154c478877c916cc8a7fc8965d7740 100644 (file)
@@ -1,14 +1,13 @@
+# getgroups.m4
 # serial 25
+dnl Copyright (C) 1996-1997, 1999-2004, 2008-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 dnl From Jim Meyering.
 dnl A wrapper around AC_FUNC_GETGROUPS.
 
-# Copyright (C) 1996-1997, 1999-2004, 2008-2024 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
 # This is taken from the following Autoconf patch:
 # https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=7fbb553727ed7e0e689a17594b58559ecf3ea6e9
 AC_DEFUN([AC_FUNC_GETGROUPS],
index 1a7e89034bcf85ad8b9cdf445ef0c1322ea6e837..36513cd4171f3bc612896e97ddaa3078065de056 100644 (file)
@@ -1,4 +1,5 @@
-# getline.m4 serial 33
+# getline.m4
+# serial 33
 
 dnl Copyright (C) 1998-2003, 2005-2007, 2009-2024 Free Software Foundation,
 dnl Inc.
index 9d0236f77fe7fe883d546390f13a69deba667598..0918bcd21eca25a703918ac6df8d3d517ff99c16 100644 (file)
@@ -1,13 +1,12 @@
-# Check for getloadavg.
-
-# Copyright (C) 1992-1996, 1999-2000, 2002-2003, 2006, 2008-2024 Free Software
-# Foundation, Inc.
+# getloadavg.m4
+# serial 13
+dnl Copyright (C) 1992-1996, 1999-2000, 2002-2003, 2006, 2008-2024 Free Software
+dnl Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-#serial 13
+# Check for getloadavg.
 
 # Autoconf defines AC_FUNC_GETLOADAVG, but that is obsolescent.
 # New applications should use gl_GETLOADAVG instead.
index be812d8459b69abbd6239b2ebe3a329bec68bd1d..297722eae441b323f82311e68a514abcf491eb04 100644 (file)
@@ -1,4 +1,5 @@
-# getopt.m4 serial 49
+# getopt.m4
+# serial 49
 dnl Copyright (C) 2002-2006, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 55be445c31ab0377a52d8abdc3fb9897c7fa51ac..0051c9c4218a8546ab834341f9b97604b829d9ff 100644 (file)
@@ -1,4 +1,5 @@
-# getrandom.m4 serial 13
+# getrandom.m4
+# serial 13
 dnl Copyright 2020-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 1ec018d51540ef4cbdc40bcc416a1c52f906a67d..299f3d1b788ee473a48ab52ead8c7b2e989c00df 100644 (file)
@@ -1,4 +1,5 @@
-# gettime.m4 serial 15
+# gettime.m4
+# serial 15
 dnl Copyright (C) 2002, 2004-2006, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 35269914ced9fe7ea7d3af4d6e029c0843e5c7e3..8135f89e584c792708335d5e094500a78ed69c41 100644 (file)
@@ -1,9 +1,9 @@
+# gettimeofday.m4
 # serial 30
-
-# Copyright (C) 2001-2003, 2005, 2007, 2009-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+dnl Copyright (C) 2001-2003, 2005, 2007, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 dnl From Jim Meyering.
 
index d8d0904f78771bf6c642220d88effbb9c7a2a07f..cb730449507799d5743445b5f6b16d8c9de84ab8 100644 (file)
@@ -1,4 +1,5 @@
-# gnulib-common.m4 serial 92
+# gnulib-common.m4
+# serial 93
 dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -504,8 +505,10 @@ AC_DEFUN([gl_COMMON_BODY], [
    minimizing the memory required.  */
 /* Applies to: struct members, struct, union,
    in C++ also: class.  */
+/* Oracle Studio 12.6 miscompiles code with __attribute__ ((__packed__)) despite
+   __has_attribute OK.  */
 #ifndef _GL_ATTRIBUTE_PACKED
-# if _GL_HAS_ATTRIBUTE (packed)
+# if _GL_HAS_ATTRIBUTE (packed) && !defined __SUNPRO_C
 #  define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__))
 # else
 #  define _GL_ATTRIBUTE_PACKED
index d8b92e7b1224abe453c4e484462d16158d074b43..37f180a89556f6e91a25e6eda83a332ee5ea5745 100644 (file)
@@ -192,6 +192,7 @@ AC_DEFUN([gl_EARLY],
   # Code from module sys_stat:
   # Code from module sys_time:
   # Code from module sys_types:
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
   # Code from module tempname:
   # Code from module time-h:
   # Code from module time_r:
@@ -1538,6 +1539,7 @@ AC_DEFUN([gl_FILE_LIST], [
   m4/nocrash.m4
   m4/nproc.m4
   m4/nstrftime.m4
+  m4/off64_t.m4
   m4/off_t.m4
   m4/open-cloexec.m4
   m4/open-slash.m4
index 60b3d526db2b801aad0a5ceb556cdcf234616c92..f8ceb1d8186438e2a4b684863e4918846bfd7b72 100644 (file)
@@ -1,10 +1,9 @@
+# group-member.m4
 # serial 14
-
-# Copyright (C) 1999-2001, 2003-2007, 2009-2024 Free Software Foundation, Inc.
-
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+dnl Copyright (C) 1999-2001, 2003-2007, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 dnl Written by Jim Meyering
 
index cc8ef32bd3259a790d4bd4c07967daacce1c1f79..fa41db5c94565dc8d7152fcc726b14c2ce36bdd5 100644 (file)
@@ -1,10 +1,12 @@
-# Configure ieee754-h module
-
+# ieee754-h.m4
+# serial 1
 dnl Copyright 2018-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# Configure ieee754-h module
+
 AC_DEFUN([gl_IEEE754_H],
 [
   AC_REQUIRE([AC_C_BIGENDIAN])
index 70cb746f435d6baf6f57b2ea9134dda0403b1ac0..03e852518e45e37825ac79ba3cfd29ec5037c5fd 100644 (file)
@@ -1,4 +1,5 @@
-# include_next.m4 serial 27
+# include_next.m4
+# serial 27
 dnl Copyright (C) 2006-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 6abf9dbe280cbd94fc5231d769cd660e7b75c11b..c43cd16207b03586f5eb7d72da478b412731fedd 100644 (file)
@@ -1,4 +1,5 @@
-# inttypes.m4 serial 37
+# inttypes.m4
+# serial 37
 dnl Copyright (C) 2006-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index cbe9bc1f63d00a6fd1cfa3cb7a44cbfe22160f11..2f824089b0a93580f0f51764c152d5be2a7ba5e8 100644 (file)
@@ -1,11 +1,13 @@
+# largefile.m4
+# serial 1
+dnl Copyright 1992-1996, 1998-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
 # Enable large files on systems where this is not the default.
 # Enable support for files on Linux file systems with 64-bit inode numbers.
 
-# Copyright 1992-1996, 1998-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
 # The following macro works around a problem in Autoconf's AC_FUNC_FSEEKO:
 # It does not set _LARGEFILE_SOURCE=1 on HP-UX/ia64 32-bit, although this
 # setting of _LARGEFILE_SOURCE is needed so that <stdio.h> declares fseeko
@@ -24,9 +26,20 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
  ]])
 )
 
+dnl Remove AC_SYS_YEAR2038_RECOMMENDED if unpatched Autoconf 2.72 or earlier.
+dnl Autoconf 2.72 still uses -n32, which is not a C preprocessor option,
+dnl and which was useful only on IRIX which is no longer supported.
+dnl This should be fixed in Autoconf 2.73.
+m4_ifdef([AC_SYS_YEAR2038_RECOMMENDED],
+  [m4_bmatch(m4_ifdef([_AC_SYS_LARGEFILE_OPTIONS],
+               [m4_defn([_AC_SYS_LARGEFILE_OPTIONS])],
+               ["-n32"]),
+     ["-n32"],
+       [m4_undefine([AC_SYS_YEAR2038_RECOMMENDED])])])
+
 m4_ifndef([AC_SYS_YEAR2038_RECOMMENDED], [
-# Support AC_SYS_YEAR2038_RECOMMENDED and related macros, even if
-# Autoconf 2.71 or earlier.  This code is taken from Autoconf master.
+# Fix up AC_SYS_YEAR2038_RECOMMENDED and related macros, even if
+# unpatched Autoconf 2.72 or earlier.  This code is taken from Autoconf master.
 
 # _AC_SYS_YEAR2038_TEST_CODE
 # --------------------------
@@ -75,7 +88,7 @@ m4_define([_AC_SYS_YEAR2038_OPTIONS], m4_normalize(
 # If you change this macro you may also need to change
 # _AC_SYS_YEAR2038_OPTIONS.
 AC_DEFUN([_AC_SYS_YEAR2038_PROBE],
-[AC_CACHE_CHECK([for $CC option for timestamps after 2038],
+[AC_CACHE_CHECK([for $CPPFLAGS option for timestamps after 2038],
   [ac_cv_sys_year2038_opts],
   [ac_save_CPPFLAGS="$CPPFLAGS"
   ac_opt_found=no
@@ -205,7 +218,6 @@ m4_define([_AC_SYS_LARGEFILE_OPTIONS], m4_normalize(
     ["none needed"]                   dnl Most current systems
     ["-D_FILE_OFFSET_BITS=64"]        dnl X/Open LFS spec
     ["-D_LARGE_FILES=1"]              dnl 32-bit AIX 4.2.1+, 32-bit z/OS
-    ["-n32"]                          dnl 32-bit IRIX 6, SGI cc (obsolete)
 ))
 
 # _AC_SYS_LARGEFILE_PROBE
@@ -222,25 +234,25 @@ m4_define([_AC_SYS_LARGEFILE_OPTIONS], m4_normalize(
 # If you change this macro you may also need to change
 # _AC_SYS_LARGEFILE_OPTIONS.
 AC_DEFUN([_AC_SYS_LARGEFILE_PROBE],
-[AC_CACHE_CHECK([for $CC option to enable large file support],
+[AC_CACHE_CHECK([for $CPPFLAGS option for large files],
   [ac_cv_sys_largefile_opts],
-  [ac_save_CC="$CC"
+  [ac_save_CPPFLAGS=$CPPFLAGS
   ac_opt_found=no
   for ac_opt in _AC_SYS_LARGEFILE_OPTIONS; do
     AS_IF([test x"$ac_opt" != x"none needed"],
-      [CC="$ac_save_CC $ac_opt"])
+      [CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"])
     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_CODE])],
      [AS_IF([test x"$ac_opt" = x"none needed"],
        [# GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
-        CC="$CC -DFTYPE=ino_t"
+        CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
         AC_COMPILE_IFELSE([], [],
-          [CC="$CC -D_FILE_OFFSET_BITS=64"
+          [CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
            AC_COMPILE_IFELSE([], [ac_opt='-D_FILE_OFFSET_BITS=64'])])])
       ac_cv_sys_largefile_opts=$ac_opt
       ac_opt_found=yes])
     test $ac_opt_found = no || break
   done
-  CC="$ac_save_CC"
+  CPPFLAGS=$ac_save_CPPFLAGS
   dnl Gnulib implements large file support for native Windows, based on the
   dnl variables WINDOWS_64_BIT_OFF_T, WINDOWS_64_BIT_ST_SIZE.
   m4_ifdef([gl_LARGEFILE], [
@@ -270,9 +282,6 @@ AS_CASE([$ac_cv_sys_largefile_opts],
     [AC_DEFINE([_LARGE_FILES], [1],
       [Define to 1 on platforms where this makes off_t a 64-bit type.])],
 
-  ["-n32"],
-    [CC="$CC -n32"],
-
   [AC_MSG_ERROR(
     [internal error: bad value for \$ac_cv_sys_largefile_opts])])
 
index 7b263a241eb6f83543734eb2bcfb334c547cb719..797cb446938b748a1698dbf6bf37de3005af7042 100644 (file)
@@ -1,5 +1,5 @@
-#serial 10
-
+# lchmod.m4
+# serial 10
 dnl Copyright (C) 2005-2006, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 782dfbae2e14b59689a53c37e9389cb0e6206619..a82a6fa1b71a2cbda5f2b98486f65e0d2d0f9430 100644 (file)
@@ -1,4 +1,5 @@
-# libgmp.m4 serial 8
+# libgmp.m4
+# serial 8
 # Configure the GMP library or a replacement.
 dnl Copyright 2020-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
index 1825328380b570b1ee1d233a717812fa65bc8424..1b619e1eb2ee372500c0bdfbd52b0464e6a4653b 100644 (file)
@@ -1,10 +1,12 @@
-dnl Check whether limits.h has needed features.
-
+# limits-h.m4
+# serial 1
 dnl Copyright 2016-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+dnl Check whether limits.h has needed features.
+
 dnl From Paul Eggert.
 
 AC_DEFUN_ONCE([gl_LIMITS_H],
index 48cc8653fe601b1d85829025c8f79bd741098697..f838e2cc1e8751ad2072820deb345ed55e9ae52d 100644 (file)
@@ -1,10 +1,9 @@
+# lstat.m4
 # serial 36
-
-# Copyright (C) 1997-2001, 2003-2024 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+dnl Copyright (C) 1997-2001, 2003-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 dnl From Jim Meyering.
 
index 635d6726b113e125cc1a2475faba6dcf1d79e817..41a46937ead15cbaba7f1f52b444db5f60b82885 100644 (file)
@@ -1,4 +1,5 @@
-# malloc.m4 serial 31
+# malloc.m4
+# serial 31
 dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 3c6795ceb2800a0136797fbc299125ab7cd3292c..14bc5041eaa87569a51cb6ad6e7a753cd8a5885d 100644 (file)
@@ -1,4 +1,5 @@
-# manywarnings.m4 serial 25
+# manywarnings.m4
+# serial 26
 dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -110,6 +111,7 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC(C)],
     -Wduplicated-cond \
     -Wextra \
     -Wformat-signedness \
+    -Wflex-array-member-not-at-end \
     -Winit-self \
     -Winline \
     -Winvalid-pch \
@@ -117,6 +119,7 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC(C)],
     -Wmissing-declarations \
     -Wmissing-include-dirs \
     -Wmissing-prototypes \
+    -Wmissing-variable-declarations \
     -Wnested-externs \
     -Wnull-dereference \
     -Wold-style-definition \
index b2bcba45e96c652eac4ea765c91b75beece0b4ad..66d65cd7c110fa4ddb9ec9f84a2715c35ff98c74 100644 (file)
@@ -1,4 +1,5 @@
-# mbstate_t.m4 serial 14
+# mbstate_t.m4
+# serial 14
 dnl Copyright (C) 2000-2002, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 7af56a8a3d138141004fcaab9bc1fb22a5ba9e3c..a7b33d771ff983834af0c1fba1966954bf09e766 100644 (file)
--- a/m4/md5.m4
+++ b/m4/md5.m4
@@ -1,4 +1,5 @@
-# md5.m4 serial 14
+# md5.m4
+# serial 14
 dnl Copyright (C) 2002-2006, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 7985266f8b73cc96acc62cce5f88858ca837e79b..a9bc277813b08f130572616164dcb5e55acc0aa6 100644 (file)
@@ -1,4 +1,5 @@
-# memmem.m4 serial 29
+# memmem.m4
+# serial 29
 dnl Copyright (C) 2002-2004, 2007-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 94ce05d1a6a37f1f59c8f66a30af070b3ac8a8c1..377fda3caca680102b588d1ac5ff1f879b09786c 100644 (file)
@@ -1,4 +1,5 @@
-# mempcpy.m4 serial 14
+# mempcpy.m4
+# serial 14
 dnl Copyright (C) 2003-2004, 2006-2007, 2009-2024 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
index b4ccdfa3c8d7b949a12b522afaa274fc6866ae5d..d8c931e90cc6db56f65b1591216d0f778d23ffc7 100644 (file)
@@ -1,4 +1,5 @@
-# memrchr.m4 serial 11
+# memrchr.m4
+# serial 11
 dnl Copyright (C) 2002-2003, 2005-2007, 2009-2024 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
index 19514ff917e65487d8fdf5995d55d43f58540435..499a95968ab48cfaccc9f34a0ea6610041894f8a 100644 (file)
@@ -1,4 +1,5 @@
-# memset_explicit.m4 serial 2
+# memset_explicit.m4
+# serial 3
 dnl Copyright 2022-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,6 +8,8 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_MEMSET_EXPLICIT],
 [
   AC_REQUIRE([gl_STRING_H_DEFAULTS])
+  dnl Persuade OpenSolaris derivatives' <string.h> to declare memset_s().
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
 
   gl_CHECK_FUNCS_ANDROID([memset_explicit], [[#include <string.h>]])
   if test $ac_cv_func_memset_explicit = no; then
index 5c0a927da66334f04cba585d0811fe81177eb785..bc7d0c345fa88a9b1c0cb42c4de1b458e2571a6e 100644 (file)
@@ -1,4 +1,5 @@
-# minmax.m4 serial 4
+# minmax.m4
+# serial 4
 dnl Copyright (C) 2005, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 1c22b8d51b48d55afed57adce3ef5c4d3571b6b1..57a033b859ebb359dfe5ce37e9d6ce9e15531c3c 100644 (file)
@@ -1,4 +1,5 @@
-# mkostemp.m4 serial 4
+# mkostemp.m4
+# serial 4
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 0565e5e61fee22995130f52953956376f3aa906c..85c52454aa5eaf9b4586bbb060b7c4e2d525602c 100644 (file)
@@ -1,6 +1,6 @@
+# mktime.m4
 # serial 39
-dnl Copyright (C) 2002-2003, 2005-2007, 2009-2024 Free Software Foundation,
-dnl Inc.
+dnl Copyright (C) 2002-2003, 2005-2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
index af88da51285818321d023c57cea0d8f9a3779abe..0d5c2808289dd9183ab6538a301cafa77faa30d2 100644 (file)
@@ -1,4 +1,5 @@
-# mode_t.m4 serial 2
+# mode_t.m4
+# serial 2
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 5f8339f5c7d22f47e194f316e3f759b14b2ec243..3af29d39a0b949b1d47a493dde7deef2cb65ac0c 100644 (file)
@@ -1,4 +1,5 @@
-# multiarch.m4 serial 9
+# multiarch.m4
+# serial 9
 dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 34d2c1ff22a148eeb76936410ac497d68b228f59..0d4de8926a22b5c051b5387d301e876872681fcd 100644 (file)
@@ -1,4 +1,5 @@
-# musl.m4 serial 4
+# musl.m4
+# serial 4
 dnl Copyright (C) 2019-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index ff730b676cda14df8c7937415c84bdeadd011002..a7281b8ac5f8e56ccf54672220fdece25f4948e6 100644 (file)
@@ -1,15 +1,13 @@
+# nanosleep.m4
 # serial 47
+dnl Copyright (C) 1999-2001, 2003-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 dnl From Jim Meyering.
 dnl Check for the nanosleep function.
 dnl If not found, use the supplied replacement.
-dnl
-
-# Copyright (C) 1999-2001, 2003-2024 Free Software Foundation, Inc.
-
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_NANOSLEEP],
 [
index 9730fc09034cff6c66c97a847fcc33763e13a88c..cbe8fe82d5d1dd1a4f32e7acd2d7652920f35e21 100644 (file)
@@ -1,4 +1,5 @@
-# nocrash.m4 serial 5
+# nocrash.m4
+# serial 5
 dnl Copyright (C) 2005, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index e4065776a8668520df80c204d048f9a60e150128..317741d9b8dc17cd1834f76b08da9dd431c89d6e 100644 (file)
@@ -1,4 +1,5 @@
-# nproc.m4 serial 6
+# nproc.m4
+# serial 6
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index aa5d63a54b5bc549b17741d7e25345ebce927531..f73bca40ec103821c5c5fa1e7adfff0a71363dbc 100644 (file)
@@ -1,10 +1,9 @@
+# nstrftime.m4
 # serial 38
-
-# Copyright (C) 1996-1997, 1999-2007, 2009-2024 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+dnl Copyright (C) 1996-1997, 1999-2007, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 # Written by Jim Meyering and Paul Eggert.
 
index f3259f9c245b234100a438e4eafb955a68456e64..db6035dbeb3afef39b8593fd691e2d883067d9a6 100644 (file)
@@ -1,4 +1,5 @@
-# off_t.m4 serial 1
+# off_t.m4
+# serial 1
 dnl Copyright (C) 2012-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index a2d50329b9772ce3cc4253677b5c4d709dfac85a..6defdfb4005fbfab8b61919a22c205089acccb40 100644 (file)
@@ -1,10 +1,12 @@
-# Test whether O_CLOEXEC is defined.
-
+# open-cloexec.m4
+# serial 1
 dnl Copyright 2017-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# Test whether O_CLOEXEC is defined.
+
 AC_DEFUN([gl_PREPROC_O_CLOEXEC],
 [
   AC_CACHE_CHECK([for O_CLOEXEC],
index 45310c0c581378b6710d2177333de00293bcd9eb..03460e422d9079e561170bfdb77f21e3475ca1c7 100644 (file)
@@ -1,4 +1,5 @@
-# open-slash.m4 serial 2
+# open-slash.m4
+# serial 2
 dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 91e5c31b59ac9689d1f5942db2988a6249e1acdc..62a11a110c59a39e76d46bee566f9b0ac284c2f9 100644 (file)
@@ -1,4 +1,5 @@
-# open.m4 serial 16
+# open.m4
+# serial 16
 dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index a0fc296c9b28514891f92ff90c554cb66769bee5..4280837f1e14901be6aeb051878525d94454c7c6 100644 (file)
@@ -1,4 +1,5 @@
-# pathmax.m4 serial 11
+# pathmax.m4
+# serial 11
 dnl Copyright (C) 2002-2003, 2005-2006, 2009-2024 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
index 8f8d39d81dbb44cfd906875f589d6f4fd2aa3f3f..8bedcc6bcd3783ee403de0f45ac361d8f0cca48d 100644 (file)
@@ -1,4 +1,5 @@
-# pid_t.m4 serial 4
+# pid_t.m4
+# serial 4
 dnl Copyright (C) 2020-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 74b7b284b3e7a59a3e1da4adf0414b2e9b5d9991..e8ace7f077e56f62abbf2a01158a9dab06424380 100644 (file)
@@ -1,4 +1,5 @@
-# pipe2.m4 serial 4
+# pipe2.m4
+# serial 4
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 005b722b9657b4483d29ba38c6bee2650fcc394d..23d1fadd6372d1b06adb137a54f642563f5b7aa9 100644 (file)
@@ -1,4 +1,5 @@
-# pselect.m4 serial 11
+# pselect.m4
+# serial 11
 dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index cb2ee900313087cc1011a1a09a01c604b9e52457..437869f6dbec4e54d8e8c51ba19684086dc31672 100644 (file)
@@ -1,4 +1,5 @@
-# pthread_sigmask.m4 serial 23
+# pthread_sigmask.m4
+# serial 23
 dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 57d1c2915e3cf57da1b903f3345da27fd99d1757..6e0fa0a55e898bf832a7f236e5c666bcb50c3303 100644 (file)
@@ -1,4 +1,5 @@
-# rawmemchr.m4 serial 3
+# rawmemchr.m4
+# serial 3
 dnl Copyright (C) 2003, 2007-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 6d78ec84a03da30585bb32d5f86ebc05ebe6cabe..bc9a5deb06e731d411800a2d18b142a319eb78c5 100644 (file)
@@ -1,4 +1,5 @@
-# readlink.m4 serial 17
+# readlink.m4
+# serial 17
 dnl Copyright (C) 2003, 2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 99822102294365dad985e2f030a363ccd07ed872..8a33c1691362e2ec9ebb2762dda7809463496f36 100644 (file)
@@ -1,11 +1,12 @@
+# readlinkat.m4
 # serial 8
-# See if we need to provide readlinkat replacement.
-
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# See if we need to provide readlinkat replacement.
+
 # Written by Eric Blake.
 
 AC_DEFUN([gl_FUNC_READLINKAT],
index ec40019735f984c0cf04bd7a6884980882183265..1d9071fe65a3a36dd6dc0bf55a5b2150ceaf7402 100644 (file)
@@ -1,4 +1,5 @@
-# readutmp.m4 serial 31
+# readutmp.m4
+# serial 31
 dnl Copyright (C) 2002-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index a59af2807c917c62c78d6d95cc9ef84c7973d1a8..eb90d5885c70106e928e48caac3f4cf0eb8df6ab 100644 (file)
@@ -1,4 +1,5 @@
-# realloc.m4 serial 29
+# realloc.m4
+# serial 29
 dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 3dfeabea05778cb0497a39d691b93ca2874cfe54..f0101fe67c63e5c53493c8b712eee085e3a3675b 100644 (file)
@@ -1,10 +1,9 @@
+# regex.m4
 # serial 75
-
-# Copyright (C) 1996-2001, 2003-2024 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+dnl Copyright (C) 1996-2001, 2003-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 dnl Initially derived from code in GNU grep.
 dnl Mostly written by Jim Meyering.
index c0a87536a5c8db56466f7a87c9f386fe9ad5095f..51f2afe8d0d2f495f15c55f10f3fee2c8c6f92f9 100644 (file)
@@ -1,4 +1,5 @@
-# sha1.m4 serial 12
+# sha1.m4
+# serial 12
 dnl Copyright (C) 2002-2006, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 2dd754c17782359dea09dd3a24c24b3a5c7a58d4..ad5596a488f48dbf833870c229a9f4683f3d5cbb 100644 (file)
@@ -1,4 +1,5 @@
-# sha256.m4 serial 8
+# sha256.m4
+# serial 8
 dnl Copyright (C) 2005, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 19d03b5027125694cfe231f1d10f8d7da031498b..86e5518beecce51b950d930b200f2781ac940568 100644 (file)
@@ -1,4 +1,5 @@
-# sha512.m4 serial 9
+# sha512.m4
+# serial 9
 dnl Copyright (C) 2005-2006, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index ab3786b8954f01813a5b3c6a5e73bf3ae4a93cc3..096d0253fcb5fac106407e73569c877baae629d5 100644 (file)
@@ -1,3 +1,4 @@
+# sig2str.m4
 # serial 7
 dnl Copyright (C) 2002, 2005-2006, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
index d844e2f9db735f56a669c1d1f72c72cffc82bcc2..72da5e957ca4c4a0dce28a011661816e442ea738 100644 (file)
@@ -1,4 +1,5 @@
-# sigdescr_np.m4 serial 2
+# sigdescr_np.m4
+# serial 2
 dnl Copyright (C) 2020-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 6f7dcc733b439d3509cbb94533c6dbecaae19aab..65afa2a1dee37858b49cc6b46e22936d0a1363ac 100644 (file)
@@ -1,4 +1,5 @@
-# signal_h.m4 serial 22
+# signal_h.m4
+# serial 22
 dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 9c46db1893784e747dbf4764968492fb0bedeb9d..9ece0abb6d047b8d82e4d3be19d27fb0366f8ded 100644 (file)
@@ -1,4 +1,5 @@
-# socklen.m4 serial 11
+# socklen.m4
+# serial 11
 dnl Copyright (C) 2005-2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 25b28d77e4ef05fb0b2938817f1fa0e349d7efab..c15f948adb7ac3091d9dd24088eb2a67592c9612 100644 (file)
@@ -1,4 +1,5 @@
-# ssize_t.m4 serial 6
+# ssize_t.m4
+# serial 6
 dnl Copyright (C) 2001-2003, 2006, 2010-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 8bec2f5f8152a5a6b4f766168c6c2fca5e48629c..e8ee7d5125e236eea7461085867268b8cad3c38f 100644 (file)
@@ -1,11 +1,11 @@
-# Checks for stat-related time functions.
-
-# Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2024 Free Software
-# Foundation, Inc.
+# stat-time.m4
+# serial 1
+dnl Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# Checks for stat-related time functions.
 
 dnl From Paul Eggert.
 
index 59998c17cf75690ffdb3dfc04dcdeb8ee137ee57..37324c158e7cf2e75e7340f71d530146e8effe71 100644 (file)
@@ -1,3 +1,6 @@
+# std-gnu11.m4
+# serial 1
+
 # Prefer GNU C11 and C++11 to earlier versions.  -*- coding: utf-8 -*-
 
 # This implementation is taken from GNU Autoconf lib/autoconf/c.m4
index e3c1e609236e73c02876e4d552de49d708db88e1..2b4762f3200708eda590caed931b2008ea23adbe 100644 (file)
@@ -1,10 +1,12 @@
-# Check for alignas and alignof that conform to C23.
-
+# stdalign.m4
+# serial 1
 dnl Copyright 2011-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# Check for alignas and alignof that conform to C23.
+
 dnl Written by Paul Eggert and Bruno Haible.
 
 # Prepare for substituting <stdalign.h> if it is not supported.
index 1bf9eb39b66d193ebc7c3be65dd58f5057e9e7c4..998fe12fa83e9819954dfc46423f2b421ad3cedd 100644 (file)
@@ -1,4 +1,5 @@
-# stddef_h.m4 serial 14
+# stddef_h.m4
+# serial 16
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -83,6 +84,36 @@ AC_DEFUN_ONCE([gl_STDDEF_H],
     GL_GENERATE_STDDEF_H=true
   fi
 
+  dnl https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114869
+  AC_CACHE_CHECK([whether nullptr_t needs <stddef.h>],
+    [gl_cv_nullptr_t_needs_stddef],
+    [AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[nullptr_t x;]],
+       [gl_cv_nullptr_t_needs_stddef=no],
+       [gl_cv_nullptr_t_needs_stddef=yes])])
+  if test "$gl_cv_nullptr_t_needs_stddef" = no; then
+    NULLPTR_T_NEEDS_STDDEF=0
+    GL_GENERATE_STDDEF_H=true
+  fi
+
+  AC_CACHE_CHECK([for clean definition of __STDC_VERSION_STDDEF_H__],
+    [gl_cv_clean_version_stddef],
+    [AC_PREPROC_IFELSE(
+       [AC_LANG_SOURCE(
+          [[/* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114870 */
+            #include <stddef.h>
+            #undef __STDC_VERSION_STDDEF_H__
+            #include <time.h>
+            #ifdef __STDC_VERSION_STDDEF_H__
+            # error "<time.h> defines __STDC_VERSION_STDDEF_H__"
+            #endif
+          ]])],
+        [gl_cv_clean_version_stddef=yes],
+        [gl_cv_clean_version_stddef=no])])
+  if test "$gl_cv_clean_version_stddef" = no; then
+    STDDEF_NOT_IDEMPOTENT=1
+    GL_GENERATE_STDDEF_H=true
+  fi
+
   if $GL_GENERATE_STDDEF_H; then
     gl_NEXT_HEADERS([stddef.h])
   fi
@@ -113,6 +144,8 @@ AC_DEFUN([gl_STDDEF_H_REQUIRE_DEFAULTS],
 AC_DEFUN([gl_STDDEF_H_DEFAULTS],
 [
   dnl Assume proper GNU behavior unless another module says otherwise.
+  NULLPTR_T_NEEDS_STDDEF=1;      AC_SUBST([NULLPTR_T_NEEDS_STDDEF])
+  STDDEF_NOT_IDEMPOTENT=0;       AC_SUBST([STDDEF_NOT_IDEMPOTENT])
   REPLACE_NULL=0;                AC_SUBST([REPLACE_NULL])
   HAVE_MAX_ALIGN_T=1;            AC_SUBST([HAVE_MAX_ALIGN_T])
   HAVE_WCHAR_T=1;                AC_SUBST([HAVE_WCHAR_T])
index 4aa250827cc2f99d77d2cb11ab561c5d3df09533..2dea846914bb662b03040ffd204ba04291a0880d 100644 (file)
@@ -1,4 +1,5 @@
-# stdint.m4 serial 63
+# stdint.m4
+# serial 63
 dnl Copyright (C) 2001-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index c19feefe717083974523e0484a8ca8a530f15bf7..8eb5816ad7e916aa05ed3a58c8fb41ddeaa4e3dd 100644 (file)
@@ -1,4 +1,5 @@
-# stdio_h.m4 serial 63
+# stdio_h.m4
+# serial 63
 dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 92e67a74bb517c315760e58b402043212e1cc211..a4662f299556bbcace5aaaddc8fd8746a5014622 100644 (file)
@@ -1,4 +1,5 @@
-# stdlib_h.m4 serial 76
+# stdlib_h.m4
+# serial 77
 dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -145,6 +146,7 @@ AC_DEFUN([gl_STDLIB_H_REQUIRE_DEFAULTS],
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SECURE_GETENV])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETENV])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOD])
+    gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOF])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOL])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOLD])
     gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOLL])
@@ -205,6 +207,7 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS],
   HAVE_SETSTATE=1;           AC_SUBST([HAVE_SETSTATE])
   HAVE_DECL_SETSTATE=1;      AC_SUBST([HAVE_DECL_SETSTATE])
   HAVE_STRTOD=1;             AC_SUBST([HAVE_STRTOD])
+  HAVE_STRTOF=1;             AC_SUBST([HAVE_STRTOF])
   HAVE_STRTOL=1;             AC_SUBST([HAVE_STRTOL])
   HAVE_STRTOLD=1;            AC_SUBST([HAVE_STRTOLD])
   HAVE_STRTOLL=1;            AC_SUBST([HAVE_STRTOLL])
@@ -248,6 +251,7 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS],
   REPLACE_SETENV=0;          AC_SUBST([REPLACE_SETENV])
   REPLACE_SETSTATE=0;        AC_SUBST([REPLACE_SETSTATE])
   REPLACE_STRTOD=0;          AC_SUBST([REPLACE_STRTOD])
+  REPLACE_STRTOF=0;          AC_SUBST([REPLACE_STRTOF])
   REPLACE_STRTOL=0;          AC_SUBST([REPLACE_STRTOL])
   REPLACE_STRTOLD=0;         AC_SUBST([REPLACE_STRTOLD])
   REPLACE_STRTOLL=0;         AC_SUBST([REPLACE_STRTOLL])
index 04c8bbe4c94963afbd0df059186b3e8117ef7372..c4d71dd9fa588edd477e8285889b9a72ef59ca80 100644 (file)
@@ -1,4 +1,5 @@
-# stpcpy.m4 serial 11
+# stpcpy.m4
+# serial 11
 dnl Copyright (C) 2002, 2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 9ea748cc7740a43cb97ebf059a27a4ef8d0af826..f31264ae85baa5661434a20f53be16bef47d952f 100644 (file)
@@ -1,11 +1,11 @@
-# Configure a GNU-like replacement for <string.h>.
-
-# Copyright (C) 2007-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
+# string_h.m4
 # serial 39
+dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+# Configure a GNU-like replacement for <string.h>.
 
 # Written by Paul Eggert.
 
index 3eac8e629d7dde0ee1cee292cb8f4b4053cd240b..b4d2778524e4578a703e3c8a564a211c5a760e2b 100644 (file)
@@ -1,4 +1,5 @@
-# strnlen.m4 serial 14
+# strnlen.m4
+# serial 14
 dnl Copyright (C) 2002-2003, 2005-2007, 2009-2024 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
index b58fa48ff6edc58b0dd67cf55c2225c5762e109c..2a0b50b3428188cb66671afab5a0c82eb4f3e2bd 100644 (file)
@@ -1,4 +1,5 @@
-# strtoimax.m4 serial 17
+# strtoimax.m4
+# serial 17
 dnl Copyright (C) 2002-2004, 2006, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 130b9094d881571694b741aa83ef3a183612a167..03a50dec2f1f413d20adf13f7cc1b4efff6bc1cd 100644 (file)
@@ -1,4 +1,5 @@
-# strtoll.m4 serial 12
+# strtoll.m4
+# serial 12
 dnl Copyright (C) 2002, 2004, 2006, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 62062cf14991bb6398f5af93b6073781e84fcea1..47968a1d33f65f5372228a960d585428a73ed815 100644 (file)
@@ -1,11 +1,12 @@
+# symlink.m4
 # serial 10
-# See if we need to provide symlink replacement.
-
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# See if we need to provide symlink replacement.
+
 # Written by Eric Blake.
 
 AC_DEFUN([gl_FUNC_SYMLINK],
index b050d079b92c91c17fc6dfad77c803765169a614..62fd519e365119b11b9c546b567a3ea5bbef06ac 100644 (file)
@@ -1,4 +1,5 @@
-# sys_random_h.m4 serial 8
+# sys_random_h.m4
+# serial 8
 dnl Copyright (C) 2020-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 9e279fbab8d9384f0e6697a6e76fb26f319ca44e..550e066e1713399746bebbebeea660176a55292b 100644 (file)
@@ -1,4 +1,5 @@
-# sys_select_h.m4 serial 23
+# sys_select_h.m4
+# serial 23
 dnl Copyright (C) 2006-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index af524849f035fec56920dba5e55c15de15cea87e..3bf3cb47778c5651f9c42760444467c1d006094a 100644 (file)
@@ -1,4 +1,5 @@
-# sys_socket_h.m4 serial 29
+# sys_socket_h.m4
+# serial 29
 dnl Copyright (C) 2005-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 75018537d579fb2ddd2c94694866b28ab6e69ab9..3cc50ce677615de588f20635a8416a0aa5af2d52 100644 (file)
@@ -1,4 +1,5 @@
-# sys_stat_h.m4 serial 42   -*- Autoconf -*-
+# sys_stat_h.m4
+# serial 42   -*- Autoconf -*-
 dnl Copyright (C) 2006-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index dc5353f3785cd294b2dd56987aa59082d8c90393..d32030889348a8174a49f17725f6b1a69bfe4541 100644 (file)
@@ -1,10 +1,11 @@
-# Configure a replacement for <sys/time.h>.
+# sys_time_h.m4
 # serial 12
+dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
-# Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# Configure a replacement for <sys/time.h>.
 
 # Written by Paul Eggert and Martin Lambers.
 
index 37d0ccad4038e44f813531a2f9ebd5f7be2f307c..7c7f26552729f1a3bede987aeadcf34d74fbee2b 100644 (file)
@@ -1,4 +1,5 @@
-# sys_types_h.m4 serial 13
+# sys_types_h.m4
+# serial 14
 dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -22,6 +23,9 @@ AC_DEFUN_ONCE([gl_SYS_TYPES_H],
   dnl Whether to override the 'off_t' type.
   AC_REQUIRE([gl_TYPE_OFF_T])
 
+  dnl Whether to define the 'off64_t' type.
+  AC_REQUIRE([gl_TYPE_OFF64_T])
+
   dnl Whether to override the 'dev_t' and 'ino_t' types.
   m4_ifdef([gl_WINDOWS_STAT_INODES], [
     AC_REQUIRE([gl_WINDOWS_STAT_INODES])
index 31d35c83eb5f2ab7a20e58c996e37deab494b8c0..795a9803fd06921d05f12624b1319a845650c500 100644 (file)
@@ -1,9 +1,9 @@
-#serial 5
-
-# Copyright (C) 2006-2007, 2009-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# tempname.m4
+# serial 5
+dnl Copyright (C) 2006-2007, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 # glibc provides __gen_tempname as a wrapper for mk[ds]temp.  Expose
 # it as a public API, and provide it on systems that are lacking.
index 32fade0f401a7eebc9c2fdeb9e5a24ed12fe323a..d2f3c9701cbd4ca0a501bc39548bc478ca9065d8 100644 (file)
@@ -1,12 +1,11 @@
-# Configure a more-standard replacement for <time.h>.
-
-# Copyright (C) 2000-2001, 2003-2007, 2009-2024 Free Software Foundation, Inc.
-
+# time_h.m4
 # serial 25
+dnl Copyright (C) 2000-2001, 2003-2007, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# Configure a more-standard replacement for <time.h>.
 
 # Written by Paul Eggert and Jim Meyering.
 
index 4ee2175b6908d1b41158f6a2bbf75d2e69bc1a28..3675390e87172e468013ad6542fc8d50295b1eb3 100644 (file)
@@ -1,10 +1,12 @@
-dnl Reentrant time functions: localtime_r, gmtime_r.
-
+# time_r.m4
+# serial 1
 dnl Copyright (C) 2003, 2006-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+dnl Reentrant time functions: localtime_r, gmtime_r.
+
 dnl Written by Paul Eggert.
 
 AC_DEFUN([gl_TIME_R],
index c3b72b7603bdb807ec236e475c49ad32e21dd1a7..8f45f2b1d3dca4a78e3a8fd81c0b5e386f247f9e 100644 (file)
@@ -1,10 +1,12 @@
-dnl Time zone functions: tzalloc, localtime_rz, etc.
-
+# time_rz.m4
+# serial 1
 dnl Copyright (C) 2015-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+dnl Time zone functions: tzalloc, localtime_rz, etc.
+
 dnl Written by Paul Eggert.
 
 AC_DEFUN([gl_TIME_RZ],
index 84336043e5d1a741b87a32fbdb3268dc0f104d4b..c1ff26777b8b9c311a9fa2fe4cd4c2454265ddcf 100644 (file)
@@ -1,4 +1,5 @@
-# timegm.m4 serial 16
+# timegm.m4
+# serial 16
 dnl Copyright (C) 2003, 2007, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 10b7654d30f4c22e3a616615d88d463ce68f8605..59a4cade539986e5c170b1ac70f632cff1e7b0fe 100644 (file)
@@ -1,4 +1,5 @@
-# timer_time.m4 serial 6
+# timer_time.m4
+# serial 6
 dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 59a0db9966e3d96b3275b7453392b8b5eac925d2..5333920ef5e346c6cb5acc4e035b86126637ff37 100644 (file)
@@ -1,10 +1,9 @@
-#serial 15
-
-# Copyright (C) 2000-2001, 2003-2007, 2009-2024 Free Software Foundation, Inc.
-
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# timespec.m4
+# serial 15
+dnl Copyright (C) 2000-2001, 2003-2007, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 dnl From Jim Meyering
 
index f2e51597fdf13df38a0d2d68655834a9bd4b9887..0c7dcb2a09aacdd7671919268bf5d420fc318296 100644 (file)
@@ -1,4 +1,5 @@
-# tm_gmtoff.m4 serial 3
+# tm_gmtoff.m4
+# serial 3
 dnl Copyright (C) 2002, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index e078bd617a7b4f0da98071f93f048e4e2ac7e82a..81d1b9f6169dd091531e57305187142457920baa 100644 (file)
@@ -1,4 +1,5 @@
-# unistd_h.m4 serial 95
+# unistd_h.m4
+# serial 95
 dnl Copyright (C) 2006-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 558f57d809bc6f721feedf2959aa414c810954d9..e96cf5f87360e08f463749a4ce72cc1f108ee2fd 100644 (file)
@@ -1,10 +1,9 @@
-# unlocked-io.m4 serial 16
-
-# Copyright (C) 1998-2006, 2009-2024 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# unlocked-io.m4
+# serial 16
+dnl Copyright (C) 1998-2006, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
 dnl From Jim Meyering.
 dnl
index 0f5bfd4c84357608e2be59a39f89ae12b2e86fd8..9996e3ef3365b11ea551244e22d30db74d61329c 100644 (file)
@@ -1,10 +1,10 @@
+# utimens.m4
+# serial 16
 dnl Copyright (C) 2003-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
-dnl serial 16
-
 AC_DEFUN([gl_UTIMENS],
 [
   dnl Prerequisites of lib/utimens.c.
index 4af7f6f81c847dcdf9236c4f57c1a1fadf3706b7..a583f37668764563f8e4ca1930000f824c975d1d 100644 (file)
@@ -1,11 +1,12 @@
+# utimensat.m4
 # serial 12
-# See if we need to provide utimensat replacement.
-
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
+# See if we need to provide utimensat replacement.
+
 # Written by Eric Blake.
 
 AC_DEFUN([gl_FUNC_UTIMENSAT],
index 164bf0c49a99a0f3c8b7951dcb608632de7bc0e5..9211f69d4d8b9f800af9e31dd29d5319a388d388 100644 (file)
@@ -1,13 +1,13 @@
-# Check for variable-length arrays.
-
+# vararrays.m4
 # serial 6
+dnl Copyright (C) 2001, 2009-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
-# From Paul Eggert
+# Check for variable-length arrays.
 
-# Copyright (C) 2001, 2009-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# From Paul Eggert
 
 m4_version_prereq([2.70], [], [
 
index d487636aa36d92da8cfc6d15b0b4957238fa23ea..fe7af01fc500a3aeef916b1010f7da69b109eb2e 100644 (file)
@@ -1,4 +1,5 @@
-# warnings.m4 serial 20
+# warnings.m4
+# serial 20
 dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 94353571b00bc99e2539b6816efb324b74a145e9..968832cb296cabc6499476779b786ac1e609bebd 100644 (file)
@@ -1,4 +1,5 @@
-# wchar_t.m4 serial 4 (gettext-0.18.2)
+# wchar_t.m4
+# serial 4 (gettext-0.18.2)
 dnl Copyright (C) 2002-2003, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 7f72a81eeab38dd8898fcbbd667f3c67ed99b89b..d8c084868343d54a73a72a7b8dd01ea792bd7ac2 100644 (file)
@@ -1,10 +1,11 @@
-# xattr.m4 - check for Extended Attributes (Linux)
+# xattr.m4
 # serial 7
+dnl Copyright (C) 2003-2024 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
 
-# Copyright (C) 2003-2024 Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
+# Check for Extended Attributes (Linux)
 
 AC_DEFUN([gl_FUNC_XATTR],
 [
index eed5ecbfe1e314fd12ce4e4d6308553dad439440..710fba4e2971a93d248ec12b0d8823d79e206644 100644 (file)
@@ -1,4 +1,5 @@
-# zzgnulib.m4 serial 1
+# zzgnulib.m4
+# serial 1
 dnl Copyright (C) 2020-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,