doc/glibc-functions


Log

Author Commit Date CI Message
Bruno Haible 1f8f8f77 2025-09-21T21:30:58 doc: Update for Android API level 37. * doc/glibc-functions/sched_getattr.texi: Document that the function is missing on Android API level <= 36. * doc/glibc-functions/sched_setattr.texi: Likewise.
Bruno Haible b5401616 2025-09-21T21:28:33 doc: Update for Android API level 36. * doc/glibc-functions/pthread_getaffinity_np.texi: Document that the function is missing on Android API level <= 35. * doc/glibc-functions/pthread_setaffinity_np.texi: Likewise.
Collin Funk 4bdd70e3 2025-09-20T22:36:22 lchmod: Port to Android API level 36. * m4/lchmod.m4 (gl_FUNC_LCHMOD): Use gl_CHECK_FUNCS_ANDROID to check for lchmod instead of AC_CHECK_FUNCS_ONCE. * m4/lchown.m4 (gl_FUNC_LCHOWN): Likewise. * doc/glibc-functions/lchmod.texi (lchmod): Document that the function is missing on Android API 35 and lower.
Bruno Haible f05b5a23 2025-08-19T20:05:47 doc: Update for glibc 2.42. * doc/glibc-functions/uabs.texi: New file. * doc/glibc-functions/ulabs.texi: New file. * doc/glibc-functions/ullabs.texi: New file. * doc/glibc-functions/uimaxabs.texi: New file. * doc/gnulib.texi (Glibc inttypes.h): New section. (Glibc stdlib.h): Include three of these files.
Bruno Haible 9d429ac1 2025-08-19T19:29:03 doc: Update for glibc 2.42. * doc/glibc-functions/pthread_gettid_np.texi: New file. * doc/gnulib.texi (Glibc pthread.h): Include it. * doc/posix-headers/*.texi: Update. * doc/posix-functions/*.texi: Likewise.
Bruno Haible 99221b14 2025-08-19T09:23:26 doc: Update for glibc 2.41. * doc/glibc-functions/sched_getattr.texi: New file. * doc/glibc-functions/sched_setattr.texi: New file. * doc/gnulib.texi (Glibc sched.h): Include them. * doc/posix-functions/initstate.texi: Update. * doc/glibc-functions/initstate_r.texi: Likewise. * doc/posix-functions/compoundn*.texi: Likewise.
Paul Eggert 98704937 2025-08-02T10:21:36 Shorten glibc bug URLs
Paul Eggert a44c85a2 2025-08-02T08:52:29 More copy_file_range commentary
Collin Funk c3779ad1 2025-08-01T21:34:37 doc: Mention the copy_file_range bug. * doc/glibc-functions/copy_file_range.texi: Mention glibc bug 33245 in version 2.41 and 2.42.
Collin Funk e936bfd8 2025-07-23T19:55:41 sethostname tests: Avoid test failure on Haiku. * tests/test-sethostname2.c (main): On Haiku, skip the "too long hostname" test. * doc/glibc-functions/sethostname.texi: Mention the Haiku problem.
Collin Funk f50bfdb3 2025-07-18T20:35:29 doc: Mention GNU/Hurd is missing sync_file_range. * doc/glibc-functions/sync_file_range.texi: Add GNU/Hurd to the list of platforms missing sync_file_range.
Collin Funk 17357997 2025-07-16T16:57:06 doc: Use @code around errno constants. * doc/posix-functions/mkfifoat.texi: Use @code for errno constants instead of @samp. * doc/posix-functions/mknodat.texi: Likewise. * doc/posix-functions/setenv.texi: Likewise. * doc/posix-functions/symlinkat.texi: Likewise. * doc/posix-functions/unsetenv.texi: Likewise. * doc/glibc-functions/sethostname.texi: Use @code around errno constants. * doc/posix-functions/chmod.texi: Likewise. * doc/posix-functions/posix_fallocate.texi: Likewise. * doc/posix-functions/ptsname_r.texi: Likewise.
Collin Funk 07610f0d 2025-07-15T20:16:46 doc: Mention copy_file_range stub on GNU/Hurd. * doc/glibc-functions/copy_file_range.texi: Use @code around errno constants. Mention that the GNU/Hurd version of this function is just a stub.
Bruno Haible 0d1077ab 2025-06-27T15:27:24 options: New module. * lib/options.h: New file. * lib/options.c: New file. * modules/options: New file. * doc/glibc-functions/getopt_long.texi: Mention the new module.
Paul Eggert f60688ed 2025-06-17T09:11:49 listxattr: document Linux 6.15 bug This bug should be fixed in Linux kernel 6.16; see: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fe78e02600f83d81e55f6fc352d82c4f264a2901 For what it's worth, Coreutils decided not to work around the bug, and instead to suggest updating to a fixed kernel or to a future version of libattr with at least the following patches: https://cgit.git.savannah.gnu.org/cgit/attr.git/commit/?id=58abfe6eba0d8d58a61ee8bee0615f74d393fff2 https://cgit.git.savannah.gnu.org/cgit/attr.git/commit/?id=504ab19d7b032212755ab3c7df16be98d5b5212e
Paul Eggert d02604fd 2025-05-30T10:28:06 listxattr: document Linux 6.14- bug This bug is fixed in Linux kernel 6.15; see: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8b0ba61d For what it's worth, Coreutils decided not to work around the bug, and instead to suggest updating to a fixed kernel.
Bruno Haible 7d0b12d7 2025-05-22T13:09:57 strchrnul: Update doc. * doc/glibc-functions/strchrnul.texi: strchrnul got added in macOS 15.4.
Bruno Haible de082701 2025-05-12T12:43:59 doc: Update for a few recently fixed Hurd bugs. * doc/posix-functions/utimensat.texi: List the affected glibc versions. * doc/posix-functions/futimens.texi: Likewise. * doc/posix-functions/linkat.texi: Likewise. * doc/glibc-functions/renameat2.texi: Likewise.
Collin Funk bdb1601d 2025-04-22T18:46:08 random_r tests: Disable signature check on Haiku. * tests/test-random_r.c [__HAIKU__]: Skip initstate_r and setstate_r signature check. * doc/glibc-functions/initstate_r.texi: Remove year. * doc/glibc-functions/setstate_r.texi: Likewise.
Bruno Haible 0710282c 2025-04-12T11:03:45 vasnprintf: Work around two grouping bugs on native Windows. * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): On native Windows, define NEED_PRINTF_FLAG_GROUPING. * lib/vasnprintf.c (localeconv): Undefine. (thousands_separator_char, thousands_separator_wchar): On native Windows, use localeconv(). * tests/test-vasnprintf-posix2.c (main): On native Windows, expect 3 digits for the exponent. * tests/test-vasnwprintf-posix2.c (main): Likewise. * doc/posix-functions/fprintf.texi: Mention the mingw and MSVC bugs. * doc/posix-functions/vfprintf.texi: Likewise. * doc/posix-functions/printf.texi: Likewise. * doc/posix-functions/vprintf.texi: Likewise. * doc/posix-functions/sprintf.texi: Likewise. * doc/posix-functions/vsprintf.texi: Likewise. * doc/posix-functions/snprintf.texi: Likewise. * doc/posix-functions/vsnprintf.texi: Likewise. * doc/posix-functions/dprintf.texi: Likewise. * doc/posix-functions/vdprintf.texi: Likewise. * doc/posix-functions/fwprintf.texi: Likewise. * doc/posix-functions/vfwprintf.texi: Likewise. * doc/posix-functions/wprintf.texi: Likewise. * doc/posix-functions/vwprintf.texi: Likewise. * doc/posix-functions/swprintf.texi: Likewise. * doc/posix-functions/vswprintf.texi: Likewise. * doc/posix-functions/asprintf.texi: Likewise. * doc/posix-functions/vasprintf.texi: Likewise. * doc/glibc-functions/obstack_printf.texi: Likewise. * doc/glibc-functions/obstack_vprintf.texi: Likewise.
Bruno Haible f7a63a90 2025-04-12T00:09:23 vasnprintf: Work around two grouping bugs on many platforms. * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING_INT_PRECISION): New macro. (gl_PRINTF_FLAG_GROUPING_MULTIBYTE): New macro. * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_IS_POSIX): Require gl_PRINTF_FLAG_GROUPING_INT_PRECISION, gl_PRINTF_FLAG_GROUPING_MULTIBYTE. Test gl_cv_func_printf_flag_grouping_int_precision, gl_cv_func_printf_flag_grouping_multibyte. * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_IS_POSIX): Likewise. * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_IS_POSIX): Likewise. * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_IS_POSIX): Likewise. * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_IS_POSIX): Likewise. * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_IS_POSIX): Likewise. * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_IS_POSIX): Likewise. * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_IS_POSIX): Likewise. * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_IS_POSIX): Likewise. * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_IS_POSIX): Likewise. * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_IS_POSIX): Likewise. * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): Require gl_PRINTF_FLAG_GROUPING_INT_PRECISION, gl_PRINTF_FLAG_GROUPING_MULTIBYTE. Test gl_cv_func_printf_flag_grouping_int_precision, gl_cv_func_printf_flag_grouping_multibyte. Define the C macro NEED_PRINTF_FLAG_GROUPING_INT. * lib/vasnprintf.c (thousands_separator_char): New function. (THOUSEP_CHAR_MAXLEN): New macro. (thousands_separator_wchar): New function. (THOUSEP_WCHAR_MAXLEN): New macro. (MAX_ROOM_NEEDED): Improve the room estimate for FLAG_GROUP. (VASNPRINTF): Add code for emitting thousands separators in the %f, %F, %g, %G implementations and in the code relies the system's sprintf/snprintf/swprintf function. Test NEED_PRINTF_FLAG_GROUPING and NEED_PRINTF_FLAG_GROUPING_INT where needed. * tests/test-vasnprintf-posix2.c (main): Add tests of the grouping flag. * tests/test-vasnwprintf-posix2.c (main): Likewise. * tests/test-vasnprintf-posix2.sh: Test in both French locales, not only in one of them. * tests/test-vasnwprintf-posix2.sh: Likewise. * modules/vasnprintf-posix-tests (Depends-on): Add localeconv. * modules/vasnwprintf-posix-tests (Depends-on): Likewise. * doc/posix-functions/fprintf.texi: Mention the grouping bug with precision on integers and the grouping bug with a multibyte thousands separator. * doc/posix-functions/vfprintf.texi: Likewise. * doc/posix-functions/printf.texi: Likewise. * doc/posix-functions/vprintf.texi: Likewise. * doc/posix-functions/sprintf.texi: Likewise. * doc/posix-functions/vsprintf.texi: Likewise. * doc/posix-functions/snprintf.texi: Likewise. * doc/posix-functions/vsnprintf.texi: Likewise. * doc/posix-functions/dprintf.texi: Likewise. * doc/posix-functions/vdprintf.texi: Likewise. * doc/posix-functions/fwprintf.texi: Likewise. * doc/posix-functions/vfwprintf.texi: Likewise. * doc/posix-functions/wprintf.texi: Likewise. * doc/posix-functions/vwprintf.texi: Likewise. * doc/posix-functions/swprintf.texi: Likewise. * doc/posix-functions/vswprintf.texi: Likewise. * doc/posix-functions/asprintf.texi: Likewise. * doc/posix-functions/vasprintf.texi: Likewise. * doc/glibc-functions/obstack_printf.texi: Likewise. * doc/glibc-functions/obstack_vprintf.texi: Likewise.
Collin Funk 3691a095 2025-01-24T20:38:54 strerrorname_np: Work around a bug on Solaris 11 OmniOS. * m4/strerrorname_np.m4 (gl_CHECK_STRERRORNAME_NP): Test if strerrorname_np returns NULL when given ERESTART or ESTRPIPE. * doc/glibc-functions/strerrorname_np.texi: Document the bug.
Collin Funk 1e3de030 2025-01-18T21:06:49 renameatu: Work around a GNU/Hurd bug. * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check if renameat2 handles trailing slashes. * doc/glibc-functions/renameat2.texi: Mention the GNU/Hurd bug.
Paul Eggert 66080623 2025-01-10T10:34:58 doc: document some file system portability issues * doc/glibc-functions/flistxattr.texi: * doc/glibc-functions/listxattr.texi: * doc/glibc-functions/llistxattr.texi: * doc/posix-functions/fchdir.texi, doc/posix-functions/fstat.texi: * doc/posix-functions/fstatvfs.texi: Document some portability gotchas that Gnulib does not work around.
Collin Funk 5423426e 2024-11-24T11:17:29 doc: Add missing module index. Reported by Bruno Haible <bruno@clisp.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00193.html>. * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p): Add module index.
Collin Funk 4f0fbc3e 2024-11-23T23:32:27 doc: Document that glob includes glob_pattern_p. * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p): Document that the glob module includes the glob_pattern_p function.
Collin Funk 2d08d875 2024-11-17T13:05:55 doc: Prefer https urls where possible. * doc/gnulib.texi (POSIXURL): Use https url. * doc/multithread.texi: Use https instead of http where possible. * doc/glibc-functions/*.texi: Likewise. * doc/posix-functions/*.texi: Likewise. * lib/glthread/lock.c: Likewise. * lib/hamt.h: Likewise. * lib/localcharset.c: Likewise. * lib/pipe2.c: Likewise. * lib/pipe.c: Likewise. * lib/sigsegv.c: Likewise. * lib/sigsegv.in.h: Likewise. * lib/sm3.c: Likewise. * lib/sm3.h: Likewise. * lib/sm3-stream.c: Likewise. * lib/stackvma.c: Likewise. * lib/stdio-impl.h: Likewise. * lib/stdnoreturn.in.h: Likewise. * m4/getopt.m4: Likewise. * m4/largefile.m4: Likewise. * m4/stdalign.m4: Likewise. * STATUS-libposix: Likewise. * tests/test-float.c: Likewise. * tests/test-getopt.h: Likewise. * tests/test-setenv.c: Likewise. * tests/test-spawn-pipe-child.c: Likewise. * tests/test-strerror.c: Likewise. * tests/test-strerror_r.c: Likewise. * tests/test-unsetenv.c: Likewise. * users.txt: Likewise.
Bruno Haible c36a0f21 2024-10-27T17: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.
Bruno Haible 6db3edf9 2024-09-04T10:21:31 Doc regarding functions introduced in Android API level 35. * doc/posix-functions/_Fork.texi: Mention the Android API levels. * doc/glibc-functions/epoll_pwait2.texi: Likewise. * doc/glibc-functions/strerrorname_np.texi: Likewise.
Bruno Haible e69d5120 2024-09-03T22:25:29 doc: More details about pthread_setname_np. Reported by Eric Gallager <egall@gwmail.gwu.edu> in <https://lists.gnu.org/archive/html/bug-gnulib/2024-09/msg00017.html>. * doc/glibc-functions/pthread_setname_np.texi: Mention the different signature on macOS.
Bruno Haible b1c67ccf 2024-08-19T16:20:08 hasmntopt: New module. * lib/mntent.in.h: Add config.h check. (hasmntopt): New declaration. * lib/hasmntopt.c: New file, based on glibc/misc/mntent_r.c. * m4/hasmntopt.m4: New file. * m4/mntent_h.m4 (gl_MNTENT_H): Test whether hasmntopt is declared. (gl_MNTENT_H_REQUIRE_DEFAULTS): Initialize GNULIB_HASMNTOPT. (gl_MNTENT_H_DEFAULTS): Initialize HAVE_HASMNTOPT, HAVE_SETMNTENT, REPLACE_HASMNTOPT. * modules/mntent (Depends-on): Add snippet/arg-nonnull, snippet/c++defs, snippet/warn-on-use. (Makefile.am): Insert c++defs.h, arg-nonnull.h, warn-on-use.h into mntent.h. Substitute GNULIB_HASMNTOPT, HAVE_HASMNTOPT, HAVE_SETMNTENT, REPLACE_HASMNTOPT. * modules/hasmntopt: New file. * doc/glibc-functions/hasmntopt.texi: Mention the new module and the musl bug. * doc/glibc-functions/setmntent.texi: Update info about Android. * doc/glibc-functions/getmntent_r.texi: Likewise. * doc/glibc-functions/endmntent.texi: Likewise.
Bruno Haible b323c0c4 2024-08-08T16:15:20 doc: Update for Cygwin 3.5.3. * doc/posix-headers/*.texi: Update. * doc/posix-functions/*.texi: Likewise. * doc/glibc-functions/*.texi: Likewise.
Bruno Haible 496a7aee 2024-08-08T01:46:08 doc: Update for OpenBSD 7.5. * doc/posix-headers/*.texi: Update. * doc/glibc-headers/*.texi: Likewise. * doc/posix-functions/*.texi: Likewise. * doc/pastposix-functions/*.texi: Likewise. * doc/glibc-functions/*.texi: Likewise.
Bruno Haible 0c7f5062 2024-07-20T15:34:55 doc: Update status of functions that are added in POSIX:2024. * doc/posix-functions/_Fork.texi: Moved here from doc/glibc-functions/. * doc/posix-functions/accept4.texi: Likewise. * doc/posix-functions/asprintf.texi: Likewise. * doc/posix-functions/bind_textdomain_codeset.texi: Likewise. * doc/posix-functions/bindtextdomain.texi: Likewise. * doc/posix-functions/dcgettext.texi: Likewise. * doc/posix-functions/dcngettext.texi: Likewise. * doc/posix-functions/dgettext.texi: Likewise. * doc/posix-functions/dladdr.texi: Likewise. * doc/posix-functions/dngettext.texi: Likewise. * doc/posix-functions/dup3.texi: Likewise. * doc/posix-functions/ffsl.texi: Likewise. * doc/posix-functions/ffsll.texi: Likewise. * doc/posix-functions/getentropy.texi: Likewise. * doc/posix-functions/getresgid.texi: Likewise. * doc/posix-functions/getresuid.texi: Likewise. * doc/posix-functions/gettext.texi: Likewise. * doc/posix-functions/in6addr_any.texi: Likewise. * doc/posix-functions/in6addr_loopback.texi: Likewise. * doc/posix-functions/memmem.texi: Likewise. * doc/posix-functions/mkostemp.texi: Likewise. * doc/posix-functions/ngettext.texi: Likewise. * doc/posix-functions/pipe2.texi: Likewise. * doc/posix-functions/ppoll.texi: Likewise. * doc/posix-functions/pthread_cond_clockwait.texi: Likewise. * doc/posix-functions/pthread_mutex_clocklock.texi: Likewise. * doc/posix-functions/pthread_rwlock_clockrdlock.texi: Likewise. * doc/posix-functions/pthread_rwlock_clockwrlock.texi: Likewise. * doc/posix-functions/ptsname_r.texi: Likewise. * doc/posix-functions/qsort_r.texi: Likewise. * doc/posix-functions/secure_getenv.texi: Likewise. * doc/posix-functions/sem_clockwait.texi: Likewise. * doc/posix-functions/setresgid.texi: Likewise. * doc/posix-functions/setresuid.texi: Likewise. * doc/posix-functions/textdomain.texi: Likewise. * doc/posix-functions/timespec_get.texi: Likewise. * doc/posix-functions/vasprintf.texi: Likewise. * doc/posix-functions/reallocarray.texi: Likewise. Improve text. * doc/gnulib.texi (Function Substitutes): Include them here. (Glibc Function Substitutes): Don't include them here. (Glibc libintl.h): Remove section. (Glibc poll.h): Remove section. (Glibc semaphore.h): Remove section.
Bruno Haible 9a529487 2024-07-20T04:05:32 doc: Reference a newer ISO C23 draft. Suggested by Alejandro Colomar <alx@kernel.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2024-07/msg00191.html>. * doc/*/*.texi: Refer to n3220.pdf (February 2024) instead of n3096.pdf (April 2023).
Bruno Haible f6c1e90d 2024-07-19T19:21:05 doc: Mention <math.h> function that were added in ISO C23. * doc/posix-functions/acospi.texi: New file. * doc/posix-functions/acospif.texi: New file. * doc/posix-functions/acospil.texi: New file. * doc/posix-functions/asinpi.texi: New file. * doc/posix-functions/asinpif.texi: New file. * doc/posix-functions/asinpil.texi: New file. * doc/posix-functions/atanpi.texi: New file. * doc/posix-functions/atanpif.texi: New file. * doc/posix-functions/atanpil.texi: New file. * doc/posix-functions/atan2pi.texi: New file. * doc/posix-functions/atan2pif.texi: New file. * doc/posix-functions/atan2pil.texi: New file. * doc/posix-functions/compoundn.texi: New file. * doc/posix-functions/compoundnf.texi: New file. * doc/posix-functions/compoundnl.texi: New file. * doc/posix-functions/cospi.texi: New file. * doc/posix-functions/cospif.texi: New file. * doc/posix-functions/cospil.texi: New file. * doc/posix-functions/exp10.texi: Moved here from doc/glibc-functions/. * doc/posix-functions/exp10f.texi: Moved here from doc/glibc-functions/. * doc/posix-functions/exp10l.texi: Moved here from doc/glibc-functions/. * doc/posix-functions/exp10m1.texi: New file. * doc/posix-functions/exp10m1f.texi: New file. * doc/posix-functions/exp10m1l.texi: New file. * doc/posix-functions/exp2m1.texi: New file. * doc/posix-functions/exp2m1f.texi: New file. * doc/posix-functions/exp2m1l.texi: New file. * doc/posix-functions/log10p1.texi: New file. * doc/posix-functions/log10p1f.texi: New file. * doc/posix-functions/log10p1l.texi: New file. * doc/posix-functions/log2p1.texi: New file. * doc/posix-functions/log2p1f.texi: New file. * doc/posix-functions/log2p1l.texi: New file. * doc/posix-functions/logp1.texi: New file. * doc/posix-functions/logp1f.texi: New file. * doc/posix-functions/logp1l.texi: New file. * doc/posix-functions/pown.texi: New file. * doc/posix-functions/pownf.texi: New file. * doc/posix-functions/pownl.texi: New file. * doc/posix-functions/powr.texi: New file. * doc/posix-functions/powrf.texi: New file. * doc/posix-functions/powrl.texi: New file. * doc/posix-functions/rootn.texi: New file. * doc/posix-functions/rootnf.texi: New file. * doc/posix-functions/rootnl.texi: New file. * doc/posix-functions/rsqrt.texi: New file. * doc/posix-functions/rsqrtf.texi: New file. * doc/posix-functions/rsqrtl.texi: New file. * doc/posix-functions/sinpi.texi: New file. * doc/posix-functions/sinpif.texi: New file. * doc/posix-functions/sinpil.texi: New file. * doc/posix-functions/tanpi.texi: New file. * doc/posix-functions/tanpif.texi: New file. * doc/posix-functions/tanpil.texi: New file. * doc/gnulib.texi (Function Substitutes): Include them. (Glibc math.h): Don't include glibc-functions/exp10*.texi.
Bruno Haible 7b8598ab 2024-07-19T16:51:01 doc: Mention a bug in NetBSD's *gettext functions. * doc/glibc-functions/gettext.texi: Mention buggy handling of empty LANGUAGE environment variable. * doc/glibc-functions/dgettext.texi: Likewise. * doc/glibc-functions/dcgettext.texi: Likewise. * doc/glibc-functions/ngettext.texi: Likewise. * doc/glibc-functions/dngettext.texi: Likewise. * doc/glibc-functions/dcngettext.texi: Likewise.
Collin Funk 95713c00 2024-06-28T23:12:40 doc: Mention the byteswap module in function documentation. * doc/glibc-functions/bswap_16.texi (bswap_16): Mention the byteswap module. * doc/glibc-functions/bswap_32.texi (bswap_32): Likewise. * doc/glibc-functions/bswap_64.texi (bswap_64): Likewise.
Bruno Haible e865239b 2024-06-24T20:05:28 doc: Update info about *printf. * doc/*-functions/*printf.texi: Update info regarding size specifiers w8, wf8, etc.
Bruno Haible 28b1742c 2024-06-24T20:04:54 doc: Update info about *printf. * doc/*-functions/*printf.texi: Update info regarding %B directive.
Bruno Haible d185bb28 2024-06-24T20:04:20 doc: Update info about *printf. * doc/*-functions/*printf.texi: Update info regarding %b directive.
Bruno Haible 68068ac4 2024-06-24T20:03:39 doc: Update info about *printf. * doc/*-functions/*printf.texi: Update info regarding %f, %e, %g directives.
Bruno Haible 6dcd0911 2024-06-24T20:02:46 doc: Update info about *printf. * doc/*-functions/*printf.texi: Update info regarding %a directive. * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise. Improve bits assignment in return value.
Bruno Haible 56fd8b55 2024-06-24T20:02:04 doc: Update info about obstack_*printf. * doc/glibc-functions/obstack_*printf.texi: Update info.
Bruno Haible e253528c 2024-06-17T13:50:43 doc: Update for macOS 12, 13, 14. * doc/posix-headers/*.texi: Update. * doc/glibc-headers/*.texi: Update. * doc/posix-functions/*.texi: Likewise. * doc/pastposix-functions/*.texi: Likewise. * doc/glibc-functions/*.texi: Likewise. * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Update cross-compilation guess. * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Update comments. * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Likewise.
Bruno Haible 86e1c660 2024-06-15T22:38:57 doc: Update for glibc 2.39. * doc/glibc-functions/pidfd_getpid.texi: New file. * doc/glibc-functions/pidfd_spawn.texi: New file. * doc/glibc-functions/pidfd_spawnp.texi: New file. * doc/glibc-functions/posix_spawnattr_getcgroup_np.texi: New file. * doc/glibc-functions/posix_spawnattr_setcgroup_np.texi: New file. * doc/gnulib.texi: Include them.
Bruno Haible fca956eb 2024-06-15T16:49:54 doc: Update for glibc 2.36. * doc/posix-functions/c8rtomb.texi: Update. * doc/posix-functions/mbrtoc8.texi: Update. * doc/glibc-functions/arc4random.texi: New file. * doc/glibc-functions/arc4random_buf.texi: New file. * doc/glibc-functions/arc4random_uniform.texi: New file. * doc/glibc-functions/fsconfig.texi: New file. * doc/glibc-functions/fsmount.texi: New file. * doc/glibc-functions/fsopen.texi: New file. * doc/glibc-functions/fspick.texi: New file. * doc/glibc-functions/mount_setattr.texi: New file. * doc/glibc-functions/move_mount.texi: New file. * doc/glibc-functions/open_tree.texi: New file. * doc/glibc-functions/pidfd_getfd.texi: New file. * doc/glibc-functions/pidfd_open.texi: New file. * doc/glibc-functions/pidfd_send_signal.texi: New file. * doc/glibc-functions/process_madvise.texi: New file. * doc/glibc-functions/process_mrelease.texi: New file. * doc/gnulib.texi: Include them. (Glibc sys/pidfd.h): New section.
Paul Eggert 93ed3a5c 2024-06-14T20:59:43 Fix typos in ChangeLog and getpagesize.texi
Bruno Haible 31875a8d 2024-06-15T03:51:50 doc: Update for glibc 2.35. * doc/glibc-functions/_dl_find_object.texi: New file. * doc/glibc-functions/epoll_pwait2.texi: New file. * doc/glibc-functions/posix_spawn_file_actions_addtcsetpgrp_np.texi: New file. * doc/posix-functions/dfmal.texi: New file. * doc/posix-functions/dsqrtl.texi: New file. * doc/posix-functions/ffma.texi: New file. * doc/posix-functions/ffmal.texi: New file. * doc/posix-functions/fmaximum.texi: New file. * doc/posix-functions/fmaximum_mag.texi: New file. * doc/posix-functions/fmaximum_mag_num.texi: New file. * doc/posix-functions/fmaximum_mag_numf.texi: New file. * doc/posix-functions/fmaximum_mag_numl.texi: New file. * doc/posix-functions/fmaximum_magf.texi: New file. * doc/posix-functions/fmaximum_magl.texi: New file. * doc/posix-functions/fmaximum_num.texi: New file. * doc/posix-functions/fmaximum_numf.texi: New file. * doc/posix-functions/fmaximum_numl.texi: New file. * doc/posix-functions/fmaximumf.texi: New file. * doc/posix-functions/fmaximuml.texi: New file. * doc/posix-functions/fminimum.texi: New file. * doc/posix-functions/fminimum_mag.texi: New file. * doc/posix-functions/fminimum_mag_num.texi: New file. * doc/posix-functions/fminimum_mag_numf.texi: New file. * doc/posix-functions/fminimum_mag_numl.texi: New file. * doc/posix-functions/fminimum_magf.texi: New file. * doc/posix-functions/fminimum_magl.texi: New file. * doc/posix-functions/fminimum_num.texi: New file. * doc/posix-functions/fminimum_numf.texi: New file. * doc/posix-functions/fminimum_numl.texi: New file. * doc/posix-functions/fminimumf.texi: New file. * doc/posix-functions/fminimuml.texi: New file. * doc/posix-functions/fsqrt.texi: New file. * doc/posix-functions/fsqrtl.texi: New file. * doc/gnulib.texi: Include them.
Bruno Haible fd78e844 2024-06-15T02:23:01 doc: More updates for glibc 2.34. * doc/glibc-functions/ns_name_compress.texi: New file. * doc/glibc-functions/ns_name_ntop.texi: New file. * doc/glibc-functions/ns_name_pack.texi: New file. * doc/glibc-functions/ns_name_pton.texi: New file. * doc/glibc-functions/ns_name_skip.texi: New file. * doc/glibc-functions/ns_name_uncompress.texi: New file. * doc/glibc-functions/ns_name_unpack.texi: New file. * doc/gnulib.texi (Glibc arpa/nameser.h): New section.
Bruno Haible 00b1697a 2024-06-15T01:52:44 doc: More updates for glibc 2.34. * doc/glibc-functions/close_range.texi: New file. * doc/gnulib.texi: Include it.
Paul Eggert 9de6b15c 2024-06-14T10:20:21 getpagesize: improve doc * doc/glibc-functions/getpagesize.texi: Mention portability problems not fixed by Gnulib.
Paul Eggert bedf70d9 2024-05-23T19:39:29 POSIX.1-2024 has been approved It hasn’t been published yet, so just update documentation talking about “draft” POSIX, about particular POSIX versions, etc. More work will need to be done once it’s published on the web, to update URLs, better document new and changed interfaces, and presumably to implement some of the new interfaces.
Bruno Haible a62b0ffd 2024-05-23T19:13:16 sethostname tests: Avoid test failure on Cygwin. * tests/test-sethostname2.c (main): On Cygwin, skip the "too long hostname" test. * doc/glibc-functions/sethostname.texi: Mention the Cygwin problem.
Bruno Haible 3a10dc3e 2024-05-23T15:15:40 renameatu: Work around Cygwin 3.4.6 bug. * m4/renameat.m4 (gl_FUNC_RENAMEAT): Test whether renameat2 works, and define HAVE_WORKING_RENAMEAT2 if so. * lib/renameatu.c (renameatu): Test HAVE_WORKING_RENAMEAT2 instead of HAVE_RENAMEAT2. * doc/glibc-functions/renameat2.texi: Mention the Cygwin bug.
Bruno Haible 707a1727 2024-05-23T12:16:59 doc: Small updates regarding Cygwin. * doc/glibc-functions/fallocate.texi: Update for Cygwin 3.5.x. * doc/posix-functions/c8rtomb.texi: Likewise. * doc/posix-functions/c16rtomb.texi: Likewise. * doc/posix-functions/c32rtomb.texi: Likewise. * doc/posix-functions/lseek.texi: Likewise. * doc/posix-functions/mbrtoc8.texi: Likewise. * doc/posix-functions/mbrtoc16.texi: Likewise. * doc/posix-functions/mbrtoc32.texi: Likewise. * doc/posix-functions/posix_spawnp.texi: Likewise.
Bruno Haible 90576182 2024-05-21T15:32:06 access, euidaccess tests: Avoid test failure for root user on Solaris. * tests/test-access.h (test_access): On Solaris, for the root user, don't expect X_OK permissions to be absent. * doc/posix-functions/access.texi: Mention the Solaris problem. * doc/glibc-functions/euidaccess.texi: Likewise.
Collin Funk 25279ee5 2024-05-19T16:40:34 getusershell: Work around musl bugs. Reported by Bruno Haible in <https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00261.html>. * doc/glibc-functions/getusershell.texi: Mention the musl bug. * lib/unistd.in.h (getusershell, setusershell, endusershell): Allow the functions to be declared with the rpl_ prefix. * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Prepare functions to be replaced on musl systems. (gl_PREREQ_GETUSERSHELL): New macro. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETUSERSHELL. * modules/getusershell (Depends-on): Update module conditions to account for the function being available but replaced by Gnulib. (configure.ac): Likewise. Invoke gl_PREREQ_GETUSERSHELL.
Collin Funk c7398c50 2024-05-18T17:34:09 dup3: Update documentation and expected test results. * doc/glibc-functions/dup3.texi: Mention NetBSD bug fixed by the Gnulib implementation after the previous commit. * modules/dup3-tests (Depends-on): Remove test-xfail. (Makefile.am): Don't expect test-dup3 to fail on NetBSD.
Bruno Haible 35a44817 2024-05-17T18:45:53 execinfo: Update doc. * doc/glibc-headers/execinfo.texi: Mention musl libc. * doc/glibc-functions/backtrace.texi: Likewise. * doc/glibc-functions/backtrace_symbols.texi: Likewise. * doc/glibc-functions/backtrace_symbols_fd.texi: Likewise.
Paul Eggert 623b86c0 2024-05-13T09:29:00 doc: update C23 draft ref from n3047 to n3096
Bruno Haible 36f53cb2 2024-05-12T15:58:32 execinfo: Document known bugs. * doc/glibc-functions/backtrace.texi: Mention the various bugs on FreeBSD, NetBSD, OpenBSD. * doc/glibc-functions/backtrace_symbols_fd.texi: Mention the glibc bug.
Bruno Haible 9f7f1b92 2024-05-11T14:39:22 doc: Mention module execinfo. * doc/glibc-headers/execinfo.texi: Mention module execinfo. * doc/glibc-functions/backtrace.texi: Likewise. * doc/glibc-functions/backtrace_symbols.texi: Likewise. * doc/glibc-functions/backtrace_symbols_fd.texi: LIkewise.
Bruno Haible 8889ae5e 2024-05-11T14:27:02 doc: Update regarding backtrace functions on *BSD. * doc/glibc-functions/backtrace.texi: Mention in which *BSD releases this function was missing. * doc/glibc-functions/backtrace_symbols.texi: Likewise. * doc/glibc-functions/backtrace_symbols_fd.texi: LIkewise. * doc/glibc-headers/execinfo.texi: Update *BSD versions.
Collin Funk 3db26a28 2024-05-11T00:58:44 doc: Mention backtrace functions supported on BSD. * doc/glibc-functions/backtrace.texi (backtrace): Mention that FreeBSD supports this function from 10.0 onwards. Mention that NetBSD and OpenBSD support this function from 7.0 onwards. * doc/glibc-functions/backtrace_symbols.texi (backtrace_symbols): Likewise. * doc/glibc-functions/backtrace_symbols_fd.texi (backtrace_symbols_fd): Likewise.
Bruno Haible 7941742a 2024-04-25T22:07:37 doc: Remove documentation of IRIX as supported platform. * doc/posix-headers/netdb.texi: Don't mention IRIX specific workarounds. * doc/posix-headers/pthread.texi: Likewise. * doc/posix-headers/sys_socket.texi: Likewise. * doc/posix-headers/wctype.texi: Likewise. * doc/posix-functions/btowc.texi: Likewise. * doc/posix-functions/cbrtf.texi: Likewise. * doc/posix-functions/cbrtl.texi: Likewise. * doc/posix-functions/copysignf.texi: Likewise. * doc/posix-functions/exp2.texi: Likewise. * doc/posix-functions/exp2f.texi: Likewise. * doc/posix-functions/exp2l.texi: Likewise. * doc/posix-functions/expm1f.texi: Likewise. * doc/posix-functions/expm1l.texi: Likewise. * doc/posix-functions/fabsl.texi: Likewise. * doc/posix-functions/isnan.texi: Likewise. * doc/posix-functions/iswblank.texi: Likewise. * doc/posix-functions/link.texi: Likewise. * doc/posix-functions/log10l.texi: Likewise. * doc/posix-functions/log1pf.texi: Likewise. * doc/posix-functions/log2.texi: Likewise. * doc/posix-functions/log2f.texi: Likewise. * doc/posix-functions/log2l.texi: Likewise. * doc/posix-functions/lseek.texi: Likewise. * doc/posix-functions/nl_langinfo.texi: Likewise. * doc/posix-functions/pthread_sigmask.texi: Likewise. * doc/posix-functions/remainderf.texi: Likewise. * doc/posix-functions/remainderl.texi: Likewise. * doc/posix-functions/rintf.texi: Likewise. * doc/posix-functions/sigaltstack.texi: Likewise. * doc/posix-functions/strtod.texi: Likewise. * doc/posix-functions/strtold.texi: Likewise. * doc/posix-functions/vscanf.texi: Likewise. * doc/posix-functions/wctob.texi: Likewise. * doc/**/*.texi: Update.
Bruno Haible 3925836a 2024-04-09T01:16:15 ptsname_r: Work around ptsname_r bug on NetBSD 10.0. * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): On NetBSD, arrange to override ptsname_r. * lib/ptsname_r.c (ptsname_r): Add workaround for NetBSD bug. * doc/glibc-functions/ptsname_r.texi: Mention the NetBSD bug.
Bruno Haible 9ef347ea 2024-04-05T12:04:59 Update for NetBSD 9.3 and 10.0. * doc/*/*.texi: Update for NetBSD 9.3 and 10.0. * m4/expm1l.m4 (gl_FUNC_EXPM1L): Update comments and cross-compilation guess. * m4/log1pl.m4 (gl_FUNC_LOG1PL_WORKS): Likewise. * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise. * m4/printf.m4 (gl_SWPRINTF_DIRECTIVE_LA): Likewise. * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): Likewise. * m4/fcntl.m4: Update comments. * m4/fenv-environment.m4: Likewise. * m4/fenv-exceptions-trapping.m4: Likewise. * m4/fnmatch.m4: Likewise. * m4/getcwd-abort-bug.m4: Likewise. * m4/iswdigit.m4: Likewise. * m4/iswxdigit.m4: Likewise. * m4/modfl.m4: Likewise. * m4/wcscmp.m4: Likewise. * m4/wcsncmp.m4: Likewise. * m4/wctrans.m4: Likewise. * m4/wcwidth.m4: Likewise.
Paul Eggert af32ee82 2024-03-16T22:27:48 renameatu: support RENAME_EXCHANGE on macOS * lib/renameatu.c (renameat2ish, renameatu) [RENAME_SWAP]: Use macOS RENAME_SWAP to implement GNU/Linux RENAME_EXCHANGE. * tests/test-renameatu.c (main): Add a test for RENAME_EXCHANGE.
Bruno Haible 5aa8eafc 2024-03-05T19:11:09 doc: Update info about fopencookie. Reported by Michael Ford <fanquake@gmail.com>. * doc/glibc-functions/fopencookie.texi: Update platforms list.
Bruno Haible 0fbc4699 2024-02-21T15:49:23 *printf-posix: Disable support for the 'n' directive by default. * m4/printf-with-n-directive.m4: New file. * modules/printf-with-n-directive: New file. * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_IS_POSIX): If gl_PRINTF_SUPPORT_N_DIRECTIVE is not defined, ignore the value of the gl_cv_func_printf_directive_n variable. * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_IS_POSIX): Likewise. * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_IS_POSIX): Likewise. * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_IS_POSIX): Likewise. * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_IS_POSIX): Likewise. * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_IS_POSIX): Likewise. * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_IS_POSIX): Likewise. * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_IS_POSIX): Likewise. * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_IS_POSIX): Likewise. * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_IS_POSIX): If gl_PRINTF_SUPPORT_N_DIRECTIVE is not defined, ignore the values of the gl_cv_func_printf_directive_n and gl_cv_func_snprintf_directive_n variables. * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_IS_POSIX): Likewise. * lib/printf-parse.c (PRINTF_PARSE): If NEED_PRINTF_WITH_N_DIRECTIVE is not defined, treat the 'n' directive like an unknown directive. * lib/vasnprintf.c (VASNPRINTF): If NEED_PRINTF_WITH_N_DIRECTIVE is not defined, disable the processing of the 'n' directive. * tests/test-snprintf-posix.h (test_function): If NEED_PRINTF_WITH_N_DIRECTIVE is not defined, skip the %n test. * tests/test-sprintf-posix.h (test_function): Likewise. * tests/test-vasnprintf-posix.c (test_function): Likewise. * tests/test-vasnwprintf-posix.c (test_function): Likewise. * tests/test-vasprintf-posix.c (test_function): Likewise. * doc/posix-functions/dprintf.texi: Mention that support for the 'n' directive is only enabled together with the module 'printf-with-n-directive'. * doc/posix-functions/fprintf.texi: Likewise. * doc/posix-functions/printf.texi: Likewise. * doc/posix-functions/snprintf.texi: Likewise. * doc/posix-functions/sprintf.texi: Likewise. * doc/posix-functions/vdprintf.texi: Likewise. * doc/posix-functions/vfprintf.texi: Likewise. * doc/posix-functions/vprintf.texi: Likewise. * doc/posix-functions/vsnprintf.texi: Likewise. * doc/posix-functions/vsprintf.texi: Likewise. * doc/glibc-functions/obstack_printf.texi: Likewise. * doc/glibc-functions/obstack_vprintf.texi: Likewise. * NEWS: Mention the change.
Bruno Haible 6143e421 2024-01-26T00:18:55 Resolve conflicts for functions introduced in Android API level 34. * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE): On platforms without glibc, test for copy_file_range using gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE. Conditionally set REPLACE_COPY_FILE_RANGE. * doc/glibc-functions/copy_file_range.texi: Mention the Android API levels.
Bruno Haible 884c299e 2024-01-26T00:18:52 Resolve conflicts for functions introduced in Android API level 34. * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test for posix_spawn_file_actions_addchdir_np and posix_spawn_file_actions_addfchdir_np using gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE. * m4/posix_spawn_faction_addchdir.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR): Test for posix_spawn_file_actions_addchdir_np using gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE. * m4/posix_spawn_faction_addfchdir.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR): Test for posix_spawn_file_actions_addfchdir_np using gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE. * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention the Android API levels. * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi: Likewise.
Bruno Haible df86a117 2024-01-25T21:04:29 Doc regarding functions introduced in Android API level 33. * doc/glibc-functions/backtrace.texi: Mention the Android API levels. * doc/glibc-functions/backtrace_symbols.texi: Likewise. * doc/glibc-functions/backtrace_symbols_fd.texi: Likewise. * doc/glibc-functions/preadv2.texi: Likewise. * doc/glibc-functions/pwritev2.texi: Likewise.
Bruno Haible 3260d550 2024-01-25T20:17:33 Resolve conflicts for functions introduced in Android API level 30. * doc/glibc-functions/memfd_create.texi: Mention the Android API levels. * doc/glibc-functions/mlock2.texi: Likewise. * doc/glibc-functions/pthread_cond_clockwait.texi: Likewise. * doc/glibc-functions/pthread_mutex_clocklock.texi: Likewise. * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: Likewise. * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: Likewise. * doc/glibc-functions/renameat2.texi: Likewise. * doc/glibc-functions/sem_clockwait.texi: Likewise. * doc/glibc-functions/statx.texi: Likewise.
Bruno Haible d68d744a 2024-01-19T15:07:05 fenv-*: Fix test failures on NetBSD 9.3/arm64. * m4/fenv-exceptions-trapping.m4 (gl_FENV_EXCEPTIONS_TRAPPING): Override feenableexcept() also on NetBSD/arm64. * doc/glibc-functions/feenableexcept.texi: Update platforms list.
Bruno Haible dee279cf 2024-01-02T11:37:05 strverscmp: Work around bug in musl libc 1.2.3 and in Cygwin. Reported by Dmitry Bogatov <KAction@gnu.org> via Simon Josefsson in <https://lists.gnu.org/archive/html/bug-gnulib/2024-01/msg00002.html>. * m4/string_h.m4 (gl_STRING_H_DEFAULTS): Initialize REPLACE_STRVERSCMP. * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Test whether strverscmp works and set REPLACE_STRVERSCMP if not. * lib/string.in.h (strverscmp): Consider REPLACE_STRVERSCMP. * modules/strverscmp (Depends-on, configure.ac): Likewise. * modules/string (Makefile.am): Substitute REPLACE_STRVERSCMP. * tests/test-strverscmp.c (main): Add test cases suggested by Dmitry Bogatov and by Simon Josefsson. * doc/glibc-functions/strverscmp.texi: Mention the musl and Cygwin bug. Update version info regarding FreeBSD.
Bruno Haible 6016e676 2023-12-01T13:21:44 doc: Update for FreeBSD 14.0. * doc/posix-headers/*.texi: Update. * doc/glibc-headers/*.texi: Likewise. * doc/posix-functions/*.texi: Likewise. * doc/pastposix-functions/*.texi: Likewise. * doc/glibc-functions/*.texi: Likewise. * m4/printf.m4: Update comments.
Bruno Haible f09d9865 2023-12-01T11:47:31 sethostname tests: Fix a compilation error on FreeBSD 14.0. * tests/test-sethostname1.c: Skip the SIGNATURE_CHECK on some platforms. * doc/glibc-functions/sethostname.texi: Update platforms list.
Bruno Haible 202f49a7 2023-11-21T16:18:44 strerrorname_np: Work around glibc bug on HPPA systems. * m4/strerrorname_np.m4 (gl_FUNC_STRERRORNAME_NP): Test also strerrorname_np (ENOSYM). * lib/strerrorname_np.c (strerrorname_np): Update comments. * tests/test-strerrorname_np.c (main): Likewise. * doc/glibc-functions/strerrorname_np.texi: Mention that glibc 2.37 still needs a workaround.
Bruno Haible 7375d571 2023-11-14T14:10:57 *printf-posix: Revert expectations of %lc of 0. * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LC): Expect a NUL byte in the output. * lib/vasnprintf.c (VASNPRINTF): In the %lc implementation, don't special-case the NUL wide character. * tests/test-vasnprintf-posix.c (test_function): Change expected result for %lc of L'\0'. * tests/test-vasprintf-posix.c (test_function): Likewise. * tests/test-snprintf-posix.h (test_function): Likewise. * tests/test-sprintf-posix.h (test_function): Likewise. * doc/posix-functions/dprintf.texi: Update platform list regarding %lc of 0 bug. * doc/posix-functions/fprintf.texi: Likewise. * doc/posix-functions/printf.texi: Likewise. * doc/posix-functions/snprintf.texi: Likewise. * doc/posix-functions/sprintf.texi: Likewise. * doc/posix-functions/vdprintf.texi: Likewise. * doc/posix-functions/vfprintf.texi: Likewise. * doc/posix-functions/vprintf.texi: Likewise. * doc/posix-functions/vsnprintf.texi: Likewise. * doc/posix-functions/vsprintf.texi: Likewise. * doc/glibc-functions/asprintf.texi: Likewise. * doc/glibc-functions/vasprintf.texi: Likewise. * doc/glibc-functions/obstack_printf.texi: Likewise. * doc/glibc-functions/obstack_vprintf.texi: Likewise.
Bruno Haible 581e10cf 2023-11-05T12:56:24 fenv-exceptions-trapping: Update documentation. * doc/glibc-functions/feenableexcept.texi: Document the Linux/hppa problem.
Bruno Haible e5a52e29 2023-10-31T21:46:13 fenv-exceptions-trapping: New module. * lib/fenv.in.h (feenableexcept, fedisableexcept, fegetexcept): New declarations. * lib/fenv-except-trapping.c: New file, based on glibc. * m4/fenv_h.m4 (gl_FENV_H): Test also whether fegetexcept is declared. * m4/fenv-exceptions-trapping.m4: New file. * modules/fenv-exceptions-trapping: New file. * doc/glibc-functions/fegetexcept.texi: Mention the new module. * doc/glibc-functions/fedisableexcept.texi: Likewise. * doc/glibc-functions/feenableexcept.texi: Likewise. Mention the glibc, macOS, FreeBSD bugs.
Bruno Haible f5c688cf 2023-10-03T23:27:30 *printf-posix: Work around bug with %#.0x on Mac OS X 10.6. * lib/vasnprintf.c (VASNPRINTF): Enable NEED_PRINTF_UNBOUNDED_PRECISION- guarded code also for NEED_PRINTF_FLAG_ALT_PRECISION_ZERO. Set prec_ourselves to 1 if NEED_PRINTF_FLAG_ALT_PRECISION_ZERO, precision is 0, and the directive is 'x' or 'X'. If prec_ourselves, remove the "0" output if required. * m4/printf.m4 (gl_PRINTF_FLAG_ALT_PRECISION_ZERO): New macro. * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ALT_PRECISION_ZERO): New macro. (gl_PREREQ_VASNPRINTF_WITH_POSIX_EXTRAS): Invoke it. * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_IS_POSIX): Require gl_PRINTF_FLAG_ALT_PRECISION_ZERO and test its result. * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_IS_POSIX): Likewise. * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_IS_POSIX): Likewise. * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_IS_POSIX): Likewise. * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_IS_POSIX): Likewise. * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_IS_POSIX): Likewise. * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_IS_POSIX): Likewise. * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_IS_POSIX): Likewise. * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_IS_POSIX): Likewise. * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_IS_POSIX): Likewise. * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_IS_POSIX): Likewise. * doc/glibc-functions/asprintf.texi: Mention the %#.0x bug. * doc/glibc-functions/obstack_printf.texi: Likewise. * doc/glibc-functions/obstack_vprintf.texi: Likewise. * doc/glibc-functions/vasprintf.texi: Likewise. * doc/posix-functions/dprintf.texi: Likewise. * doc/posix-functions/fprintf.texi: Likewise. * doc/posix-functions/fwprintf.texi: Likewise. * doc/posix-functions/printf.texi: Likewise. * doc/posix-functions/snprintf.texi: Likewise. * doc/posix-functions/sprintf.texi: Likewise. * doc/posix-functions/swprintf.texi: Likewise. * doc/posix-functions/vdprintf.texi: Likewise. * doc/posix-functions/vfprintf.texi: Likewise. * doc/posix-functions/vfwprintf.texi: Likewise. * doc/posix-functions/vprintf.texi: Likewise. * doc/posix-functions/vsnprintf.texi: Likewise. * doc/posix-functions/vsprintf.texi: Likewise. * doc/posix-functions/vswprintf.texi: Likewise. * doc/posix-functions/vwprintf.texi: Likewise. * doc/posix-functions/wprintf.texi: Likewise.
Bruno Haible 91fb520b 2023-09-05T16:36:11 stdint, *printf: Update doc about MSVC. * doc/posix-headers/stdint.texi: MSVC 14 has <stdint.h>. * doc/posix-functions/*printf.texi: Current mingw and MSVC 14 support the j, t, z size specifiers. * doc/glibc-functions/obstack_*printf.texi: Likewise.
Bruno Haible 1bd24cc3 2023-08-13T16:08:33 readutmp, boot-time: Fix compilation error on Android API 8. Reported by Po Lu in <https://lists.gnu.org/archive/html/bug-gnulib/2023-08/msg00108.html>. * m4/readutmp.m4 (gl_PREREQ_READUTMP_H): Test whether sysinfo is declared. * lib/boot-time-aux.h (get_linux_uptime): Invoke sysinfo only if it is declared. * doc/glibc-functions/sysinfo.texi: Mention the Android problem.
Bruno Haible 9cf0d830 2023-08-13T15:39:09 readutmp, boot-time: Fix compilation error on old Android. Reported by Po Lu in <https://lists.gnu.org/archive/html/bug-gnulib/2023-08/msg00108.html>. * lib/readutmp.c (endutent): New fallback declaration, for Android. (getutent): Remove Ultrix workaround from 2000-04-05. * lib/boot-time.c: Likewise. * m4/readutmp.m4 (gl_PREREQ_READUTMP_H): Test whether endutent is declared, not getutent. * doc/glibc-functions/endutent.texi: Mention the Android bug.
Paul Eggert c408d9a5 2023-07-29T17:06:42 readutmp: work around glibc utmpx bug When compiled with _TIME_BITS=64, glibc <utmpx.h> does not work, because the files use 32-bit time_t and the code passes this to the user unmodified, but <utmpx.h> defines a struct with 64-bit time_t. Work around this compatibility bug. Problem reported by Jakub Wilk via Sven Joachim <https://bugs.gnu.org/64937>. * lib/readutmp.c (copy_utmp_entry): New function. (read_utmp): Use it.
Bruno Haible 031219ca 2023-07-20T01:35:10 Document migration path for obsolescent functions. * doc/glibc-functions/timespec_get.texi: Add reference to ISO C. * doc/posix-functions/_tolower.texi: Recommend use of tolower. * doc/posix-functions/_toupper.texi: Recommend use of toupper. * doc/posix-functions/asctime.texi: Recommend use of strftime. * doc/posix-functions/asctime_r.texi: Likewise. * doc/posix-functions/ctime.texi: Recommend use of localtime_r and strftime. * doc/posix-functions/ctime_r.texi: Likewise. * doc/posix-functions/ftw.texi: Recommend use of fts. * doc/posix-functions/getitimer.texi: Recommend use of timer_gettime. * doc/posix-functions/gets.texi: Recommend use of fgets. * doc/posix-functions/gettimeofday.texi: Recommend use of gettime or timespec_get. * doc/posix-functions/inet_addr.texi: Recommend use of inet_pton. * doc/posix-functions/inet_ntoa.texi: Recommend use of inet_ntop. * doc/posix-functions/pthread_getconcurrency.texi: Recommend no-op. * doc/posix-functions/pthread_setconcurrency.texi: Recommend no-op. * doc/posix-functions/rand_r.texi: Recommend use of random_r. * doc/posix-functions/setitimer.texi: Recommend use of timer_create and timer_settime. * doc/posix-functions/setpgrp.texi: Recommend use of setpgid or setsid. * doc/posix-functions/sighold.texi: Recommend use of sigprocmask. * doc/posix-functions/sigignore.texi: Recommend use of sigaction. * doc/posix-functions/siginterrupt.texi: Recommend use of sigaction. * doc/posix-functions/sigpause.texi: Recommend use of sigsuspend. * doc/posix-functions/sigrelse.texi: Recommend use of sigprocmask. * doc/posix-functions/sigset.texi: Recommend use of sigaction. * doc/posix-functions/tempnam.texi: Recommend use of mkstemp. * doc/posix-functions/ulimit.texi: Recommend use of getrlimit and setrlimit. * doc/posix-functions/utime.texi: Recommend use of utimens.
Jim Meyering 6a1c6825 2023-06-25T09:58:55 doc: correct doubled "on on" * doc/glibc-functions/initstate_r.texi: As above. * doc/posix-functions/initstate.texi: As above.
Bruno Haible af1e520a 2023-06-25T18:40:19 sigdescr_np tests: Avoid test failure on glibc/sparc. * tests/test-sigdescr_np.c (main): Accept the glibc result for SIGEMT. * doc/glibc-functions/sigdescr_np.texi: Mention two glibc deficiencies.
Bruno Haible 142909db 2023-06-25T18:19:06 strerrorname_np: Work around glibc bug on PowerPC, SPARC systems. * m4/strerrorname_np.m4 (gl_FUNC_STRERRORNAME_NP): Test also strerrorname_np (EDEADLOCK). * doc/glibc-functions/strerrorname_np.texi: Mention that glibc 2.36 still needs a workaround.
Bruno Haible ea3dd857 2023-06-25T17:58:57 doc: Mention glibc initstate, initstate_r bug. * doc/posix-functions/initstate.texi: Mention glibc bug. * doc/glibc-functions/initstate_r.texi: Likewise. * tests/test-random_r.c: Add a comment.
Bruno Haible e7d12124 2023-04-19T20:07:52 doc: Add references to changes accepted for future POSIX revisions. * 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.
Bruno Haible dc7c42cd 2023-04-08T12:08:03 login_tty: Fix compilation error in C++ mode on Solaris 11.4. * m4/login_tty.m4 (gl_FUNC_LOGIN_TTY): Test whether <termios.h> exists. Consider it when testing whether login_tty is declared. * lib/utmp.in.h: If none of <util.h> and <libutil.h> exists, include <termios.h> instead. * doc/glibc-functions/login_tty.texi: Document the Solaris 11.4 problem.
Bruno Haible 63ccbd65 2023-03-28T13:13:55 doc: Update regarding linear string search. * doc/glibc-functions/memmem.texi: Update platforms list. * doc/posix-functions/strstr.texi: Likewise. * doc/glibc-functions/strcasestr.texi: Likewise.
Bruno Haible 7e73cf31 2023-03-24T12:11:52 obstack-printf-gnu: New module. * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_IS_POSIX): New macro, extracted from gl_FUNC_OBSTACK_PRINTF_POSIX. (gl_FUNC_OBSTACK_PRINTF_POSIX): Require it. Invoke gl_PREREQ_VASNPRINTF_WITH_POSIX_EXTRAS. * m4/obstack-printf-gnu.m4: New file, based on m4/obstack-printf-posix.m4. * modules/obstack-printf-gnu: New file, based on modules/vasnprintf-gnu. * doc/glibc-functions/obstack_printf.texi: Mention the new module. * doc/glibc-functions/obstack_vprintf.texi: Likewise.
Bruno Haible 891708e6 2023-03-24T11:28:38 vasprintf-gnu: New module. * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_IS_POSIX): New macro, extracted from gl_FUNC_VASPRINTF_POSIX. (gl_FUNC_VASPRINTF_POSIX): Require it. Invoke gl_PREREQ_VASNPRINTF_WITH_POSIX_EXTRAS. * m4/vasprintf-gnu.m4: New file, based on m4/vasprintf-posix.m4. * modules/vasprintf-gnu: New file, based on modules/vasnprintf-gnu. * doc/glibc-functions/vasprintf.texi: Mention the new module. * doc/glibc-functions/asprintf.texi: Likewise.
Bruno Haible 4928ebfa 2023-03-21T15:49:06 *printf-posix: Work around bug with %lc of 0 on many platforms. * lib/vasnprintf.c (local_wctomb): Define also for NEED_PRINTF_DIRECTIVE_LC. (VASNPRINTF): Implement %lc handling ourselves if NEED_PRINTF_DIRECTIVE_LC. * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LC): New macro. * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LC): New macro. (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it. * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Require gl_PRINTF_DIRECTIVE_LC and test its result. Invoke gl_PREREQ_VASNPRINTF_DIRECTIVE_LC. * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise. * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise. * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise. * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise. * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise. * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise. * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise. * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise. * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise. * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise. * tests/test-snprintf-posix.h (test_function): Add more tests for the %c and %lc directives. * tests/test-sprintf-posix.h (test_function): Likewise. * tests/test-vasnprintf-posix.c (test_function): Likewise. * tests/test-vasprintf-posix.c (test_function): Likewise. * doc/glibc-functions/asprintf.texi: Mention the %lc 0 bug. * doc/glibc-functions/obstack_printf.texi: Likewise. * doc/glibc-functions/obstack_vprintf.texi: Likewise. * doc/glibc-functions/vasprintf.texi: Likewise. * doc/posix-functions/dprintf.texi: Likewise. * doc/posix-functions/fprintf.texi: Likewise. * doc/posix-functions/printf.texi: Likewise. * doc/posix-functions/snprintf.texi: Likewise. * doc/posix-functions/sprintf.texi: Likewise. * doc/posix-functions/vdprintf.texi: Likewise. * doc/posix-functions/vfprintf.texi: Likewise. * doc/posix-functions/vprintf.texi: Likewise. * doc/posix-functions/vsnprintf.texi: Likewise. * doc/posix-functions/vsprintf.texi: Likewise.
Bruno Haible bb7cf2b6 2023-03-17T22:45:56 *printf-posix: ISO C 23: Add %b directive for binary output of integers. * lib/printf-parse.c (PRINTF_PARSE): Recognize the 'b' directive. * lib/printf-parse.h: Update comment. * lib/wprintf-parse.h: Likewise. * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Add support for the 'b' directive. * m4/printf.m4 (gl_PRINTF_DIRECTIVE_B): New macro. * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_B): New macro. (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it. * m4/vasnwprintf-posix.m4 (gl_FUNC_VASNWPRINTF_POSIX): Invoke gl_PREREQ_VASNPRINTF_DIRECTIVE_B. * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Require gl_PRINTF_DIRECTIVE_B and test its result. Invoke gl_PREREQ_VASNPRINTF_DIRECTIVE_B. * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise. * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise. * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise. * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise. * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise. * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise. * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise. * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise. * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise. * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise. * tests/test-snprintf-posix.h (test_function): Add some tests of the %b directive. * tests/test-sprintf-posix.h (test_function): Likewise. * tests/test-vasnprintf-posix.c (test_function): Likewise. * tests/test-vasnwprintf-posix.c (test_function): Likewise. * tests/test-vasprintf-posix.c (test_function): Likewise. * doc/glibc-functions/asprintf.texi: Mention the 'b' directive. * doc/glibc-functions/obstack_printf.texi: Likewise. * doc/glibc-functions/obstack_vprintf.texi: Likewise. * doc/glibc-functions/vasprintf.texi: Likewise. * doc/posix-functions/dprintf.texi: Likewise. * doc/posix-functions/fprintf.texi: Likewise. * doc/posix-functions/fwprintf.texi: Likewise. * doc/posix-functions/printf.texi: Likewise. * doc/posix-functions/snprintf.texi: Likewise. * doc/posix-functions/sprintf.texi: Likewise. * doc/posix-functions/swprintf.texi: Likewise. * doc/posix-functions/vdprintf.texi: Likewise. * doc/posix-functions/vfprintf.texi: Likewise. * doc/posix-functions/vfwprintf.texi: Likewise. * doc/posix-functions/vprintf.texi: Likewise. * doc/posix-functions/vsnprintf.texi: Likewise. * doc/posix-functions/vsprintf.texi: Likewise. * doc/posix-functions/vswprintf.texi: Likewise. * doc/posix-functions/vwprintf.texi: Likewise. * doc/posix-functions/wprintf.texi: Likewise.