Update from Gnulib by running admin/merge-gnulib

This commit is contained in:
Paul Eggert 2025-01-01 15:18:19 -08:00
parent bdb13a0e5c
commit 3adf3f546e
68 changed files with 262 additions and 197 deletions

View file

@ -1,6 +1,6 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright 1992-2025 Free Software Foundation, Inc.
# Copyright 1992-2024 Free Software Foundation, Inc.
# shellcheck disable=SC2006,SC2268 # see below for rationale
@ -60,7 +60,7 @@ version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
Copyright 1992-2025 Free Software Foundation, Inc.
Copyright 1992-2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

View file

@ -1,6 +1,6 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright 1992-2025 Free Software Foundation, Inc.
# Copyright 1992-2024 Free Software Foundation, Inc.
# shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale
@ -76,7 +76,7 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)
Copyright 1992-2025 Free Software Foundation, Inc.
Copyright 1992-2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

View file

@ -47,8 +47,8 @@
# Each file's copyright statement must be formatted correctly in
# order to be recognized. For example, each of these is fine:
#
# Copyright @copyright{} 1990-2005, 2007-2009, 2025 Free Software
# Foundation, Inc.
# Copyright @copyright{} 1990-2005, 2007-2009, 2025 Free Software Foundation,
# Inc.
#
# # Copyright (C) 1990-2005, 2007-2009 Free Software
# # Foundation, Inc.

View file

@ -5,7 +5,7 @@
%
\def\texinfoversion{2024-11-04.20}
%
% Copyright 1985--1986, 1988, 1990--2025 Free Software Foundation, Inc.
% Copyright 1985, 1986, 1988, 1990-2024 Free Software Foundation, Inc.
%
% This texinfo.tex file is free software: you can redistribute it and/or
% modify it under the terms of the GNU General Public License as

View file

@ -1,7 +1,7 @@
/* Memory allocation on the stack.
Copyright (C) 1995, 1999, 2001-2004, 2006-2025 Free Software
Foundation, Inc.
Copyright (C) 1995, 1999, 2001-2004, 2006-2025 Free Software Foundation,
Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,6 +1,5 @@
/* Binary mode I/O.
Copyright (C) 2001, 2003, 2005, 2008-2025 Free Software Foundation,
Inc.
Copyright (C) 2001, 2003, 2005, 2008-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -5,8 +5,7 @@
<ctype.h> functions' behaviour depends on the current locale set via
setlocale.
Copyright (C) 2000-2003, 2006, 2008-2025 Free Software Foundation,
Inc.
Copyright (C) 2000-2003, 2006, 2008-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,6 +1,5 @@
/* c-strcasecmp.c -- case insensitive string comparator in C locale
Copyright (C) 1998-1999, 2005-2006, 2009-2025 Free Software
Foundation, Inc.
Copyright (C) 1998-1999, 2005-2006, 2009-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,6 +1,5 @@
/* c-strncasecmp.c -- case insensitive string comparator in C locale
Copyright (C) 1998-1999, 2005-2006, 2009-2025 Free Software
Foundation, Inc.
Copyright (C) 1998-1999, 2005-2006, 2009-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,7 @@
/* Read symbolic links into a buffer without size limitation, relative to fd.
Copyright (C) 2001, 2003-2004, 2007, 2009-2025 Free Software
Foundation, Inc.
Copyright (C) 2001, 2003-2004, 2007, 2009-2025 Free Software Foundation,
Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,6 @@
/* cloexec.c - set or clear the close-on-exec descriptor flag
Copyright (C) 1991, 2004-2006, 2009-2025 Free Software Foundation,
Inc.
Copyright (C) 1991, 2004-2006, 2009-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,6 @@
/* Close a stream, with nicer error checking than fclose's.
Copyright (C) 1998-2002, 2004, 2006-2025 Free Software Foundation,
Inc.
Copyright (C) 1998-2002, 2004, 2006-2025 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View file

@ -1,7 +1,7 @@
/* Analyze differences between two vectors.
Copyright (C) 1988-1989, 1992-1995, 2001-2004, 2006-2025 Free
Software Foundation, Inc.
Copyright (C) 1988-1989, 1992-1995, 2001-2004, 2006-2025 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View file

@ -1,7 +1,6 @@
/* Duplicate an open file descriptor to a specified file descriptor.
Copyright (C) 1999, 2004-2007, 2009-2025 Free Software Foundation,
Inc.
Copyright (C) 1999, 2004-2007, 2009-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -29,6 +29,10 @@
/* The include_next requires a split double-inclusion guard. */
# @INCLUDE_NEXT@ @NEXT_ENDIAN_H@
#elif @HAVE_SYS_ENDIAN_H@
# include <sys/endian.h>
#endif
@ -69,7 +73,7 @@ _GL_INLINE_HEADER_BEGIN
# define BYTE_ORDER LITTLE_ENDIAN
#endif
#if @HAVE_ENDIAN_H@
#if @HAVE_ENDIAN_H@ || @HAVE_SYS_ENDIAN_H@
/* Make sure we don't have any system definitions. */
# undef be16toh

