aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2023-01-06 17:53:54 -0800
committerPaul Eggert2023-01-06 18:05:57 -0800
commit9e98ff562b4b8f2dae92bd4c64d15934c7d5877f (patch)
treef37ce6d03a710f541fbbe72b9533a05d1a63103f /lib
parent2f05f48918ecf6e59b330709b09a36f81f7b6c48 (diff)
downloademacs-9e98ff562b4b8f2dae92bd4c64d15934c7d5877f.tar.gz
emacs-9e98ff562b4b8f2dae92bd4c64d15934c7d5877f.zip
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib')
-rw-r--r--lib/alloca.in.h4
-rw-r--r--lib/attribute.h2
-rw-r--r--lib/binary-io.h3
-rw-r--r--lib/c-ctype.h3
-rw-r--r--lib/c-strcasecmp.c3
-rw-r--r--lib/c-strncasecmp.c3
-rw-r--r--lib/careadlinkat.c4
-rw-r--r--lib/cloexec.c3
-rw-r--r--lib/close-stream.c3
-rw-r--r--lib/diffseq.h4
-rw-r--r--lib/dup2.c3
-rw-r--r--lib/file-has-acl.c9
-rw-r--r--lib/filemode.h4
-rw-r--r--lib/filename.h2
-rw-r--r--lib/fpending.c4
-rw-r--r--lib/fpending.h4
-rw-r--r--lib/fsusage.c4
-rw-r--r--lib/getgroups.c3
-rw-r--r--lib/getloadavg.c4
-rw-r--r--lib/gettext.h4
-rw-r--r--lib/gettime.c3
-rw-r--r--lib/gettimeofday.c3
-rw-r--r--lib/gnulib.mk.in5
-rw-r--r--lib/group-member.c4
-rw-r--r--lib/limits.in.h4
-rw-r--r--lib/malloc.c3
-rw-r--r--lib/malloc/scratch_buffer.h2
-rw-r--r--lib/malloc/scratch_buffer_grow.c2
-rw-r--r--lib/malloc/scratch_buffer_grow_preserve.c2
-rw-r--r--lib/malloc/scratch_buffer_set_array_size.c2
-rw-r--r--lib/md5-stream.c4
-rw-r--r--lib/md5.c4
-rw-r--r--lib/md5.h4
-rw-r--r--lib/memmem.c4
-rw-r--r--lib/memrchr.c4
-rw-r--r--lib/memset_explicit.c2
-rw-r--r--lib/mktime-internal.h2
-rw-r--r--lib/mktime.c2
-rw-r--r--lib/nanosleep.c3
-rw-r--r--lib/regex.c2
-rw-r--r--lib/regex.h2
-rw-r--r--lib/save-cwd.h4
-rw-r--r--lib/sha1.c3
-rw-r--r--lib/sig2str.c3
-rw-r--r--lib/stdio.in.h8
-rw-r--r--lib/stdlib.in.h3
-rw-r--r--lib/string.in.h20
-rw-r--r--lib/strtoimax.c4
-rw-r--r--lib/strtol.c4
-rw-r--r--lib/strtoll.c4
-rw-r--r--lib/time_r.c3
-rw-r--r--lib/timegm.c2
-rw-r--r--lib/verify.h16
-rw-r--r--lib/xalloc-oversized.h3
54 files changed, 112 insertions, 101 deletions
diff --git a/lib/alloca.in.h b/lib/alloca.in.h
index b9ce9ef5603..a1bb3d758dc 100644
--- a/lib/alloca.in.h
+++ b/lib/alloca.in.h
@@ -1,7 +1,7 @@
1/* Memory allocation on the stack. 1/* Memory allocation on the stack.
2 2
3 Copyright (C) 1995, 1999, 2001-2004, 2006-2023 Free Software 3 Copyright (C) 1995, 1999, 2001-2004, 2006-2023 Free Software Foundation,
4 Foundation, Inc. 4 Inc.
5 5
6 This file is free software: you can redistribute it and/or modify 6 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 7 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/attribute.h b/lib/attribute.h
index 36b2978bb2c..130644d8798 100644
--- a/lib/attribute.h
+++ b/lib/attribute.h
@@ -32,7 +32,7 @@
32 32
33 33
34/* This file defines two types of attributes: 34/* This file defines two types of attributes:
35 * C2x standard attributes. These have macro names that do not begin with 35 * C23 standard attributes. These have macro names that do not begin with
36 'ATTRIBUTE_'. 36 'ATTRIBUTE_'.
37 * Selected GCC attributes; see: 37 * Selected GCC attributes; see:
38 https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html 38 https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
diff --git a/lib/binary-io.h b/lib/binary-io.h
index dd9829aa88d..6f4db253354 100644
--- a/lib/binary-io.h
+++ b/lib/binary-io.h
@@ -1,6 +1,5 @@
1/* Binary mode I/O. 1/* Binary mode I/O.
2 Copyright (C) 2001, 2003, 2005, 2008-2023 Free Software Foundation, 2 Copyright (C) 2001, 2003, 2005, 2008-2023 Free Software Foundation, Inc.
3 Inc.
4 3
5 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/c-ctype.h b/lib/c-ctype.h
index 9d093f7f722..35ca83d7d43 100644
--- a/lib/c-ctype.h
+++ b/lib/c-ctype.h
@@ -5,8 +5,7 @@
5 <ctype.h> functions' behaviour depends on the current locale set via 5 <ctype.h> functions' behaviour depends on the current locale set via
6 setlocale. 6 setlocale.
7 7
8 Copyright (C) 2000-2003, 2006, 2008-2023 Free Software Foundation, 8 Copyright (C) 2000-2003, 2006, 2008-2023 Free Software Foundation, Inc.
9 Inc.
10 9
11 This file is free software: you can redistribute it and/or modify 10 This file is free software: you can redistribute it and/or modify
12 it under the terms of the GNU Lesser General Public License as 11 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/c-strcasecmp.c b/lib/c-strcasecmp.c
index c90c6d6a09c..8a958dc4fd9 100644
--- a/lib/c-strcasecmp.c
+++ b/lib/c-strcasecmp.c
@@ -1,6 +1,5 @@
1/* c-strcasecmp.c -- case insensitive string comparator in C locale 1/* c-strcasecmp.c -- case insensitive string comparator in C locale
2 Copyright (C) 1998-1999, 2005-2006, 2009-2023 Free Software 2 Copyright (C) 1998-1999, 2005-2006, 2009-2023 Free Software Foundation, Inc.
3 Foundation, Inc.
4 3
5 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/c-strncasecmp.c b/lib/c-strncasecmp.c
index bc30ce0ffc4..4ca8c5f4001 100644
--- a/lib/c-strncasecmp.c
+++ b/lib/c-strncasecmp.c
@@ -1,6 +1,5 @@
1/* c-strncasecmp.c -- case insensitive string comparator in C locale 1/* c-strncasecmp.c -- case insensitive string comparator in C locale
2 Copyright (C) 1998-1999, 2005-2006, 2009-2023 Free Software 2 Copyright (C) 1998-1999, 2005-2006, 2009-2023 Free Software Foundation, Inc.
3 Foundation, Inc.
4 3
5 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/careadlinkat.c b/lib/careadlinkat.c
index 1d7db893731..359d497396c 100644
--- a/lib/careadlinkat.c
+++ b/lib/careadlinkat.c
@@ -1,7 +1,7 @@
1/* Read symbolic links into a buffer without size limitation, relative to fd. 1/* Read symbolic links into a buffer without size limitation, relative to fd.
2 2
3 Copyright (C) 2001, 2003-2004, 2007, 2009-2023 Free Software 3 Copyright (C) 2001, 2003-2004, 2007, 2009-2023 Free Software Foundation,
4 Foundation, Inc. 4 Inc.
5 5
6 This file is free software: you can redistribute it and/or modify 6 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 7 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/cloexec.c b/lib/cloexec.c
index ba53d0020b1..e4cecbd2e8a 100644
--- a/lib/cloexec.c
+++ b/lib/cloexec.c
@@ -1,7 +1,6 @@
1/* cloexec.c - set or clear the close-on-exec descriptor flag 1/* cloexec.c - set or clear the close-on-exec descriptor flag
2 2
3 Copyright (C) 1991, 2004-2006, 2009-2023 Free Software Foundation, 3 Copyright (C) 1991, 2004-2006, 2009-2023 Free Software Foundation, Inc.
4 Inc.
5 4
6 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/close-stream.c b/lib/close-stream.c
index b68b30e6ff0..ab686bac2ae 100644
--- a/lib/close-stream.c
+++ b/lib/close-stream.c
@@ -1,7 +1,6 @@
1/* Close a stream, with nicer error checking than fclose's. 1/* Close a stream, with nicer error checking than fclose's.
2 2
3 Copyright (C) 1998-2002, 2004, 2006-2023 Free Software Foundation, 3 Copyright (C) 1998-2002, 2004, 2006-2023 Free Software Foundation, Inc.
4 Inc.
5 4
6 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
diff --git a/lib/diffseq.h b/lib/diffseq.h
index ad3f258ab6b..dfaf4f295e8 100644
--- a/lib/diffseq.h
+++ b/lib/diffseq.h
@@ -1,7 +1,7 @@
1/* Analyze differences between two vectors. 1/* Analyze differences between two vectors.
2 2
3 Copyright (C) 1988-1989, 1992-1995, 2001-2004, 2006-2023 Free 3 Copyright (C) 1988-1989, 1992-1995, 2001-2004, 2006-2023 Free Software
4 Software Foundation, Inc. 4 Foundation, Inc.
5 5
6 This program is free software: you can redistribute it and/or modify 6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
diff --git a/lib/dup2.c b/lib/dup2.c
index 1597d9d1e6e..7d197ca3123 100644
--- a/lib/dup2.c
+++ b/lib/dup2.c
@@ -1,7 +1,6 @@
1/* Duplicate an open file descriptor to a specified file descriptor. 1/* Duplicate an open file descriptor to a specified file descriptor.
2 2
3 Copyright (C) 1999, 2004-2007, 2009-2023 Free Software Foundation, 3 Copyright (C) 1999, 2004-2007, 2009-2023 Free Software Foundation, Inc.
4 Inc.
5 4
6 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/file-has-acl.c b/lib/file-has-acl.c
index d0e11e631ca..b31a2ea2523 100644
--- a/lib/file-has-acl.c
+++ b/lib/file-has-acl.c
@@ -81,9 +81,10 @@ acl_nfs4_nontrivial (uint32_t *xattr, ssize_t nbytes)
81 uint32_t flag = ntohl (xattr[1]); 81 uint32_t flag = ntohl (xattr[1]);
82 uint32_t wholen = ntohl (xattr[3]); 82 uint32_t wholen = ntohl (xattr[3]);
83 xattr += 4; 83 xattr += 4;
84 int64_t wholen4 = wholen; 84 int whowords = (wholen / BYTES_PER_NETWORK_UINT
85 wholen4 = ((wholen4 + (BYTES_PER_NETWORK_UINT)) 85 + (wholen % BYTES_PER_NETWORK_UINT != 0));
86 & ~ (BYTES_PER_NETWORK_UINT - 1)); 86 int64_t wholen4 = whowords;
87 wholen4 *= BYTES_PER_NETWORK_UINT;
87 88
88 /* Trivial ACLs have only ACE4_ACCESS_ALLOWED_ACE_TYPE or 89 /* Trivial ACLs have only ACE4_ACCESS_ALLOWED_ACE_TYPE or
89 ACE4_ACCESS_DENIED_ACE_TYPE. */ 90 ACE4_ACCESS_DENIED_ACE_TYPE. */
@@ -115,7 +116,7 @@ acl_nfs4_nontrivial (uint32_t *xattr, ssize_t nbytes)
115 return 1; 116 return 1;
116 ace_found |= ace_found_bit; 117 ace_found |= ace_found_bit;
117 118
118 xattr = (uint32_t *) ((char *) xattr + wholen4); 119 xattr += whowords;
119 } 120 }
120 121
121 return 0; 122 return 0;
diff --git a/lib/filemode.h b/lib/filemode.h
index d456cc585b3..15a8dcc3760 100644
--- a/lib/filemode.h
+++ b/lib/filemode.h
@@ -1,7 +1,7 @@
1/* Make a string describing file modes. 1/* Make a string describing file modes.
2 2
3 Copyright (C) 1998-1999, 2003, 2006, 2009-2023 Free Software 3 Copyright (C) 1998-1999, 2003, 2006, 2009-2023 Free Software Foundation,
4 Foundation, Inc. 4 Inc.
5 5
6 This program is free software: you can redistribute it and/or modify 6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
diff --git a/lib/filename.h b/lib/filename.h
index a2400a9dfe3..ab77ca2df91 100644
--- a/lib/filename.h
+++ b/lib/filename.h
@@ -1,5 +1,5 @@
1/* Basic filename support macros. 1/* Basic filename support macros.
2 Copyright (C) 2001-2023 Free Software Foundation, Inc. 2 Copyright (C) 2001-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 4
5 The GNU C Library is free software; you can redistribute it and/or 5 The GNU C Library is free software; you can redistribute it and/or
diff --git a/lib/fpending.c b/lib/fpending.c
index df3cd85f3a6..afa840b8512 100644
--- a/lib/fpending.c
+++ b/lib/fpending.c
@@ -1,6 +1,6 @@
1/* fpending.c -- return the number of pending output bytes on a stream 1/* fpending.c -- return the number of pending output bytes on a stream
2 Copyright (C) 2000, 2004, 2006-2007, 2009-2023 Free Software 2 Copyright (C) 2000, 2004, 2006-2007, 2009-2023 Free Software Foundation,
3 Foundation, Inc. 3 Inc.
4 4
5 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
diff --git a/lib/fpending.h b/lib/fpending.h
index fe310384f7e..5e860db6810 100644
--- a/lib/fpending.h
+++ b/lib/fpending.h
@@ -1,7 +1,7 @@
1/* Declare __fpending. 1/* Declare __fpending.
2 2
3 Copyright (C) 2000, 2003, 2005-2006, 2009-2023 Free Software 3 Copyright (C) 2000, 2003, 2005-2006, 2009-2023 Free Software Foundation,
4 Foundation, Inc. 4 Inc.
5 5
6 This program is free software: you can redistribute it and/or modify 6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
diff --git a/lib/fsusage.c b/lib/fsusage.c
index 2be120a06de..f6f4b1c35fd 100644
--- a/lib/fsusage.c
+++ b/lib/fsusage.c
@@ -1,7 +1,7 @@
1/* fsusage.c -- return space usage of mounted file systems 1/* fsusage.c -- return space usage of mounted file systems
2 2
3 Copyright (C) 1991-1992, 1996, 1998-1999, 2002-2006, 2009-2023 Free 3 Copyright (C) 1991-1992, 1996, 1998-1999, 2002-2006, 2009-2023 Free Software
4 Software Foundation, Inc. 4 Foundation, Inc.
5 5
6 This file is free software: you can redistribute it and/or modify 6 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 7 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/getgroups.c b/lib/getgroups.c
index 6a2bda8d71e..93829d3b15e 100644
--- a/lib/getgroups.c
+++ b/lib/getgroups.c
@@ -1,7 +1,6 @@
1/* provide consistent interface to getgroups for systems that don't allow N==0 1/* provide consistent interface to getgroups for systems that don't allow N==0
2 2
3 Copyright (C) 1996, 1999, 2003, 2006-2023 Free Software Foundation, 3 Copyright (C) 1996, 1999, 2003, 2006-2023 Free Software Foundation, Inc.
4 Inc.
5 4
6 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/getloadavg.c b/lib/getloadavg.c
index 37fcea0a76b..59b53e79980 100644
--- a/lib/getloadavg.c
+++ b/lib/getloadavg.c
@@ -1,7 +1,7 @@
1/* Get the system load averages. 1/* Get the system load averages.
2 2
3 Copyright (C) 1985-1989, 1991-1995, 1997, 1999-2000, 2003-2023 Free 3 Copyright (C) 1985-1989, 1991-1995, 1997, 1999-2000, 2003-2023 Free Software
4 Software Foundation, Inc. 4 Foundation, Inc.
5 5
6 NOTE: The canonical source of this file is maintained with gnulib. 6 NOTE: The canonical source of this file is maintained with gnulib.
7 Bugs can be reported to bug-gnulib@gnu.org. 7 Bugs can be reported to bug-gnulib@gnu.org.
diff --git a/lib/gettext.h b/lib/gettext.h
index 582886f9f51..d0462c47e17 100644
--- a/lib/gettext.h
+++ b/lib/gettext.h
@@ -1,6 +1,6 @@
1/* Convenience header for conditional use of GNU <libintl.h>. 1/* Convenience header for conditional use of GNU <libintl.h>.
2 Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2023 Free 2 Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2023 Free Software
3 Software Foundation, Inc. 3 Foundation, Inc.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/gettime.c b/lib/gettime.c
index cfba830478e..f86cc4efbff 100644
--- a/lib/gettime.c
+++ b/lib/gettime.c
@@ -1,7 +1,6 @@
1/* gettime -- get the system clock 1/* gettime -- get the system clock
2 2
3 Copyright (C) 2002, 2004-2007, 2009-2023 Free Software Foundation, 3 Copyright (C) 2002, 2004-2007, 2009-2023 Free Software Foundation, Inc.
4 Inc.
5 4
6 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c
index 7207c851272..d896ec132b9 100644
--- a/lib/gettimeofday.c
+++ b/lib/gettimeofday.c
@@ -1,7 +1,6 @@
1/* Provide gettimeofday for systems that don't have it or for which it's broken. 1/* Provide gettimeofday for systems that don't have it or for which it's broken.
2 2
3 Copyright (C) 2001-2003, 2005-2007, 2009-2023 Free Software 3 Copyright (C) 2001-2003, 2005-2007, 2009-2023 Free Software Foundation, Inc.
4 Foundation, Inc.
5 4
6 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in
index 9e2eaf51381..0b4e0458a3c 100644
--- a/lib/gnulib.mk.in
+++ b/lib/gnulib.mk.in
@@ -240,6 +240,7 @@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@
240ERRNO_H = @ERRNO_H@ 240ERRNO_H = @ERRNO_H@
241EXECINFO_H = @EXECINFO_H@ 241EXECINFO_H = @EXECINFO_H@
242EXEEXT = @EXEEXT@ 242EXEEXT = @EXEEXT@
243FILE_HAS_ACL_LIB = @FILE_HAS_ACL_LIB@
243FIND_DELETE = @FIND_DELETE@ 244FIND_DELETE = @FIND_DELETE@
244FIRSTFILE_OBJ = @FIRSTFILE_OBJ@ 245FIRSTFILE_OBJ = @FIRSTFILE_OBJ@
245FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ 246FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
@@ -675,6 +676,7 @@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@
675HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ 676HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
676HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ 677HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@
677HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ 678HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@
679HAVE_DECL_GETW = @HAVE_DECL_GETW@
678HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ 680HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
679HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ 681HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
680HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ 682HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@
@@ -683,6 +685,7 @@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
683HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ 685HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
684HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ 686HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@
685HAVE_DECL_POSIX_SPAWN_SETSID = @HAVE_DECL_POSIX_SPAWN_SETSID@ 687HAVE_DECL_POSIX_SPAWN_SETSID = @HAVE_DECL_POSIX_SPAWN_SETSID@
688HAVE_DECL_PUTW = @HAVE_DECL_PUTW@
686HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ 689HAVE_DECL_SETENV = @HAVE_DECL_SETENV@
687HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ 690HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@
688HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ 691HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@
@@ -3104,7 +3107,9 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
3104 -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \ 3107 -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \
3105 -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ 3108 -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
3106 -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ 3109 -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
3110 -e 's|@''HAVE_DECL_GETW''@|$(HAVE_DECL_GETW)|g' \
3107 -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ 3111 -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
3112 -e 's|@''HAVE_DECL_PUTW''@|$(HAVE_DECL_PUTW)|g' \
3108 -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ 3113 -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \
3109 -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ 3114 -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \
3110 -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ 3115 -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \
diff --git a/lib/group-member.c b/lib/group-member.c
index 6e3f640dcf0..96a09f94a8f 100644
--- a/lib/group-member.c
+++ b/lib/group-member.c
@@ -1,7 +1,7 @@
1/* group-member.c -- determine whether group id is in calling user's group list 1/* group-member.c -- determine whether group id is in calling user's group list
2 2
3 Copyright (C) 1994, 1997-1998, 2003, 2005-2006, 2009-2023 Free 3 Copyright (C) 1994, 1997-1998, 2003, 2005-2006, 2009-2023 Free Software
4 Software Foundation, Inc. 4 Foundation, Inc.
5 5
6 This file is free software: you can redistribute it and/or modify 6 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 7 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/limits.in.h b/lib/limits.in.h
index ae46a5aa25f..eaeac472299 100644
--- a/lib/limits.in.h
+++ b/lib/limits.in.h
@@ -99,7 +99,7 @@
99# endif 99# endif
100#endif 100#endif
101 101
102/* Macros specified by C2x and by ISO/IEC TS 18661-1:2014. */ 102/* Macros specified by C23 and by ISO/IEC TS 18661-1:2014. */
103 103
104#if (! defined ULLONG_WIDTH \ 104#if (! defined ULLONG_WIDTH \
105 && (defined _GNU_SOURCE || defined __STDC_WANT_IEC_60559_BFP_EXT__ \ 105 && (defined _GNU_SOURCE || defined __STDC_WANT_IEC_60559_BFP_EXT__ \
@@ -117,7 +117,7 @@
117# define ULLONG_WIDTH _GL_INTEGER_WIDTH (0, ULLONG_MAX) 117# define ULLONG_WIDTH _GL_INTEGER_WIDTH (0, ULLONG_MAX)
118#endif 118#endif
119 119
120/* Macros specified by C2x. */ 120/* Macros specified by C23. */
121 121
122#if (! defined BOOL_WIDTH \ 122#if (! defined BOOL_WIDTH \
123 && (defined _GNU_SOURCE \ 123 && (defined _GNU_SOURCE \
diff --git a/lib/malloc.c b/lib/malloc.c
index 92f8c841cd7..3ade35cb63f 100644
--- a/lib/malloc.c
+++ b/lib/malloc.c
@@ -1,7 +1,6 @@
1/* malloc() function that is glibc compatible. 1/* malloc() function that is glibc compatible.
2 2
3 Copyright (C) 1997-1998, 2006-2007, 2009-2023 Free Software 3 Copyright (C) 1997-1998, 2006-2007, 2009-2023 Free Software Foundation, Inc.
4 Foundation, Inc.
5 4
6 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/malloc/scratch_buffer.h b/lib/malloc/scratch_buffer.h
index 33fd2b29cd5..a9bdcadec21 100644
--- a/lib/malloc/scratch_buffer.h
+++ b/lib/malloc/scratch_buffer.h
@@ -1,5 +1,5 @@
1/* Variable-sized buffer with on-stack default allocation. 1/* Variable-sized buffer with on-stack default allocation.
2 Copyright (C) 2015-2023 Free Software Foundation, Inc. 2 Copyright (C) 2015-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 4
5 The GNU C Library is free software; you can redistribute it and/or 5 The GNU C Library is free software; you can redistribute it and/or
diff --git a/lib/malloc/scratch_buffer_grow.c b/lib/malloc/scratch_buffer_grow.c
index a5e8f2f7230..9a5e4dbb1eb 100644
--- a/lib/malloc/scratch_buffer_grow.c
+++ b/lib/malloc/scratch_buffer_grow.c
@@ -1,5 +1,5 @@
1/* Variable-sized buffer with on-stack default allocation. 1/* Variable-sized buffer with on-stack default allocation.
2 Copyright (C) 2015-2023 Free Software Foundation, Inc. 2 Copyright (C) 2015-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 4
5 The GNU C Library is free software; you can redistribute it and/or 5 The GNU C Library is free software; you can redistribute it and/or
diff --git a/lib/malloc/scratch_buffer_grow_preserve.c b/lib/malloc/scratch_buffer_grow_preserve.c
index c0b5d87b7e4..3fe5a0720ec 100644
--- a/lib/malloc/scratch_buffer_grow_preserve.c
+++ b/lib/malloc/scratch_buffer_grow_preserve.c
@@ -1,5 +1,5 @@
1/* Variable-sized buffer with on-stack default allocation. 1/* Variable-sized buffer with on-stack default allocation.
2 Copyright (C) 2015-2023 Free Software Foundation, Inc. 2 Copyright (C) 2015-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 4
5 The GNU C Library is free software; you can redistribute it and/or 5 The GNU C Library is free software; you can redistribute it and/or
diff --git a/lib/malloc/scratch_buffer_set_array_size.c b/lib/malloc/scratch_buffer_set_array_size.c
index 24c39350ade..89c37a950e9 100644
--- a/lib/malloc/scratch_buffer_set_array_size.c
+++ b/lib/malloc/scratch_buffer_set_array_size.c
@@ -1,5 +1,5 @@
1/* Variable-sized buffer with on-stack default allocation. 1/* Variable-sized buffer with on-stack default allocation.
2 Copyright (C) 2015-2023 Free Software Foundation, Inc. 2 Copyright (C) 2015-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 4
5 The GNU C Library is free software; you can redistribute it and/or 5 The GNU C Library is free software; you can redistribute it and/or
diff --git a/lib/md5-stream.c b/lib/md5-stream.c
index ab48fe3261a..ba76792cbbe 100644
--- a/lib/md5-stream.c
+++ b/lib/md5-stream.c
@@ -1,7 +1,7 @@
1/* Functions to compute MD5 message digest of files or memory blocks. 1/* Functions to compute MD5 message digest of files or memory blocks.
2 according to the definition of MD5 in RFC 1321 from April 1992. 2 according to the definition of MD5 in RFC 1321 from April 1992.
3 Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2023 Free 3 Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2023 Free Software
4 Software Foundation, Inc. 4 Foundation, Inc.
5 This file is part of the GNU C Library. 5 This file is part of the GNU C Library.
6 6
7 This file is free software: you can redistribute it and/or modify 7 This file is free software: you can redistribute it and/or modify
diff --git a/lib/md5.c b/lib/md5.c
index b1e139339f4..4a6accf28ff 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -1,7 +1,7 @@
1/* Functions to compute MD5 message digest of files or memory blocks. 1/* Functions to compute MD5 message digest of files or memory blocks.
2 according to the definition of MD5 in RFC 1321 from April 1992. 2 according to the definition of MD5 in RFC 1321 from April 1992.
3 Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2023 Free 3 Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2023 Free Software
4 Software Foundation, Inc. 4 Foundation, Inc.
5 This file is part of the GNU C Library. 5 This file is part of the GNU C Library.
6 6
7 This file is free software: you can redistribute it and/or modify 7 This file is free software: you can redistribute it and/or modify
diff --git a/lib/md5.h b/lib/md5.h
index 3b0b4ff730f..f34e7cb8dfa 100644
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -1,7 +1,7 @@
1/* Declaration of functions and data types used for MD5 sum computing 1/* Declaration of functions and data types used for MD5 sum computing
2 library functions. 2 library functions.
3 Copyright (C) 1995-1997, 1999-2001, 2004-2006, 2008-2023 Free 3 Copyright (C) 1995-1997, 1999-2001, 2004-2006, 2008-2023 Free Software
4 Software Foundation, Inc. 4 Foundation, Inc.
5 This file is part of the GNU C Library. 5 This file is part of the GNU C Library.
6 6
7 This file is free software: you can redistribute it and/or modify 7 This file is free software: you can redistribute it and/or modify
diff --git a/lib/memmem.c b/lib/memmem.c
index 665815efb1a..c0b48c1b25d 100644
--- a/lib/memmem.c
+++ b/lib/memmem.c
@@ -1,5 +1,5 @@
1/* Copyright (C) 1991-1994, 1996-1998, 2000, 2004, 2007-2023 Free 1/* Copyright (C) 1991-1994, 1996-1998, 2000, 2004, 2007-2023 Free Software
2 Software Foundation, Inc. 2 Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
diff --git a/lib/memrchr.c b/lib/memrchr.c
index a34fc71f7da..c5b1fe8b2e3 100644
--- a/lib/memrchr.c
+++ b/lib/memrchr.c
@@ -1,7 +1,7 @@
1/* memrchr -- find the last occurrence of a byte in a memory block 1/* memrchr -- find the last occurrence of a byte in a memory block
2 2
3 Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2023 Free 3 Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2023 Free Software
4 Software Foundation, Inc. 4 Foundation, Inc.
5 5
6 Based on strlen implementation by Torbjorn Granlund (tege@sics.se), 6 Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
7 with help from Dan Sahlin (dan@sics.se) and 7 with help from Dan Sahlin (dan@sics.se) and
diff --git a/lib/memset_explicit.c b/lib/memset_explicit.c
index eabeb3ec2b8..6d21a5e8797 100644
--- a/lib/memset_explicit.c
+++ b/lib/memset_explicit.c
@@ -1,5 +1,5 @@
1/* Erase sensitive data from memory. 1/* Erase sensitive data from memory.
2 Copyright 2022 Free Software Foundation, Inc. 2 Copyright 2022-2023 Free Software Foundation, Inc.
3 3
4 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/mktime-internal.h b/lib/mktime-internal.h
index 709c36bdf56..170764eabc8 100644
--- a/lib/mktime-internal.h
+++ b/lib/mktime-internal.h
@@ -1,5 +1,5 @@
1/* Internals of mktime and related functions 1/* Internals of mktime and related functions
2 Copyright 2016-2023 Free Software Foundation, Inc. 2 Copyright 2016-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 Contributed by Paul Eggert <eggert@cs.ucla.edu>. 4 Contributed by Paul Eggert <eggert@cs.ucla.edu>.
5 5
diff --git a/lib/mktime.c b/lib/mktime.c
index 94a4320e6ca..7dc9d67ef9d 100644
--- a/lib/mktime.c
+++ b/lib/mktime.c
@@ -1,5 +1,5 @@
1/* Convert a 'struct tm' to a time_t value. 1/* Convert a 'struct tm' to a time_t value.
2 Copyright (C) 1993-2023 Free Software Foundation, Inc. 2 Copyright (C) 1993-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 Contributed by Paul Eggert <eggert@twinsun.com>. 4 Contributed by Paul Eggert <eggert@twinsun.com>.
5 5
diff --git a/lib/nanosleep.c b/lib/nanosleep.c
index 6383115c0f1..3f295f49b5d 100644
--- a/lib/nanosleep.c
+++ b/lib/nanosleep.c
@@ -1,7 +1,6 @@
1/* Provide a replacement for the POSIX nanosleep function. 1/* Provide a replacement for the POSIX nanosleep function.
2 2
3 Copyright (C) 1999-2000, 2002, 2004-2023 Free Software Foundation, 3 Copyright (C) 1999-2000, 2002, 2004-2023 Free Software Foundation, Inc.
4 Inc.
5 4
6 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/regex.c b/lib/regex.c
index 3beb0deb987..ff1176782e4 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -1,5 +1,5 @@
1/* Extended regular expression matching and search library. 1/* Extended regular expression matching and search library.
2 Copyright (C) 2002-2023 Free Software Foundation, Inc. 2 Copyright (C) 2002-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. 4 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
5 5
diff --git a/lib/regex.h b/lib/regex.h
index 9ef0252ffff..a7e0bd02757 100644
--- a/lib/regex.h
+++ b/lib/regex.h
@@ -1,6 +1,6 @@
1/* Definitions for data structures and routines for the regular 1/* Definitions for data structures and routines for the regular
2 expression library. 2 expression library.
3 Copyright (C) 1985, 1989-2023 Free Software Foundation, Inc. 3 Copyright (C) 1985, 1989-2022 Free Software Foundation, Inc.
4 This file is part of the GNU C Library. 4 This file is part of the GNU C Library.
5 5
6 The GNU C Library is free software; you can redistribute it and/or 6 The GNU C Library is free software; you can redistribute it and/or
diff --git a/lib/save-cwd.h b/lib/save-cwd.h
index f26319389c2..d089b0e2145 100644
--- a/lib/save-cwd.h
+++ b/lib/save-cwd.h
@@ -1,7 +1,7 @@
1/* Save and restore current working directory. 1/* Save and restore current working directory.
2 2
3 Copyright (C) 1995, 1997-1998, 2003, 2009-2023 Free Software 3 Copyright (C) 1995, 1997-1998, 2003, 2009-2023 Free Software Foundation,
4 Foundation, Inc. 4 Inc.
5 5
6 This program is free software: you can redistribute it and/or modify 6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
diff --git a/lib/sha1.c b/lib/sha1.c
index 3f6d86a285c..80f0b7a3314 100644
--- a/lib/sha1.c
+++ b/lib/sha1.c
@@ -1,8 +1,7 @@
1/* sha1.c - Functions to compute SHA1 message digest of files or 1/* sha1.c - Functions to compute SHA1 message digest of files or
2 memory blocks according to the NIST specification FIPS-180-1. 2 memory blocks according to the NIST specification FIPS-180-1.
3 3
4 Copyright (C) 2000-2001, 2003-2006, 2008-2023 Free Software 4 Copyright (C) 2000-2001, 2003-2006, 2008-2023 Free Software Foundation, Inc.
5 Foundation, Inc.
6 5
7 This file is free software: you can redistribute it and/or modify 6 This file is free software: you can redistribute it and/or modify
8 it under the terms of the GNU Lesser General Public License as 7 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/sig2str.c b/lib/sig2str.c
index 4f68cb7ca8a..c5219caaaed 100644
--- a/lib/sig2str.c
+++ b/lib/sig2str.c
@@ -1,7 +1,6 @@
1/* sig2str.c -- convert between signal names and numbers 1/* sig2str.c -- convert between signal names and numbers
2 2
3 Copyright (C) 2002, 2004, 2006, 2009-2023 Free Software Foundation, 3 Copyright (C) 2002, 2004, 2006, 2009-2023 Free Software Foundation, Inc.
4 Inc.
5 4
6 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
diff --git a/lib/stdio.in.h b/lib/stdio.in.h
index 59cbea3d47d..8b5ef4bd2dd 100644
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -951,9 +951,13 @@ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
951# endif 951# endif
952_GL_CXXALIAS_MDA (getw, int, (FILE *restrict stream)); 952_GL_CXXALIAS_MDA (getw, int, (FILE *restrict stream));
953# else 953# else
954# if @HAVE_DECL_GETW@
954_GL_CXXALIAS_SYS (getw, int, (FILE *restrict stream)); 955_GL_CXXALIAS_SYS (getw, int, (FILE *restrict stream));
956# endif
955# endif 957# endif
958# if __GLIBC__ >= 2
956_GL_CXXALIASWARN (getw); 959_GL_CXXALIASWARN (getw);
960# endif
957#endif 961#endif
958 962
959#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ 963#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
@@ -1190,9 +1194,13 @@ _GL_CXXALIASWARN (puts);
1190# endif 1194# endif
1191_GL_CXXALIAS_MDA (putw, int, (int w, FILE *restrict stream)); 1195_GL_CXXALIAS_MDA (putw, int, (int w, FILE *restrict stream));
1192# else 1196# else
1197# if @HAVE_DECL_PUTW@
1193_GL_CXXALIAS_SYS (putw, int, (int w, FILE *restrict stream)); 1198_GL_CXXALIAS_SYS (putw, int, (int w, FILE *restrict stream));
1199# endif
1194# endif 1200# endif
1201# if __GLIBC__ >= 2
1195_GL_CXXALIASWARN (putw); 1202_GL_CXXALIASWARN (putw);
1203# endif
1196#endif 1204#endif
1197 1205
1198#if @GNULIB_REMOVE@ 1206#if @GNULIB_REMOVE@
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h
index 4c8aad76124..b79e5f70965 100644
--- a/lib/stdlib.in.h
+++ b/lib/stdlib.in.h
@@ -1,7 +1,6 @@
1/* A GNU-like <stdlib.h>. 1/* A GNU-like <stdlib.h>.
2 2
3 Copyright (C) 1995, 2001-2004, 2006-2023 Free Software Foundation, 3 Copyright (C) 1995, 2001-2004, 2006-2023 Free Software Foundation, Inc.
4 Inc.
5 4
6 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/string.in.h b/lib/string.in.h
index 1e27deed982..b227a178873 100644
--- a/lib/string.in.h
+++ b/lib/string.in.h
@@ -59,10 +59,11 @@
59# include <unistd.h> 59# include <unistd.h>
60#endif 60#endif
61 61
62/* AIX 7.2 declares ffsl and ffsll in <strings.h>, not in <string.h>. */ 62/* AIX 7.2 and Android 13 declare ffsl and ffsll in <strings.h>, not in
63 <string.h>. */
63/* But in any case avoid namespace pollution on glibc systems. */ 64/* But in any case avoid namespace pollution on glibc systems. */
64#if ((@GNULIB_FFSL@ || @GNULIB_FFSLL@ || defined GNULIB_POSIXCHECK) \ 65#if ((@GNULIB_FFSL@ || @GNULIB_FFSLL@ || defined GNULIB_POSIXCHECK) \
65 && defined _AIX) \ 66 && (defined _AIX || defined __ANDROID__)) \
66 && ! defined __GLIBC__ 67 && ! defined __GLIBC__
67# include <strings.h> 68# include <strings.h>
68#endif 69#endif
@@ -82,7 +83,14 @@
82 can be freed via 'free'; it can be used only after declaring 'free'. */ 83 can be freed via 'free'; it can be used only after declaring 'free'. */
83/* Applies to: functions. Cannot be used on inline functions. */ 84/* Applies to: functions. Cannot be used on inline functions. */
84#ifndef _GL_ATTRIBUTE_DEALLOC_FREE 85#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
85# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) 86# if defined __cplusplus && defined __GNUC__ && !defined __clang__
87/* Work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108231> */
88# define _GL_ATTRIBUTE_DEALLOC_FREE \
89 _GL_ATTRIBUTE_DEALLOC ((void (*) (void *)) free, 1)
90# else
91# define _GL_ATTRIBUTE_DEALLOC_FREE \
92 _GL_ATTRIBUTE_DEALLOC (free, 1)
93# endif
86#endif 94#endif
87 95
88/* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly 96/* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly
@@ -336,7 +344,7 @@ _GL_CXXALIAS_SYS_CAST2 (memrchr,
336 || defined __clang__) 344 || defined __clang__)
337_GL_CXXALIASWARN1 (memrchr, void *, (void *, int, size_t) throw ()); 345_GL_CXXALIASWARN1 (memrchr, void *, (void *, int, size_t) throw ());
338_GL_CXXALIASWARN1 (memrchr, void const *, (void const *, int, size_t) throw ()); 346_GL_CXXALIASWARN1 (memrchr, void const *, (void const *, int, size_t) throw ());
339# else 347# elif __GLIBC__ >= 2
340_GL_CXXALIASWARN (memrchr); 348_GL_CXXALIASWARN (memrchr);
341# endif 349# endif
342#elif defined GNULIB_POSIXCHECK 350#elif defined GNULIB_POSIXCHECK
@@ -491,7 +499,7 @@ _GL_CXXALIAS_SYS_CAST2 (strchrnul,
491_GL_CXXALIASWARN1 (strchrnul, char *, (char *__s, int __c_in) throw ()); 499_GL_CXXALIASWARN1 (strchrnul, char *, (char *__s, int __c_in) throw ());
492_GL_CXXALIASWARN1 (strchrnul, char const *, 500_GL_CXXALIASWARN1 (strchrnul, char const *,
493 (char const *__s, int __c_in) throw ()); 501 (char const *__s, int __c_in) throw ());
494# else 502# elif __GLIBC__ >= 2
495_GL_CXXALIASWARN (strchrnul); 503_GL_CXXALIASWARN (strchrnul);
496# endif 504# endif
497#elif defined GNULIB_POSIXCHECK 505#elif defined GNULIB_POSIXCHECK
@@ -856,7 +864,7 @@ _GL_CXXALIASWARN1 (strcasestr, char *,
856 (char *haystack, const char *needle) throw ()); 864 (char *haystack, const char *needle) throw ());
857_GL_CXXALIASWARN1 (strcasestr, const char *, 865_GL_CXXALIASWARN1 (strcasestr, const char *,
858 (const char *haystack, const char *needle) throw ()); 866 (const char *haystack, const char *needle) throw ());
859# else 867# elif __GLIBC__ >= 2
860_GL_CXXALIASWARN (strcasestr); 868_GL_CXXALIASWARN (strcasestr);
861# endif 869# endif
862#elif defined GNULIB_POSIXCHECK 870#elif defined GNULIB_POSIXCHECK
diff --git a/lib/strtoimax.c b/lib/strtoimax.c
index d8d74e8c699..f7977e28e64 100644
--- a/lib/strtoimax.c
+++ b/lib/strtoimax.c
@@ -1,7 +1,7 @@
1/* Convert string representation of a number into an intmax_t value. 1/* Convert string representation of a number into an intmax_t value.
2 2
3 Copyright (C) 1999, 2001-2004, 2006, 2009-2023 Free Software 3 Copyright (C) 1999, 2001-2004, 2006, 2009-2023 Free Software Foundation,
4 Foundation, Inc. 4 Inc.
5 5
6 This file is free software: you can redistribute it and/or modify 6 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 7 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/strtol.c b/lib/strtol.c
index 6bc1f061877..d11269b2622 100644
--- a/lib/strtol.c
+++ b/lib/strtol.c
@@ -1,7 +1,7 @@
1/* Convert string representation of a number into an integer value. 1/* Convert string representation of a number into an integer value.
2 2
3 Copyright (C) 1991-1992, 1994-1999, 2003, 2005-2007, 2009-2023 Free 3 Copyright (C) 1991-1992, 1994-1999, 2003, 2005-2007, 2009-2023 Free Software
4 Software Foundation, Inc. 4 Foundation, Inc.
5 5
6 NOTE: The canonical source of this file is maintained with the GNU C 6 NOTE: The canonical source of this file is maintained with the GNU C
7 Library. Bugs can be reported to bug-glibc@gnu.org. 7 Library. Bugs can be reported to bug-glibc@gnu.org.
diff --git a/lib/strtoll.c b/lib/strtoll.c
index 919b453984c..9fdfa19b220 100644
--- a/lib/strtoll.c
+++ b/lib/strtoll.c
@@ -1,6 +1,6 @@
1/* Function to parse a 'long long int' from text. 1/* Function to parse a 'long long int' from text.
2 Copyright (C) 1995-1997, 1999, 2001, 2009-2023 Free Software 2 Copyright (C) 1995-1997, 1999, 2001, 2009-2023 Free Software Foundation,
3 Foundation, Inc. 3 Inc.
4 This file is part of the GNU C Library. 4 This file is part of the GNU C Library.
5 5
6 This file is free software: you can redistribute it and/or modify 6 This file is free software: you can redistribute it and/or modify
diff --git a/lib/time_r.c b/lib/time_r.c
index c8143a6900a..97be4fd0544 100644
--- a/lib/time_r.c
+++ b/lib/time_r.c
@@ -1,7 +1,6 @@
1/* Reentrant time functions like localtime_r. 1/* Reentrant time functions like localtime_r.
2 2
3 Copyright (C) 2003, 2006-2007, 2010-2023 Free Software Foundation, 3 Copyright (C) 2003, 2006-2007, 2010-2023 Free Software Foundation, Inc.
4 Inc.
5 4
6 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as
diff --git a/lib/timegm.c b/lib/timegm.c
index b47025a0545..a1b19efc392 100644
--- a/lib/timegm.c
+++ b/lib/timegm.c
@@ -1,6 +1,6 @@
1/* Convert UTC calendar time to simple time. Like mktime but assumes UTC. 1/* Convert UTC calendar time to simple time. Like mktime but assumes UTC.
2 2
3 Copyright (C) 1994-2023 Free Software Foundation, Inc. 3 Copyright (C) 1994-2022 Free Software Foundation, Inc.
4 This file is part of the GNU C Library. 4 This file is part of the GNU C Library.
5 5
6 The GNU C Library is free software; you can redistribute it and/or 6 The GNU C Library is free software; you can redistribute it and/or
diff --git a/lib/verify.h b/lib/verify.h
index ff8438c9269..17d6e78c816 100644
--- a/lib/verify.h
+++ b/lib/verify.h
@@ -223,8 +223,15 @@ template <int w>
223/* _GL_STATIC_ASSERT_H is defined if this code is copied into assert.h. */ 223/* _GL_STATIC_ASSERT_H is defined if this code is copied into assert.h. */
224#ifdef _GL_STATIC_ASSERT_H 224#ifdef _GL_STATIC_ASSERT_H
225# if !defined _GL_HAVE__STATIC_ASSERT1 && !defined _Static_assert 225# if !defined _GL_HAVE__STATIC_ASSERT1 && !defined _Static_assert
226# define _Static_assert(R, ...) \ 226# if !defined _MSC_VER || defined __clang__
227 _GL_VERIFY ((R), "static assertion failed", -) 227# define _Static_assert(...) \
228 _GL_VERIFY (__VA_ARGS__, "static assertion failed", -)
229# else
230 /* Work around MSVC preprocessor incompatibility with ISO C; see
231 <https://stackoverflow.com/questions/5134523/>. */
232# define _Static_assert(R, ...) \
233 _GL_VERIFY ((R), "static assertion failed", -)
234# endif
228# endif 235# endif
229# if (!defined static_assert \ 236# if (!defined static_assert \
230 && __STDC_VERSION__ < 202311 \ 237 && __STDC_VERSION__ < 202311 \
@@ -235,9 +242,8 @@ template <int w>
235/* MSVC 14 in C++ mode supports the two-arguments static_assert but not 242/* MSVC 14 in C++ mode supports the two-arguments static_assert but not
236 the one-argument static_assert, and it does not support _Static_assert. 243 the one-argument static_assert, and it does not support _Static_assert.
237 We have to play preprocessor tricks to distinguish the two cases. 244 We have to play preprocessor tricks to distinguish the two cases.
238 Since the MSVC preprocessor is not ISO C compliant (cf. 245 Since the MSVC preprocessor is not ISO C compliant (see above),.
239 <https://stackoverflow.com/questions/5134523/>), the solution is specific 246 the solution is specific to MSVC. */
240 to MSVC. */
241# define _GL_EXPAND(x) x 247# define _GL_EXPAND(x) x
242# define _GL_SA1(a1) static_assert ((a1), "static assertion failed") 248# define _GL_SA1(a1) static_assert ((a1), "static assertion failed")
243# define _GL_SA2 static_assert 249# define _GL_SA2 static_assert
diff --git a/lib/xalloc-oversized.h b/lib/xalloc-oversized.h
index 05ef7028137..5dbdfb5506a 100644
--- a/lib/xalloc-oversized.h
+++ b/lib/xalloc-oversized.h
@@ -1,7 +1,6 @@
1/* xalloc-oversized.h -- memory allocation size checking 1/* xalloc-oversized.h -- memory allocation size checking
2 2
3 Copyright (C) 1990-2000, 2003-2004, 2006-2023 Free Software 3 Copyright (C) 1990-2000, 2003-2004, 2006-2023 Free Software Foundation, Inc.
4 Foundation, Inc.
5 4
6 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as 6 it under the terms of the GNU Lesser General Public License as