aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2021-01-01 01:51:18 -0800
committerPaul Eggert2021-01-01 01:52:03 -0800
commit1b59478f4cf442f5201500b0a9c66f4332fce640 (patch)
tree02787d99a0476a28836390ee9e2ff332445381a1 /lib
parent50f3949119cd5bb2f058b90d14b2940a3a8a7a0e (diff)
downloademacs-1b59478f4cf442f5201500b0a9c66f4332fce640.tar.gz
emacs-1b59478f4cf442f5201500b0a9c66f4332fce640.zip
Update from Gnulib by running admin/merge-gnulib.
Diffstat (limited to 'lib')
-rw-r--r--lib/alloca.in.h4
-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/canonicalize-lgpl.c51
-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/faccessat.c14
-rw-r--r--lib/fcntl.in.h4
-rw-r--r--lib/filemode.h4
-rw-r--r--lib/filename.h20
-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.in117
-rw-r--r--lib/group-member.c4
-rw-r--r--lib/idx.h21
-rw-r--r--lib/malloc/scratch_buffer.h16
-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.c4
-rw-r--r--lib/md5.h4
-rw-r--r--lib/memmem.c4
-rw-r--r--lib/memrchr.c4
-rw-r--r--lib/mktime-internal.h2
-rw-r--r--lib/regex.c2
-rw-r--r--lib/regexec.c2
-rw-r--r--lib/sha1.c3
-rw-r--r--lib/sig2str.c3
-rw-r--r--lib/stdio.in.h90
-rw-r--r--lib/stdlib.in.h81
-rw-r--r--lib/string.in.h18
-rw-r--r--lib/strtoimax.c4
-rw-r--r--lib/strtol.c4
-rw-r--r--lib/strtoll.c4
-rw-r--r--lib/sys_stat.in.h81
-rw-r--r--lib/time.in.h2
-rw-r--r--lib/time_r.c3
-rw-r--r--lib/timegm.c2
-rw-r--r--lib/unistd.in.h349
-rw-r--r--lib/xalloc-oversized.h3
51 files changed, 648 insertions, 340 deletions
diff --git a/lib/alloca.in.h b/lib/alloca.in.h
index d1653081063..0a6137e037c 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-2021 Free Software 3 Copyright (C) 1995, 1999, 2001-2004, 2006-2021 Free Software Foundation,
4 Foundation, Inc. 4 Inc.
5 5
6 This program is free software; you can redistribute it and/or modify it 6 This program is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published 7 under the terms of the GNU General Public License as published
diff --git a/lib/binary-io.h b/lib/binary-io.h
index d56be18309d..8654fd2d39f 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-2021 Free Software Foundation, 2 Copyright (C) 2001, 2003, 2005, 2008-2021 Free Software Foundation, Inc.
3 Inc.
4 3
5 This program is free software: you can redistribute it and/or modify 4 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 5 it under the terms of the GNU General Public License as published by
diff --git a/lib/c-ctype.h b/lib/c-ctype.h
index 231611b7f6b..bf24a88310e 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-2021 Free Software Foundation, 8 Copyright (C) 2000-2003, 2006, 2008-2021 Free Software Foundation, Inc.
9 Inc.
10 9
11This program is free software; you can redistribute it and/or modify 10This program is free software; you can redistribute it and/or modify
12it under the terms of the GNU General Public License as published by 11it under the terms of the GNU General Public License as published by
diff --git a/lib/c-strcasecmp.c b/lib/c-strcasecmp.c
index 10f23e924a4..55479d6a338 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-2021 Free Software 2 Copyright (C) 1998-1999, 2005-2006, 2009-2021 Free Software Foundation, Inc.
3 Foundation, Inc.
4 3
5 This program is free software; you can redistribute it and/or modify 4 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 5 it under the terms of the GNU General Public License as published by
diff --git a/lib/c-strncasecmp.c b/lib/c-strncasecmp.c
index ad7bfeb7dbf..02bc0f2ecd5 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-2021 Free Software 2 Copyright (C) 1998-1999, 2005-2006, 2009-2021 Free Software Foundation, Inc.
3 Foundation, Inc.
4 3
5 This program is free software; you can redistribute it and/or modify 4 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 5 it under the terms of the GNU General Public License as published by
diff --git a/lib/canonicalize-lgpl.c b/lib/canonicalize-lgpl.c
index dcc6e12d9c5..b6dc3a447ab 100644
--- a/lib/canonicalize-lgpl.c
+++ b/lib/canonicalize-lgpl.c
@@ -32,7 +32,6 @@
32#include <fcntl.h> 32#include <fcntl.h>
33#include <limits.h> 33#include <limits.h>
34#include <stdbool.h> 34#include <stdbool.h>
35#include <stddef.h>
36#include <string.h> 35#include <string.h>
37#include <sys/stat.h> 36#include <sys/stat.h>
38#include <unistd.h> 37#include <unistd.h>
@@ -40,16 +39,11 @@
40#include <eloop-threshold.h> 39#include <eloop-threshold.h>
41#include <filename.h> 40#include <filename.h>
42#include <idx.h> 41#include <idx.h>
42#include <intprops.h>
43#include <scratch_buffer.h> 43#include <scratch_buffer.h>
44 44
45#ifdef _LIBC 45#ifdef _LIBC
46# include <shlib-compat.h> 46# include <shlib-compat.h>
47# include <sysdep.h>
48# ifdef __ASSUME_FACCESSAT2
49# define FACCESSAT_NEVER_EOVERFLOWS __ASSUME_FACCESSAT2
50# else
51# define FACCESSAT_NEVER_EOVERFLOWS true
52# endif
53# define GCC_LINT 1 47# define GCC_LINT 1
54# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) 48# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
55#else 49#else
@@ -91,14 +85,15 @@
91# define IF_LINT(Code) /* empty */ 85# define IF_LINT(Code) /* empty */
92#endif 86#endif
93 87
88/* True if adding two valid object sizes might overflow idx_t.
89 As a practical matter, this cannot happen on 64-bit machines. */
90enum { NARROW_ADDRESSES = IDX_MAX >> 31 >> 31 == 0 };
91
94#ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT 92#ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT
95# define DOUBLE_SLASH_IS_DISTINCT_ROOT false 93# define DOUBLE_SLASH_IS_DISTINCT_ROOT false
96#endif 94#endif
97#ifndef FACCESSAT_NEVER_EOVERFLOWS
98# define FACCESSAT_NEVER_EOVERFLOWS false
99#endif
100 95
101#if !FUNC_REALPATH_WORKS || defined _LIBC 96#if defined _LIBC || !FUNC_REALPATH_WORKS
102 97
103/* Return true if FILE's existence can be shown, false (setting errno) 98/* Return true if FILE's existence can be shown, false (setting errno)
104 otherwise. Follow symbolic links. */ 99 otherwise. Follow symbolic links. */
@@ -106,14 +101,11 @@ static bool
106file_accessible (char const *file) 101file_accessible (char const *file)
107{ 102{
108# if defined _LIBC || HAVE_FACCESSAT 103# if defined _LIBC || HAVE_FACCESSAT
109 int r = __faccessat (AT_FDCWD, file, F_OK, AT_EACCESS); 104 return __faccessat (AT_FDCWD, file, F_OK, AT_EACCESS) == 0;
110# else 105# else
111 struct stat st; 106 struct stat st;
112 int r = __stat (file, &st); 107 return __stat (file, &st) == 0 || errno == EOVERFLOW;
113# endif 108# endif
114
115 return ((!FACCESSAT_NEVER_EOVERFLOWS && r < 0 && errno == EOVERFLOW)
116 || r == 0);
117} 109}
118 110
119/* True if concatenating END as a suffix to a file name means that the 111/* True if concatenating END as a suffix to a file name means that the
@@ -350,7 +342,12 @@ realpath_stk (const char *name, char *resolved,
350 idx_t end_idx IF_LINT (= 0); 342 idx_t end_idx IF_LINT (= 0);
351 if (end_in_extra_buffer) 343 if (end_in_extra_buffer)
352 end_idx = end - extra_buf; 344 end_idx = end - extra_buf;
353 idx_t len = strlen (end); 345 size_t len = strlen (end);
346 if (NARROW_ADDRESSES && INT_ADD_OVERFLOW (len, n))
347 {
348 __set_errno (ENOMEM);
349 goto error_nomem;
350 }
354 while (extra_buffer.length <= len + n) 351 while (extra_buffer.length <= len + n)
355 { 352 {
356 if (!scratch_buffer_grow_preserve (&extra_buffer)) 353 if (!scratch_buffer_grow_preserve (&extra_buffer))
@@ -413,24 +410,14 @@ error:
413error_nomem: 410error_nomem:
414 scratch_buffer_free (&extra_buffer); 411 scratch_buffer_free (&extra_buffer);
415 scratch_buffer_free (&link_buffer); 412 scratch_buffer_free (&link_buffer);
416 if (failed || rname == resolved)
417 scratch_buffer_free (rname_buf);
418
419 if (failed)
420 return NULL;
421 413
422 if (rname == resolved) 414 if (failed || rname == resolved)
423 return rname;
424 idx_t rname_size = dest - rname;
425 if (rname == rname_on_stack)
426 { 415 {
427 rname = malloc (rname_size); 416 scratch_buffer_free (rname_buf);
428 if (rname == NULL) 417 return failed ? NULL : resolved;
429 return NULL;
430 return memcpy (rname, rname_on_stack, rname_size);
431 } 418 }
432 char *result = realloc (rname, rname_size); 419
433 return result != NULL ? result : rname; 420 return scratch_buffer_dupfree (rname_buf, dest - rname);
434} 421}
435 422
436/* Return the canonical absolute name of file NAME. A canonical name 423/* Return the canonical absolute name of file NAME. A canonical name
diff --git a/lib/careadlinkat.c b/lib/careadlinkat.c
index c6d7c35effa..18cfc114b69 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-2021 Free Software 3 Copyright (C) 2001, 2003-2004, 2007, 2009-2021 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/cloexec.c b/lib/cloexec.c
index 3286ad34323..8363ddaa609 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-2021 Free Software Foundation, 3 Copyright (C) 1991, 2004-2006, 2009-2021 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/close-stream.c b/lib/close-stream.c
index 11cc11fe99e..86f6d6e1de2 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-2021 Free Software Foundation, 3 Copyright (C) 1998-2002, 2004, 2006-2021 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 570f09d6be0..1cac430eddd 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-2021 Free 3 Copyright (C) 1988-1989, 1992-1995, 2001-2004, 2006-2021 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 0a17c811ac5..c4a0a29fbd0 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-2021 Free Software Foundation, 3 Copyright (C) 1999, 2004-2007, 2009-2021 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/faccessat.c b/lib/faccessat.c
index 93e99b48f0c..3a776466cf2 100644
--- a/lib/faccessat.c
+++ b/lib/faccessat.c
@@ -32,13 +32,6 @@
32#include <sys/stat.h> 32#include <sys/stat.h>
33#undef _GL_INCLUDING_UNISTD_H 33#undef _GL_INCLUDING_UNISTD_H
34 34
35#ifndef FACCESSAT_NEVER_EOVERFLOWS
36# define FACCESSAT_NEVER_EOVERFLOWS 0
37#endif
38#ifndef LSTAT_FOLLOWS_SLASHED_SYMLINK
39# define LSTAT_FOLLOWS_SLASHED_SYMLINK 0
40#endif
41
42#if HAVE_FACCESSAT 35#if HAVE_FACCESSAT
43static int 36static int
44orig_faccessat (int fd, char const *name, int mode, int flag) 37orig_faccessat (int fd, char const *name, int mode, int flag)
@@ -66,12 +59,7 @@ rpl_faccessat (int fd, char const *file, int mode, int flag)
66{ 59{
67 int result = orig_faccessat (fd, file, mode, flag); 60 int result = orig_faccessat (fd, file, mode, flag);
68 61
69 if (result != 0) 62 if (result == 0 && file[strlen (file) - 1] == '/')
70 {
71 if (!FACCESSAT_NEVER_EOVERFLOWS && mode == F_OK && errno == EOVERFLOW)
72 return 0;
73 }
74 else if (!LSTAT_FOLLOWS_SLASHED_SYMLINK && file[strlen (file) - 1] == '/')
75 { 63 {
76 struct stat st; 64 struct stat st;
77 result = fstatat (fd, file, &st, 0); 65 result = fstatat (fd, file, &st, 0);
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h
index cbc4af4dc47..0b14467c54d 100644
--- a/lib/fcntl.in.h
+++ b/lib/fcntl.in.h
@@ -112,7 +112,7 @@ _GL_CXXALIASWARN (creat);
112/* Assume creat is always declared. */ 112/* Assume creat is always declared. */
113_GL_WARN_ON_USE (creat, "creat is not always POSIX compliant - " 113_GL_WARN_ON_USE (creat, "creat is not always POSIX compliant - "
114 "use gnulib module creat for portability"); 114 "use gnulib module creat for portability");
115#else 115#elif @GNULIB_MDA_CREAT@
116/* On native Windows, map 'creat' to '_creat', so that -loldnames is not 116/* On native Windows, map 'creat' to '_creat', so that -loldnames is not
117 required. In C++ with GNULIB_NAMESPACE, avoid differences between 117 required. In C++ with GNULIB_NAMESPACE, avoid differences between
118 platforms by defining GNULIB_NAMESPACE::creat always. */ 118 platforms by defining GNULIB_NAMESPACE::creat always. */
@@ -186,7 +186,7 @@ _GL_CXXALIASWARN (open);
186/* Assume open is always declared. */ 186/* Assume open is always declared. */
187_GL_WARN_ON_USE (open, "open is not always POSIX compliant - " 187_GL_WARN_ON_USE (open, "open is not always POSIX compliant - "
188 "use gnulib module open for portability"); 188 "use gnulib module open for portability");
189#else 189#elif @GNULIB_MDA_OPEN@
190/* On native Windows, map 'open' to '_open', so that -loldnames is not 190/* On native Windows, map 'open' to '_open', so that -loldnames is not
191 required. In C++ with GNULIB_NAMESPACE, avoid differences between 191 required. In C++ with GNULIB_NAMESPACE, avoid differences between
192 platforms by defining GNULIB_NAMESPACE::open always. */ 192 platforms by defining GNULIB_NAMESPACE::open always. */
diff --git a/lib/filemode.h b/lib/filemode.h
index dc240db270c..a02facb757d 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-2021 Free Software 3 Copyright (C) 1998-1999, 2003, 2006, 2009-2021 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 5bd86f48050..541ffec0d53 100644
--- a/lib/filename.h
+++ b/lib/filename.h
@@ -1,18 +1,20 @@
1/* Basic filename support macros. 1/* Basic filename support macros.
2 Copyright (C) 2001-2004, 2007-2021 Free Software Foundation, Inc. 2 Copyright (C) 2001-2004, 2007-2021 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
3 4
4 This program is free software: you can redistribute it and/or modify 5 The GNU C Library is free software; you can redistribute it and/or
5 it under the terms of the GNU General Public License as published by 6 modify it under the terms of the GNU General Public
6 the Free Software Foundation; either version 3 of the License, or 7 License as published by the Free Software Foundation; either
7 (at your option) any later version. 8 version 3 of the License, or (at your option) any later version.
8 9
9 This program is distributed in the hope that it will be useful, 10 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 GNU General Public License for more details. 13 General Public License for more details.
13 14
14 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */ 16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
16 18
17/* From Paul Eggert and Jim Meyering. */ 19/* From Paul Eggert and Jim Meyering. */
18 20
diff --git a/lib/fpending.c b/lib/fpending.c
index abcb596174a..7c61f7eea75 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-2021 Free Software 2 Copyright (C) 2000, 2004, 2006-2007, 2009-2021 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 246b62ffb3d..016341bab57 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-2021 Free Software 3 Copyright (C) 2000, 2003, 2005-2006, 2009-2021 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 57116f28e56..35de136cd8e 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-2021 Free 3 Copyright (C) 1991-1992, 1996, 1998-1999, 2002-2006, 2009-2021 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/getgroups.c b/lib/getgroups.c
index a1bbb6617cd..af602a74d3a 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-2021 Free Software Foundation, 3 Copyright (C) 1996, 1999, 2003, 2006-2021 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/getloadavg.c b/lib/getloadavg.c
index 8668ee3f2a6..d42d0cd2797 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-2021 Free 3 Copyright (C) 1985-1989, 1991-1995, 1997, 1999-2000, 2003-2021 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 8c7c3a61324..3552157efd9 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-2021 Free 2 Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2021 Free Software
3 Software Foundation, Inc. 3 Foundation, 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/gettime.c b/lib/gettime.c
index 82fac300024..fb721b2cda1 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-2021 Free Software Foundation, 3 Copyright (C) 2002, 2004-2007, 2009-2021 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/gettimeofday.c b/lib/gettimeofday.c
index 363a2acb536..b1c93e1c3a3 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-2021 Free Software 3 Copyright (C) 2001-2003, 2005-2007, 2009-2021 Free Software Foundation, Inc.
4 Foundation, 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/gnulib.mk.in b/lib/gnulib.mk.in
index 60358f717fb..c457ac61209 100644
--- a/lib/gnulib.mk.in
+++ b/lib/gnulib.mk.in
@@ -242,7 +242,6 @@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@
242GETOPT_H = @GETOPT_H@ 242GETOPT_H = @GETOPT_H@
243GFILENOTIFY_CFLAGS = @GFILENOTIFY_CFLAGS@ 243GFILENOTIFY_CFLAGS = @GFILENOTIFY_CFLAGS@
244GFILENOTIFY_LIBS = @GFILENOTIFY_LIBS@ 244GFILENOTIFY_LIBS = @GFILENOTIFY_LIBS@
245GLIBC21 = @GLIBC21@
246GL_COND_LIBTOOL = @GL_COND_LIBTOOL@ 245GL_COND_LIBTOOL = @GL_COND_LIBTOOL@
247GL_GENERATE_ALLOCA_H = @GL_GENERATE_ALLOCA_H@ 246GL_GENERATE_ALLOCA_H = @GL_GENERATE_ALLOCA_H@
248GL_GENERATE_BYTESWAP_H = @GL_GENERATE_BYTESWAP_H@ 247GL_GENERATE_BYTESWAP_H = @GL_GENERATE_BYTESWAP_H@
@@ -277,6 +276,13 @@ GNULIB_DUP2 = @GNULIB_DUP2@
277GNULIB_DUP3 = @GNULIB_DUP3@ 276GNULIB_DUP3 = @GNULIB_DUP3@
278GNULIB_ENVIRON = @GNULIB_ENVIRON@ 277GNULIB_ENVIRON = @GNULIB_ENVIRON@
279GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ 278GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@
279GNULIB_EXECL = @GNULIB_EXECL@
280GNULIB_EXECLE = @GNULIB_EXECLE@
281GNULIB_EXECLP = @GNULIB_EXECLP@
282GNULIB_EXECV = @GNULIB_EXECV@
283GNULIB_EXECVE = @GNULIB_EXECVE@
284GNULIB_EXECVP = @GNULIB_EXECVP@
285GNULIB_EXECVPE = @GNULIB_EXECVPE@
280GNULIB_EXPLICIT_BZERO = @GNULIB_EXPLICIT_BZERO@ 286GNULIB_EXPLICIT_BZERO = @GNULIB_EXPLICIT_BZERO@
281GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ 287GNULIB_FACCESSAT = @GNULIB_FACCESSAT@
282GNULIB_FCHDIR = @GNULIB_FCHDIR@ 288GNULIB_FCHDIR = @GNULIB_FCHDIR@
@@ -362,10 +368,51 @@ GNULIB_MBSSPN = @GNULIB_MBSSPN@
362GNULIB_MBSSTR = @GNULIB_MBSSTR@ 368GNULIB_MBSSTR = @GNULIB_MBSSTR@
363GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ 369GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
364GNULIB_MBTOWC = @GNULIB_MBTOWC@ 370GNULIB_MBTOWC = @GNULIB_MBTOWC@
371GNULIB_MDA_ACCESS = @GNULIB_MDA_ACCESS@
372GNULIB_MDA_CHDIR = @GNULIB_MDA_CHDIR@
373GNULIB_MDA_CHMOD = @GNULIB_MDA_CHMOD@
374GNULIB_MDA_CLOSE = @GNULIB_MDA_CLOSE@
375GNULIB_MDA_CREAT = @GNULIB_MDA_CREAT@
376GNULIB_MDA_DUP = @GNULIB_MDA_DUP@
377GNULIB_MDA_DUP2 = @GNULIB_MDA_DUP2@
378GNULIB_MDA_ECVT = @GNULIB_MDA_ECVT@
379GNULIB_MDA_EXECL = @GNULIB_MDA_EXECL@
380GNULIB_MDA_EXECLE = @GNULIB_MDA_EXECLE@
381GNULIB_MDA_EXECLP = @GNULIB_MDA_EXECLP@
382GNULIB_MDA_EXECV = @GNULIB_MDA_EXECV@
383GNULIB_MDA_EXECVE = @GNULIB_MDA_EXECVE@
384GNULIB_MDA_EXECVP = @GNULIB_MDA_EXECVP@
385GNULIB_MDA_EXECVPE = @GNULIB_MDA_EXECVPE@
386GNULIB_MDA_FCLOSEALL = @GNULIB_MDA_FCLOSEALL@
387GNULIB_MDA_FCVT = @GNULIB_MDA_FCVT@
388GNULIB_MDA_FDOPEN = @GNULIB_MDA_FDOPEN@
389GNULIB_MDA_FILENO = @GNULIB_MDA_FILENO@
390GNULIB_MDA_GCVT = @GNULIB_MDA_GCVT@
391GNULIB_MDA_GETCWD = @GNULIB_MDA_GETCWD@
392GNULIB_MDA_GETPID = @GNULIB_MDA_GETPID@
393GNULIB_MDA_GETW = @GNULIB_MDA_GETW@
394GNULIB_MDA_ISATTY = @GNULIB_MDA_ISATTY@
395GNULIB_MDA_LSEEK = @GNULIB_MDA_LSEEK@
396GNULIB_MDA_MEMCCPY = @GNULIB_MDA_MEMCCPY@
397GNULIB_MDA_MKDIR = @GNULIB_MDA_MKDIR@
398GNULIB_MDA_MKTEMP = @GNULIB_MDA_MKTEMP@
399GNULIB_MDA_OPEN = @GNULIB_MDA_OPEN@
400GNULIB_MDA_PUTENV = @GNULIB_MDA_PUTENV@
401GNULIB_MDA_PUTW = @GNULIB_MDA_PUTW@
402GNULIB_MDA_READ = @GNULIB_MDA_READ@
403GNULIB_MDA_RMDIR = @GNULIB_MDA_RMDIR@
404GNULIB_MDA_STRDUP = @GNULIB_MDA_STRDUP@
405GNULIB_MDA_SWAB = @GNULIB_MDA_SWAB@
406GNULIB_MDA_TEMPNAM = @GNULIB_MDA_TEMPNAM@
407GNULIB_MDA_TZSET = @GNULIB_MDA_TZSET@
408GNULIB_MDA_UMASK = @GNULIB_MDA_UMASK@
409GNULIB_MDA_UNLINK = @GNULIB_MDA_UNLINK@
410GNULIB_MDA_WRITE = @GNULIB_MDA_WRITE@
365GNULIB_MEMCHR = @GNULIB_MEMCHR@ 411GNULIB_MEMCHR = @GNULIB_MEMCHR@
366GNULIB_MEMMEM = @GNULIB_MEMMEM@ 412GNULIB_MEMMEM = @GNULIB_MEMMEM@
367GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ 413GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
368GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ 414GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
415GNULIB_MKDIR = @GNULIB_MKDIR@
369GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ 416GNULIB_MKDIRAT = @GNULIB_MKDIRAT@
370GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ 417GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
371GNULIB_MKFIFO = @GNULIB_MKFIFO@ 418GNULIB_MKFIFO = @GNULIB_MKFIFO@
@@ -567,6 +614,7 @@ HAVE_DIRENT_H = @HAVE_DIRENT_H@
567HAVE_DPRINTF = @HAVE_DPRINTF@ 614HAVE_DPRINTF = @HAVE_DPRINTF@
568HAVE_DUP3 = @HAVE_DUP3@ 615HAVE_DUP3 = @HAVE_DUP3@
569HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ 616HAVE_EUIDACCESS = @HAVE_EUIDACCESS@
617HAVE_EXECVPE = @HAVE_EXECVPE@
570HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ 618HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@
571HAVE_FACCESSAT = @HAVE_FACCESSAT@ 619HAVE_FACCESSAT = @HAVE_FACCESSAT@
572HAVE_FCHDIR = @HAVE_FCHDIR@ 620HAVE_FCHDIR = @HAVE_FCHDIR@
@@ -886,6 +934,13 @@ REPLACE_DIRFD = @REPLACE_DIRFD@
886REPLACE_DPRINTF = @REPLACE_DPRINTF@ 934REPLACE_DPRINTF = @REPLACE_DPRINTF@
887REPLACE_DUP = @REPLACE_DUP@ 935REPLACE_DUP = @REPLACE_DUP@
888REPLACE_DUP2 = @REPLACE_DUP2@ 936REPLACE_DUP2 = @REPLACE_DUP2@
937REPLACE_EXECL = @REPLACE_EXECL@
938REPLACE_EXECLE = @REPLACE_EXECLE@
939REPLACE_EXECLP = @REPLACE_EXECLP@
940REPLACE_EXECV = @REPLACE_EXECV@
941REPLACE_EXECVE = @REPLACE_EXECVE@
942REPLACE_EXECVP = @REPLACE_EXECVP@
943REPLACE_EXECVPE = @REPLACE_EXECVPE@
889REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ 944REPLACE_FACCESSAT = @REPLACE_FACCESSAT@
890REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ 945REPLACE_FCHMODAT = @REPLACE_FCHMODAT@
891REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ 946REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@
@@ -1111,11 +1166,11 @@ gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b = @gl_GNULIB_ENABLED_260941c0
1111gl_GNULIB_ENABLED_5264294aa0a5557541b53c8c741f7f31 = @gl_GNULIB_ENABLED_5264294aa0a5557541b53c8c741f7f31@ 1166gl_GNULIB_ENABLED_5264294aa0a5557541b53c8c741f7f31 = @gl_GNULIB_ENABLED_5264294aa0a5557541b53c8c741f7f31@
1112gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c = @gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c@ 1167gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c = @gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c@
1113gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec = @gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec@ 1168gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec = @gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec@
1169gl_GNULIB_ENABLED_925677f0343de64b89a9f0c790b4104c = @gl_GNULIB_ENABLED_925677f0343de64b89a9f0c790b4104c@
1114gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1 = @gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1@ 1170gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1 = @gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1@
1115gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36 = @gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36@ 1171gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36 = @gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36@
1116gl_GNULIB_ENABLED_cloexec = @gl_GNULIB_ENABLED_cloexec@ 1172gl_GNULIB_ENABLED_cloexec = @gl_GNULIB_ENABLED_cloexec@
1117gl_GNULIB_ENABLED_dirfd = @gl_GNULIB_ENABLED_dirfd@ 1173gl_GNULIB_ENABLED_dirfd = @gl_GNULIB_ENABLED_dirfd@
1118gl_GNULIB_ENABLED_ef07dc4b3077c11ea9cef586db4e5955 = @gl_GNULIB_ENABLED_ef07dc4b3077c11ea9cef586db4e5955@
1119gl_GNULIB_ENABLED_euidaccess = @gl_GNULIB_ENABLED_euidaccess@ 1174gl_GNULIB_ENABLED_euidaccess = @gl_GNULIB_ENABLED_euidaccess@
1120gl_GNULIB_ENABLED_getdtablesize = @gl_GNULIB_ENABLED_getdtablesize@ 1175gl_GNULIB_ENABLED_getdtablesize = @gl_GNULIB_ENABLED_getdtablesize@
1121gl_GNULIB_ENABLED_getgroups = @gl_GNULIB_ENABLED_getgroups@ 1176gl_GNULIB_ENABLED_getgroups = @gl_GNULIB_ENABLED_getgroups@
@@ -1680,6 +1735,8 @@ fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
1680 -e 's/@''GNULIB_NONBLOCKING''@/$(GNULIB_NONBLOCKING)/g' \ 1735 -e 's/@''GNULIB_NONBLOCKING''@/$(GNULIB_NONBLOCKING)/g' \
1681 -e 's/@''GNULIB_OPEN''@/$(GNULIB_OPEN)/g' \ 1736 -e 's/@''GNULIB_OPEN''@/$(GNULIB_OPEN)/g' \
1682 -e 's/@''GNULIB_OPENAT''@/$(GNULIB_OPENAT)/g' \ 1737 -e 's/@''GNULIB_OPENAT''@/$(GNULIB_OPENAT)/g' \
1738 -e 's/@''GNULIB_MDA_CREAT''@/$(GNULIB_MDA_CREAT)/g' \
1739 -e 's/@''GNULIB_MDA_OPEN''@/$(GNULIB_MDA_OPEN)/g' \
1683 -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \ 1740 -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \
1684 -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \ 1741 -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \
1685 -e 's|@''REPLACE_CREAT''@|$(REPLACE_CREAT)|g' \ 1742 -e 's|@''REPLACE_CREAT''@|$(REPLACE_CREAT)|g' \
@@ -2361,7 +2418,7 @@ endif
2361ifeq (,$(OMIT_GNULIB_MODULE_scratch_buffer)) 2418ifeq (,$(OMIT_GNULIB_MODULE_scratch_buffer))
2362 2419
2363ifneq (,$(gl_GNULIB_ENABLED_scratch_buffer)) 2420ifneq (,$(gl_GNULIB_ENABLED_scratch_buffer))
2364libgnu_a_SOURCES += malloc/scratch_buffer_grow.c malloc/scratch_buffer_grow_preserve.c malloc/scratch_buffer_set_array_size.c 2421libgnu_a_SOURCES += malloc/scratch_buffer_dupfree.c malloc/scratch_buffer_grow.c malloc/scratch_buffer_grow_preserve.c malloc/scratch_buffer_set_array_size.c
2365 2422
2366endif 2423endif
2367EXTRA_DIST += malloc/scratch_buffer.h scratch_buffer.h 2424EXTRA_DIST += malloc/scratch_buffer.h scratch_buffer.h
@@ -2679,6 +2736,12 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
2679 -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GNULIB_VPRINTF_POSIX)/g' \ 2736 -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GNULIB_VPRINTF_POSIX)/g' \
2680 -e 's/@''GNULIB_VSNPRINTF''@/$(GNULIB_VSNPRINTF)/g' \ 2737 -e 's/@''GNULIB_VSNPRINTF''@/$(GNULIB_VSNPRINTF)/g' \
2681 -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GNULIB_VSPRINTF_POSIX)/g' \ 2738 -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GNULIB_VSPRINTF_POSIX)/g' \
2739 -e 's/@''GNULIB_MDA_FCLOSEALL''@/$(GNULIB_MDA_FCLOSEALL)/g' \
2740 -e 's/@''GNULIB_MDA_FDOPEN''@/$(GNULIB_MDA_FDOPEN)/g' \
2741 -e 's/@''GNULIB_MDA_FILENO''@/$(GNULIB_MDA_FILENO)/g' \
2742 -e 's/@''GNULIB_MDA_GETW''@/$(GNULIB_MDA_GETW)/g' \
2743 -e 's/@''GNULIB_MDA_PUTW''@/$(GNULIB_MDA_PUTW)/g' \
2744 -e 's/@''GNULIB_MDA_TEMPNAM''@/$(GNULIB_MDA_TEMPNAM)/g' \
2682 < $(srcdir)/stdio.in.h | \ 2745 < $(srcdir)/stdio.in.h | \
2683 sed -e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \ 2746 sed -e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \
2684 -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ 2747 -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
@@ -2796,6 +2859,11 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
2796 -e 's/@''GNULIB_UNLOCKPT''@/$(GNULIB_UNLOCKPT)/g' \ 2859 -e 's/@''GNULIB_UNLOCKPT''@/$(GNULIB_UNLOCKPT)/g' \
2797 -e 's/@''GNULIB_UNSETENV''@/$(GNULIB_UNSETENV)/g' \ 2860 -e 's/@''GNULIB_UNSETENV''@/$(GNULIB_UNSETENV)/g' \
2798 -e 's/@''GNULIB_WCTOMB''@/$(GNULIB_WCTOMB)/g' \ 2861 -e 's/@''GNULIB_WCTOMB''@/$(GNULIB_WCTOMB)/g' \
2862 -e 's/@''GNULIB_MDA_ECVT''@/$(GNULIB_MDA_ECVT)/g' \
2863 -e 's/@''GNULIB_MDA_FCVT''@/$(GNULIB_MDA_FCVT)/g' \
2864 -e 's/@''GNULIB_MDA_GCVT''@/$(GNULIB_MDA_GCVT)/g' \
2865 -e 's/@''GNULIB_MDA_MKTEMP''@/$(GNULIB_MDA_MKTEMP)/g' \
2866 -e 's/@''GNULIB_MDA_PUTENV''@/$(GNULIB_MDA_PUTENV)/g' \
2799 < $(srcdir)/stdlib.in.h | \ 2867 < $(srcdir)/stdlib.in.h | \
2800 sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \ 2868 sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
2801 -e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \ 2869 -e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \
@@ -2941,6 +3009,8 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
2941 -e 's/@''GNULIB_SIGDESCR_NP''@/$(GNULIB_SIGDESCR_NP)/g' \ 3009 -e 's/@''GNULIB_SIGDESCR_NP''@/$(GNULIB_SIGDESCR_NP)/g' \
2942 -e 's/@''GNULIB_STRSIGNAL''@/$(GNULIB_STRSIGNAL)/g' \ 3010 -e 's/@''GNULIB_STRSIGNAL''@/$(GNULIB_STRSIGNAL)/g' \
2943 -e 's/@''GNULIB_STRVERSCMP''@/$(GNULIB_STRVERSCMP)/g' \ 3011 -e 's/@''GNULIB_STRVERSCMP''@/$(GNULIB_STRVERSCMP)/g' \
3012 -e 's/@''GNULIB_MDA_MEMCCPY''@/$(GNULIB_MDA_MEMCCPY)/g' \
3013 -e 's/@''GNULIB_MDA_STRDUP''@/$(GNULIB_MDA_STRDUP)/g' \
2944 < $(srcdir)/string.in.h | \ 3014 < $(srcdir)/string.in.h | \
2945 sed -e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \ 3015 sed -e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \
2946 -e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \ 3016 -e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \
@@ -3136,6 +3206,7 @@ sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU
3136 -e 's/@''GNULIB_GETUMASK''@/$(GNULIB_GETUMASK)/g' \ 3206 -e 's/@''GNULIB_GETUMASK''@/$(GNULIB_GETUMASK)/g' \
3137 -e 's/@''GNULIB_LCHMOD''@/$(GNULIB_LCHMOD)/g' \ 3207 -e 's/@''GNULIB_LCHMOD''@/$(GNULIB_LCHMOD)/g' \
3138 -e 's/@''GNULIB_LSTAT''@/$(GNULIB_LSTAT)/g' \ 3208 -e 's/@''GNULIB_LSTAT''@/$(GNULIB_LSTAT)/g' \
3209 -e 's/@''GNULIB_MKDIR''@/$(GNULIB_MKDIR)/g' \
3139 -e 's/@''GNULIB_MKDIRAT''@/$(GNULIB_MKDIRAT)/g' \ 3210 -e 's/@''GNULIB_MKDIRAT''@/$(GNULIB_MKDIRAT)/g' \
3140 -e 's/@''GNULIB_MKFIFO''@/$(GNULIB_MKFIFO)/g' \ 3211 -e 's/@''GNULIB_MKFIFO''@/$(GNULIB_MKFIFO)/g' \
3141 -e 's/@''GNULIB_MKFIFOAT''@/$(GNULIB_MKFIFOAT)/g' \ 3212 -e 's/@''GNULIB_MKFIFOAT''@/$(GNULIB_MKFIFOAT)/g' \
@@ -3144,6 +3215,9 @@ sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU
3144 -e 's/@''GNULIB_STAT''@/$(GNULIB_STAT)/g' \ 3215 -e 's/@''GNULIB_STAT''@/$(GNULIB_STAT)/g' \
3145 -e 's/@''GNULIB_UTIMENSAT''@/$(GNULIB_UTIMENSAT)/g' \ 3216 -e 's/@''GNULIB_UTIMENSAT''@/$(GNULIB_UTIMENSAT)/g' \
3146 -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GNULIB_OVERRIDES_STRUCT_STAT)/g' \ 3217 -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GNULIB_OVERRIDES_STRUCT_STAT)/g' \
3218 -e 's/@''GNULIB_MDA_CHMOD''@/$(GNULIB_MDA_CHMOD)/g' \
3219 -e 's/@''GNULIB_MDA_MKDIR''@/$(GNULIB_MDA_MKDIR)/g' \
3220 -e 's/@''GNULIB_MDA_UMASK''@/$(GNULIB_MDA_UMASK)/g' \
3147 -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ 3221 -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
3148 -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ 3222 -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
3149 -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ 3223 -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
@@ -3279,6 +3353,7 @@ time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
3279 -e 's/@''GNULIB_TIME_R''@/$(GNULIB_TIME_R)/g' \ 3353 -e 's/@''GNULIB_TIME_R''@/$(GNULIB_TIME_R)/g' \
3280 -e 's/@''GNULIB_TIME_RZ''@/$(GNULIB_TIME_RZ)/g' \ 3354 -e 's/@''GNULIB_TIME_RZ''@/$(GNULIB_TIME_RZ)/g' \
3281 -e 's/@''GNULIB_TZSET''@/$(GNULIB_TZSET)/g' \ 3355 -e 's/@''GNULIB_TZSET''@/$(GNULIB_TZSET)/g' \
3356 -e 's/@''GNULIB_MDA_TZSET''@/$(GNULIB_MDA_TZSET)/g' \
3282 -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \ 3357 -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
3283 -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ 3358 -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
3284 -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ 3359 -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
@@ -3407,6 +3482,13 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
3407 -e 's/@''GNULIB_DUP3''@/$(GNULIB_DUP3)/g' \ 3482 -e 's/@''GNULIB_DUP3''@/$(GNULIB_DUP3)/g' \
3408 -e 's/@''GNULIB_ENVIRON''@/$(GNULIB_ENVIRON)/g' \ 3483 -e 's/@''GNULIB_ENVIRON''@/$(GNULIB_ENVIRON)/g' \
3409 -e 's/@''GNULIB_EUIDACCESS''@/$(GNULIB_EUIDACCESS)/g' \ 3484 -e 's/@''GNULIB_EUIDACCESS''@/$(GNULIB_EUIDACCESS)/g' \
3485 -e 's/@''GNULIB_EXECL''@/$(GNULIB_EXECL)/g' \
3486 -e 's/@''GNULIB_EXECLE''@/$(GNULIB_EXECLE)/g' \
3487 -e 's/@''GNULIB_EXECLP''@/$(GNULIB_EXECLP)/g' \
3488 -e 's/@''GNULIB_EXECV''@/$(GNULIB_EXECV)/g' \
3489 -e 's/@''GNULIB_EXECVE''@/$(GNULIB_EXECVE)/g' \
3490 -e 's/@''GNULIB_EXECVP''@/$(GNULIB_EXECVP)/g' \
3491 -e 's/@''GNULIB_EXECVPE''@/$(GNULIB_EXECVPE)/g' \
3410 -e 's/@''GNULIB_FACCESSAT''@/$(GNULIB_FACCESSAT)/g' \ 3492 -e 's/@''GNULIB_FACCESSAT''@/$(GNULIB_FACCESSAT)/g' \
3411 -e 's/@''GNULIB_FCHDIR''@/$(GNULIB_FCHDIR)/g' \ 3493 -e 's/@''GNULIB_FCHDIR''@/$(GNULIB_FCHDIR)/g' \
3412 -e 's/@''GNULIB_FCHOWNAT''@/$(GNULIB_FCHOWNAT)/g' \ 3494 -e 's/@''GNULIB_FCHOWNAT''@/$(GNULIB_FCHOWNAT)/g' \
@@ -3452,11 +3534,33 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
3452 -e 's/@''GNULIB_UNLINKAT''@/$(GNULIB_UNLINKAT)/g' \ 3534 -e 's/@''GNULIB_UNLINKAT''@/$(GNULIB_UNLINKAT)/g' \
3453 -e 's/@''GNULIB_USLEEP''@/$(GNULIB_USLEEP)/g' \ 3535 -e 's/@''GNULIB_USLEEP''@/$(GNULIB_USLEEP)/g' \
3454 -e 's/@''GNULIB_WRITE''@/$(GNULIB_WRITE)/g' \ 3536 -e 's/@''GNULIB_WRITE''@/$(GNULIB_WRITE)/g' \
3537 -e 's/@''GNULIB_MDA_ACCESS''@/$(GNULIB_MDA_ACCESS)/g' \
3538 -e 's/@''GNULIB_MDA_CHDIR''@/$(GNULIB_MDA_CHDIR)/g' \
3539 -e 's/@''GNULIB_MDA_CLOSE''@/$(GNULIB_MDA_CLOSE)/g' \
3540 -e 's/@''GNULIB_MDA_DUP''@/$(GNULIB_MDA_DUP)/g' \
3541 -e 's/@''GNULIB_MDA_DUP2''@/$(GNULIB_MDA_DUP2)/g' \
3542 -e 's/@''GNULIB_MDA_EXECL''@/$(GNULIB_MDA_EXECL)/g' \
3543 -e 's/@''GNULIB_MDA_EXECLE''@/$(GNULIB_MDA_EXECLE)/g' \
3544 -e 's/@''GNULIB_MDA_EXECLP''@/$(GNULIB_MDA_EXECLP)/g' \
3545 -e 's/@''GNULIB_MDA_EXECV''@/$(GNULIB_MDA_EXECV)/g' \
3546 -e 's/@''GNULIB_MDA_EXECVE''@/$(GNULIB_MDA_EXECVE)/g' \
3547 -e 's/@''GNULIB_MDA_EXECVP''@/$(GNULIB_MDA_EXECVP)/g' \
3548 -e 's/@''GNULIB_MDA_EXECVPE''@/$(GNULIB_MDA_EXECVPE)/g' \
3549 -e 's/@''GNULIB_MDA_GETCWD''@/$(GNULIB_MDA_GETCWD)/g' \
3550 -e 's/@''GNULIB_MDA_GETPID''@/$(GNULIB_MDA_GETPID)/g' \
3551 -e 's/@''GNULIB_MDA_ISATTY''@/$(GNULIB_MDA_ISATTY)/g' \
3552 -e 's/@''GNULIB_MDA_LSEEK''@/$(GNULIB_MDA_LSEEK)/g' \
3553 -e 's/@''GNULIB_MDA_READ''@/$(GNULIB_MDA_READ)/g' \
3554 -e 's/@''GNULIB_MDA_RMDIR''@/$(GNULIB_MDA_RMDIR)/g' \
3555 -e 's/@''GNULIB_MDA_SWAB''@/$(GNULIB_MDA_SWAB)/g' \
3556 -e 's/@''GNULIB_MDA_UNLINK''@/$(GNULIB_MDA_UNLINK)/g' \
3557 -e 's/@''GNULIB_MDA_WRITE''@/$(GNULIB_MDA_WRITE)/g' \
3455 < $(srcdir)/unistd.in.h | \ 3558 < $(srcdir)/unistd.in.h | \
3456 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ 3559 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
3457 -e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \ 3560 -e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \
3458 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ 3561 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
3459 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ 3562 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
3563 -e 's|@''HAVE_EXECVPE''@|$(HAVE_EXECVPE)|g' \
3460 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ 3564 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
3461 -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ 3565 -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
3462 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ 3566 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
@@ -3505,6 +3609,13 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
3505 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ 3609 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
3506 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ 3610 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
3507 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ 3611 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
3612 -e 's|@''REPLACE_EXECL''@|$(REPLACE_EXECL)|g' \
3613 -e 's|@''REPLACE_EXECLE''@|$(REPLACE_EXECLE)|g' \
3614 -e 's|@''REPLACE_EXECLP''@|$(REPLACE_EXECLP)|g' \
3615 -e 's|@''REPLACE_EXECV''@|$(REPLACE_EXECV)|g' \
3616 -e 's|@''REPLACE_EXECVE''@|$(REPLACE_EXECVE)|g' \
3617 -e 's|@''REPLACE_EXECVP''@|$(REPLACE_EXECVP)|g' \
3618 -e 's|@''REPLACE_EXECVPE''@|$(REPLACE_EXECVPE)|g' \
3508 -e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \ 3619 -e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \
3509 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ 3620 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
3510 -e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \ 3621 -e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \
diff --git a/lib/group-member.c b/lib/group-member.c
index d7ded6a1b0e..52159016eab 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-2021 Free 3 Copyright (C) 1994, 1997-1998, 2003, 2005-2006, 2009-2021 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/idx.h b/lib/idx.h
index 22ac320b506..681c8c90f10 100644
--- a/lib/idx.h
+++ b/lib/idx.h
@@ -1,19 +1,20 @@
1/* A type for indices and sizes. 1/* A type for indices and sizes.
2
3 Copyright (C) 2020-2021 Free Software Foundation, Inc. 2 Copyright (C) 2020-2021 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 4
5 This program is free software; you can redistribute it and/or modify 5 The GNU C Library is free software; you can redistribute it and/or
6 it under the terms of the GNU General Public License as published by 6 modify it under the terms of the GNU General Public
7 the Free Software Foundation; either version 3, or (at your option) 7 License as published by the Free Software Foundation; either
8 any later version. 8 version 3 of the License, or (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 GNU General Public License for more details. 13 General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public
16 along with this program; if not, see <https://www.gnu.org/licenses/>. */ 16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
17 18
18#ifndef _IDX_H 19#ifndef _IDX_H
19#define _IDX_H 20#define _IDX_H
diff --git a/lib/malloc/scratch_buffer.h b/lib/malloc/scratch_buffer.h
index 6efca9ba3f4..26e306212d1 100644
--- a/lib/malloc/scratch_buffer.h
+++ b/lib/malloc/scratch_buffer.h
@@ -132,4 +132,20 @@ scratch_buffer_set_array_size (struct scratch_buffer *buffer,
132 (buffer, nelem, size)); 132 (buffer, nelem, size));
133} 133}
134 134
135/* Return a copy of *BUFFER's first SIZE bytes as a heap-allocated block,
136 deallocating *BUFFER if it was heap-allocated. SIZE must be at
137 most *BUFFER's size. Return NULL (setting errno) on memory
138 exhaustion. */
139void *__libc_scratch_buffer_dupfree (struct scratch_buffer *buffer,
140 size_t size);
141libc_hidden_proto (__libc_scratch_buffer_dupfree)
142
143/* Alias for __libc_scratch_dupfree. */
144static __always_inline void *
145scratch_buffer_dupfree (struct scratch_buffer *buffer, size_t size)
146{
147 void *r = __libc_scratch_buffer_dupfree (buffer, size);
148 return __glibc_likely (r != NULL) ? r : NULL;
149}
150
135#endif /* _SCRATCH_BUFFER_H */ 151#endif /* _SCRATCH_BUFFER_H */
diff --git a/lib/malloc/scratch_buffer_grow.c b/lib/malloc/scratch_buffer_grow.c
index e7606d81cd7..41befe3d65f 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-2021 Free Software Foundation, Inc. 2 Copyright (C) 2015-2020 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 59f8c710001..aef232938d5 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-2021 Free Software Foundation, Inc. 2 Copyright (C) 2015-2020 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 e2b9f31211a..5f5e4c24f5a 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-2021 Free Software Foundation, Inc. 2 Copyright (C) 2015-2020 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.c b/lib/md5.c
index d103c133140..e7eeeaab03f 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-2021 Free 3 Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2021 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 program is free software; you can redistribute it and/or modify it 7 This program is free software; you can redistribute it and/or modify it
diff --git a/lib/md5.h b/lib/md5.h
index 9015b9a8671..aa4b0805d58 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-2021 Free 3 Copyright (C) 1995-1997, 1999-2001, 2004-2006, 2008-2021 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 program is free software; you can redistribute it and/or modify it 7 This program is free software; you can redistribute it and/or modify it
diff --git a/lib/memmem.c b/lib/memmem.c
index 5c35976ebce..87266fa87af 100644
--- a/lib/memmem.c
+++ b/lib/memmem.c
@@ -1,5 +1,5 @@
1/* Copyright (C) 1991-1994, 1996-1998, 2000, 2004, 2007-2021 Free 1/* Copyright (C) 1991-1994, 1996-1998, 2000, 2004, 2007-2021 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 program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
diff --git a/lib/memrchr.c b/lib/memrchr.c
index 6608004fecb..dcd24fafc6e 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-2021 Free 3 Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2021 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/mktime-internal.h b/lib/mktime-internal.h
index 9c447bd7b05..b765a37ee34 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-2021 Free Software Foundation, Inc. 2 Copyright 2016-2020 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/regex.c b/lib/regex.c
index f76a416b3b5..88173bb1052 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-2021 Free Software Foundation, Inc. 2 Copyright (C) 2002-2020 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/regexec.c b/lib/regexec.c
index a75365f9073..395e37db591 100644
--- a/lib/regexec.c
+++ b/lib/regexec.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-2021 Free Software Foundation, Inc. 2 Copyright (C) 2002-2020 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/sha1.c b/lib/sha1.c
index d7c2939da1d..612d46de827 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-2021 Free Software 4 Copyright (C) 2000-2001, 2003-2006, 2008-2021 Free Software Foundation, Inc.
5 Foundation, Inc.
6 5
7 This program is free software; you can redistribute it and/or modify it 6 This program is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the 7 under the terms of the GNU General Public License as published by the
diff --git a/lib/sig2str.c b/lib/sig2str.c
index bfce99c30c0..c2cc35d830c 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-2021 Free Software Foundation, 3 Copyright (C) 2002, 2004, 2006, 2009-2021 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 c7d7bbb4e42..a9308405052 100644
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -229,27 +229,29 @@ _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - "
229 "use gnulib module fclose for portable POSIX compliance"); 229 "use gnulib module fclose for portable POSIX compliance");
230#endif 230#endif
231 231
232#if @GNULIB_MDA_FCLOSEALL@
232/* On native Windows, map 'fcloseall' to '_fcloseall', so that -loldnames is 233/* On native Windows, map 'fcloseall' to '_fcloseall', so that -loldnames is
233 not required. In C++ with GNULIB_NAMESPACE, avoid differences between 234 not required. In C++ with GNULIB_NAMESPACE, avoid differences between
234 platforms by defining GNULIB_NAMESPACE::fcloseall on all platforms that have 235 platforms by defining GNULIB_NAMESPACE::fcloseall on all platforms that have
235 it. */ 236 it. */
236#if defined _WIN32 && !defined __CYGWIN__ 237# if defined _WIN32 && !defined __CYGWIN__
237# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 238# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
238# undef fcloseall 239# undef fcloseall
239# define fcloseall _fcloseall 240# define fcloseall _fcloseall
240# endif 241# endif
241_GL_CXXALIAS_MDA (fcloseall, int, (void)); 242_GL_CXXALIAS_MDA (fcloseall, int, (void));
242#else 243# else
243# if @HAVE_DECL_FCLOSEALL@ 244# if @HAVE_DECL_FCLOSEALL@
244# if defined __FreeBSD__ 245# if defined __FreeBSD__
245_GL_CXXALIAS_SYS (fcloseall, void, (void)); 246_GL_CXXALIAS_SYS (fcloseall, void, (void));
246# else 247# else
247_GL_CXXALIAS_SYS (fcloseall, int, (void)); 248_GL_CXXALIAS_SYS (fcloseall, int, (void));
249# endif
248# endif 250# endif
249# endif 251# endif
250#endif 252# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_FCLOSEALL@
251#if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_FCLOSEALL@
252_GL_CXXALIASWARN (fcloseall); 253_GL_CXXALIASWARN (fcloseall);
254# endif
253#endif 255#endif
254 256
255#if @GNULIB_FDOPEN@ 257#if @GNULIB_FDOPEN@
@@ -276,7 +278,7 @@ _GL_CXXALIASWARN (fdopen);
276/* Assume fdopen is always declared. */ 278/* Assume fdopen is always declared. */
277_GL_WARN_ON_USE (fdopen, "fdopen on native Windows platforms is not POSIX compliant - " 279_GL_WARN_ON_USE (fdopen, "fdopen on native Windows platforms is not POSIX compliant - "
278 "use gnulib module fdopen for portability"); 280 "use gnulib module fdopen for portability");
279#else 281#elif @GNULIB_MDA_FDOPEN@
280/* On native Windows, map 'fdopen' to '_fdopen', so that -loldnames is not 282/* On native Windows, map 'fdopen' to '_fdopen', so that -loldnames is not
281 required. In C++ with GNULIB_NAMESPACE, avoid differences between 283 required. In C++ with GNULIB_NAMESPACE, avoid differences between
282 platforms by defining GNULIB_NAMESPACE::fdopen always. */ 284 platforms by defining GNULIB_NAMESPACE::fdopen always. */
@@ -354,19 +356,21 @@ _GL_CXXALIASWARN (fgets);
354# endif 356# endif
355#endif 357#endif
356 358
359#if @GNULIB_MDA_FILENO@
357/* On native Windows, map 'fileno' to '_fileno', so that -loldnames is not 360/* On native Windows, map 'fileno' to '_fileno', so that -loldnames is not
358 required. In C++ with GNULIB_NAMESPACE, avoid differences between 361 required. In C++ with GNULIB_NAMESPACE, avoid differences between
359 platforms by defining GNULIB_NAMESPACE::fileno always. */ 362 platforms by defining GNULIB_NAMESPACE::fileno always. */
360#if defined _WIN32 && !defined __CYGWIN__ 363# if defined _WIN32 && !defined __CYGWIN__
361# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 364# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
362# undef fileno 365# undef fileno
363# define fileno _fileno 366# define fileno _fileno
364# endif 367# endif
365_GL_CXXALIAS_MDA (fileno, int, (FILE *restrict stream)); 368_GL_CXXALIAS_MDA (fileno, int, (FILE *restrict stream));
366#else 369# else
367_GL_CXXALIAS_SYS (fileno, int, (FILE *restrict stream)); 370_GL_CXXALIAS_SYS (fileno, int, (FILE *restrict stream));
368#endif 371# endif
369_GL_CXXALIASWARN (fileno); 372_GL_CXXALIASWARN (fileno);
373#endif
370 374
371#if @GNULIB_FOPEN@ 375#if @GNULIB_FOPEN@
372# if @REPLACE_FOPEN@ 376# if @REPLACE_FOPEN@
@@ -895,19 +899,21 @@ _GL_WARN_ON_USE (getline, "getline is unportable - "
895_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); 899_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
896#endif 900#endif
897 901
902#if @GNULIB_MDA_GETW@
898/* On native Windows, map 'getw' to '_getw', so that -loldnames is not 903/* On native Windows, map 'getw' to '_getw', so that -loldnames is not
899 required. In C++ with GNULIB_NAMESPACE, avoid differences between 904 required. In C++ with GNULIB_NAMESPACE, avoid differences between
900 platforms by defining GNULIB_NAMESPACE::getw always. */ 905 platforms by defining GNULIB_NAMESPACE::getw always. */
901#if defined _WIN32 && !defined __CYGWIN__ 906# if defined _WIN32 && !defined __CYGWIN__
902# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 907# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
903# undef getw 908# undef getw
904# define getw _getw 909# define getw _getw
905# endif 910# endif
906_GL_CXXALIAS_MDA (getw, int, (FILE *restrict stream)); 911_GL_CXXALIAS_MDA (getw, int, (FILE *restrict stream));
907#else 912# else
908_GL_CXXALIAS_SYS (getw, int, (FILE *restrict stream)); 913_GL_CXXALIAS_SYS (getw, int, (FILE *restrict stream));
909#endif 914# endif
910_GL_CXXALIASWARN (getw); 915_GL_CXXALIASWARN (getw);
916#endif
911 917
912#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ 918#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
913struct obstack; 919struct obstack;
@@ -1122,19 +1128,21 @@ _GL_CXXALIASWARN (puts);
1122# endif 1128# endif
1123#endif 1129#endif
1124 1130
1131#if @GNULIB_MDA_PUTW@
1125/* On native Windows, map 'putw' to '_putw', so that -loldnames is not 1132/* On native Windows, map 'putw' to '_putw', so that -loldnames is not
1126 required. In C++ with GNULIB_NAMESPACE, avoid differences between 1133 required. In C++ with GNULIB_NAMESPACE, avoid differences between
1127 platforms by defining GNULIB_NAMESPACE::putw always. */ 1134 platforms by defining GNULIB_NAMESPACE::putw always. */
1128#if defined _WIN32 && !defined __CYGWIN__ 1135# if defined _WIN32 && !defined __CYGWIN__
1129# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1136# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1130# undef putw 1137# undef putw
1131# define putw _putw 1138# define putw _putw
1132# endif 1139# endif
1133_GL_CXXALIAS_MDA (putw, int, (int w, FILE *restrict stream)); 1140_GL_CXXALIAS_MDA (putw, int, (int w, FILE *restrict stream));
1134#else 1141# else
1135_GL_CXXALIAS_SYS (putw, int, (int w, FILE *restrict stream)); 1142_GL_CXXALIAS_SYS (putw, int, (int w, FILE *restrict stream));
1136#endif 1143# endif
1137_GL_CXXALIASWARN (putw); 1144_GL_CXXALIASWARN (putw);
1145#endif
1138 1146
1139#if @GNULIB_REMOVE@ 1147#if @GNULIB_REMOVE@
1140# if @REPLACE_REMOVE@ 1148# if @REPLACE_REMOVE@
@@ -1315,19 +1323,21 @@ _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - "
1315 "POSIX compliance"); 1323 "POSIX compliance");
1316#endif 1324#endif
1317 1325
1326#if @GNULIB_MDA_TEMPNAM@
1318/* On native Windows, map 'tempnam' to '_tempnam', so that -loldnames is not 1327/* On native Windows, map 'tempnam' to '_tempnam', so that -loldnames is not
1319 required. In C++ with GNULIB_NAMESPACE, avoid differences between 1328 required. In C++ with GNULIB_NAMESPACE, avoid differences between
1320 platforms by defining GNULIB_NAMESPACE::tempnam always. */ 1329 platforms by defining GNULIB_NAMESPACE::tempnam always. */
1321#if defined _WIN32 && !defined __CYGWIN__ 1330# if defined _WIN32 && !defined __CYGWIN__
1322# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1331# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1323# undef tempnam 1332# undef tempnam
1324# define tempnam _tempnam 1333# define tempnam _tempnam
1325# endif 1334# endif
1326_GL_CXXALIAS_MDA (tempnam, char *, (const char *dir, const char *prefix)); 1335_GL_CXXALIAS_MDA (tempnam, char *, (const char *dir, const char *prefix));
1327#else 1336# else
1328_GL_CXXALIAS_SYS (tempnam, char *, (const char *dir, const char *prefix)); 1337_GL_CXXALIAS_SYS (tempnam, char *, (const char *dir, const char *prefix));
1329#endif 1338# endif
1330_GL_CXXALIASWARN (tempnam); 1339_GL_CXXALIASWARN (tempnam);
1340#endif
1331 1341
1332#if @GNULIB_TMPFILE@ 1342#if @GNULIB_TMPFILE@
1333# if @REPLACE_TMPFILE@ 1343# if @REPLACE_TMPFILE@
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h
index 9217ebd4ab0..49fc44e14a1 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-2021 Free Software Foundation, 3 Copyright (C) 1995, 2001-2004, 2006-2021 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
@@ -243,46 +242,50 @@ _GL_WARN_ON_USE (canonicalize_file_name,
243# endif 242# endif
244#endif 243#endif
245 244
245#if @GNULIB_MDA_ECVT@
246/* On native Windows, map 'ecvt' to '_ecvt', so that -loldnames is not 246/* On native Windows, map 'ecvt' to '_ecvt', so that -loldnames is not
247 required. In C++ with GNULIB_NAMESPACE, avoid differences between 247 required. In C++ with GNULIB_NAMESPACE, avoid differences between
248 platforms by defining GNULIB_NAMESPACE::ecvt on all platforms that have 248 platforms by defining GNULIB_NAMESPACE::ecvt on all platforms that have
249 it. */ 249 it. */
250#if defined _WIN32 && !defined __CYGWIN__ 250# if defined _WIN32 && !defined __CYGWIN__
251# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 251# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
252# undef ecvt 252# undef ecvt
253# define ecvt _ecvt 253# define ecvt _ecvt
254# endif 254# endif
255_GL_CXXALIAS_MDA (ecvt, char *, 255_GL_CXXALIAS_MDA (ecvt, char *,
256 (double number, int ndigits, int *decptp, int *signp)); 256 (double number, int ndigits, int *decptp, int *signp));
257#else 257# else
258# if @HAVE_DECL_ECVT@ 258# if @HAVE_DECL_ECVT@
259_GL_CXXALIAS_SYS (ecvt, char *, 259_GL_CXXALIAS_SYS (ecvt, char *,
260 (double number, int ndigits, int *decptp, int *signp)); 260 (double number, int ndigits, int *decptp, int *signp));
261# endif
261# endif 262# endif
262#endif 263# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_ECVT@
263#if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_ECVT@
264_GL_CXXALIASWARN (ecvt); 264_GL_CXXALIASWARN (ecvt);
265# endif
265#endif 266#endif
266 267
268#if @GNULIB_MDA_FCVT@
267/* On native Windows, map 'fcvt' to '_fcvt', so that -loldnames is not 269/* On native Windows, map 'fcvt' to '_fcvt', so that -loldnames is not
268 required. In C++ with GNULIB_NAMESPACE, avoid differences between 270 required. In C++ with GNULIB_NAMESPACE, avoid differences between
269 platforms by defining GNULIB_NAMESPACE::fcvt on all platforms that have 271 platforms by defining GNULIB_NAMESPACE::fcvt on all platforms that have
270 it. */ 272 it. */
271#if defined _WIN32 && !defined __CYGWIN__ 273# if defined _WIN32 && !defined __CYGWIN__
272# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 274# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
273# undef fcvt 275# undef fcvt
274# define fcvt _fcvt 276# define fcvt _fcvt
275# endif 277# endif
276_GL_CXXALIAS_MDA (fcvt, char *, 278_GL_CXXALIAS_MDA (fcvt, char *,
277 (double number, int ndigits, int *decptp, int *signp)); 279 (double number, int ndigits, int *decptp, int *signp));
278#else 280# else
279# if @HAVE_DECL_FCVT@ 281# if @HAVE_DECL_FCVT@
280_GL_CXXALIAS_SYS (fcvt, char *, 282_GL_CXXALIAS_SYS (fcvt, char *,
281 (double number, int ndigits, int *decptp, int *signp)); 283 (double number, int ndigits, int *decptp, int *signp));
284# endif
282# endif 285# endif
283#endif 286# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_FCVT@
284#if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_FCVT@
285_GL_CXXALIASWARN (fcvt); 287_GL_CXXALIASWARN (fcvt);
288# endif
286#endif 289#endif
287 290
288#if @GNULIB_FREE_POSIX@ 291#if @GNULIB_FREE_POSIX@
@@ -306,23 +309,25 @@ _GL_WARN_ON_USE (free, "free is not future POSIX compliant everywhere - "
306 "use gnulib module free for portability"); 309 "use gnulib module free for portability");
307#endif 310#endif
308 311
312#if @GNULIB_MDA_GCVT@
309/* On native Windows, map 'gcvt' to '_gcvt', so that -loldnames is not 313/* On native Windows, map 'gcvt' to '_gcvt', so that -loldnames is not
310 required. In C++ with GNULIB_NAMESPACE, avoid differences between 314 required. In C++ with GNULIB_NAMESPACE, avoid differences between
311 platforms by defining GNULIB_NAMESPACE::gcvt on all platforms that have 315 platforms by defining GNULIB_NAMESPACE::gcvt on all platforms that have
312 it. */ 316 it. */
313#if defined _WIN32 && !defined __CYGWIN__ 317# if defined _WIN32 && !defined __CYGWIN__
314# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 318# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
315# undef gcvt 319# undef gcvt
316# define gcvt _gcvt 320# define gcvt _gcvt
317# endif 321# endif
318_GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf)); 322_GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf));
319#else 323# else
320# if @HAVE_DECL_GCVT@ 324# if @HAVE_DECL_GCVT@
321_GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf)); 325_GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf));
326# endif
322# endif 327# endif
323#endif 328# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_GCVT@
324#if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_GCVT@
325_GL_CXXALIASWARN (gcvt); 329_GL_CXXALIASWARN (gcvt);
330# endif
326#endif 331#endif
327 332
328#if @GNULIB_GETLOADAVG@ 333#if @GNULIB_GETLOADAVG@
@@ -576,19 +581,21 @@ _GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - "
576# endif 581# endif
577#endif 582#endif
578 583
584#if @GNULIB_MDA_MKTEMP@
579/* On native Windows, map 'mktemp' to '_mktemp', so that -loldnames is not 585/* On native Windows, map 'mktemp' to '_mktemp', so that -loldnames is not
580 required. In C++ with GNULIB_NAMESPACE, avoid differences between 586 required. In C++ with GNULIB_NAMESPACE, avoid differences between
581 platforms by defining GNULIB_NAMESPACE::mktemp always. */ 587 platforms by defining GNULIB_NAMESPACE::mktemp always. */
582#if defined _WIN32 && !defined __CYGWIN__ 588# if defined _WIN32 && !defined __CYGWIN__
583# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 589# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
584# undef mktemp 590# undef mktemp
585# define mktemp _mktemp 591# define mktemp _mktemp
586# endif 592# endif
587_GL_CXXALIAS_MDA (mktemp, char *, (char * /*template*/)); 593_GL_CXXALIAS_MDA (mktemp, char *, (char * /*template*/));
588#else 594# else
589_GL_CXXALIAS_SYS (mktemp, char *, (char * /*template*/)); 595_GL_CXXALIAS_SYS (mktemp, char *, (char * /*template*/));
590#endif 596# endif
591_GL_CXXALIASWARN (mktemp); 597_GL_CXXALIASWARN (mktemp);
598#endif
592 599
593/* Allocate memory with indefinite extent and specified alignment. */ 600/* Allocate memory with indefinite extent and specified alignment. */
594#if @GNULIB_POSIX_MEMALIGN@ 601#if @GNULIB_POSIX_MEMALIGN@
@@ -707,7 +714,7 @@ _GL_CXXALIAS_MDA (putenv, int, (char *string));
707_GL_CXXALIAS_SYS (putenv, int, (char *string)); 714_GL_CXXALIAS_SYS (putenv, int, (char *string));
708# endif 715# endif
709_GL_CXXALIASWARN (putenv); 716_GL_CXXALIASWARN (putenv);
710#else 717#elif @GNULIB_MDA_PUTENV@
711/* On native Windows, map 'putenv' to '_putenv', so that -loldnames is not 718/* On native Windows, map 'putenv' to '_putenv', so that -loldnames is not
712 required. In C++ with GNULIB_NAMESPACE, avoid differences between 719 required. In C++ with GNULIB_NAMESPACE, avoid differences between
713 platforms by defining GNULIB_NAMESPACE::putenv always. */ 720 platforms by defining GNULIB_NAMESPACE::putenv always. */
diff --git a/lib/string.in.h b/lib/string.in.h
index 4625c611bf3..9f68e77c767 100644
--- a/lib/string.in.h
+++ b/lib/string.in.h
@@ -123,21 +123,23 @@ _GL_WARN_ON_USE (ffsll, "ffsll is not portable - use the ffsll module");
123#endif 123#endif
124 124
125 125
126#if @GNULIB_MDA_MEMCCPY@
126/* On native Windows, map 'memccpy' to '_memccpy', so that -loldnames is not 127/* On native Windows, map 'memccpy' to '_memccpy', so that -loldnames is not
127 required. In C++ with GNULIB_NAMESPACE, avoid differences between 128 required. In C++ with GNULIB_NAMESPACE, avoid differences between
128 platforms by defining GNULIB_NAMESPACE::memccpy always. */ 129 platforms by defining GNULIB_NAMESPACE::memccpy always. */
129#if defined _WIN32 && !defined __CYGWIN__ 130# if defined _WIN32 && !defined __CYGWIN__
130# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 131# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
131# undef memccpy 132# undef memccpy
132# define memccpy _memccpy 133# define memccpy _memccpy
133# endif 134# endif
134_GL_CXXALIAS_MDA (memccpy, void *, 135_GL_CXXALIAS_MDA (memccpy, void *,
135 (void *dest, const void *src, int c, size_t n)); 136 (void *dest, const void *src, int c, size_t n));
136#else 137# else
137_GL_CXXALIAS_SYS (memccpy, void *, 138_GL_CXXALIAS_SYS (memccpy, void *,
138 (void *dest, const void *src, int c, size_t n)); 139 (void *dest, const void *src, int c, size_t n));
139#endif 140# endif
140_GL_CXXALIASWARN (memccpy); 141_GL_CXXALIASWARN (memccpy);
142#endif
141 143
142 144
143/* Return the first instance of C within N bytes of S, or NULL. */ 145/* Return the first instance of C within N bytes of S, or NULL. */
@@ -425,7 +427,7 @@ _GL_CXXALIASWARN (strdup);
425_GL_WARN_ON_USE (strdup, "strdup is unportable - " 427_GL_WARN_ON_USE (strdup, "strdup is unportable - "
426 "use gnulib module strdup for portability"); 428 "use gnulib module strdup for portability");
427# endif 429# endif
428#else 430#elif @GNULIB_MDA_STRDUP@
429/* On native Windows, map 'creat' to '_creat', so that -loldnames is not 431/* On native Windows, map 'creat' to '_creat', so that -loldnames is not
430 required. In C++ with GNULIB_NAMESPACE, avoid differences between 432 required. In C++ with GNULIB_NAMESPACE, avoid differences between
431 platforms by defining GNULIB_NAMESPACE::creat always. */ 433 platforms by defining GNULIB_NAMESPACE::creat always. */
diff --git a/lib/strtoimax.c b/lib/strtoimax.c
index db2c553738e..37a25c31d44 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-2021 Free Software 3 Copyright (C) 1999, 2001-2004, 2006, 2009-2021 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/strtol.c b/lib/strtol.c
index d0cf7949f62..2f2159b6231 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-2021 Free 3 Copyright (C) 1991-1992, 1994-1999, 2003, 2005-2007, 2009-2021 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 bb71c53a1de..30daefc50f6 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-2021 Free Software 2 Copyright (C) 1995-1997, 1999, 2001, 2009-2021 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 program is free software: you can redistribute it and/or modify 6 This program is free software: you can redistribute it and/or modify
diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h
index 4e7b212a611..ccdb5cbd143 100644
--- a/lib/sys_stat.in.h
+++ b/lib/sys_stat.in.h
@@ -391,20 +391,22 @@ struct stat
391#endif 391#endif
392 392
393 393
394#if @GNULIB_MDA_CHMOD@
394/* On native Windows, map 'chmod' to '_chmod', so that -loldnames is not 395/* On native Windows, map 'chmod' to '_chmod', so that -loldnames is not
395 required. In C++ with GNULIB_NAMESPACE, avoid differences between 396 required. In C++ with GNULIB_NAMESPACE, avoid differences between
396 platforms by defining GNULIB_NAMESPACE::chmod always. */ 397 platforms by defining GNULIB_NAMESPACE::chmod always. */
397#if defined _WIN32 && !defined __CYGWIN__ 398# if defined _WIN32 && !defined __CYGWIN__
398# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 399# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
399# undef chmod 400# undef chmod
400# define chmod _chmod 401# define chmod _chmod
401# endif 402# endif
402/* Need to cast, because in mingw the last argument is 'int mode'. */ 403/* Need to cast, because in mingw the last argument is 'int mode'. */
403_GL_CXXALIAS_MDA_CAST (chmod, int, (const char *filename, mode_t mode)); 404_GL_CXXALIAS_MDA_CAST (chmod, int, (const char *filename, mode_t mode));
404#else 405# else
405_GL_CXXALIAS_SYS (chmod, int, (const char *filename, mode_t mode)); 406_GL_CXXALIAS_SYS (chmod, int, (const char *filename, mode_t mode));
406#endif 407# endif
407_GL_CXXALIASWARN (chmod); 408_GL_CXXALIASWARN (chmod);
409#endif
408 410
409 411
410#if @GNULIB_FCHMODAT@ 412#if @GNULIB_FCHMODAT@
@@ -606,21 +608,20 @@ _GL_WARN_ON_USE (lstat, "lstat is unportable - "
606#endif 608#endif
607 609
608 610
609#if @REPLACE_MKDIR@ 611#if @GNULIB_MKDIR@
610# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 612# if @REPLACE_MKDIR@
611# undef mkdir 613# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
612# define mkdir rpl_mkdir 614# undef mkdir
613# endif 615# define mkdir rpl_mkdir
616# endif
614_GL_FUNCDECL_RPL (mkdir, int, (char const *name, mode_t mode) 617_GL_FUNCDECL_RPL (mkdir, int, (char const *name, mode_t mode)
615 _GL_ARG_NONNULL ((1))); 618 _GL_ARG_NONNULL ((1)));
616_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); 619_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode));
617#else 620# elif defined _WIN32 && !defined __CYGWIN__
618/* mingw's _mkdir() function has 1 argument, but we pass 2 arguments. 621/* mingw's _mkdir() function has 1 argument, but we pass 2 arguments.
619 Additionally, it declares _mkdir (and depending on compile flags, an 622 Additionally, it declares _mkdir (and depending on compile flags, an
620 alias mkdir), only in the nonstandard includes <direct.h> and <io.h>, 623 alias mkdir), only in the nonstandard includes <direct.h> and <io.h>,
621 which are included above. */ 624 which are included above. */
622# if defined _WIN32 && ! defined __CYGWIN__
623
624# if !GNULIB_defined_rpl_mkdir 625# if !GNULIB_defined_rpl_mkdir
625static int 626static int
626rpl_mkdir (char const *name, mode_t mode) 627rpl_mkdir (char const *name, mode_t mode)
@@ -629,16 +630,44 @@ rpl_mkdir (char const *name, mode_t mode)
629} 630}
630# define GNULIB_defined_rpl_mkdir 1 631# define GNULIB_defined_rpl_mkdir 1
631# endif 632# endif
632
633# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 633# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
634# undef mkdir
635# define mkdir rpl_mkdir
636# endif
637_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode));
638# else
639_GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode));
640# endif
641_GL_CXXALIASWARN (mkdir);
642#elif defined GNULIB_POSIXCHECK
643# undef mkdir
644# if HAVE_RAW_DECL_MKDIR
645_GL_WARN_ON_USE (mkdir, "mkdir does not always support two parameters - "
646 "use gnulib module mkdir for portability");
647# endif
648#elif @GNULIB_MDA_MKDIR@
649/* On native Windows, map 'mkdir' to '_mkdir', so that -loldnames is not
650 required. In C++ with GNULIB_NAMESPACE, avoid differences between
651 platforms by defining GNULIB_NAMESPACE::mkdir always. */
652# if defined _WIN32 && !defined __CYGWIN__
653# if !GNULIB_defined_rpl_mkdir
654static int
655rpl_mkdir (char const *name, mode_t mode)
656{
657 return _mkdir (name);
658}
659# define GNULIB_defined_rpl_mkdir 1
660# endif
661# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
662# undef mkdir
634# define mkdir rpl_mkdir 663# define mkdir rpl_mkdir
635# endif 664# endif
636_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); 665_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode));
637# else 666# else
638_GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode)); 667_GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode));
639# endif 668# endif
640#endif
641_GL_CXXALIASWARN (mkdir); 669_GL_CXXALIASWARN (mkdir);
670#endif
642 671
643 672
644#if @GNULIB_MKDIRAT@ 673#if @GNULIB_MKDIRAT@
@@ -818,20 +847,22 @@ _GL_WARN_ON_USE (stat, "stat is unportable - "
818#endif 847#endif
819 848
820 849
850#if @GNULIB_MDA_UMASK@
821/* On native Windows, map 'umask' to '_umask', so that -loldnames is not 851/* On native Windows, map 'umask' to '_umask', so that -loldnames is not
822 required. In C++ with GNULIB_NAMESPACE, avoid differences between 852 required. In C++ with GNULIB_NAMESPACE, avoid differences between
823 platforms by defining GNULIB_NAMESPACE::umask always. */ 853 platforms by defining GNULIB_NAMESPACE::umask always. */
824#if defined _WIN32 && !defined __CYGWIN__ 854# if defined _WIN32 && !defined __CYGWIN__
825# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 855# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
826# undef umask 856# undef umask
827# define umask _umask 857# define umask _umask
828# endif 858# endif
829/* Need to cast, because in mingw the last argument is 'int mode'. */ 859/* Need to cast, because in mingw the last argument is 'int mode'. */
830_GL_CXXALIAS_MDA_CAST (umask, mode_t, (mode_t mask)); 860_GL_CXXALIAS_MDA_CAST (umask, mode_t, (mode_t mask));
831#else 861# else
832_GL_CXXALIAS_SYS (umask, mode_t, (mode_t mask)); 862_GL_CXXALIAS_SYS (umask, mode_t, (mode_t mask));
833#endif 863# endif
834_GL_CXXALIASWARN (umask); 864_GL_CXXALIASWARN (umask);
865#endif
835 866
836 867
837#if @GNULIB_UTIMENSAT@ 868#if @GNULIB_UTIMENSAT@
diff --git a/lib/time.in.h b/lib/time.in.h
index ed44997e382..958dc0bd292 100644
--- a/lib/time.in.h
+++ b/lib/time.in.h
@@ -145,7 +145,7 @@ _GL_CXXALIAS_MDA (tzset, void, (void));
145_GL_CXXALIAS_SYS (tzset, void, (void)); 145_GL_CXXALIAS_SYS (tzset, void, (void));
146# endif 146# endif
147_GL_CXXALIASWARN (tzset); 147_GL_CXXALIASWARN (tzset);
148# else 148# elif @GNULIB_MDA_TZSET@
149/* On native Windows, map 'tzset' to '_tzset', so that -loldnames is not 149/* On native Windows, map 'tzset' to '_tzset', so that -loldnames is not
150 required. In C++ with GNULIB_NAMESPACE, avoid differences between 150 required. In C++ with GNULIB_NAMESPACE, avoid differences between
151 platforms by defining GNULIB_NAMESPACE::tzset always. */ 151 platforms by defining GNULIB_NAMESPACE::tzset always. */
diff --git a/lib/time_r.c b/lib/time_r.c
index 446a30f9f06..d9089868704 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-2021 Free Software Foundation, 3 Copyright (C) 2003, 2006-2007, 2010-2021 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/timegm.c b/lib/timegm.c
index e4127e71c0b..fa30943084d 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-2021 Free Software Foundation, Inc. 3 Copyright (C) 1994-2020 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/unistd.in.h b/lib/unistd.in.h
index b5e7aaef7d6..5e9b47d981e 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -287,7 +287,7 @@ _GL_WARN_ON_USE (access, "access does not always support X_OK - "
287 "also, this function is a security risk - " 287 "also, this function is a security risk - "
288 "use the gnulib module faccessat instead"); 288 "use the gnulib module faccessat instead");
289# endif 289# endif
290#else 290#elif @GNULIB_MDA_ACCESS@
291/* On native Windows, map 'access' to '_access', so that -loldnames is not 291/* On native Windows, map 'access' to '_access', so that -loldnames is not
292 required. In C++ with GNULIB_NAMESPACE, avoid differences between 292 required. In C++ with GNULIB_NAMESPACE, avoid differences between
293 platforms by defining GNULIB_NAMESPACE::access always. */ 293 platforms by defining GNULIB_NAMESPACE::access always. */
@@ -321,7 +321,7 @@ _GL_CXXALIASWARN (chdir);
321_GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - " 321_GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - "
322 "use gnulib module chdir for portability"); 322 "use gnulib module chdir for portability");
323# endif 323# endif
324#else 324#elif @GNULIB_MDA_CHDIR@
325/* On native Windows, map 'chdir' to '_chdir', so that -loldnames is not 325/* On native Windows, map 'chdir' to '_chdir', so that -loldnames is not
326 required. In C++ with GNULIB_NAMESPACE, avoid differences between 326 required. In C++ with GNULIB_NAMESPACE, avoid differences between
327 platforms by defining GNULIB_NAMESPACE::chdir always. */ 327 platforms by defining GNULIB_NAMESPACE::chdir always. */
@@ -397,7 +397,7 @@ _GL_CXXALIASWARN (close);
397/* Assume close is always declared. */ 397/* Assume close is always declared. */
398_GL_WARN_ON_USE (close, "close does not portably work on sockets - " 398_GL_WARN_ON_USE (close, "close does not portably work on sockets - "
399 "use gnulib module close for portability"); 399 "use gnulib module close for portability");
400#else 400#elif @GNULIB_MDA_CLOSE@
401/* On native Windows, map 'close' to '_close', so that -loldnames is not 401/* On native Windows, map 'close' to '_close', so that -loldnames is not
402 required. In C++ with GNULIB_NAMESPACE, avoid differences between 402 required. In C++ with GNULIB_NAMESPACE, avoid differences between
403 platforms by defining GNULIB_NAMESPACE::close always. */ 403 platforms by defining GNULIB_NAMESPACE::close always. */
@@ -456,7 +456,7 @@ _GL_CXXALIASWARN (dup);
456_GL_WARN_ON_USE (dup, "dup is unportable - " 456_GL_WARN_ON_USE (dup, "dup is unportable - "
457 "use gnulib module dup for portability"); 457 "use gnulib module dup for portability");
458# endif 458# endif
459#else 459#elif @GNULIB_MDA_DUP@
460/* On native Windows, map 'dup' to '_dup', so that -loldnames is not 460/* On native Windows, map 'dup' to '_dup', so that -loldnames is not
461 required. In C++ with GNULIB_NAMESPACE, avoid differences between 461 required. In C++ with GNULIB_NAMESPACE, avoid differences between
462 platforms by defining GNULIB_NAMESPACE::dup always. */ 462 platforms by defining GNULIB_NAMESPACE::dup always. */
@@ -501,7 +501,7 @@ _GL_CXXALIASWARN (dup2);
501_GL_WARN_ON_USE (dup2, "dup2 is unportable - " 501_GL_WARN_ON_USE (dup2, "dup2 is unportable - "
502 "use gnulib module dup2 for portability"); 502 "use gnulib module dup2 for portability");
503# endif 503# endif
504#else 504#elif @GNULIB_MDA_DUP2@
505/* On native Windows, map 'dup2' to '_dup2', so that -loldnames is not 505/* On native Windows, map 'dup2' to '_dup2', so that -loldnames is not
506 required. In C++ with GNULIB_NAMESPACE, avoid differences between 506 required. In C++ with GNULIB_NAMESPACE, avoid differences between
507 platforms by defining GNULIB_NAMESPACE::dup2 always. */ 507 platforms by defining GNULIB_NAMESPACE::dup2 always. */
@@ -615,116 +615,279 @@ _GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - "
615#endif 615#endif
616 616
617 617
618#if @GNULIB_EXECL@
619# if @REPLACE_EXECL@
620# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
621# undef execl
622# define execl rpl_execl
623# endif
624_GL_FUNCDECL_RPL (execl, int, (const char *program, const char *arg, ...)
625 _GL_ARG_NONNULL ((1)));
626_GL_CXXALIAS_RPL (execl, int, (const char *program, const char *arg, ...));
627# else
628_GL_CXXALIAS_SYS (execl, int, (const char *program, const char *arg, ...));
629# endif
630_GL_CXXALIASWARN (execl);
631#elif defined GNULIB_POSIXCHECK
632# undef execl
633# if HAVE_RAW_DECL_EXECL
634_GL_WARN_ON_USE (execl, "execl behaves very differently on mingw - "
635 "use gnulib module execl for portability");
636# endif
637#elif @GNULIB_MDA_EXECL@
618/* On native Windows, map 'execl' to '_execl', so that -loldnames is not 638/* On native Windows, map 'execl' to '_execl', so that -loldnames is not
619 required. In C++ with GNULIB_NAMESPACE, avoid differences between 639 required. In C++ with GNULIB_NAMESPACE, avoid differences between
620 platforms by defining GNULIB_NAMESPACE::execl always. */ 640 platforms by defining GNULIB_NAMESPACE::execl always. */
621#if defined _WIN32 && !defined __CYGWIN__ 641# if defined _WIN32 && !defined __CYGWIN__
622# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 642# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
623# undef execl 643# undef execl
624# define execl _execl 644# define execl _execl
625# endif 645# endif
626_GL_CXXALIAS_MDA (execl, intptr_t, (const char *program, const char *arg, ...)); 646_GL_CXXALIAS_MDA (execl, intptr_t, (const char *program, const char *arg, ...));
627#else 647# else
628_GL_CXXALIAS_SYS (execl, int, (const char *program, const char *arg, ...)); 648_GL_CXXALIAS_SYS (execl, int, (const char *program, const char *arg, ...));
629#endif 649# endif
630_GL_CXXALIASWARN (execl); 650_GL_CXXALIASWARN (execl);
651#endif
631 652
653#if @GNULIB_EXECLE@
654# if @REPLACE_EXECLE@
655# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
656# undef execle
657# define execle rpl_execle
658# endif
659_GL_FUNCDECL_RPL (execle, int, (const char *program, const char *arg, ...)
660 _GL_ARG_NONNULL ((1)));
661_GL_CXXALIAS_RPL (execle, int, (const char *program, const char *arg, ...));
662# else
663_GL_CXXALIAS_SYS (execle, int, (const char *program, const char *arg, ...));
664# endif
665_GL_CXXALIASWARN (execle);
666#elif defined GNULIB_POSIXCHECK
667# undef execle
668# if HAVE_RAW_DECL_EXECLE
669_GL_WARN_ON_USE (execle, "execle behaves very differently on mingw - "
670 "use gnulib module execle for portability");
671# endif
672#elif @GNULIB_MDA_EXECLE@
632/* On native Windows, map 'execle' to '_execle', so that -loldnames is not 673/* On native Windows, map 'execle' to '_execle', so that -loldnames is not
633 required. In C++ with GNULIB_NAMESPACE, avoid differences between 674 required. In C++ with GNULIB_NAMESPACE, avoid differences between
634 platforms by defining GNULIB_NAMESPACE::execle always. */ 675 platforms by defining GNULIB_NAMESPACE::execle always. */
635#if defined _WIN32 && !defined __CYGWIN__ 676# if defined _WIN32 && !defined __CYGWIN__
636# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 677# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
637# undef execle 678# undef execle
638# define execle _execle 679# define execle _execle
639# endif 680# endif
640_GL_CXXALIAS_MDA (execle, intptr_t, (const char *program, const char *arg, ...)); 681_GL_CXXALIAS_MDA (execle, intptr_t,
641#else 682 (const char *program, const char *arg, ...));
683# else
642_GL_CXXALIAS_SYS (execle, int, (const char *program, const char *arg, ...)); 684_GL_CXXALIAS_SYS (execle, int, (const char *program, const char *arg, ...));
643#endif 685# endif
644_GL_CXXALIASWARN (execle); 686_GL_CXXALIASWARN (execle);
687#endif
645 688
689#if @GNULIB_EXECLP@
690# if @REPLACE_EXECLP@
691# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
692# undef execlp
693# define execlp rpl_execlp
694# endif
695_GL_FUNCDECL_RPL (execlp, int, (const char *program, const char *arg, ...)
696 _GL_ARG_NONNULL ((1)));
697_GL_CXXALIAS_RPL (execlp, int, (const char *program, const char *arg, ...));
698# else
699_GL_CXXALIAS_SYS (execlp, int, (const char *program, const char *arg, ...));
700# endif
701_GL_CXXALIASWARN (execlp);
702#elif defined GNULIB_POSIXCHECK
703# undef execlp
704# if HAVE_RAW_DECL_EXECLP
705_GL_WARN_ON_USE (execlp, "execlp behaves very differently on mingw - "
706 "use gnulib module execlp for portability");
707# endif
708#elif @GNULIB_MDA_EXECLP@
646/* On native Windows, map 'execlp' to '_execlp', so that -loldnames is not 709/* On native Windows, map 'execlp' to '_execlp', so that -loldnames is not
647 required. In C++ with GNULIB_NAMESPACE, avoid differences between 710 required. In C++ with GNULIB_NAMESPACE, avoid differences between
648 platforms by defining GNULIB_NAMESPACE::execlp always. */ 711 platforms by defining GNULIB_NAMESPACE::execlp always. */
649#if defined _WIN32 && !defined __CYGWIN__ 712# if defined _WIN32 && !defined __CYGWIN__
650# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 713# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
651# undef execlp 714# undef execlp
652# define execlp _execlp 715# define execlp _execlp
653# endif 716# endif
654_GL_CXXALIAS_MDA (execlp, intptr_t, (const char *program, const char *arg, ...)); 717_GL_CXXALIAS_MDA (execlp, intptr_t,
655#else 718 (const char *program, const char *arg, ...));
719# else
656_GL_CXXALIAS_SYS (execlp, int, (const char *program, const char *arg, ...)); 720_GL_CXXALIAS_SYS (execlp, int, (const char *program, const char *arg, ...));
657#endif 721# endif
658_GL_CXXALIASWARN (execlp); 722_GL_CXXALIASWARN (execlp);
723#endif
659 724
660 725
726#if @GNULIB_EXECV@
727# if @REPLACE_EXECV@
728# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
729# undef execv
730# define execv rpl_execv
731# endif
732_GL_FUNCDECL_RPL (execv, int, (const char *program, char * const *argv)
733 _GL_ARG_NONNULL ((1, 2)));
734_GL_CXXALIAS_RPL (execv, int, (const char *program, char * const *argv));
735# else
736_GL_CXXALIAS_SYS (execv, int, (const char *program, char * const *argv));
737# endif
738_GL_CXXALIASWARN (execv);
739#elif defined GNULIB_POSIXCHECK
740# undef execv
741# if HAVE_RAW_DECL_EXECV
742_GL_WARN_ON_USE (execv, "execv behaves very differently on mingw - "
743 "use gnulib module execv for portability");
744# endif
745#elif @GNULIB_MDA_EXECV@
661/* On native Windows, map 'execv' to '_execv', so that -loldnames is not 746/* On native Windows, map 'execv' to '_execv', so that -loldnames is not
662 required. In C++ with GNULIB_NAMESPACE, avoid differences between 747 required. In C++ with GNULIB_NAMESPACE, avoid differences between
663 platforms by defining GNULIB_NAMESPACE::execv always. */ 748 platforms by defining GNULIB_NAMESPACE::execv always. */
664#if defined _WIN32 && !defined __CYGWIN__ 749# if defined _WIN32 && !defined __CYGWIN__
665# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 750# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
666# undef execv 751# undef execv
667# define execv _execv 752# define execv _execv
668# endif 753# endif
669_GL_CXXALIAS_MDA (execv, intptr_t, 754_GL_CXXALIAS_MDA_CAST (execv, intptr_t,
670 (const char *program, const char * const *argv)); 755 (const char *program, char * const *argv));
671#else 756# else
672_GL_CXXALIAS_SYS (execv, int, (const char *program, char * const *argv)); 757_GL_CXXALIAS_SYS (execv, int, (const char *program, char * const *argv));
673#endif 758# endif
674_GL_CXXALIASWARN (execv); 759_GL_CXXALIASWARN (execv);
760#endif
675 761
762#if @GNULIB_EXECVE@
763# if @REPLACE_EXECVE@
764# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
765# undef execve
766# define execve rpl_execve
767# endif
768_GL_FUNCDECL_RPL (execve, int,
769 (const char *program, char * const *argv, char * const *env)
770 _GL_ARG_NONNULL ((1, 2)));
771_GL_CXXALIAS_RPL (execve, int,
772 (const char *program, char * const *argv, char * const *env));
773# else
774_GL_CXXALIAS_SYS (execve, int,
775 (const char *program, char * const *argv, char * const *env));
776# endif
777_GL_CXXALIASWARN (execve);
778#elif defined GNULIB_POSIXCHECK
779# undef execve
780# if HAVE_RAW_DECL_EXECVE
781_GL_WARN_ON_USE (execve, "execve behaves very differently on mingw - "
782 "use gnulib module execve for portability");
783# endif
784#elif @GNULIB_MDA_EXECVE@
676/* On native Windows, map 'execve' to '_execve', so that -loldnames is not 785/* On native Windows, map 'execve' to '_execve', so that -loldnames is not
677 required. In C++ with GNULIB_NAMESPACE, avoid differences between 786 required. In C++ with GNULIB_NAMESPACE, avoid differences between
678 platforms by defining GNULIB_NAMESPACE::execve always. */ 787 platforms by defining GNULIB_NAMESPACE::execve always. */
679#if defined _WIN32 && !defined __CYGWIN__ 788# if defined _WIN32 && !defined __CYGWIN__
680# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 789# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
681# undef execve 790# undef execve
682# define execve _execve 791# define execve _execve
683# endif 792# endif
684_GL_CXXALIAS_MDA (execve, intptr_t, 793_GL_CXXALIAS_MDA_CAST (execve, intptr_t,
685 (const char *program, const char * const *argv, 794 (const char *program, char * const *argv,
686 const char * const *env)); 795 char * const *env));
687#else 796# else
688_GL_CXXALIAS_SYS (execve, int, 797_GL_CXXALIAS_SYS (execve, int,
689 (const char *program, char * const *argv, char * const *env)); 798 (const char *program, char * const *argv, char * const *env));
690#endif 799# endif
691_GL_CXXALIASWARN (execve); 800_GL_CXXALIASWARN (execve);
801#endif
692 802
803#if @GNULIB_EXECVP@
804# if @REPLACE_EXECVP@
805# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
806# undef execvp
807# define execvp rpl_execvp
808# endif
809_GL_FUNCDECL_RPL (execvp, int, (const char *program, char * const *argv)
810 _GL_ARG_NONNULL ((1, 2)));
811_GL_CXXALIAS_RPL (execvp, int, (const char *program, char * const *argv));
812# else
813_GL_CXXALIAS_SYS (execvp, int, (const char *program, char * const *argv));
814# endif
815_GL_CXXALIASWARN (execvp);
816#elif defined GNULIB_POSIXCHECK
817# undef execvp
818# if HAVE_RAW_DECL_EXECVP
819_GL_WARN_ON_USE (execvp, "execvp behaves very differently on mingw - "
820 "use gnulib module execvp for portability");
821# endif
822#elif @GNULIB_MDA_EXECVP@
693/* On native Windows, map 'execvp' to '_execvp', so that -loldnames is not 823/* On native Windows, map 'execvp' to '_execvp', so that -loldnames is not
694 required. In C++ with GNULIB_NAMESPACE, avoid differences between 824 required. In C++ with GNULIB_NAMESPACE, avoid differences between
695 platforms by defining GNULIB_NAMESPACE::execvp always. */ 825 platforms by defining GNULIB_NAMESPACE::execvp always. */
696#if defined _WIN32 && !defined __CYGWIN__ 826# if defined _WIN32 && !defined __CYGWIN__
697# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 827# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
698# undef execvp 828# undef execvp
699# define execvp _execvp 829# define execvp _execvp
700# endif 830# endif
701_GL_CXXALIAS_MDA (execvp, intptr_t, 831_GL_CXXALIAS_MDA_CAST (execvp, intptr_t,
702 (const char *program, const char * const *argv)); 832 (const char *program, char * const *argv));
703#else 833# else
704_GL_CXXALIAS_SYS (execvp, int, (const char *program, char * const *argv)); 834_GL_CXXALIAS_SYS (execvp, int, (const char *program, char * const *argv));
705#endif 835# endif
706_GL_CXXALIASWARN (execvp); 836_GL_CXXALIASWARN (execvp);
837#endif
707 838
839#if @GNULIB_EXECVPE@
840# if @REPLACE_EXECVPE@
841# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
842# undef execvpe
843# define execvpe rpl_execvpe
844# endif
845_GL_FUNCDECL_RPL (execvpe, int,
846 (const char *program, char * const *argv, char * const *env)
847 _GL_ARG_NONNULL ((1, 2)));
848_GL_CXXALIAS_RPL (execvpe, int,
849 (const char *program, char * const *argv, char * const *env));
850# else
851# if !@HAVE_DECL_EXECVPE@
852_GL_FUNCDECL_SYS (execvpe, int,
853 (const char *program, char * const *argv, char * const *env)
854 _GL_ARG_NONNULL ((1, 2)));
855# endif
856_GL_CXXALIAS_SYS (execvpe, int,
857 (const char *program, char * const *argv, char * const *env));
858# endif
859_GL_CXXALIASWARN (execvpe);
860#elif defined GNULIB_POSIXCHECK
861# undef execvpe
862# if HAVE_RAW_DECL_EXECVPE
863_GL_WARN_ON_USE (execvpe, "execvpe behaves very differently on mingw - "
864 "use gnulib module execvpe for portability");
865# endif
866#elif @GNULIB_MDA_EXECVPE@
708/* On native Windows, map 'execvpe' to '_execvpe', so that -loldnames is not 867/* On native Windows, map 'execvpe' to '_execvpe', so that -loldnames is not
709 required. In C++ with GNULIB_NAMESPACE, avoid differences between 868 required. In C++ with GNULIB_NAMESPACE, avoid differences between
710 platforms by defining GNULIB_NAMESPACE::execvpe on all platforms that have 869 platforms by defining GNULIB_NAMESPACE::execvpe on all platforms that have
711 it. */ 870 it. */
712#if defined _WIN32 && !defined __CYGWIN__ 871# if defined _WIN32 && !defined __CYGWIN__
713# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 872# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
714# undef execvpe 873# undef execvpe
715# define execvpe _execvpe 874# define execvpe _execvpe
716# endif 875# endif
717_GL_CXXALIAS_MDA (execvpe, intptr_t, 876_GL_CXXALIAS_MDA_CAST (execvpe, intptr_t,
718 (const char *program, const char * const *argv, 877 (const char *program, char * const *argv,
719 const char * const *env)); 878 char * const *env));
720#else 879# elif @HAVE_EXECVPE@
721# if @HAVE_DECL_EXECVPE@ 880# if !@HAVE_DECL_EXECVPE@
881_GL_FUNCDECL_SYS (execvpe, int,
882 (const char *program, char * const *argv, char * const *env)
883 _GL_ARG_NONNULL ((1, 2)));
884# endif
722_GL_CXXALIAS_SYS (execvpe, int, 885_GL_CXXALIAS_SYS (execvpe, int,
723 (const char *program, char * const *argv, char * const *env)); 886 (const char *program, char * const *argv, char * const *env));
724# endif 887# endif
725#endif 888# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_EXECVPE@
726#if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_EXECVPE@
727_GL_CXXALIASWARN (execvpe); 889_GL_CXXALIASWARN (execvpe);
890# endif
728#endif 891#endif
729 892
730 893
@@ -815,7 +978,7 @@ _GL_CXXALIASWARN (fchownat);
815# undef fchownat 978# undef fchownat
816# if HAVE_RAW_DECL_FCHOWNAT 979# if HAVE_RAW_DECL_FCHOWNAT
817_GL_WARN_ON_USE (fchownat, "fchownat is not portable - " 980_GL_WARN_ON_USE (fchownat, "fchownat is not portable - "
818 "use gnulib module openat for portability"); 981 "use gnulib module fchownat for portability");
819# endif 982# endif
820#endif 983#endif
821 984
@@ -921,7 +1084,7 @@ _GL_CXXALIASWARN (getcwd);
921_GL_WARN_ON_USE (getcwd, "getcwd is unportable - " 1084_GL_WARN_ON_USE (getcwd, "getcwd is unportable - "
922 "use gnulib module getcwd for portability"); 1085 "use gnulib module getcwd for portability");
923# endif 1086# endif
924#else 1087#elif @GNULIB_MDA_GETCWD@
925/* On native Windows, map 'getcwd' to '_getcwd', so that -loldnames is not 1088/* On native Windows, map 'getcwd' to '_getcwd', so that -loldnames is not
926 required. In C++ with GNULIB_NAMESPACE, avoid differences between 1089 required. In C++ with GNULIB_NAMESPACE, avoid differences between
927 platforms by defining GNULIB_NAMESPACE::getcwd always. */ 1090 platforms by defining GNULIB_NAMESPACE::getcwd always. */
@@ -1271,19 +1434,21 @@ _GL_WARN_ON_USE (getpass, "getpass is unportable - "
1271#endif 1434#endif
1272 1435
1273 1436
1437#if @GNULIB_MDA_GETPID@
1274/* On native Windows, map 'getpid' to '_getpid', so that -loldnames is not 1438/* On native Windows, map 'getpid' to '_getpid', so that -loldnames is not
1275 required. In C++ with GNULIB_NAMESPACE, avoid differences between 1439 required. In C++ with GNULIB_NAMESPACE, avoid differences between
1276 platforms by defining GNULIB_NAMESPACE::getpid always. */ 1440 platforms by defining GNULIB_NAMESPACE::getpid always. */
1277#if defined _WIN32 && !defined __CYGWIN__ 1441# if defined _WIN32 && !defined __CYGWIN__
1278# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 1442# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1279# undef getpid 1443# undef getpid
1280# define getpid _getpid 1444# define getpid _getpid
1281# endif 1445# endif
1282_GL_CXXALIAS_MDA (getpid, int, (void)); 1446_GL_CXXALIAS_MDA (getpid, int, (void));
1283#else 1447# else
1284_GL_CXXALIAS_SYS (getpid, pid_t, (void)); 1448_GL_CXXALIAS_SYS (getpid, pid_t, (void));
1285#endif 1449# endif
1286_GL_CXXALIASWARN (getpid); 1450_GL_CXXALIASWARN (getpid);
1451#endif
1287 1452
1288 1453
1289#if @GNULIB_GETUSERSHELL@ 1454#if @GNULIB_GETUSERSHELL@
@@ -1374,7 +1539,7 @@ _GL_CXXALIASWARN (isatty);
1374_GL_WARN_ON_USE (isatty, "isatty has portability problems on native Windows - " 1539_GL_WARN_ON_USE (isatty, "isatty has portability problems on native Windows - "
1375 "use gnulib module isatty for portability"); 1540 "use gnulib module isatty for portability");
1376# endif 1541# endif
1377#else 1542#elif @GNULIB_MDA_ISATTY@
1378/* On native Windows, map 'isatty' to '_isatty', so that -loldnames is not 1543/* On native Windows, map 'isatty' to '_isatty', so that -loldnames is not
1379 required. In C++ with GNULIB_NAMESPACE, avoid differences between 1544 required. In C++ with GNULIB_NAMESPACE, avoid differences between
1380 platforms by defining GNULIB_NAMESPACE::isatty always. */ 1545 platforms by defining GNULIB_NAMESPACE::isatty always. */
@@ -1515,7 +1680,7 @@ _GL_CXXALIASWARN (lseek);
1515_GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some " 1680_GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some "
1516 "systems - use gnulib module lseek for portability"); 1681 "systems - use gnulib module lseek for portability");
1517# endif 1682# endif
1518#else 1683#elif @GNULIB_MDA_LSEEK@
1519/* On native Windows, map 'lseek' to '_lseek', so that -loldnames is not 1684/* On native Windows, map 'lseek' to '_lseek', so that -loldnames is not
1520 required. In C++ with GNULIB_NAMESPACE, avoid differences between 1685 required. In C++ with GNULIB_NAMESPACE, avoid differences between
1521 platforms by defining GNULIB_NAMESPACE::lseek always. */ 1686 platforms by defining GNULIB_NAMESPACE::lseek always. */
@@ -1671,7 +1836,7 @@ _GL_CXXALIAS_MDA (read, ssize_t, (int fd, void *buf, size_t count));
1671_GL_CXXALIAS_SYS (read, ssize_t, (int fd, void *buf, size_t count)); 1836_GL_CXXALIAS_SYS (read, ssize_t, (int fd, void *buf, size_t count));
1672# endif 1837# endif
1673_GL_CXXALIASWARN (read); 1838_GL_CXXALIASWARN (read);
1674#else 1839#elif @GNULIB_MDA_READ@
1675/* On native Windows, map 'read' to '_read', so that -loldnames is not 1840/* On native Windows, map 'read' to '_read', so that -loldnames is not
1676 required. In C++ with GNULIB_NAMESPACE, avoid differences between 1841 required. In C++ with GNULIB_NAMESPACE, avoid differences between
1677 platforms by defining GNULIB_NAMESPACE::read always. */ 1842 platforms by defining GNULIB_NAMESPACE::read always. */
@@ -1787,7 +1952,7 @@ _GL_CXXALIASWARN (rmdir);
1787_GL_WARN_ON_USE (rmdir, "rmdir is unportable - " 1952_GL_WARN_ON_USE (rmdir, "rmdir is unportable - "
1788 "use gnulib module rmdir for portability"); 1953 "use gnulib module rmdir for portability");
1789# endif 1954# endif
1790#else 1955#elif @GNULIB_MDA_RMDIR@
1791/* On native Windows, map 'rmdir' to '_rmdir', so that -loldnames is not 1956/* On native Windows, map 'rmdir' to '_rmdir', so that -loldnames is not
1792 required. In C++ with GNULIB_NAMESPACE, avoid differences between 1957 required. In C++ with GNULIB_NAMESPACE, avoid differences between
1793 platforms by defining GNULIB_NAMESPACE::rmdir always. */ 1958 platforms by defining GNULIB_NAMESPACE::rmdir always. */
@@ -1859,19 +2024,21 @@ _GL_WARN_ON_USE (sleep, "sleep is unportable - "
1859#endif 2024#endif
1860 2025
1861 2026
2027#if @GNULIB_MDA_SWAB@
1862/* On native Windows, map 'swab' to '_swab', so that -loldnames is not 2028/* On native Windows, map 'swab' to '_swab', so that -loldnames is not
1863 required. In C++ with GNULIB_NAMESPACE, avoid differences between 2029 required. In C++ with GNULIB_NAMESPACE, avoid differences between
1864 platforms by defining GNULIB_NAMESPACE::creat always. */ 2030 platforms by defining GNULIB_NAMESPACE::creat always. */
1865#if defined _WIN32 && !defined __CYGWIN__ 2031# if defined _WIN32 && !defined __CYGWIN__
1866# if !(defined __cplusplus && defined GNULIB_NAMESPACE) 2032# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
1867# undef swab 2033# undef swab
1868# define swab _swab 2034# define swab _swab
1869# endif 2035# endif
1870_GL_CXXALIAS_MDA (swab, void, (char *from, char *to, int n)); 2036_GL_CXXALIAS_MDA (swab, void, (char *from, char *to, int n));
1871#else 2037# else
1872_GL_CXXALIAS_SYS (swab, void, (const void *from, void *to, ssize_t n)); 2038_GL_CXXALIAS_SYS (swab, void, (const void *from, void *to, ssize_t n));
1873#endif 2039# endif
1874_GL_CXXALIASWARN (swab); 2040_GL_CXXALIASWARN (swab);
2041#endif
1875 2042
1876 2043
1877#if @GNULIB_SYMLINK@ 2044#if @GNULIB_SYMLINK@
@@ -2014,7 +2181,7 @@ _GL_CXXALIASWARN (unlink);
2014_GL_WARN_ON_USE (unlink, "unlink is not portable - " 2181_GL_WARN_ON_USE (unlink, "unlink is not portable - "
2015 "use gnulib module unlink for portability"); 2182 "use gnulib module unlink for portability");
2016# endif 2183# endif
2017#else 2184#elif @GNULIB_MDA_UNLINK@
2018/* On native Windows, map 'unlink' to '_unlink', so that -loldnames is not 2185/* On native Windows, map 'unlink' to '_unlink', so that -loldnames is not
2019 required. In C++ with GNULIB_NAMESPACE, avoid differences between 2186 required. In C++ with GNULIB_NAMESPACE, avoid differences between
2020 platforms by defining GNULIB_NAMESPACE::unlink always. */ 2187 platforms by defining GNULIB_NAMESPACE::unlink always. */
@@ -2052,7 +2219,7 @@ _GL_CXXALIASWARN (unlinkat);
2052# undef unlinkat 2219# undef unlinkat
2053# if HAVE_RAW_DECL_UNLINKAT 2220# if HAVE_RAW_DECL_UNLINKAT
2054_GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - " 2221_GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - "
2055 "use gnulib module openat for portability"); 2222 "use gnulib module unlinkat for portability");
2056# endif 2223# endif
2057#endif 2224#endif
2058 2225
@@ -2109,7 +2276,7 @@ _GL_CXXALIAS_MDA (write, ssize_t, (int fd, const void *buf, size_t count));
2109_GL_CXXALIAS_SYS (write, ssize_t, (int fd, const void *buf, size_t count)); 2276_GL_CXXALIAS_SYS (write, ssize_t, (int fd, const void *buf, size_t count));
2110# endif 2277# endif
2111_GL_CXXALIASWARN (write); 2278_GL_CXXALIASWARN (write);
2112#else 2279#elif @GNULIB_MDA_WRITE@
2113/* On native Windows, map 'write' to '_write', so that -loldnames is not 2280/* On native Windows, map 'write' to '_write', so that -loldnames is not
2114 required. In C++ with GNULIB_NAMESPACE, avoid differences between 2281 required. In C++ with GNULIB_NAMESPACE, avoid differences between
2115 platforms by defining GNULIB_NAMESPACE::write always. */ 2282 platforms by defining GNULIB_NAMESPACE::write always. */
diff --git a/lib/xalloc-oversized.h b/lib/xalloc-oversized.h
index 3550cab846c..53daf59663e 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-2021 Free Software 3 Copyright (C) 1990-2000, 2003-2004, 2006-2021 Free Software Foundation, Inc.
4 Foundation, 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