View file

@ -55,6 +55,12 @@ static char const UNKNOWN_SECURITY_CONTEXT[] = "?";
# include <arpa/inet.h>
# include <sys/xattr.h>
# include <linux/xattr.h>
# ifndef XATTR_NAME_SMACK
# define XATTR_NAME_SMACK "security.SMACK64"
# endif
# ifndef XATTR_NAME_SELINUX
# define XATTR_NAME_SELINUX "security.selinux"
# endif
# ifndef XATTR_NAME_NFSV4_ACL
# define XATTR_NAME_NFSV4_ACL "system.nfs4_acl"
# endif

View file

@ -1,7 +1,7 @@
/* Make a string describing file modes.
Copyright (C) 1998-1999, 2003, 2006, 2009-2025 Free Software
Foundation, Inc.
Copyright (C) 1998-1999, 2003, 2006, 2009-2025 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
/* fpending.c -- return the number of pending output bytes on a stream
Copyright (C) 2000, 2004, 2006-2007, 2009-2025 Free Software
Foundation, Inc.
Copyright (C) 2000, 2004, 2006-2007, 2009-2025 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View file

@ -1,7 +1,7 @@
/* Declare __fpending.
Copyright (C) 2000, 2003, 2005-2006, 2009-2025 Free Software
Foundation, Inc.
Copyright (C) 2000, 2003, 2005-2006, 2009-2025 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View file

@ -1,7 +1,7 @@
/* fsusage.c -- return space usage of mounted file systems
Copyright (C) 1991-1992, 1996, 1998-1999, 2002-2006, 2009-2025 Free
Software Foundation, Inc.
Copyright (C) 1991-1992, 1996, 1998-1999, 2002-2006, 2009-2025 Free Software
Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,6 @@
/* provide consistent interface to getgroups for systems that don't allow N==0
Copyright (C) 1996, 1999, 2003, 2006-2025 Free Software Foundation,
Inc.
Copyright (C) 1996, 1999, 2003, 2006-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,7 @@
/* Get the system load averages.
Copyright (C) 1985-1989, 1991-1995, 1997, 1999-2000, 2003-2025 Free
Software Foundation, Inc.
Copyright (C) 1985-1989, 1991-1995, 1997, 1999-2000, 2003-2025 Free Software
Foundation, Inc.
NOTE: The canonical source of this file is maintained with gnulib.
Bugs can be reported to bug-gnulib@gnu.org.

View file

@ -1,7 +1,6 @@
/* gettime -- get the system clock
Copyright (C) 2002, 2004-2007, 2009-2025 Free Software Foundation,
Inc.
Copyright (C) 2002, 2004-2007, 2009-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,6 @@
/* Provide gettimeofday for systems that don't have it or for which it's broken.
Copyright (C) 2001-2003, 2005-2007, 2009-2025 Free Software
Foundation, Inc.
Copyright (C) 2001-2003, 2005-2007, 2009-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -47,7 +47,7 @@
# --avoid=iswctype \
# --avoid=iswdigit \
# --avoid=iswxdigit \
# --avoid=langinfo \
# --avoid=langinfo-h \
# --avoid=libgmp-mpq \
# --avoid=localename-unsafe-limited \
# --avoid=lock \
@ -67,19 +67,20 @@
# --avoid=setenv \
# --avoid=sigprocmask \
# --avoid=stat \
# --avoid=stdarg \
# --avoid=stdarg-h \
# --avoid=threadlib \
# --avoid=tzset \
# --avoid=unsetenv \
# --avoid=utime \
# --avoid=utime-h \
# --avoid=wchar \
# --avoid=wchar-h \
# --avoid=wcrtomb \
# --avoid=wctype \
# --avoid=wctype-h \
# alignasof \
# alloca-opt \
# binary-io \
# bool \
# boot-time \
# builtin-expect \
# byteswap \
@ -155,19 +156,18 @@
# socklen \
# stat-time \
# std-gnu11 \
# stdbool \
# stdc_bit_width \
# stdc_count_ones \
# stdc_trailing_zeros \
# stdckdint \
# stddef \
# stdio \
# stdckdint-h \
# stddef-h \
# stdio-h \
# stpcpy \
# strnlen \
# strtoimax \
# symlink \
# sys_stat \
# sys_time \
# sys_stat-h \
# sys_time-h \
# tempname \
# time-h \
# time_r \
@ -927,6 +927,7 @@ HAVE_SYMLINK = @HAVE_SYMLINK@
HAVE_SYMLINKAT = @HAVE_SYMLINKAT@
HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@
HAVE_SYS_ENDIAN_H = @HAVE_SYS_ENDIAN_H@
HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@
HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@
@ -1037,6 +1038,7 @@ LIB_WSOCK32 = @LIB_WSOCK32@
LIB_XATTR = @LIB_XATTR@
LIMITS_H = @LIMITS_H@
LN_S_FILEONLY = @LN_S_FILEONLY@
LOCALE_EN_UTF8 = @LOCALE_EN_UTF8@
LTLIBGMP = @LTLIBGMP@
LTLIBINTL = @LTLIBINTL@
LTLIBOBJS = @LTLIBOBJS@
@ -1823,8 +1825,8 @@ libgnu_a_SOURCES += diffseq.h
endif
## end gnulib module diffseq
## begin gnulib module dirent
ifeq (,$(OMIT_GNULIB_MODULE_dirent))
## begin gnulib module dirent-h
ifeq (,$(OMIT_GNULIB_MODULE_dirent-h))
BUILT_SOURCES += dirent.h
@ -1872,7 +1874,7 @@ MOSTLYCLEANFILES += dirent.h dirent.h-t
EXTRA_DIST += dirent.in.h
endif
## end gnulib module dirent
## end gnulib module dirent-h
## begin gnulib module dirfd
ifeq (,$(OMIT_GNULIB_MODULE_dirfd))
@ -1946,6 +1948,7 @@ endian.h: endian.in.h $(top_builddir)/config.status
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-e 's|@''HAVE_ENDIAN_H''@|$(HAVE_ENDIAN_H)|g' \
-e 's|@''NEXT_ENDIAN_H''@|$(NEXT_ENDIAN_H)|g' \
-e 's|@''HAVE_SYS_ENDIAN_H''@|$(HAVE_SYS_ENDIAN_H)|g' \
-e 's|@''ENDIAN_H_JUST_MISSING_STDINT''@|$(ENDIAN_H_JUST_MISSING_STDINT)|g' \
$(srcdir)/endian.in.h > $@-t
$(AM_V_at)mv $@-t $@
@ -1962,8 +1965,8 @@ EXTRA_DIST += endian.in.h
endif
## end gnulib module endian
## begin gnulib module errno
ifeq (,$(OMIT_GNULIB_MODULE_errno))
## begin gnulib module errno-h
ifeq (,$(OMIT_GNULIB_MODULE_errno-h))
BUILT_SOURCES += $(ERRNO_H)
@ -1994,7 +1997,7 @@ MOSTLYCLEANFILES += errno.h errno.h-t
EXTRA_DIST += errno.in.h
endif
## end gnulib module errno
## end gnulib module errno-h
## begin gnulib module euidaccess
ifeq (,$(OMIT_GNULIB_MODULE_euidaccess))
@ -2534,8 +2537,8 @@ EXTRA_DIST += intprops-internal.h intprops.h
endif
## end gnulib module intprops
## begin gnulib module inttypes-incomplete
ifeq (,$(OMIT_GNULIB_MODULE_inttypes-incomplete))
## begin gnulib module inttypes-h-incomplete
ifeq (,$(OMIT_GNULIB_MODULE_inttypes-h-incomplete))
BUILT_SOURCES += inttypes.h
@ -2577,7 +2580,7 @@ MOSTLYCLEANFILES += inttypes.h inttypes.h-t
EXTRA_DIST += inttypes.in.h
endif
## end gnulib module inttypes-incomplete
## end gnulib module inttypes-h-incomplete
## begin gnulib module lchmod
ifeq (,$(OMIT_GNULIB_MODULE_lchmod))
@ -3169,8 +3172,8 @@ endif
endif
## end gnulib module stdc_trailing_zeros
## begin gnulib module stdckdint
ifeq (,$(OMIT_GNULIB_MODULE_stdckdint))
## begin gnulib module stdckdint-h
ifeq (,$(OMIT_GNULIB_MODULE_stdckdint-h))
BUILT_SOURCES += $(STDCKDINT_H)
@ -3190,10 +3193,10 @@ MOSTLYCLEANFILES += stdckdint.h stdckdint.h-t
EXTRA_DIST += intprops-internal.h stdckdint.in.h
endif
## end gnulib module stdckdint
## end gnulib module stdckdint-h
## begin gnulib module stddef
ifeq (,$(OMIT_GNULIB_MODULE_stddef))
## begin gnulib module stddef-h
ifeq (,$(OMIT_GNULIB_MODULE_stddef-h))
BUILT_SOURCES += $(STDDEF_H)
@ -3222,10 +3225,10 @@ MOSTLYCLEANFILES += stddef.h stddef.h-t
EXTRA_DIST += stddef.in.h
endif
## end gnulib module stddef
## end gnulib module stddef-h
## begin gnulib module stdint
ifeq (,$(OMIT_GNULIB_MODULE_stdint))
## begin gnulib module stdint-h
ifeq (,$(OMIT_GNULIB_MODULE_stdint-h))
BUILT_SOURCES += $(STDINT_H)
@ -3272,10 +3275,10 @@ MOSTLYCLEANFILES += stdint.h stdint.h-t
EXTRA_DIST += stdint.in.h
endif
## end gnulib module stdint
## end gnulib module stdint-h
## begin gnulib module stdio
ifeq (,$(OMIT_GNULIB_MODULE_stdio))
## begin gnulib module stdio-h
ifeq (,$(OMIT_GNULIB_MODULE_stdio-h))
BUILT_SOURCES += stdio.h
@ -3435,10 +3438,10 @@ endif
EXTRA_DIST += stdio.in.h
endif
## end gnulib module stdio
## end gnulib module stdio-h
## begin gnulib module stdlib
ifeq (,$(OMIT_GNULIB_MODULE_stdlib))
## begin gnulib module stdlib-h
ifeq (,$(OMIT_GNULIB_MODULE_stdlib-h))
BUILT_SOURCES += stdlib.h
libgnu_a_SOURCES += stdlib.c
@ -3609,7 +3612,7 @@ MOSTLYCLEANFILES += stdlib.h stdlib.h-t1 stdlib.h-t2 stdlib.h-t3
EXTRA_DIST += stdlib.in.h
endif
## end gnulib module stdlib
## end gnulib module stdlib-h
## begin gnulib module stpcpy
ifeq (,$(OMIT_GNULIB_MODULE_stpcpy))
@ -3621,8 +3624,8 @@ endif
endif
## end gnulib module stpcpy
## begin gnulib module string
ifeq (,$(OMIT_GNULIB_MODULE_string))
## begin gnulib module string-h
ifeq (,$(OMIT_GNULIB_MODULE_string-h))
BUILT_SOURCES += string.h
@ -3740,7 +3743,7 @@ MOSTLYCLEANFILES += string.h string.h-t1 string.h-t2
EXTRA_DIST += string.in.h
endif
## end gnulib module string
## end gnulib module string-h
## begin gnulib module strnlen
ifeq (,$(OMIT_GNULIB_MODULE_strnlen))
@ -3788,8 +3791,8 @@ endif
endif
## end gnulib module symlink
## begin gnulib module sys_random
ifeq (,$(OMIT_GNULIB_MODULE_sys_random))
## begin gnulib module sys_random-h
ifeq (,$(OMIT_GNULIB_MODULE_sys_random-h))
BUILT_SOURCES += sys/random.h
@ -3818,10 +3821,10 @@ MOSTLYCLEANDIRS += sys
EXTRA_DIST += sys_random.in.h
endif
## end gnulib module sys_random
## end gnulib module sys_random-h
## begin gnulib module sys_select
ifeq (,$(OMIT_GNULIB_MODULE_sys_select))
## begin gnulib module sys_select-h
ifeq (,$(OMIT_GNULIB_MODULE_sys_select-h))
BUILT_SOURCES += sys/select.h
@ -3852,10 +3855,10 @@ MOSTLYCLEANDIRS += sys
EXTRA_DIST += sys_select.in.h
endif
## end gnulib module sys_select
## end gnulib module sys_select-h
## begin gnulib module sys_stat
ifeq (,$(OMIT_GNULIB_MODULE_sys_stat))
## begin gnulib module sys_stat-h
ifeq (,$(OMIT_GNULIB_MODULE_sys_stat-h))
BUILT_SOURCES += sys/stat.h
@ -3927,10 +3930,10 @@ MOSTLYCLEANDIRS += sys
EXTRA_DIST += sys_stat.in.h
endif
## end gnulib module sys_stat
## end gnulib module sys_stat-h
## begin gnulib module sys_time
ifeq (,$(OMIT_GNULIB_MODULE_sys_time))
## begin gnulib module sys_time-h
ifeq (,$(OMIT_GNULIB_MODULE_sys_time-h))
BUILT_SOURCES += sys/time.h
@ -3962,10 +3965,10 @@ MOSTLYCLEANDIRS += sys
EXTRA_DIST += sys_time.in.h
endif
## end gnulib module sys_time
## end gnulib module sys_time-h
## begin gnulib module sys_types
ifeq (,$(OMIT_GNULIB_MODULE_sys_types))
## begin gnulib module sys_types-h
ifeq (,$(OMIT_GNULIB_MODULE_sys_types-h))
BUILT_SOURCES += sys/types.h
@ -3990,7 +3993,7 @@ MOSTLYCLEANDIRS += sys
EXTRA_DIST += sys_types.in.h
endif
## end gnulib module sys_types
## end gnulib module sys_types-h
## begin gnulib module tempname
ifeq (,$(OMIT_GNULIB_MODULE_tempname))
@ -4140,8 +4143,8 @@ EXTRA_DIST += u64.h
endif
## end gnulib module u64
## begin gnulib module unistd
ifeq (,$(OMIT_GNULIB_MODULE_unistd))
## begin gnulib module unistd-h
ifeq (,$(OMIT_GNULIB_MODULE_unistd-h))
BUILT_SOURCES += unistd.h
libgnu_a_SOURCES += unistd.c
@ -4359,7 +4362,7 @@ MOSTLYCLEANFILES += unistd.h unistd.h-t1 unistd.h-t2 unistd.h-t3 unistd.h-t4
EXTRA_DIST += unistd.in.h
endif
## end gnulib module unistd
## end gnulib module unistd-h
## begin gnulib module unlocked-io-internal
ifeq (,$(OMIT_GNULIB_MODULE_unlocked-io-internal))

View file

@ -1,7 +1,7 @@
/* group-member.c -- determine whether group id is in calling user's group list
Copyright (C) 1994, 1997-1998, 2003, 2005-2006, 2009-2025 Free
Software Foundation, Inc.
Copyright (C) 1994, 1997-1998, 2003, 2005-2006, 2009-2025 Free Software
Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,6 @@
/* malloc() function that is glibc compatible.
Copyright (C) 1997-1998, 2006-2007, 2009-2025 Free Software
Foundation, Inc.
Copyright (C) 1997-1998, 2006-2007, 2009-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,7 @@
/* Functions to compute MD5 message digest of files or memory blocks.
according to the definition of MD5 in RFC 1321 from April 1992.
Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2025 Free
Software Foundation, Inc.
Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2025 Free Software
Foundation, Inc.
This file is part of the GNU C Library.
This file is free software: you can redistribute it and/or modify

View file

@ -1,7 +1,7 @@
/* Functions to compute MD5 message digest of files or memory blocks.
according to the definition of MD5 in RFC 1321 from April 1992.
Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2025 Free
Software Foundation, Inc.
Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2025 Free Software
Foundation, Inc.
This file is part of the GNU C Library.
This file is free software: you can redistribute it and/or modify

View file

@ -1,7 +1,7 @@
/* Declaration of functions and data types used for MD5 sum computing
library functions.
Copyright (C) 1995-1997, 1999-2001, 2004-2006, 2008-2025 Free
Software Foundation, Inc.
Copyright (C) 1995-1997, 1999-2001, 2004-2006, 2008-2025 Free Software
Foundation, Inc.
This file is part of the GNU C Library.
This file is free software: you can redistribute it and/or modify

View file

@ -1,5 +1,5 @@
/* Copyright (C) 1991-1994, 1996-1998, 2000, 2004, 2007-2025 Free
Software Foundation, Inc.
/* Copyright (C) 1991-1994, 1996-1998, 2000, 2004, 2007-2025 Free Software
Foundation, Inc.
This file is part of the GNU C Library.
This file is free software: you can redistribute it and/or modify

View file

@ -1,7 +1,7 @@
/* memrchr -- find the last occurrence of a byte in a memory block
Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2025 Free
Software Foundation, Inc.
Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2025 Free Software
Foundation, Inc.
Based on strlen implementation by Torbjorn Granlund (tege@sics.se),
with help from Dan Sahlin (dan@sics.se) and

View file

@ -1,7 +1,6 @@
/* Provide a replacement for the POSIX nanosleep function.
Copyright (C) 1999-2000, 2002, 2004-2025 Free Software Foundation,
Inc.
Copyright (C) 1999-2000, 2002, 2004-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,7 @@
/* Save and restore current working directory.
Copyright (C) 1995, 1997-1998, 2003, 2009-2025 Free Software
Foundation, Inc.
Copyright (C) 1995, 1997-1998, 2003, 2009-2025 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View file

@ -1,8 +1,7 @@
/* sha1.c - Functions to compute SHA1 message digest of files or
memory blocks according to the NIST specification FIPS-180-1.
Copyright (C) 2000-2001, 2003-2006, 2008-2025 Free Software
Foundation, Inc.
Copyright (C) 2000-2001, 2003-2006, 2008-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,6 @@
/* sig2str.c -- convert between signal names and numbers
Copyright (C) 2002, 2004, 2006, 2009-2025 Free Software Foundation,
Inc.
Copyright (C) 2002, 2004, 2006, 2009-2025 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View file

@ -1,7 +1,6 @@
/* A GNU-like <stdlib.h>.
Copyright (C) 1995, 2001-2004, 2006-2025 Free Software Foundation,
Inc.
Copyright (C) 1995, 2001-2004, 2006-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,7 @@
/* Convert string representation of a number into an intmax_t value.
Copyright (C) 1999, 2001-2004, 2006, 2009-2025 Free Software
Foundation, Inc.
Copyright (C) 1999, 2001-2004, 2006, 2009-2025 Free Software Foundation,
Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -1,7 +1,7 @@
/* Convert string representation of a number into an integer value.
Copyright (C) 1991-1992, 1994-1999, 2003, 2005-2007, 2009-2025 Free
Software Foundation, Inc.
Copyright (C) 1991-1992, 1994-1999, 2003, 2005-2007, 2009-2025 Free Software
Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C
Library. Bugs can be reported to bug-glibc@gnu.org.

View file

@ -1,6 +1,6 @@
/* Function to parse a 'long long int' from text.
Copyright (C) 1995-1997, 1999, 2001, 2009-2025 Free Software
Foundation, Inc.
Copyright (C) 1995-1997, 1999, 2001, 2009-2025 Free Software Foundation,
Inc.
This file is part of the GNU C Library.
This file is free software: you can redistribute it and/or modify

View file

@ -1,7 +1,6 @@
/* Reentrant time functions like localtime_r.
Copyright (C) 2003, 2006-2007, 2010-2025 Free Software Foundation,
Inc.
Copyright (C) 2003, 2006-2007, 2010-2025 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as

View file

@ -255,6 +255,11 @@ template <int w>
# endif
# endif
/* Define static_assert if needed. */
# if defined __cplusplus && defined __clang__ && __clang_major__ < 9
/* clang++ before commit 5c739665a8721228cf6143fd4ef95870a59f55ae had a
two-arguments static_assert but not the one-argument static_assert. */
# undef static_assert
# endif
# if (!defined static_assert \
&& __STDC_VERSION__ < 202311 \
&& (!defined __cplusplus \

View file

@ -1,7 +1,7 @@
# alloca.m4
# serial 21
dnl Copyright (C) 2002-2004, 2006-2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 2002-2004, 2006-2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# codeset.m4
# serial 5 (gettext-0.18.2)
dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016, 2019-2025 Free
dnl Software Foundation, Inc.
dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016, 2019-2025 Free Software
dnl Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# d-type.m4
# serial 12
dnl Copyright (C) 1997, 1999-2004, 2006, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 1997, 1999-2004, 2006, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,6 @@
# dup2.m4
# serial 28
dnl Copyright (C) 2002, 2005, 2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl Copyright (C) 2002, 2005, 2007, 2009-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,5 +1,5 @@
# endian_h.m4
# serial 4
# serial 6
dnl Copyright 2024-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@ -34,7 +34,7 @@ AC_DEFUN_ONCE([gl_ENDIAN_H],
AC_CACHE_CHECK([if endian.h defines functions and macros],
[gl_cv_header_working_endian_h],
[gl_cv_header_working_endian_h=no
AC_COMPILE_IFELSE(
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
#include <endian.h>
@ -80,6 +80,75 @@ return !(value16_1 + value32_1 + value64_1
HAVE_ENDIAN_H=0
fi
AC_CHECK_HEADERS_ONCE([sys/endian.h])
if test $ac_cv_header_sys_endian_h = yes; then
HAVE_SYS_ENDIAN_H=1
dnl Check if sys/endian.h defines uint16_t, uint32_t, and uint64_t.
dnl Note: We don't use the result of this test for now.
AC_CACHE_CHECK([if sys/endian.h defines stdint types],
[gl_cv_header_sys_endian_h_stdint_types],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <sys/endian.h>
]],
[[uint16_t t1 = 0;
uint32_t t2 = 0;
uint64_t t3 = 0;
return !(t1 + t2 + t3);
]])],
[gl_cv_header_sys_endian_h_stdint_types=yes],
[gl_cv_header_sys_endian_h_stdint_types=no])
])
dnl Note: We don't use the result of this test for now.
AC_CACHE_CHECK([if sys/endian.h defines functions and macros],
[gl_cv_header_working_sys_endian_h],
[gl_cv_header_working_sys_endian_h=no
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
#include <sys/endian.h>
]],
[[
#if LITTLE_ENDIAN == BIG_ENDIAN
# error "Endian macros not unique."
#endif
#if BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN
# error "Byte order not defined."
#endif
/* Big endian to host. */
int value16_1 = be16toh (0.0);
int value32_1 = be32toh (0.0);
int value64_1 = be64toh (0.0);
/* Host to big endian. */
int value16_2 = htobe16 (0.0);
int value32_2 = htobe32 (0.0);
int value64_2 = htobe64 (0.0);
/* Little endian to host. */
int value16_3 = le16toh (0.0);
int value32_3 = le32toh (0.0);
int value64_3 = le64toh (0.0);
/* Host to little endian. */
int value16_4 = htole16 (0.0);
int value32_4 = htole32 (0.0);
int value64_4 = htole64 (0.0);
/* Make sure the variables get used. */
return !(value16_1 + value32_1 + value64_1
+ value16_2 + value32_2 + value64_2
+ value16_3 + value32_3 + value64_3
+ value16_4 + value32_4 + value64_4);
]])],
[gl_cv_header_working_sys_endian_h=yes],
[gl_cv_header_working_sys_endian_h=no])
])
else
HAVE_SYS_ENDIAN_H=0
fi
dnl Check if endian.h should be generated.
if test "$gl_cv_header_endian_h_stdint_types" = yes \
&& test "$gl_cv_header_working_endian_h" = yes; then
@ -100,5 +169,6 @@ return !(value16_1 + value32_1 + value64_1
fi
AC_SUBST([HAVE_ENDIAN_H])
AC_SUBST([HAVE_SYS_ENDIAN_H])
AC_SUBST([ENDIAN_H_JUST_MISSING_STDINT])
])

