Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 01c2e2e6 | 2024-11-05 22:00:01 | malloc: refactor to help replace eealloc * m4/malloc.m4 (gl_FUNC_MALLOC_0_NONNULL): New macro, split out from gl_FUNC_MALLOC_GNU. (gl_FUNC_MALLOC_GNU): Require it. | ||
| 7fb2347f | 2024-11-05 21:23:40 | realloc-posix: mention _LINUX_SOURCE_COMPAT * m4/realloc.m4 (gl_FUNC_REALLOC_0_NONNULL): Add comment about _LINUX_SOURCE_COMPAT. | ||
| f4a8964d | 2024-11-05 16:06:11 | doc: remove duplicate realloc-posix listing * MODULES.html.sh: Remove duplicate entry for realloc-posix. | ||
| b3400985 | 2024-11-06 05:23:51 | aligned_alloc tests: Fix compilation error on mingw (regr. 2024-11-04). * tests/test-aligned_alloc.c (aligned_alloc): Don't redefine if aligned_alloc does not exist. | ||
| 6ba3df05 | 2024-11-06 05:05:26 | reallocarray: Fix compilation error in C++ mode (regr. 2024-11-04). * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't use REPLACE_REALLOC_FOR_REALLOC_POSIX here. Use gl_cv_malloc_ptrdiff instead. | ||
| af7386f1 | 2024-11-05 15:57:20 | doc: improve documentation for malloc, realloc etc | ||
| 353a2f88 | 2024-11-05 15:55:24 | malloc: sync with Autoconf This fixes a comment problem mentioned by Bruno in: https://lists.gnu.org/r/bug-gnulib/2024-11/msg00048.html | ||
| 4bb67e4e | 2024-11-05 21:12:14 | wmemset tests: Verify N3322 functionality. * tests/test-wmemset.c: New file. * modules/wmemset-tests: New file. | ||
| f00b47ec | 2024-11-05 21:12:11 | wmemchr tests: Verify N3322 functionality. * tests/test-wmemchr.c: New file. * modules/wmemchr-tests: New file. | ||
| 9a885197 | 2024-11-05 21:12:08 | wmemcmp tests: Verify N3322 functionality. * tests/test-wmemcmp.c (main): Add zero-size tests. | ||
| 3ee8ce23 | 2024-11-05 21:12:06 | wcsncmp tests: Verify N3322 functionality. * tests/test-wcsncmp.c (main): Add zero-size tests. | ||
| a366348b | 2024-11-05 21:11:39 | wcsncat tests: Verify N3322 functionality. * tests/test-wcsncat.c: New file. * modules/wcsncat-tests: New file. | ||
| 101b9d7f | 2024-11-05 21:11:33 | wcsncat: Guarantee N3322 functionality. * lib/wchar.in.h (wcsncat): Consider REPLACE_WCSNCAT. * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Test whether the zero-length bug is present. * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNCAT. * modules/wchar (Makefile.am): Substitute REPLACE_WCSNCAT. * modules/wcsncat (Status, Notice): Remove. (configure.ac): Consider REPLACE_WCSNCAT. * doc/posix-functions/wcsncat.texi: Mention the zero-length bug. | ||
| 4e556e28 | 2024-11-05 21:11:22 | wcsncpy tests: Verify N3322 functionality. * tests/test-wcsncpy.c: New file. * modules/wcsncpy-tests: New file. | ||
| c28fc400 | 2024-11-05 21:11:29 | wmemmove tests: Verify N3322 functionality. * tests/test-wmemmove.c: New file. * modules/wmemmove-tests: New file. | ||
| 184e2c51 | 2024-11-05 21:11:25 | wmemcpy tests: Verify N3322 functionality. * tests/test-wmemcpy.c: New file. * modules/wmemcpy-tests: New file. | ||
| a8fccc67 | 2024-11-05 21:11:20 | memset_explicit tests: Verify N3322 functionality. * tests/test-memset_explicit.c (main): Add a zero-size test. | ||
| ce762a90 | 2024-11-05 21:11:17 | memset tests: Verify N3322 functionality. * tests/test-memset.c: New file. * modules/memset-tests: New file. | ||
| 140aff1b | 2024-11-05 21:11:14 | memchr tests: Verify N3322 functionality. * tests/test-memchr.c (main): Add a zero-size test. | ||
| 5e713ecd | 2024-11-05 21:11:12 | strncmp tests: Verify N3322 functionality. * modules/strncmp: New file. * doc/posix-functions/strncmp.texi: Mention the new module. * tests/test-strncmp.c: New file. * modules/strncmp-tests: New file. | ||
| 62aeb940 | 2024-11-05 21:11:10 | memcmp tests: Verify N3322 functionality. * tests/test-memcmp.c (main): Add zero-size tests. | ||
| a9309034 | 2024-11-05 21:11:02 | strncat tests: Verify N3322 functionality. * tests/test-strncat.c (main): Add a zero-size test. | ||
| f9da9cbb | 2024-11-05 21:10:23 | strndup tests: Verify N3322 functionality. * tests/test-strndup.c: New file. * modules/strndup-tests: New file. | ||
| bf799ba1 | 2024-11-05 21:10:20 | strndup: Guarantee N3322 functionality. * m4/strndup.m4 (gl_FUNC_STRNDUP): Check against the AIX bug. * doc/posix-functions/strndup.texi: Mention the AIX bug. | ||
| 2590ea7f | 2024-11-05 21:10:13 | strncpy tests: Verify N3322 functionality. * modules/strncpy: New file. * doc/posix-functions/strncpy.texi: Mention the new module. * tests/test-strncpy.c: New file. * modules/strncpy-tests: New file. | ||
| df58cd94 | 2024-11-05 21:10:11 | memmove tests: Verify N3322 functionality. * tests/test-memmove.c: New file. * modules/memmove-tests: New file. | ||
| bda6e6a0 | 2024-11-05 21:10:08 | memccpy tests: Verify N3322 functionality. * modules/memccpy: New file. * doc/posix-functions/memccpy.texi: Mention the new module. * tests/test-memccpy.c: New file. * modules/memccpy-tests: New file. | ||
| bec31056 | 2024-11-05 21:10:05 | memcpy tests: Verify N3322 functionality. * tests/test-memcpy.c: New file. * modules/memcpy-tests: New file. | ||
| d3c9d629 | 2024-11-05 21:10:02 | qsort tests: Verify N3322 functionality. * modules/qsort: New file. * doc/posix-functions/qsort.texi: Mention the new module. * tests/test-qsort.c: New file. * modules/qsort-tests: New file. | ||
| 0e381f83 | 2024-11-05 22:16:12 | realloc-posix: Fix link error (regression yesterday). * lib/stdlib.in.h (realloc): Don't inline rpl_realloc if IN_GNULIB_TESTS is defined. * modules/realloc-posix (Depends-on, configure.ac): Compile realloc.c also if REPLACE_REALLOC_FOR_REALLOC_POSIX is 2. | ||
| bc91828e | 2024-11-05 21:09:07 | bsearch tests: Verify N3322 functionality. * modules/bsearch: New file. * doc/posix-functions/bsearch.texi: Mention the new module. * tests/test-bsearch.c: New file. * modules/bsearch-tests: New file. | ||
| bdb6e81c | 2024-11-05 22:18:35 | realloc-posix: Avoid use of AC_LIBOBJ. * modules/realloc-posix (configure.ac): Define GL_COND_OBJ_REALLOC_POSIX. Don't invoke AC_LIBOBJ. (Makefile.am): Add realloc.c to lib_SOURCES instead. | ||
| a9049bff | 2024-11-05 16:23:41 | stdlib: Add a copyright header. * lib/stdlib.c: Add a copyright header. | ||
| 56c8e85b | 2024-11-05 15:53:47 | calloc, malloc: Fix a comment. * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Mention that it sets HAVE_MALLOC_PTRDIFF. (gl_FUNC_MALLOC_PTRDIFF): Likewise. (gl_CHECK_MALLOC_PTRDIFF): Do not mention HAVE_MALLOC_PTRDIFF here. | ||
| 46d0d94c | 2024-11-05 15:30:49 | calloc: Fix configure test (regression yesterday). * m4/calloc.m4 (gl_FUNC_CALLOC_IF): Fix wrong cache variable name. Rename cache variable. Restore earlier comment. | ||
| 064110be | 2024-11-04 22:24:29 | safe-alloc: simplify, given new reallocarray behavior * lib/safe-alloc.h [__CHERI_PURE_CAPABILITY__]: Remove special cases for this, as reallocarray now does it for us. (safe_alloc_realloc_n): Remove. All uses replaced by reallocarray. | ||
| 56e88183 | 2024-11-04 21:38:55 | argz: defend against realloc (0, 0) * modules/argz (Depends-on): Add realloc-posix so that argz_append doesn’t wrongly fail with ENOMEM on AIX. | ||
| 778c0a96 | 2024-11-04 19:09:08 | realloc-posix: update doc * doc/posix-functions/realloc.texi: Update to match recent Gnulib changes and OS discoveries, and to clarify and simplify by coalescing behaviors (4) and (5). | ||
| 81c855d6 | 2024-11-04 18:24:07 | doc: mention Solaris malloc ENOMEM issues | ||
| c2df016c | 2024-11-04 18:16:50 | realloc-posix: tune for glibc-like For glibc, implementing realloc (p, s) as realloc (p, s?s:1) suffices, and it’s probably better to do it inline to aid static checking. * lib/realloc.c (rpl_realloc) [_GL_INLINE_RPL_REALLOC]: Remove, replacing with inline function in stdlib.h. * lib/stdlib.in.h (_GL_INLINE_RPL_REALLOC): New macro. (rpl_realloc): Define as inline if _GL_INLINE_RPL_REALLOC. * m4/realloc.m4 (gl_FUNC_REALLOC_0_NONNULL): Set REPLACE_REALLOC_FOR_REALLOC_POSIX=2 instead of 1, if it’s close enough to glibc that the inline optimization is valid. | ||
| 4f5e558f | 2024-11-04 15:31:15 | realloc-posix: use _GL_USE_STDLIB_ALLOC * lib/realloc.c (_GL_USE_STDLIB_ALLOC): New macro, which we can use now that we don’t use malloc. (realloc): Do not undef; no longer needed. | ||
| c6d15a4b | 2024-11-04 11:12:21 | stdlib: make MB_CUR_MAX usable from extern inline * lib/stdlib.c: New file. * modules/stdlib (Files, lib_SOURCES): Add it. (Depends-on): Add extern-inline. * lib/stdlib.in.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. (_GL_STDLIB_INLINE): New macro. (gl_MB_CUR_MAX): Make it _GL_STDLIB_INLINE not static inline, so that it can be called from extern inline functions. Redo implementation to help GCC better optimize common expressions like (MB_CUR_MAX == 1). | ||
| 9959b629 | 2024-11-03 23:27:52 | realloc-posix: set CHERI bounds * lib/ialloc.h, lib/xmalloc.c [__CHERI_PURE_CAPABILITY__]: Do nothing special, as realloc and reallocarray should do this for us now. * lib/realloc.c [__CHERI_PURE_CAPABILITY__]: Include cheri.h, and arrange for rpl_realloc to set bounds. | ||
| d884e6fc | 2024-11-03 22:41:41 | realloc-posix: realloc (..., 0) now returns nonnull * lib/realloc.c (rpl_realloc): Simplify and tune by using HAVE_REALLOC_0_NONNULL and HAVE_MALLOC_PTRDIFF, and by having just one call to realloc instead of two. * lib/reallocarray.c (reallocarray): Simplify and tune by delegating the zero case to the revised realloc. * m4/eealloc.m4 (_AC_FUNC_REALLOC_IF): Since only eealloc uses this macro now, move its definition here ... * m4/realloc.m4: ... from here. (gl_FUNC_REALLOC_0_NONNULL): Also check that realloc (p, 0) returns nonnull. Require gl_FUNC_REALLOC_POSIX. Define HAVE_REALLOC_0_NONNULL. * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Also replace reallocarray if it returns a null pointer for size zero. * modules/eealloc (Files): Remove m4/realloc.m4. * modules/realloc-posix (Depends-on): Add extensions-aix. * modules/reallocarray (Files): Add m4/realloc.m4. | ||
| 8835e92d | 2024-11-03 22:02:28 | stdlib: simplify preprocessor conditionals * lib/stdlib.in.h: Omit some redundant tests in conditionals. | ||
| 9a4319ca | 2024-11-03 21:44:15 | realloc: don’t require success for nongrowth * lib/realloc.c (rpl_realloc): Do not require realloc (p, 0) to succeed, as apparently glibc realloc (p, n) can sometimes fail even when the region would not grow. | ||
| 9a7a9d1b | 2024-11-03 18:18:58 | calloc, malloc: tune a bit This applies mostly to non-glibc platforms, or to 32-bit glibc before glibc 2.30 (2019). * lib/calloc.c (rpl_calloc): * lib/malloc.c (rpl_malloc): Optimize away some of the code if !HAVE_MALLOC_0_NONNULL or if !HAVE_MALLOC_PTRDIFF. * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_0_NONNULL. (gl_FUNC_MALLOC_PTRDIFF): Define HAVE_MALLOC_PTRDIFF. | ||
| 78ede6f3 | 2024-11-03 12:24:03 | calloc: configure more like malloc * m4/calloc.m4 (gl_FUNC_CALLOC_IF): Rename from _AC_FUNC_CALLOC_IF since this is not derived from Autoconf. All uses changed. Redo implementation so that it is more like _AC_FUNC_MALLOC_IF; this fixes some problems with "volatile" and modernizes the known platforms. | ||
| 9c3ebd3b | 2024-11-03 12:19:33 | malloc-gnu: depend on stdckdint not xalloc-oversized * lib/malloc.c: Include stdckdint.h, xalloc-oversized.h. (rpl_malloc): Use ckd_mul instead of xalloc_oversized. * modules/malloc-gnu, modules/malloc-posix: (Depends-on): Depend on stdckdint, not xalloc-oversized. | ||
| 9334b1c6 | 2024-11-03 11:11:03 | calloc: depend on stdckdint not xalloc-oversized * lib/calloc.c: Include stdckdint.h, xalloc-oversized.h. (rpl_calloc): Use ckd_mul instead of xalloc_oversized. * modules/calloc-gnu, modules/calloc-posix: (Depends-on): Depend on stdckdint, not xalloc-oversized. | ||
| 41be6842 | 2024-11-04 09:38:03 | malloc etc. tests: use volatile more consistently Typically it’s ineffective to use ‘void *volatile p’ when testing malloc and similar functions, as the compiler can optimize the call to malloc before assigning the result to the volatile pointer variable. Instead, be more systematic about calling malloc through a volatile function pointer so that the compiler cannot infer that it is a malloc call. This fix can’t be done for alloca-like functions which may not have a function address, so continue to trust to luck there. * tests/test-aligned-malloc.c (aligned4_malloc, aligned4_free) (aligned8_malloc, aligned8_free, aligned16_malloc) (aligned16_free, aligned32_malloc, aligned32_free): * tests/test-aligned_alloc.c (aligned_alloc): * tests/test-calloc-gnu.c (calloc): * tests/test-free.c (free): * tests/test-malloc-gnu.c (malloc): * tests/test-reallocarray.c (reallocarray): Test indirectly, by calling through a volatile pointer. * tests/test-aligned-malloc.c, tests/test-aligned_alloc.c: * tests/test-calloc-gnu.c, tests/test-calloc-posix.c: * tests/test-free.c, tests/test-malloc-gnu.c: * tests/test-malloc-posix.c, tests/test-realloc-posix.c: * tests/test-reallocarray.c: (main) Don’t bother making data pointers olatile, as it’s ineffective. * tests/test-calloc-gnu.c (identity): * tests/test-free.c (get_errno, get_errno_func): Remove; all uses removed. | ||
| a1da46a0 | 2024-11-04 17:50:09 | aligned_alloc: Fix test failures on macOS, Solaris (regr. 2024-10-30). * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Check for the Solaris bug. Let the test program return a bit mask. Update cross-compilation guesses. * lib/aligned_alloc.c: Include <errno.h>. (aligned_alloc): Fail if the alignment is not a power of 2. Work around the Solaris bug. * modules/aligned_alloc (Depends-on): Add malloc-posix. * doc/posix-functions/aligned_alloc.texi: Mention the Solaris bug. | ||
| 3d5f0e47 | 2024-11-04 13:49:22 | tests: Add comments. * tests/test-aligned_alloc.c (main): Clarify that we test a zero size. * tests/test-posix_memalign.c (main): Likewise. | ||
| 5c8290b0 | 2024-11-04 11:47:23 | malloc, calloc, realloc tests: Work around clang optimization bug. * tests/test-malloc-posix.c (my_malloc): New variable. * tests/test-calloc-posix.c (my_calloc): New variable. * tests/test-realloc-posix.c (my_realloc): New variable. | ||
| 29a14761 | 2024-11-03 21:18:29 | crc: Fix build rules with Automake's option 'subdir-objects'. Reported by Pádraig Brady in <https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00011.html>. * build-aux/prefix-gnulib-mk: Add comments. (usage): Mark this usage as deprecated. * modules/crc (Makefile.am): Use %reldir%. Write $(srcdir)/. instead of $(srcdir). | ||
| 108fd1f9 | 2024-11-01 23:04:06 | select: Document a Haiku bug. * doc/posix-functions/select.texi: Mention a Haiku bug. | ||
| 871748d4 | 2024-11-01 13:44:12 | eealloc: Revert last change. * m4/eealloc.m4 (gl_EEMALLOC): Invoke _AC_FUNC_MALLOC_IF, not gl_CHECK_MALLOC_POSIX. | ||
| 6cb29d22 | 2024-11-01 13:26:40 | realloc-posix: Fix test failure on AIX (regression 2024-10-27). * m4/realloc.m4 (gl_FUNC_REALLOC_0_NONNULL): New macro. * modules/realloc-posix (configure.ac): Invoke it. | ||
| 23d89b19 | 2024-11-01 12:28:05 | eealloc: Use the same cross-compilation guess as malloc-posix. * m4/eealloc.m4 (gl_EEMALLOC): Invoke gl_CHECK_MALLOC_POSIX, not _AC_FUNC_MALLOC_IF. * modules/malloca (Files): Add m4/malloc.m4. * modules/regex (Files): Likewise. | ||
| 69e170a8 | 2024-11-01 12:25:22 | Improve log output of an Autoconf test. * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): On native Windows, report "guessing yes/no". (gl_FUNC_MALLOC_POSIX): Update. * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): Likewise. | ||
| c7f29c82 | 2024-10-31 19:22:22 | malloc, realloc: fix $3 bug Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2024-10/msg00284.html * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Sync from bleeding-edge Autoconf again. | ||
| 0bf14793 | 2024-11-01 00:17:20 | crc: Support generating the tables also when cross-compiling. * m4/build-cc.m4: New file. * modules/crc (Files): Add it. (configure.ac): Invoke gl_BUILD_CC. Don't set GL_CROSS_COMPILING. (Makefile.am): Use $(BUILD_CC) etc. instead of $(CC) etc. | ||
| cb1e736c | 2024-10-31 22:11:22 | malloc-posix, realloc-posix: Fix incorrect expansion of AC_FUNC_MALLOC. * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Handle the case of a missing third argument. * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise. | ||
| 0d39c0a0 | 2024-10-31 22:04:42 | malloc-gnu, eealloc: Make code more future-proof. * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Protect evaluation of $gl_cross_guess_normal. * m4/eealloc.m4 (gl_EEMALLOC, gl_EEREALLOC): Likewise. | ||
| ea0babb1 | 2024-10-31 20:54:52 | malloc-posix, calloc-posix, realloc-posix: Optimize on MSVC. * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Assume that malloc sets errno upon failure if UCRT is in use. | ||
| cf3ce55d | 2024-10-31 20:54:45 | realloc-posix tests: Enhance tests. * tests/test-realloc-posix.c (main): Check errno also after normal failing realloc calls. | ||
| e4424a2c | 2024-10-31 20:54:41 | realloc-posix tests: Fix memory leak. * tests/test-realloc-posix.c (main): Don't clobber variable 'p' in failing call. | ||
| 2f63858f | 2024-10-31 20:54:36 | calloc-posix: Add tests. * tests/test-calloc-posix.c: New file. * modules/calloc-posix-tests: New file. | ||
| 7a80523e | 2024-10-31 20:54:15 | malloc-posix: Add tests. * tests/test-malloc-posix.c: New file. * modules/malloc-posix-tests: New file. | ||
| 5c3bd571 | 2024-10-31 20:53:17 | realloc-posix: Set errno when failing (regression 2029-10-29). * lib/realloc.c (rpl_realloc): When failing, with HAVE_MALLOC_POSIX not defined, set errno. | ||
| 97da508e | 2024-10-31 20:51:10 | crc: Avoid potential conflict with other configure.ac files. Suggested by Simon Josefsson. * modules/crc (configure.ac, Makefile.am): Rename CROSS_COMPILING to GL_CROSS_COMPILING. | ||
| 6be0fe41 | 2024-10-31 14:59:37 | crc: Fix compile warnings * lib/crc-generate-table.c: Mark non-exported functions as static * lib/crc.c: Mark non-exported functions as static Signed-off-by: Simon Josefsson <simon@josefsson.org> | ||
| 1460b29e | 2024-10-31 14:48:35 | crc: Don't attempt to run a compiled C program when cross-compiling. * lib/crc-generate-table.c: Don't include config.h. * modules/crc (configure.ac): Define CROSS_COMPILING variable. Invoke AC_PROG_MKDIR_P. (Makefile.am): When cross-compiling, don't regenerate crc-sliceby8.h. Don't use Gnulib modules while compiling the generator. | ||
| c64f10f0 | 2024-10-31 14:23:09 | crc: Tweak generator. * lib/crc-generate-table.c (print_header): Don't emit a blank line at the end. (print_copyright_notice): Prepend a "DO NOT EDIT" line. (main): Fail if disk is full after we wrote part of the file. | ||
| cc3fb685 | 2024-10-31 13:10:34 | crc: make it a maintainer setting rather than a user setting. * m4/crc.m4 (gl_CRC_SLICE_BY_8): Drop AC_ARG_ENABLE. | ||
| 54f3dae2 | 2024-10-27 13:19:17 | crc: New optimised slice-by-8 implementation * lib/crc.c: Implementation of slice-by-8 algorithm * lib/crc-generate-table.c: Generation code for CRC32 lookup tables * m4/crc.m4: Autoconf enable slice-by-8, flag to disable * modules/crc (Depends-on): Add endian. (Makefile.am): Build slice-by-8 tables from crc-generate-table.c. Signed-off-by: Simon Josefsson <simon@josefsson.org> | ||
| 0e55c626 | 2024-10-31 12:13:17 | posix_memalign: Fix configure test (regression yesterday). * m4/posix_memalign.m4 (gl_FUNC_POSIX_MEMALIGN): Fix typo in comment. Fix variable name. | ||
| 8be7e3ed | 2024-10-31 12:09:46 | aligned_alloc: Fix comment. * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Fix typo in comment. | ||
| 3b32a066 | 2024-10-31 04:34:29 | assert-h: Allow mixed use of gcc/g++ also on Haiku 2022. * m4/assert_h.m4 (gl_ASSERT_H): Don't assume that in C mode, <assert.h> defines static_assert. | ||
| d4b58071 | 2024-10-30 23:21:04 | futimes, utimensat, utimes, utime: Document Haiku malfunction. * doc/posix-functions/futimens.texi: Mention Haiku's brokenness. * doc/posix-functions/utimensat.texi: Likewise. * doc/posix-functions/utimes.texi: Likewise. * doc/pastposix-functions/utime.texi: Likewise. | ||
| 99bbb61c | 2024-10-30 12:47:02 | posix_memalign: check for GNU behavior with size 0 * lib/posix_memalign.c: Include stdckdint.h. (posix_memalign): Test for overflow more straightforwardly, and more portably to unlikely platforms where SIZE_MAX <= INT_MAX. Treat a zero size as if it were alignment. * m4/posix_memalign.m4 (gl_FUNC_POSIX_MEMALIGN): * tests/test-posix_memalign.c (main): Test zero size too. Use volatile to avoid compiler optimizations. * modules/posix_memalign (Depends-on): Add stdckdint. | ||
| e6108a3b | 2024-10-30 11:54:57 | aligned_alloc: check for GNU behavior with size 0 If someone ever needs to distinguish between GNU and merely POSIX behavior we can split this into two modules, but for now just make this module act like GNU. * lib/aligned_alloc.c (aligned_alloc): Treat zero size like GNU. * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): * tests/test-aligned_alloc.c (main): Test zero size too. | ||
| 3b67980c | 2024-10-30 15:56:41 | assert-h, stdbool: Fix compilation error with MSVC 14 (regr. yesterday). * m4/assert_h.m4 (gl_ASSERT_H): Add parentheses to the preprocessor expression. * m4/c-bool.m4 (gl_C_BOOL): Likewise. | ||
| 98b35580 | 2024-10-29 22:01:44 | malloc, realloc: sync from Autoconf master * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Sync from bleeding-edge Autoconf. All uses changed. | ||
| c8bda093 | 2024-10-29 22:01:43 | malloc: fix recent doc bug for AIX 7.3 * doc/posix-functions/malloc.texi: Undo previous change, as _LINUX_SOURCE_COMPAT no longer affects malloc on AIX 7.3. It did affect it in AIX 7.1 but 7.1 is no longer supported. | ||
| 70f9c1de | 2024-10-29 22:01:42 | realloc-posix: realloc (p, 0) yields nonnull * lib/realloc.c: Include <stdckdint.h>, not "xalloc-oversized.h". Use of xalloc_oversized replaced by ckd_add. (rpl_realloc) [!NEED_SANITIZED_REALLOC]: Treat realloc (p, 0) as if it were a realloc (p, 1) that never fails. That’s easier, reduces module dependencies, and better supports the future alloc-0-nonnull module. * modules/realloc-posix (Depends-on): Remove free-posix, malloc-posix, xalloc-oversized. Add stdckdint. | ||
| 3f44e474 | 2024-10-29 20:12:25 | backupfile: Remove non-existent module dependency. * modules/backupfile (Depends-on): Remove irealloc dependency since the function is a part of the ialloc module. | ||
| fc7205c2 | 2024-10-29 16:21:06 | Fix indentation in config.h (regression 2024-09-25). * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a '#else' indentation. | ||
| c384d484 | 2024-10-29 13:48:36 | assert-h, stdbool: Allow mixed use of gcc/g++ and clang/clang++ again. * m4/assert_h.m4 (gl_ASSERT_H): Improve indentation. With GCC and clang, don't use the value of HAVE_C_STATIC_ASSERT. * m4/c-bool.m4 (gl_C_BOOL): With GCC and clang, don't use the value of HAVE_C_BOOL. | ||
| 104c8536 | 2024-10-29 05:02:20 | doc: Don't mention Java dependency. * doc/build-automation.texi (Building gnulib): Remove Java from the needed tools. | ||
| cddc1650 | 2024-10-28 19:59:35 | doc: Mention Python dependency. * doc/build-automation.texi (Building gnulib): Document that Python is needed for gnulib-tool. | ||
| 52cb8aa7 | 2024-10-28 13:24:34 | doc: Improve usability of generated PDF. * doc/gnulib.texi: Use a brown colour for interactive links. | ||
| 370c51c6 | 2024-10-27 16:58:59 | realloc-gnu: Fix typo in deprecation notice. * modules/realloc-gnu (Notice): Recommend 'realloc-posix' in the deprecation notice. | ||
| 6659e016 | 2024-10-28 00:18:35 | realloc-gnu: Replace module with an alias to realloc-posix. * tests/test-realloc-posix.c: Renamed from tests/test-realloc-gnu.c. Add more tests, not yet activated. * modules/realloc-posix-tests: Renamed from modules/realloc-gnu-tests. Test test-realloc-posix instead of test-realloc-gnu. * modules/realloc-gnu: Mark as a deprecated alias of 'realloc-posix'. * lib/stdlib.in.h (realloc): Ignore GNULIB_REALLOC_GNU. * modules/stdlib (Makefile.am): Don't substitute GNULIB_REALLOC_GNU, REPLACE_REALLOC_FOR_REALLOC_GNU. * m4/stdlib_h.m4 (gl_STDLIB_H_REQUIRE_DEFAULTS): Don't initialize GNULIB_REALLOC_GNU. (gl_STDLIB_H_DEFAULTS): Don't initialize REPLACE_REALLOC_FOR_REALLOC_GNU. * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Remove macro. * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Update comment. * doc/posix-functions/realloc.texi: Remove description of module 'realloc-gnu'. * MODULES.html.sh (Memory management functions <stdlib.h>): Remove realloc-gnu. Add realloc-posix. | ||
| c36a0f21 | 2024-10-27 17:01:29 | doc: Add a module index. * doc/Makefile (undocumented-modules.texi): New rule. (%.info, %.html, %.dvi, %.pdf): Depend on undocumented-modules.texi. (mostlyclean): Remove also *.m and *.tmp. (force): New rule. * doc/*.texi: Add module index entries. * doc/*/*.texi: Likewise. | ||
| 54483dcf | 2024-10-26 14:34:10 | posix_memalign: port better to OpenBSD 6.2+ cross * m4/posix_memalign.m4 (gl_FUNC_POSIX_MEMALIGN): Don’t assume sizeof (void *) <= 32 (!). The bug is fixed in OpenBSD 6.2+. | ||
| 11d48307 | 2024-10-26 10:07:53 | posix_memalign-tests: fix message typo * tests/test-posix_memalign.c (main): Fix diagnostic typo. | ||
| f0fa8fa3 | 2024-10-26 10:06:55 | aligned_alloc: document glibc bug 32301 * doc/posix-functions/aligned_alloc.texi: * doc/posix-functions/posix_memalign.texi: Mention glibc bug 32301, which it is not worth our time to work around. | ||
| 2d528629 | 2024-10-25 17:02:02 | eealloc: update commentary Even if we remove eealloc we might as well add commentary explaining some of its confusion, before we remove it. * lib/eealloc.h: Update comment. * modules/eealloc (Description): Update, since eealloc is not glibc compatible. | ||
| 1b5f6776 | 2024-10-26 21:10:30 | regex: Avoid dialog while running configure test on Haiku/x86_64. Reported by Alexandru Popa <alpopa@gmail.com> in <https://sourceforge.net/p/clisp/mailman/message/58831511/>. * m4/regex.m4 (gl_REGEX): Disable dialog upon abort on Haiku. |