summaryrefslogtreecommitdiff
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* string-desc tests: Avoid test failure on native Windows.Bruno Haible2023-04-221-0/+10
| | | | | | | | | * tests/test-string-desc.c: Include <fcntl.h>, <unistd.h>. (main): Expect a file name argument. Write to this file, instead of to fd 3. * tests/test-string-desc.sh: Pass a file name as argument, instead of using '3>'. * modules/string-desc-tests (Depends-on): Add close.
* threadlib, pthread-h, threads-h: Avoid mingw's libwinpthread by default.Bruno Haible2023-04-221-0/+7
| | | | | | * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Set gl_use_winpthreads_default to 'no' by default. (gl_AVOID_WINPTHREAD): Update comments.
* posixtm tests: Avoid test failure on native Windows.Bruno Haible2023-04-221-0/+6
| | | | | * tests/test-posixtm.c (T): On native Windows, disable test cases that would fail.
* dfa tests: Fix test failure on mingw differently.Bruno Haible2023-04-221-0/+9
| | | | | | | | | Suggested by Paul Eggert. * tests/test-dfa-invalid-char-class.sh: Revert last change. * tests/test-dfa-match-aux.c: Include binary-io.h. (main): Put stdout into binary mode. * modules/dfa-tests (Depends-on): Add binary-io.
* getumask: Make it work on native Windows.Bruno Haible2023-04-201-0/+7
| | | | | | * lib/getumask.c (getumask): When TMPDIR is unset, try TMP and TEMP. * tests/test-getumask.c (ASSUME_UMASK_CONSTANT): Define to 1 on native Windows.
* posixtm tests: Fix link error.Bruno Haible2023-04-201-0/+5
| | | | * modules/posixtm-tests (Depends-on): Add stpcpy.
* readtokens tests: Fix test failure on mingw.Bruno Haible2023-04-201-0/+4
| | | | | * tests/test-readtokens.sh: Transform CRLF to LF in the output, before comparing with the expected output.
* parse-duration tests: Fix test failure on mingw.Bruno Haible2023-04-201-0/+4
| | | | | * tests/test-parse-duration.sh: Transform CRLF to LF in the output, before analyzing the output.
* dfa tests: Fix test failure on mingw.Bruno Haible2023-04-201-0/+6
| | | | | * tests/test-dfa-invalid-char-class.sh: Transform CRLF to LF in the output, before comparing with the expected output.
* Fix uses of libwinpthread on mingw 10.Bruno Haible2023-04-201-0/+6
| | | | | * m4/threadlib.m4 (gl_WEAK_SYMBOLS): On mingw, set the result to "guessing no".
* Move remaining call_once tests from mtx-tests to call_once-tests.Bruno Haible2023-04-201-0/+13
| | | | | | | | | | | | * tests/test-call_once1.c: Renamed from tests/test-call_once.c. * tests/test-call_once2.c: New file, based on tests/test-mtx.c. * tests/test-mtx.c: Remove the code that was testing call_once. * modules/call_once-tests (Files): Add test-call_once1.c, test-call_once2.c. Remove test-call_once.c. (Depends-on): Add thrd, lock, stdint. (configure.ac): Check for alarm. (Makefile.am): Test test-call_once1 instead of test-call_once. Also test test-call_once2.
* execute tests: Fix compilation error on mingw (regression 2023-01-17).Bruno Haible2023-04-201-0/+6
| | | | | * tests/test-execute-main.c (main): Don't use SIGPIPE if it's not defined.
* assert-h, verify: Fix compilation error in C++ mode with MSVC 14.30.Bruno Haible2023-04-201-0/+7
| | | | | | * lib/verify.h (_Static_assert): In C++ mode with MSVC 14.1 or newer, define merely to static_assert. (static_assert): In C++ mode with MSVC 14.1 or newer, don't define.
* chown, lchown tests: Fix link error on mingw 10.Bruno Haible2023-04-201-1/+3
| | | | | | | | * modules/chown-tests (configure.ac): Test whether getgid() exists. * modules/lchown-tests (configure.ac): Likewise. * modules/fchownat-tests (configure.ac): Likewise. * tests/test-chown.h (getgid): Define a fallback. * tests/test-lchown.h (getgid): Likewise.
* chown tests: Fix link error on mingw 10.Bruno Haible2023-04-201-0/+7
| | | | | | * modules/chown-tests (configure.ac): Test whether getgid() exists. * modules/fchownat-tests (configure.ac): Likewise. * tests/test-chown.h (getgid): Define a fallback.
* ctime: Fix compilation errors in C++ mode on mingw 10.Bruno Haible2023-04-201-1/+8
| | | | | | * lib/c++defs.h (_GL_FUNCDECL_RPL): Add a comment. * lib/time.in.h (ctime): Don't use _GL_ATTRIBUTE_DEPRECATED before _GL_FUNCDECL_RPL in C++ mode.
* random: Fix compilation errors in C++ on mingw 10.Bruno Haible2023-04-201-0/+6
| | | | | * lib/stdlib.in.h (random, srandom): Disable _GL_CXXALIASWARN invocation on non-glibc systems.
* year2038-required: Fix configure failure with MSVC.Bruno Haible2023-04-191-0/+7
| | | | | | * m4/largefile.m4 (_AC_SYS_LARGEFILE_PROBE): Distinguish the results "support not detected" and "supported through gnulib". If the result is "supported through gnulib", don't fail.
* doc: Add references to changes accepted for future POSIX revisions.Bruno Haible2023-04-191-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | * doc/glibc-functions/bind_textdomain_codeset.texi: Add reference to www.austingroupbugs.net issue. * doc/glibc-functions/bindtextdomain.texi: Likewise. * doc/glibc-functions/dcgettext.texi: Likewise. * doc/glibc-functions/dcngettext.texi: Likewise. * doc/glibc-functions/dgettext.texi: Likewise. * doc/glibc-functions/dngettext.texi: Likewise. * doc/glibc-functions/getentropy.texi: Likewise. * doc/glibc-functions/getresgid.texi: Likewise. * doc/glibc-functions/getresuid.texi: Likewise. * doc/glibc-functions/gettext.texi: Likewise. * doc/glibc-functions/ngettext.texi: Likewise. * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Likewise. * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi: Likewise. * doc/glibc-functions/setresgid.texi: Likewise. * doc/glibc-functions/setresuid.texi: Likewise. * doc/glibc-functions/textdomain.texi: Likewise. * doc/posix-functions/asctime_r.texi: Likewise. * doc/posix-functions/ctime_r.texi: Likewise.
* wcsncmp: Add tests.Bruno Haible2023-04-191-0/+5
| | | | | | * tests/test-wcsncmp.c: New file, based on tests/unistr/test-strncmp.h and tests/test-wcscmp.c. * modules/wcsncmp-tests: New file.
* wcsncmp: Work around two ISO C compliance bugs on several platforms.Bruno Haible2023-04-191-0/+14
| | | | | | | | | | | | | * lib/wchar.in.h (wcsncmp): Consider REPLACE_WCSNCMP. * lib/wcsncmp-impl.h (wcsncmp): Don't assume that the two wide characters are in the range 0..INT_MAX. * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Test whether wcsncmp works for all wide characters. Set REPLACE_WCSNCMP. * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNCMP. * modules/wchar (Makefile.am): Substitute REPLACE_WCSNCMP. * modules/wcsncmp (Status, Notice): Un-obsolete this module. (configure.ac): Consider REPLACE_WCSNCMP. * doc/posix-functions/wcsncmp.texi: Mention the two bugs.
* wcscmp: Add tests.Bruno Haible2023-04-191-0/+4
| | | | | * tests/test-wcscmp.c: New file, based on tests/unistr/test-strcmp.h. * modules/wcscmp-tests: New file.
* wcscmp: Work around two ISO C compliance bugs on several platforms.Bruno Haible2023-04-191-0/+14
| | | | | | | | | | | | | * lib/wchar.in.h (wcscmp): Consider REPLACE_WCSCMP. * lib/wcscmp-impl.h (wcscmp): Don't assume that the two wide characters are in the range 0..INT_MAX. * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Test whether wcscmp works for all wide characters. Set REPLACE_WCSCMP. * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSCMP. * modules/wchar (Makefile.am): Substitute REPLACE_WCSCMP. * modules/wcscmp (Status, Notice): Un-obsolete this module. (configure.ac): Consider REPLACE_WCSCMP. * doc/posix-functions/wcscmp.texi: Mention the two bugs.
* wmemcmp: Add tests.Bruno Haible2023-04-191-0/+4
| | | | | * tests/test-wmemcmp.c: New file, based on tests/unistr/test-cmp.h. * modules/wmemcmp-tests: New file.
* wmemcmp: Work around ISO C compliance bug on several platforms.Bruno Haible2023-04-191-0/+13
| | | | | | | | | | | | * lib/wchar.in.h (wmemcmp): Consider REPLACE_WMEMCMP. * lib/wmemcmp-impl.h (wmemcmp): Don't assume that the two wide characters are in the range 0..INT_MAX. * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Test whether wmemcmp works for all wide characters. Set REPLACE_WMEMCMP. * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WMEMCMP. * modules/wchar (Makefile.am): Substitute REPLACE_WMEMCMP. * modules/wmemcmp (configure.ac): Consider REPLACE_WMEMCMP. * doc/posix-functions/wmemcmp.texi: Mention the bug.
* doc: Update platform list for posix_spawnp.Bruno Haible2023-04-191-0/+5
| | | | * doc/posix-functions/posix_spawnp.texi: Update platform list.
* Go back to dynamic largefile, year2038 testsPaul Eggert2023-04-181-0/+8
| | | | | | | | | Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2023-04/msg00134.html * modules/largefile-tests, modules/year2038-tests (Depends-on): Remove assert-h. * tests/test-largefile.c, tests/test-year2038.c: Test dynamically, not via static_assert.
* doc: mention when O_* defaults to 0Paul Eggert2023-04-181-0/+6
| | | | | * doc/posix-headers/fcntl.texi: Document in more detail which O_* macros default to 0 in Gnulib.
* doc: Mention a Cygwin 3.4.6 bug.Bruno Haible2023-04-181-0/+6
| | | | | * doc/posix-functions/readlinkat.texi: Mention a readlinkat bug on Cygwin < 3.4.7.
* ilogbl: Work around a Cygwin 3.4.6 bug.Bruno Haible2023-04-181-0/+7
| | | | | | * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Also test the value of ilogbl(NaN). * doc/posix-functions/ilogbl.texi: Mention the new Cygwin bug.
* file-has-acl tests: Avoid test failures on Cygwin 3.4.6.Bruno Haible2023-04-181-1/+7
| | | | | * tests/test-file-has-acl.sh: Fix distinction between Linux setfacl and Cygwin setfacl.
* c32isgraph: Avoid test failure on Cygwin 3.4.6.Bruno Haible2023-04-181-0/+5
| | | | * tests/test-c32isgraph.c (main): Skip U+00A0 test on Cygwin.
* Slightly nicer largefile, year2038 testsPaul Eggert2023-04-171-0/+9
| | | | | | | | * modules/largefile-tests, modules/year2038-tests (Depends-on): Add assert-h, intprops. * tests/test-largefile.c, tests/test-year2038.c: Prefer compile-time to run-time tests. Don’t assume CHAR_BIT == 8.
* MODULES.html.sh: Ensure hyperlinked files are displayable.Bruno Haible2023-04-171-0/+3
| | | | * MODULES.html.sh (repo_url_prefix): Use cgit instead of gitweb.
* MODULES.html.sh: Avoid a HTTP redirect.Bruno Haible2023-04-171-0/+6
| | | | | * MODULES.html.sh (repo_url_prefix): Use the unabbreviated name of the git repository server.
* year2038: Add tests.Bruno Haible2023-04-161-0/+6
| | | | | * tests/test-year2038.c: New file. * modules/year2038-tests: New file.
* largefile: Add tests.Bruno Haible2023-04-161-0/+6
| | | | | * tests/test-largefile.c: New file. * modules/largefile-tests: New file.
* year2038: Revert the added module dependencies.Bruno Haible2023-04-161-0/+8
| | | | | | | | Suggested by Paul Eggert in <https://lists.gnu.org/archive/html/bug-gnulib/2023-04/msg00117.html>. * modules/year2038 (Depends-on): Remove sched, sys_msg, sys_select, sys_sem, sys_shm, sys_stat, sys_time, sys_types, time-h, utime-h.
* posix_spawn_file_actions_addclose tests: Avoid test failure on Cygwin.Bruno Haible2023-04-161-0/+6
| | | | | * tests/test-posix_spawn_file_actions_addclose.c (main): Skip an unportable test also on Cygwin.
* Fix compilation errors of list, set, oset, map, omap in C++ mode.Bruno Haible2023-04-151-0/+8
| | | | | | | * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_BRACKET_BEFORE_ATTRIBUTE. In _GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_MAYBE_UNUSED, _GL_ATTRIBUTE_NODISCARD, don't use the bracket syntax if _GL_BRACKET_BEFORE_ATTRIBUTE is defined.
* Don't include module 'year2038-required' in all-of-gnulib testdirs.Bruno Haible2023-04-151-0/+5
| | | | * all-modules (exclude): Add year2038-required.
* selinux-h: Fix compilation error (regression 2023-04-13).Bruno Haible2023-04-151-0/+7
| | | | | | * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Instead of defining the C macro HAVE_SELINUX_SELINUX_H to 0, set the Autoconf variable HAVE_SELINUX_SELINUX_H to 0.
* * ChangeLog: fix year2038 wordingPaul Eggert2023-04-141-1/+1
|
* year2038: Fix configure failure on 32-bit mingw.Bruno Haible2023-04-141-0/+6
| | | | | * m4/largefile.m4 (_AC_SYS_YEAR2038_PROBE): Use the same option spelling as in _AC_SYS_YEAR2038_OPTIONS.
* isnan: Fix compilation error in C++ mode on FreeBSD 13.2.Bruno Haible2023-04-151-0/+6
| | | | | * lib/math.in.h (isnan): On FreeBSD 13.2 or newer, don't declare isnan through _GL_MATH_CXX_REAL_FLOATING_DECL_2.
* filemode: Fix double-inclusion guard.Bruno Haible2023-04-141-0/+5
| | | | * lib/filemode.h: Make the double-inclusion guard actually work.
* year2038: Add reminder to include <config.h> before time_t gets defined.Bruno Haible2023-04-141-0/+12
| | | | | | | | | | | | * lib/sched.in.h: Check that config.h was already included before the * lib/sys_select.in.h: Likewise. * lib/sys_stat.in.h: Likewise. * lib/sys_time.in.h: Likewise. * lib/sys_types.in.h: Likewise. * lib/time.in.h: Likewise. * lib/utime.in.h: Likewise. * modules/year2038 (Depends-on): Add sched, sys_msg, sys_select, sys_sem, sys_shm, sys_stat, sys_time, sys_types, time-h, utime-h.
* sys_shm: New module.Bruno Haible2023-04-141-0/+6
| | | | | | | * lib/sys_shm.in.h: New file. * m4/sys_shm_h.m4: New file. * modules/sys_shm: New file. * doc/posix-headers/sys_shm.texi: Mention the new module.
* sys_sem: New module.Bruno Haible2023-04-141-0/+6
| | | | | | | * lib/sys_sem.in.h: New file. * m4/sys_sem_h.m4: New file. * modules/sys_sem: New file. * doc/posix-headers/sys_sem.texi: Mention the new module.
* sys_msg: New module.Bruno Haible2023-04-141-0/+8
| | | | | | | * lib/sys_msg.in.h: New file. * m4/sys_msg_h.m4: New file. * modules/sys_msg: New file. * doc/posix-headers/sys_msg.texi: Mention the new module.