summaryrefslogtreecommitdiffabout
AgeCommit message (Collapse)AuthorFiles
24 hoursDon't assume that UNICODE is not defined.HEADmasterBruno Haible4
Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined differently if the application defines the macro UNICODE. Reported by Steve Lhomme <robux4@ycbcr.xyz> in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>. * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR. * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR. * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
25 hoursImprove pattern for defining _WIN32_WINNT.Bruno Haible4
Newer versions of the Windows API may not only add, but also remove API functions. Therefore, when the user is e.g. building for Windows 10, we should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the use of APIs that were present in Windows 8 but removed in Windows 10. Suggested by Steve Lhomme <robux4@ycbcr.xyz> in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>. * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value. * lib/sethostname.c (_WIN32_WINNT): Likewise. * lib/stat-w32.c (_WIN32_WINNT): Likewise.
31 hoursjavacomp: Make more robust in multithreaded applications.Bruno Haible3
* lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp. * modules/javacomp (Depends-on): Add fopen-gnu.
31 hoursmountlist: Make more robust in multithreaded applications.Bruno Haible3
* lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag to fopen. * modules/mountlist (Depends-on): Add fopen-gnu.
31 hourssethostname: Make more robust in multithreaded applications.Bruno Haible3
* lib/sethostname.c (sethostname): Pass an 'e' flag to fopen. * modules/sethostname (Depends-on): Add fopen-gnu.
31 hoursreadutmp: Make more robust in multithreaded applications.Bruno Haible3
* lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen. * modules/readutmp (Depends-on): Add fopen-gnu.
31 hoursgetpass: Make more robust in multithreaded applications.Bruno Haible3
* lib/getpass.c (getpass): Pass an 'e' flag to fopen. * modules/getpass (Depends-on): Add fopen-gnu.
31 hoursgetloadavg: Make more robust in multithreaded applications.Bruno Haible3
* lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen. * modules/getloadavg (Depends-on): Add fopen-gnu.
31 hoursexclude: Make more robust in multithreaded applications.Bruno Haible3
* lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen. * modules/exclude (Depends-on): Add fopen-gnu.
31 hoursbitset: Make more robust in multithreaded applications.Bruno Haible3
* lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an 'e' flag to fopen. * modules/bitset (Depends-on): Add fopen-gnu.
37 hoursread-file: add RF_SENSITIVE flagDaiki Ueno5
* lib/read-file.h (RF_SENSITIVE): New define. * lib/read-file.c (fread_file, read_file): Take into account of RF_SENSITIVE flag. * modules/read-file (Depends-on): Add explicit_bzero. This adds an alternative behavior of those functions to explicitly clear the internal memory block when it becomes unused. This is useful for reading sensitive information from a file.
37 hoursread-file: add flags to modify reading behaviorDaiki Ueno6
* lib/read-file.h (RF_BINARY): New define. (fread_file, read_file): Take FLAGS argument. (read_binary_file): Remove. * lib/read-file.c (internal_read_file): Merge into ... (read_file): ... here. * modules/read-file-tests (Files): Add "tests/macros.h". * tests/test-read-file.c (main): Refactor using ASSERT macro. * NEWS: Mention this change.
2 daysdoc/gnulib-intro.texi: add missing "to" in sentenceBernhard Voelker2
Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>. * doc/gnulib-intro.texi (Collaborative Development): Add "to".
2 dayscount-one-bits: Fix MSVC specific code.Bruno Haible2
Reported by Gisle Vanem <gisle.vanem@gmail.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>. * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're using GCC. [_MSC_VER]: Use correct syntax for #pragma intrinsic. (__popcnt64): In 32-bit mode, define as an inline function. (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
2 daysargz: Avoid name clashes through argz.h.Bruno Haible2
Reported by Gisle Vanem <gisle.vanem@gmail.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>. * lib/argz.h: Don't use __ prefixed identifiers. (const): Remove definition. (argz_next): Remove inline definitions.
3 daysread-file: make use of fopen-gnuDaiki Ueno3
* lib/read-file.c (read_file): Pass an 'e' flag to fopen. (read_binary_file): Likewise. * modules/read-file (Depends-on): Add fopen-gnu.
3 daysgetentropy, getrandom: new modulesPaul Eggert16
* MODULES.html.sh (func_all_modules): * lib/unistd.in.h (getentropy, getrandom): * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): * modules/unistd (unistd.h): Add support for getentropy, getrandom. * doc/glibc-functions/getentropy.texi (getentropy): * doc/glibc-functions/getrandom.texi (getrandom): These are now fixed on some platforms. * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h: * m4/getentropy.m4, m4/getrandom.m4: * modules/getentropy, modules/getentropy-tests: * modules/getrandom, modules/getrandom-tests: * tests/test-getentropy.c, tests/test-getrandom.c: New files.
4 daysAdd missing C99 dependencies.Bruno Haible11
Reported by Paul Smith <psmith@gnu.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>. * modules/assert (Depends-on): Add c99. * modules/filenamecat-lgpl (Depends-on): Likewise. * modules/libc-config (Depends-on): Likewise. * modules/mktime (Depends-on): Likewise. * modules/random_r (Depends-on): Likewise. * modules/regex (Depends-on): Likewise. * modules/scratch_buffer (Depends-on): Likewise. * modules/timespec-add (Depends-on): Likewise. * modules/timespec-sub (Depends-on): Likewise. * modules/verify (Depends-on): Likewise.
4 daysexplicit_bzero-tests: pacify -Wmissing-declarationsPaul Eggert2
* tests/test-explicit_bzero.c (do_secret_stuff, test_stack): Now static.
4 daysfopen-gnu: Add tests.Bruno Haible3
* tests/test-fopen-gnu.c: New file. * modules/fopen-gnu-tests: New file.
4 daysfopen-gnu: New module.Bruno Haible5
Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>. * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the mode contains an 'x' or 'e' flag, use open() followed by fdopen(). * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro. * modules/fopen-gnu: New file. * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
4 daysopen, openat: Really support O_CLOEXEC.Bruno Haible7
* lib/open.c (open): When have_cloexec is still undecided, do pass a O_CLOEXEC flag to orig_open. * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do pass a O_CLOEXEC flag to orig_openat. * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured. * modules/open-tests (Depends-on): Add fcntl. * modules/openat-tests (Depends-on): Likewise. * modules/fcntl-safer-tests (Depends-on): Likewise.
5 daysfopen: Fix the trailing slash workaround.Bruno Haible3
* lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a write access. Pass the right flags to open(). * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
5 daysassure: new macro ‘affirm’Paul Eggert3
* lib/assure.h: Include verify.h. (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in: https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html and commentary by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html * modules/assure (Depends-on:): Add verify.
5 dayscalloc-gnu: Make the test work in non-flat address spaces.Bruno Haible2
Uses code by Paul Eggert. * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation to return more than SIZE_MAX bytes, but only without wrap-around bugs.
5 dayscalloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.Bruno Haible2
* m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two AC_RUN_IFELSE invocations.
5 daysisnanf, isnanl, isnan: Don't use nonexistent builtins with clang.Bruno Haible6
* m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM, gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that don't have it. * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that don't have it. * lib/isnanf-nolibm.h (__has_builtin): New macro. (isnanf): Don't use __builtin_isnanf on clang versions that don't have it. * lib/isnanl-nolibm.h (__has_builtin): New macro. (isnanl): Don't use __builtin_isnanl on clang versions that don't have it. * lib/math.in.h (__has_builtin): New macro. (isnanf): Don't use __builtin_isnanf on clang versions that don't have it. (isnanl): Don't use __builtin_isnanl on clang versions that don't have it. (isnan): Don't use the builtins on clang versions that don't have __builtin_isnanf and __builtin_isnanl.
5 dayscalloc-gnu: Avoid wrong configure results with clang.Bruno Haible2
* m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as 'volatile', to defeat compiler optimizations.
5 daysisnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.Bruno Haible2
* m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the 'long double' values by reference, with values taken from a statically allocated array.
5 daysfindprog-in: Ignore directories.Bruno Haible3
Reported by Frederick Eaton via Dmitry Goncharov in <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>. * lib/findprog-in.c (find_in_given_path): When the file found is a directory, set errno to EACCES and, during a PATH search, continue searching. * modules/findprog-in (Depends-on): Add sys_stat, stat.
5 daysverify: document ‘assume’ betterPaul Eggert2
* lib/verify.h (assume): Say it’s for static analysis, not dynamic.
5 daysautoupdateKarl Berry1
6 daysgendocs: Clarify licenses for templates.Asher Gordon3
* doc/gendocs_template: Add a GNU All-Permissive license notice and bump Parent-Version. * doc/gendocs_template_min: Add a GNU All-Permissive license notice and copy the explanatory comment about the license notice at the bottom from gendocs_template.
7 daysgroup-member: Relicense under LGPLv2+.Bruno Haible2
Jim Meyering's approval is in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>. Paul Eggert's approval is in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>. Eric Blake's approval is in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>. * modules/group-member (License): Change to LGPLv2+.
7 daysmemmem: Avoid wrong configure results with "clang -fsanitize=undefined".Bruno Haible2
Reported by Tim Rühsen in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>. * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
7 daysregex: Avoid wrong configure results with "clang -fsanitize=leak".Bruno Haible2
Reported by Tim Rühsen in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>. * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers before returning with status 0.
7 daysglob: Avoid wrong configure results with "clang -fsanitize=leak".Bruno Haible2
Reported by Tim Rühsen in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>. * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
7 daysfchownat: Support clang -fsanitize=implicit-integer-sign-change better.Bruno Haible2
Reported by Tim Rühsen in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>. * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t, respectively.
7 daysgetdelim: Avoid wrong configure results with gcc -fsanitize=address.Tim Rühsen2
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
9 daysftoastr: fix ifndef typoPaul Eggert2
* lib/ftoastr.h (_GL_FTOASTR_H): Define.
10 dayshavelib: Tweak documentation.Bruno Haible2
* doc/havelib.texi (Searching for Libraries): Fix typo.
10 daysvcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.Siddhesh Poyarekar4
This was needed earlier because modules had to import the main script, but that is no longer true. Rename the script so that it is consistent with all other scripts in gnulib and uses hyphens. * build-aux/vcs_to_changelog.py: Rename to... * build-aux/vcs-to-changelog.py: ... this. * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference. * modules/vcs-to-changelog: Likewise.
11 daysClarify intended usage of the license file modules.Bruno Haible4
Reported by Asher Gordon <AsDaGo@posteo.net> in <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>. * doc/licenses-texi.texi (License Texinfo sources): Mention the GNU AGPL. Explain the intended usage of the modules. * modules/fdl (Notice): Discourage use as a module. * modules/fdl-1.3 (Notice): Likewise.
12 dayshash: add hash_xinsertAkim Demaille3
* lib/hash.h, lib/xhash.c (hash_xinsert): New.
12 daysfindprog-lgpl: Fix link error (existing since 2008-09-02).Bruno Haible3
* modules/findprog-lgpl (Makefile.am): Arrange to compile findprog-lgpl.c, not findprog.c. * lib/findprog.c (find_in_path): Add LGPLed replacement code for XNMALLOC.
13 daysc-stack: pacify -Wunused-result when DEBUGPaul Eggert2
Problem reported by Marc Nieper-Wißkirchen in: https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]: Explicitly ignore write failures.
2020-05-13announce-gen: improve a commentJim Meyering2
* build-aux/announce-gen: Improve comment.
2020-05-12xalloc: pacify -Wanalyzer-possible-null-argumentPaul Eggert2
Problem reported for GCC 10.1.0 by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants. (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC. (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
2020-05-11careadlinkat: fix GCC 10 workaroundPaul Eggert2
* lib/careadlinkat.c (careadlinkat) [GCC_LINT]: Massage the code so that it’s closer to what it was before the GCC 10.1.0 workaround was introduced. This fixes a loop when !buffer and the bug workaround is in effect. Remove unnecessary casts. Defend in a different way against (buffer && !buffer_size), by adding at least 1 to buf_size each time through the loop.
2020-05-11doc: Mark HP-UX as unsupported.Bruno Haible2
* doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.

Return to:

Send suggestions and report system problems to the System administrator.