View file

@ -1,7 +1,6 @@
# filemode.m4
# serial 9
dnl Copyright (C) 2002, 2005-2006, 2009-2025 Free Software Foundation,
dnl Inc.
dnl Copyright (C) 2002, 2005-2006, 2009-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# fsusage.m4
# serial 35
dnl Copyright (C) 1997-1998, 2000-2001, 2003-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 1997-1998, 2000-2001, 2003-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# getgroups.m4
# serial 25
dnl Copyright (C) 1996-1997, 1999-2004, 2008-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 1996-1997, 1999-2004, 2008-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,8 +1,8 @@
# getline.m4
# serial 33
dnl Copyright (C) 1998-2003, 2005-2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 1998-2003, 2005-2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,

View file

@ -1,7 +1,6 @@
# gettime.m4
# serial 15
dnl Copyright (C) 2002, 2004-2006, 2009-2025 Free Software Foundation,
dnl Inc.
dnl Copyright (C) 2002, 2004-2006, 2009-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# gettimeofday.m4
# serial 30
dnl Copyright (C) 2001-2003, 2005, 2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 2001-2003, 2005, 2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -51,6 +51,7 @@ AC_DEFUN([gl_EARLY],
# Code from module at-internal:
# Code from module attribute:
# Code from module binary-io:
# Code from module bool:
# Code from module boot-time:
# Code from module builtin-expect:
# Code from module byteswap:
@ -70,7 +71,7 @@ AC_DEFUN([gl_EARLY],
# Code from module crypto/sha512-buffer:
# Code from module d-type:
# Code from module diffseq:
# Code from module dirent:
# Code from module dirent-h:
# Code from module dirfd:
# Code from module double-slash-root:
# Code from module dtoastr:
@ -79,7 +80,7 @@ AC_DEFUN([gl_EARLY],
# Code from module eloop-threshold:
# Code from module endian:
# Code from module environ:
# Code from module errno:
# Code from module errno-h:
# Code from module euidaccess:
# Code from module execinfo:
# Code from module extensions:
@ -127,7 +128,7 @@ AC_DEFUN([gl_EARLY],
# Code from module ignore-value:
# Code from module include_next:
# Code from module intprops:
# Code from module inttypes-incomplete:
# Code from module inttypes-h-incomplete:
# Code from module largefile:
AC_REQUIRE([AC_SYS_LARGEFILE])
# Code from module lchmod:
@ -177,28 +178,27 @@ AC_DEFUN([gl_EARLY],
# Code from module stat-time:
# Code from module std-gnu11:
# Code from module stdbit-h:
# Code from module stdbool:
# Code from module stdc_bit_width:
# Code from module stdc_count_ones:
# Code from module stdc_leading_zeros:
# Code from module stdc_trailing_zeros:
# Code from module stdckdint:
# Code from module stddef:
# Code from module stdint:
# Code from module stdio:
# Code from module stdckdint-h:
# Code from module stddef-h:
# Code from module stdint-h:
# Code from module stdio-h:
gl_STDIO_H_EARLY
# Code from module stdlib:
# Code from module stdlib-h:
# Code from module stpcpy:
# Code from module string:
# Code from module string-h:
# Code from module strnlen:
# Code from module strtoimax:
# Code from module strtoll:
# Code from module symlink:
# Code from module sys_random:
# Code from module sys_select:
# Code from module sys_stat:
# Code from module sys_time:
# Code from module sys_types:
# Code from module sys_random-h:
# Code from module sys_select-h:
# Code from module sys_stat-h:
# Code from module sys_time-h:
# Code from module sys_types-h:
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
# Code from module tempname:
# Code from module time-h:
@ -210,7 +210,7 @@ AC_DEFUN([gl_EARLY],
# Code from module timespec-add:
# Code from module timespec-sub:
# Code from module u64:
# Code from module unistd:
# Code from module unistd-h:
# Code from module unlocked-io:
# Code from module unlocked-io-internal:
# Code from module update-copyright:
@ -251,6 +251,7 @@ AC_DEFUN([gl_INIT],
gl_ASSERT_H
gl_CONDITIONAL_HEADER([assert.h])
AC_PROG_MKDIR_P
gl_C_BOOL
gl_PREREQ_READUTMP_H
gl___BUILTIN_EXPECT
gl_BYTESWAP
@ -525,7 +526,6 @@ AC_DEFUN([gl_INIT],
gl_STDBIT_H
gl_CONDITIONAL_HEADER([stdbit.h])
AC_PROG_MKDIR_P
gl_C_BOOL
AC_REQUIRE([gl_STDBIT_H])
GL_STDC_BIT_WIDTH=1
AC_REQUIRE([gl_STDBIT_H])

View file

@ -1,7 +1,7 @@
# group-member.m4
# serial 14
dnl Copyright (C) 1999-2001, 2003-2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 1999-2001, 2003-2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# mempcpy.m4
# serial 14
dnl Copyright (C) 2003-2004, 2006-2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 2003-2004, 2006-2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# memrchr.m4
# serial 11
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# mktime.m4
# serial 42
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# nstrftime.m4
# serial 40
dnl Copyright (C) 1996-1997, 1999-2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 1996-1997, 1999-2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# pathmax.m4
# serial 11
dnl Copyright (C) 2002-2003, 2005-2006, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 2002-2003, 2005-2006, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,6 @@
# sig2str.m4
# serial 8
dnl Copyright (C) 2002, 2005-2006, 2009-2025 Free Software Foundation,
dnl Inc.
dnl Copyright (C) 2002, 2005-2006, 2009-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,6 @@
# ssize_t.m4
# serial 6
dnl Copyright (C) 2001-2003, 2006, 2010-2025 Free Software Foundation,
dnl Inc.
dnl Copyright (C) 2001-2003, 2006, 2010-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# stat-time.m4
# serial 1
dnl Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2025 Free
dnl Software Foundation, Inc.
dnl Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# strnlen.m4
# serial 15
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 2002-2003, 2005-2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,6 @@
# strtoimax.m4
# serial 17
dnl Copyright (C) 2002-2004, 2006, 2009-2025 Free Software Foundation,
dnl Inc.
dnl Copyright (C) 2002-2004, 2006, 2009-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,6 @@
# strtoll.m4
# serial 12
dnl Copyright (C) 2002, 2004, 2006, 2008-2025 Free Software Foundation,
dnl Inc.
dnl Copyright (C) 2002, 2004, 2006, 2008-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# time_h.m4
# serial 27
dnl Copyright (C) 2000-2001, 2003-2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 2000-2001, 2003-2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

View file

@ -1,7 +1,7 @@
# timespec.m4
# serial 15
dnl Copyright (C) 2000-2001, 2003-2007, 2009-2025 Free Software
dnl Foundation, Inc.
dnl Copyright (C) 2000-2001, 2003-2007, 2009-2025 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.