doc/glibc-functions


Log

Author Commit Date CI Message
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.
Bruno Haible 4873f857 2023-03-16T14:16:25 timegm: Document under ISO C and POSIX substitutes. * doc/posix-functions/timegm.texi: Renamed from doc/glibc-functions/timegm.texi. * doc/gnulib.texi (Function Substitutes): Include timegm.texi here... (Glibc time.h): ... not here.
Bruno Haible 8441d676 2023-03-05T19:37:14 Remove unused documentation file. * doc/glibc-functions/timespec_getres.texi: Remove file.
Bruno Haible 9041103e 2023-01-21T21:13:20 login_tty: Ensure declaration in <utmp.h>. * tests/test-utmp-c++.cc: New file. * modules/utmp-c++-tests: New file. * tests/test-utmp.c: New file. * modules/utmp-tests: New file. * lib/login_tty.c: Include <utmp.h>. * m4/login_tty.m4: New file. (gl_FUNC_LOGIN_TTY): Moved here from m4/pty.m4. Set HAVE_LOGIN_TTY. * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Moved to m4/login_tty.m4. * modules/login_tty (Files): Add m4/login_tty.m4. (Depends-on): Add utmp. Remove pty. Update condition. (configure.ac): Update condition. Invoke gl_UTMP_MODULE_INDICATOR instead of gl_PTY_MODULE_INDICATOR. (Include): List <utmp.h>. * doc/glibc-functions/login_tty.texi: Mark the include file diversity as fixed. * tests/test-login_tty.c: Include <utmp.h>. Don't declare login_tty here. * lib/utmp.in.h: New file. * m4/utmp_h.m4: New file. * modules/utmp: New file. * doc/glibc-headers/utmp.texi: New file. * doc/gnulib.texi (Glibc Header File Substitutes): Include it.
Bruno Haible 1f993001 2023-01-19T15:18:31 fts: Document this module. * doc/glibc-headers/fts.texi: Mention the 'fts' module. * doc/glibc-functions/fts_children.texi: Likewise. * doc/glibc-functions/fts_close.texi: Likewise. * doc/glibc-functions/fts_open.texi: Likewise. * doc/glibc-functions/fts_read.texi: Likewise. * doc/glibc-functions/fts_set.texi: Likewise.
Bruno Haible 2886cca8 2023-01-12T16:51:15 error: Work around an Android problem. * lib/error.in.h: Renamed from lib/error.h. (_GL_ATTRIBUTE_SPEC_PRINTF_ERROR): New macro. (error): Consider HAVE_ERROR and REPLACE_ERROR. (error_at_line): Consider HAVE_ERROR_AT_LINE and REPLACE_ERROR_AT_LINE. * m4/error_h.m4: New file, partially based on m4/error.m4. * m4/error.m4 (gl_ERROR): Remove the test for error_at_line. * modules/error-h: New file. * modules/error (Files): Remove lib/error.h. (Depends-on): Add error-h. Update conditions. (configure.ac): Require gl_ERROR_H. Update condition. * doc/glibc-headers/error.texi: Mention the 'error-h' module. * doc/glibc-functions/error.texi: Mention the Android problem. * config/srclist.txt: Add comment regarding error.h.
Bruno Haible 7ca7d7d7 2023-01-05T17:16:09 getpass: Fix compilation error on Android. * m4/getpass.m4 (gl_FUNC_GETPASS): Define NO_INLINE_GETPASS. * doc/glibc-functions/getpass.texi: Mention the Android problem.
Bruno Haible cf2937d4 2023-01-05T16:36:52 Recognize functions added in future versions of Android. * m4/gnulib-common.m4 (gl_CHECK_FUNCS_ANDROID): New macro. * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Use gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE. * m4/freading.m4 (gl_FUNC_FREADING): Likewise. * m4/fseterr.m4 (gl_FUNC_FSETERR): Likewise. * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise. * m4/getentropy.m4 (gl_FUNC_GETENTROPY): Likewise. * m4/getlogin_r.m4 (gl_CHECK_FUNCS_ANDROID): Likewise. * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise. * m4/glob.m4 (gl_PREREQ_GLOB): Likewise. * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): Likewise. * doc/glibc-functions/getentropy.texi: Mark function as existing in Android 9.0. * doc/glibc-functions/getrandom.texi: Likewise. * doc/posix-functions/pthread_attr_getinheritsched.texi: Likewise. * doc/posix-functions/pthread_attr_setinheritsched.texi: Likewise.
Bruno Haible 16aa871e 2023-01-04T08:07:03 doc: Update regarding Android. * doc/glibc-functions/getdtablesize.texi: Update Android information. * doc/glibc-functions/wait3.texi: Likewise. * doc/pastposix-functions/ftime.texi: Likewise. * doc/pastposix-functions/index.texi: Likewise. * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Likewise. * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise. * doc/pastposix-functions/wcswcs.texi: Likewise.
Bruno Haible 7c4ee888 2023-01-03T21:33:32 ffsl, ffsll: Fix compilation error on Android. * lib/string.in.h: On Android as well, include <strings.h>. * m4/ffsl.m4 (gl_FUNC_FFSL): Use a specific link test instead of AC_CHECK_FUNCS_ONCE. * m4/ffsll.m4 (gl_FUNC_FFSLL): Likewise. * doc/glibc-functions/ffsl.texi: Mention Android problems. * doc/glibc-functions/ffsll.texi: Likewise.
Bruno Haible 3c92fb8e 2023-01-03T17:14:33 stdio: Fix error in C++ mode on Android, due to putw. * lib/stdio.in.h (putw): Don't declare in the C++ namespace if putw is not declared. * m4/stdio_h.m4 (gl_STDIO_H): Test whether putw is declared. (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_PUTW. * modules/stdio (Makefile.am): Substitute HAVE_DECL_PUTW. * doc/glibc-functions/putw.texi: Update regarding Android.
Bruno Haible 8453b553 2022-12-06T00:25:34 argp: Correct documentation. Reported by José E. Marchesi <jemarch@gnu.org>. * doc/glibc-functions/argp_*.texi: Mention the 'argp' module.
Paul Eggert c4d0e2a0 2022-11-27T20:52:04 explicit_bzero: memset_explicit is standard * doc/glibc-functions/explicit_bzero.texi: Say that memset_explicit is preferred in new code.
Paul Eggert 8f71b269 2022-06-19T23:30:01 lchmod: port back to AIX 7.2 Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2022-06/msg00075.html * lib/lchmod.c: Include string.h, for strlen. (lchmod): Do not depend on HAVE_READLINK since we now depend on the readlink module. Check for AIX 7.2 bug. * m4/lchmod.m4 (gl_PREREQ_LCHMOD): Do not check for readlink since we now depend on the readlink module. * modules/lchmod (Depends-on): Depend on readlink.
Paul Eggert 0ac98783 2022-01-14T17:27:51 copy-file-range: work around Linux kernel bug This workaround is adapted from Coreutils. * lib/copy-file-range.c [__linux__ && HAVE_COPY_FILE_RANGE]: Include <sys/utsname.h>. (copy_file_range): Use a stub to replace the copy_file_range of Linux kernel versions 4.5 through 5.2. * lib/unistd.in.h (copy_file_range): * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): * modules/copy-file-range (configure.ac): * modules/unistd (unistd.h): Support replacement of copy_file_range. * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE): Define HAVE_COPY_FILE_RANGE if the system has copy_file_range, and on Linux check whether the system’s is known to work.
Paul Eggert af4148ce 2021-12-28T11:39:17 timespec_getres: new module * lib/time.in.h (timespec_getres): New decl. * lib/timespec_getres.c, m4/timespec_getres.m4: * modules/timespec_getres, modules/timespec_getres-tests: * tests/test-timespec_getres.c: New files. * m4/time_h.m4 (gl_TIME_H_REQUIRE_DEFAULTS, gl_TIME_H_DEFAULTS): * modules/time (time.h): Support timespec_getres.
Bruno Haible 2a0fb7f6 2021-12-24T16:29:58 doc: Small updates. * doc/glibc-functions/ptsname_r.texi: Update info regarding Mac OS X. * doc/posix-functions/getlogin_r.texi: Update info regarding FreeBSD.
Bruno Haible 8f4538a5 2021-08-14T22:07:33 doc: Update for glibc 2.34. * doc/posix-functions/timespec_getres.texi: New file. * doc/glibc-functions/_Fork.texi: New file. * doc/glibc-functions/closefrom.texi: New file. * doc/glibc-functions/dn_comp.texi: New file. * doc/glibc-functions/dn_skipname.texi: New file. * doc/glibc-functions/execveat.texi: New file. * doc/glibc-functions/posix_spawn_file_actions_addclosefrom_np.texi: New file. * doc/glibc-functions/res_dnok.texi: New file. * doc/glibc-functions/res_hnok.texi: New file. * doc/glibc-functions/res_mailok.texi: New file. * doc/glibc-functions/res_nmkquery.texi: New file. * doc/glibc-functions/res_nquery.texi: New file. * doc/glibc-functions/res_nquerydomain.texi: New file. * doc/glibc-functions/res_nsearch.texi: New file. * doc/glibc-functions/res_nsend.texi: New file. * doc/glibc-functions/res_ownok.texi: New file. * doc/glibc-functions/res_send.texi: New file. * doc/gnulib.texi: Include them. * doc/glibc-functions/inet_neta.texi: Remove file. * doc/glibc-functions/malloc_get_state.texi: Remove file. * doc/glibc-functions/malloc_set_state.texi: Remove file. * doc/glibc-functions/pthread_mutex_consistent_np.texi: Remove file. * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: Remove file. * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: Remove file. * doc/glibc-functions/pthread_yield.texi: Remove file. * doc/gnulib.texi: Don't include them. * doc/glibc-headers/resolv.texi: Update. * doc/pastposix-functions/h_errno.texi: Likewise. * doc/posix-functions/*.texi: Likewise. * doc/glibc-functions/*.texi: Likewise.
Paul Eggert a7477abe 2021-04-24T10:45:45 reallocarray: check for ptrdiff_t overflow * doc/glibc-functions/reallocarray.texi (reallocarray): Mention ptrdiff_t overflow. * lib/reallocarray.c (reallocarray): Reindent as per usual GNU. * lib/stdlib.in.h (reallocarray): Allow reallocarray to be replaced. * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Check for ptrdiff_t overflow. * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set up REPLACE_REALLOCARRAY. * modules/reallocarray (Files): Add malloc.m4. (configure.ac): Also test REPLACE_REALLOCARRAY. * modules/reallocarray-tests (Depends-on): Add stdint. * modules/stdlib (stdlib.h): Substitute REPLACE_REALLOCARRAY. * tests/test-reallocarray.c: Include stdint.h. (main): Check for ptrdiff_t overflow.
Bruno Haible 04a9dd8f 2021-04-17T15:29:16 doc: Update for FreeBSD 11.0, 12.0, 13.0. * 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/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Update cross-compilation guess.
Bruno Haible 0b06bc0c 2021-03-21T16:03:57 doc: More updates. * doc/glibc-functions/sethostname.texi: Update regarding macOS. * doc/glibc-functions/sethostname.texi: List the affected platforms.
Bruno Haible 79c4db53 2021-03-21T14:56:02 doc: Update for macOS 11.1. * 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/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Update cross-compilation guess.