summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* maintainer-makefile: Respect cfg.mk setting announcement_Cc_, reverting most ↵Simon Josefsson2021-07-282-5/+17
| | | | | | | | | | | | of the previous patch. * top/maint.mk (announcement_mail_Cc_stable): Rename back to announcement_Cc_stable. (announcement_Cc_alpha): Rename back to announcement_mail_Cc_alpha. (announcement_Cc_): Renamed from announcement_mail_Cc_. (announcement_mail_headers_stable) (announcement_mail_headers_alpha): Use announcement_Cc_ again.
* maintainer-makefile: Fix announcement mail CC's.Simon Josefsson2021-07-282-4/+14
| | | | | | | | | * top/maint.mk (announcement_Cc_stable): Rename to announcement_mail_Cc_stable. (announcement_Cc_alpha): Rename to announcement_mail_Cc_alpha. (announcement_mail_headers_stable) (announcement_mail_headers_alpha): Use announcement_mail_Cc_ instead of announcement_Cc_.
* Assume GNU gettext >= 0.17.Bruno Haible2021-07-259-47/+13
| | | | | | | | | | | * modules/vasprintf (Notice): Remove. * modules/xvasprintf (Notice): Remove. * modules/xprintf (Notice): Remove. * modules/error (Notice): Remove. * modules/verror (Notice): Remove. * modules/argp (Notice): Remove. * modules/propername (Notice): Remove. * lib/propername.h: Remove outdated comment.
* gendocs.sh: Fix local rendering of HTML manuals.Simon Josefsson2021-07-192-3/+8
| | | | * build-aux/gendocs.sh (htmlarg): Don't use relative URLs.
* explicit_bzero-tests: pacify GCC betterPaul Eggert2021-07-182-5/+20
| | | | | | | | Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2021-07/msg00039.html * tests/test-explicit_bzero.c: Ignore -Wmaybe-uninitialized. (stackbuf): Remove this static pointer, reverting recent change. (do_secret_stuff, test_stack): Revert these related changes too.
* memrchr-tests: pacify GCCPaul Eggert2021-07-172-0/+9
| | | | | Pacify GCC 11.1.1 20210531 (Red Hat 11.1.1-3) x86-64. * tests/test-memrchr.c: Disable -Wmaybe-uninitialized.
* explicit_bzero-tests: pacify GCCPaul Eggert2021-07-172-3/+12
| | | | | | | | Redo to pacify -Wmaybe-uninitialized with GCC 11.1.1 20210531 (Red Hat 11.1.1-3) x86-64. * tests/test-explicit_bzero.c (stackbuf): New static pointer. (do_secret_stuff): Use it. (test_stack): Set it to a local buffer.
* posixtm: pacify latest GCCPaul Eggert2021-07-173-64/+72
| | | | | | | | | | | | | | | Also, modernize while I’m at it. * lib/posixtm.c: Include c-ctype.h, idx.h, intprops.h, verify.h instead of stdlib.h. (ISDIGIT): Remove. All uses replaced by c_isdigit. (year, posix_time_parse): Prefer idx_t to size_t. Use assume instead of abort. (posixtime): Do not parse twice; once is enough. That way, we needn’t worry about a bogus warning about strcpy overrunning a buffer from GCC 11.1.1 20210531 (Red Hat 11.1.1-3) x86-64 when coreutils is configured with --enable-gcc-warnings. * modules/posixtm (Depends-on): Add c-ctype, intprops, verify. Remove stpcpy.
* Don't use '#pragma weak' for thread functions in Linux/glibc>=2.34.Bruno Haible2021-07-176-20/+75
| | | | | | | | | | | | | | | Suggested by Florian Weimer <fweimer@redhat.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2021-04/msg00211.html>. * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Set gl_pthread_in_glibc and set LIBPMULTITHREAD accordingly. (gl_STDTHREADLIB_BODY): Update comments. (gl_THREADLIB_BODY): Define USE_POSIX_THREADS_FROM_LIBC. * lib/glthread/thread.h (c11_threads_in_use): Define to 1 if all POSIX thread functions are in libc. * lib/glthread/lock.h (c11_threads_in_use): Likewise. * lib/glthread/cond.h (c11_threads_in_use): Likewise. * lib/glthread/tls.h (c11_threads_in_use): Likewise.
* Fix cross-compilation test results.Bruno Haible2021-07-174-5/+16
| | | | | | | * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, include <string.h> before testing __GNU_LIBRARY__. * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise. * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
* regex: modernize to newer regex bugsetPaul Eggert2021-07-143-7/+54
| | | | | | | | | | | Problem reported by Hiroo Hayashi in: https://lists.gnu.org/r/bug-gnulib/2021-07/msg00024.html * m4/regex.m4 (gl_REGEX): Allow newer glibc behavior for ()0|\1, behavior where the regex compiles but does not match. Test for glibc bug 11053. * tests/test-regex.c (bug_regex11, main): Add casts needed for printf portability. (main): Allow newer glibc behavior for ()0|\1.
* regex: fix shell quoting problem in configurationPaul Eggert2021-07-142-3/+10
| | | | | | * m4/regex.m4 (gl_REGEX): Fix quoting problems. These C programs are put into unquoted here-documents, so $ and \ need to be quoted.
* autoupdateKarl Berry2021-07-124-4/+4
|
* select: port better to MinGWPaul Eggert2021-07-082-4/+13
| | | | | | | Problem reported by Eli Zaretskii in: https://lists.gnu.org/r/bug-gnulib/2021-07/msg00017.html * lib/select.c (rpl_select) [_WIN32 && !__CYGWIN__]: Pass a SOCKET, not a HANDLE, to FD_ISSET.
* year2038: Add --disable-year2038 optionPaul Eggert2021-07-064-12/+42
| | | | | | | | | | | Also, document this stuff better. Suggested by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2021-07/msg00011.html * doc/year2038.texi: Document --disable-year2038. * m4/year2038.m4 (gl_YEAR2038_BODY): Support ‘./configure --disable-year2038’ to disable 64-bit time_t when that is not the default. Arg is now either empty or nonempty (not a shell command) and is evaluated at m4 expansion time instead of at runtime; all callers changed.
* doc: clarify which module fixes 32-bit time_tPaul Eggert2021-07-062-6/+17
| | | | | | * doc/posix-headers/time.texi: Make it clear that the 32-bit time_t problem is addressed by the year2038 module, not by the time module.
* autoupdateKarl Berry2021-07-051-20/+29
|
* autoupdateKarl Berry2021-07-021-2/+2
|
* year2038: support glibc 2.34 _TIME_BITS=64Paul Eggert2021-07-017-31/+113
| | | | | | | | | | | | | | | | | | | | | | | | | In glibc 2.34 on Linux kernels where time_t is traditionally 32-bit, defining _FILE_OFFSET_BITS=64 and _TIME_BITS=64 makes time_t 64-bit. Apps must define both macros. Gnulib applications that use either the largefile or the year2038 modules will want this behavior; largefile because it deals with the off_t and ino_t components of struct stat already, and so should also deal with time_t. * NEWS, doc/largefile.texi, doc/posix-headers/time.texi: Mention this. * m4/largefile.m4: Override two macros even in Autoconf 2.70 and later. (_AC_SYS_LARGEFILE_MACRO_VALUE): #undef $1 before #defining it, in case some other Gnulib macro has #defined it. (AC_SYS_LARGEFILE): Use AS_IF and AS_CASE to propagate AC_REQUIREs. Invoke gl_YEAR2038_BODY if we need to set _FILE_OFFSET_BITS=64. * m4/year2038.m4 (gl_YEAR2038_TEST_INCLUDES): New macro. (gl_YEAR2038_BODY): New macro, with gl_YEAR2038’s old body; this macro is designed to be used directly instead of being AC_REQUIREd. It takes an argument specifying whether 64-bit is required. Set _TIME_BITS=64 if this makes a difference in time_t width when setting _FILE_OFFSET_BITS=64. Do not warn about 32-bit time_t more than once. * modules/largefile (Files): Add year2038.m4. (Depends-on): Require gl_YEAR2038_EARLY.
* relocatable-prog-wrapper: add m4 filesPaul Eggert2021-07-012-0/+15
| | | | | | | | | Add .m4 files needed for standalone relocatable-prog-wrapper, so that ‘./gnulib-tool --test relocatable-prog-wrapper’ does not fail with diagnostics like ‘configure.ac:63: error: possibly undefined macro: gl_FUNC_MALLOC_POSIX’. * modules/relocatable-prog-wrapper (Files): Add m4/free.m4, m4/malloc.m4, m4/mempcpy.m4, m4/rawmemchr.m4, m4/realloc.m4.
* autoupdateKarl Berry2021-07-012-572/+618
|
* strerror-override: Fix possible compilation error.Bruno Haible2021-06-293-41/+55
| | | | | | | | | Reported by Thomas Klausner <wiz@netbsd.org>. * lib/strerror-override.h (GNULIB_defined_strerror_override_macro): New macro. * lib/strerror-override.c (strerror_override): Don't define if GNULIB_defined_strerror_override_macro is set.
* environ: Fix wrong autoconf test result in C++ mode.Bruno Haible2021-06-282-2/+9
| | | | | * m4/environ.m4 (gt_CHECK_VAR_DECL): Use a typedef'ed type, not an anonymous type.
* autoupdateKarl Berry2021-06-261-18/+16
|
* regex: fix undefined behaviorEgor Ignatov2021-06-222-4/+16
| | | | | | | | | Problem reported by Paul Eggert in: https://lists.gnu.org/r/bug-gnulib/2021-06/msg00115.html * lib/regexec.c (proceed_next_node): Don’t insert already-inserted node. 2021-06-06 Egor Ignatov <egori@altlinux.org> (tiny change)
* sigsegv, sigsegv-tests: Assign my contributions to the FSF.Eric Blake2021-06-215-4/+9
| | | | | | | | | | Following Bruno's lead, I'm also happy with this change. * m4/sigaltstack.m4: Change copyright notice: Write "Copyright (C) FSF" instead of "Copyright (C) Eric Blake". * tests/altstack-util.h: Likewise. * tests/test-sigsegv-catch-stackoverflow1.c: Likewise. * tests/test-sigsegv-catch-stackoverflow2.c: Likewise.
* unistd: Avoid compilation error in C++ mode on Solaris, HP-UX, mingw.Bruno Haible2021-06-202-2/+18
| | | | | | | | Reported by Eli Zaretskii <eliz@gnu.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00135.html>. * lib/unistd.in.h (swab): Consider different declarations on Solaris, HP-UX, and old mingw.
* Sync with GNU gettext.Bruno Haible2021-06-203-13/+8
| | | | | * lib/printf-parse.c: Ignore IN_LIBINTL and IN_LIBASPRINTF. * lib/vasnprintf.c: Ignore IN_LIBINTL.
* Sync with GNU gettext.Bruno Haible2021-06-204-21/+12
| | | | | | * lib/tsearch.c: Ignore IN_LIBINTL. * lib/localename-table.h: Likewise. * lib/localename.c: Ignore IN_LIBINTL in some places.
* unistd: Improve conflict resolution between gnulib and textstyle.h.Bruno Haible2021-06-202-0/+6
| | | | * lib/unistd.in.h (GNULIB_overrides_isatty): New macro.
* stdio: Improve conflict resolution between gnulib and libintl.h.Bruno Haible2021-06-202-0/+13
| | | | | | * lib/stdio.in.h (GNULIB_overrides_snprintf, GNULIB_overrides_sprintf, GNULIB_overrides_asprintf, GNULIB_overrides_vasprintf, GNULIB_overrides_vsnprintf, GNULIB_overrides_vsprintf): New macros.
* declared.sh: Allow parsing 'extern "C"' lines.Bruno Haible2021-06-202-2/+8
| | | | | * build-aux/declared.sh: Don't concatenate lines to an 'extern "C" {' line.
* unitypes: Fix trouble caused by installed older versions of unitypes.h.Bruno Haible2021-06-202-0/+21
| | | | * modules/unitypes (configure.ac): Define _UC_RESTRICT through config.h.
* sigsegv, sigsegv-tests: Assign my contributions to the FSF.Bruno Haible2021-06-1913-14/+54
| | | | | | | | | | | | | | | | * lib/sigsegv.in.h: Change copyright notice: Write "Copyright (C) FSF" instead of "Copyright (C) Bruno Haible". * lib/sigsegv.c: Likewise. * lib/stackvma.h: Likewise. * lib/stackvma.c: Likewise. * m4/sigaltstack.m4: Likewise. * m4/stack-direction.m4: Likewise. * tests/altstack-util.h: Likewise. * tests/mmap-anon-util.h: Likewise. * tests/test-sigsegv-catch-segv1.c: Likewise. * tests/test-sigsegv-catch-segv2.c: Likewise. * tests/test-sigsegv-catch-stackoverflow1.c: Likewise. * tests/test-sigsegv-catch-stackoverflow2.c: Likewise.
* argp: Avoid possible NULL access in argp_help.Darren Kenny2021-06-182-1/+9
| | | | | | | Reported by Coverity. The invocation chain is: argp_help -> _help -> fill_in_uparams -> validate_uparams. * lib/argp-help.c (validate_uparams): Don't crash if state == NULL.
* autoupdateKarl Berry2021-06-161-177/+58
|
* tsearch: Relicense under LGPLv2+.Bruno Haible2021-06-163-2/+8
| | | | | * modules/tsearch (License): Change to LGPLv2+. * lib/tsearch.c: Update license notice.
* pipe-filter-ii tests: Fix long-standing failure on native Windows.Bruno Haible2021-06-153-0/+16
| | | | | | | * tests/test-pipe-filter-ii2-main.c: Include binary-io.h. (main): Avoid NL to CRLF conversion on standard output. * tests/test-pipe-filter-ii2-child.c: Include <unistd.h>, binary-io.h. (main): Avoid NL to CRLF conversion on standard output.
* autoupdateKarl Berry2021-06-151-4/+0
|
* xnanosleep: Improve module description.Bruno Haible2021-06-154-3/+19
| | | | | | * modules/xnanosleep (Description): Improve. * lib/xnanosleep.h: Add comment. Make includable from C++. * lib/xnanosleep.c: Update comment.
* xfreopen: Improve module description.Bruno Haible2021-06-154-3/+21
| | | | | | * modules/xfreopen (Description): Improve. * lib/xfreopen.h: Add comments. Make includable from C++. * lib/xfreopen.c: Update comment.
* idx: new printf/scanf length modifier macroPaul Eggert2021-06-142-0/+9
| | | | * lib/idx.h (pIDX): New macro.
* Align 2011-11-26 patch to 2021-04-11 patch (regression from 2021-04-11).Bruno Haible2021-06-136-21/+23
| | | | | | | | | | | | | Reported by Paul Eggert. * m4/unistd_h.m4 (gl_UNISTD_H_REQUIRE_DEFAULTS): Also initialize GNULIB_UNISTD_H_GETOPT variable. * modules/getopt-posix (configure.ac): Set GNULIB_UNISTD_H_GETOPT variable. * modules/unistd (Makefile.am): Rely on ${gl_include_guard_prefix} processing done by gnulib-tool since 2021-04-11. * gnulib-tool: Revert last change. * pygnulib/GLEmiter.py: Likewise.
* * lib/stack.h: Omit stray semicolon.Paul Eggert2021-06-132-1/+3
|
* getopt-gnu: port back to Solaris 10Paul Eggert2021-06-133-4/+28
| | | | | | | | | | | * gnulib-tool (func_emit_lib_Makefile_am) (func_emit_tests_Makefile_am): Don’t substitute things like $(GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT), as this mishandles unistd and getopt-gnu, which breaks ‘make check’ on Solaris 10 with getopt-gnu. * pygnulib/GLEmiter.py (lib_Makefile_am, tests_Makefile_am): Likewise, albeit hackier since I did not test this and so went with a trivial hack instead.
* ialloc: Put appropriate license notice in source files.Bruno Haible2021-06-133-7/+31
| | | | | * lib/ialloc.h: Use LGPLv3+ notice. * lib/ialloc.c: Likewise.
* * lib/xmalloc.c (nonnull): Pacify gcc -Wsuggest-attribute=pure (GCC 10.3).Paul Eggert2021-06-111-1/+1
|
* xgethostname: prefer idx_t for indexesPaul Eggert2021-06-112-1/+2
| | | | | * lib/xgethostname.c (XGETANAME): Prefer idx_t to size_t for indexes, using idx_t-related allocators.
* userspec: prefer idx_t for indexesPaul Eggert2021-06-112-2/+3
| | | | | * lib/userspec.c (parse_with_separator): Prefer idx_t to size_t for indexes, using idx_t-related allocators.
* stack: prefer idx_t for indexesPaul Eggert2021-06-112-3/+4
| | | | | * lib/stack.h (_GL_STACK_TYPE, _GL_STACK_PREFIX): Prefer idx_t to size_t for indexes, using idx_t-related allocators.