1. 22 Dec, 2019 2 commits
  2. 20 Dec, 2019 2 commits
  3. 18 Dec, 2019 2 commits
    • Bruno Haible's avatar
      setlocale-null: Make API more useful. · 3a310962
      Bruno Haible authored
      * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
      callers changed.
      (setlocale_null): New declaration.
      * lib/setlocale_null.c (setlocale_null_androidfix): New function,
      extracted from setlocale_null_unlocked.
      (setlocale_null_unlocked): Invoke it.
      (setlocale_null_r): Renamed from setlocale_null.
      (setlocale_null): New function, extracted from setlocale_mtsafe in
      setlocale.c.
      * lib/setlocale.c: Don't include <errno.h>.
      (setlocale_mtsafe): Invoke setlocale_null.
      * lib/setlocale-lock.c: Update comments.
      * doc/posix-functions/setlocale.texi: Mention both functions.
      3a310962
    • Bruno Haible's avatar
      setlocale: Make calls with NULL argument multithread-safe. · 505092c2
      Bruno Haible authored
      * lib/setlocale.c: Include <errno.h>.
      (setlocale_mtsafe): New function.
      (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
      (setlocale_improved): Renamed from rpl_setlocale.
      * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
      Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
      LIB_SETLOCALE.
      * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
      (Link): New section.
      * tests/locale.c: Undefine setlocale.
      * tests/test-setlocale_null-one.c: Likewise.
      * tests/test-setlocale_null-all.c: Likewise.
      * modules/setlocale-tests (Makefile.am): Link the test programs with
      $(LIB_SETLOCALE).
      * modules/astrxfrm-tests (Makefile.am): Likewise.
      * modules/btowc-tests (Makefile.am): Likewise.
      * modules/c-ctype-tests (Makefile.am): Likewise.
      * modules/c-snprintf-tests (Makefile.am): Likewise.
      * modules/c-strcase-tests (Makefile.am): Likewise.
      * modules/c-vasprintf-tests (Makefile.am): Likewise.
      * modules/c-vsnprintf-tests (Makefile.am): Likewise.
      * modules/c-xvasprintf-tests (Makefile.am): Likewise.
      * modules/dfa-tests (Makefile.am): Likewise.
      * modules/duplocale-tests (Makefile.am): Likewise.
      * modules/hard-locale-tests (Makefile.am): Likewise.
      * modules/localcharset-tests (Makefile.am): Likewise.
      * modules/localename-tests (Makefile.am): Likewise.
      * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
      * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
      * modules/mbrtowc-tests (Makefile.am): Likewise.
      * modules/mbscasecmp-tests (Makefile.am): Likewise.
      * modules/mbscasestr-tests (Makefile.am): Likewise.
      * modules/mbschr-tests (Makefile.am): Likewise.
      * modules/mbscspn-tests (Makefile.am): Likewise.
      * modules/mbsinit-tests (Makefile.am): Likewise.
      * modules/mbsncasecmp-tests (Makefile.am): Likewise.
      * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
      * modules/mbspbrk-tests (Makefile.am): Likewise.
      * modules/mbspcasecmp-tests (Makefile.am): Likewise.
      * modules/mbsrchr-tests (Makefile.am): Likewise.
      * modules/mbsrtowcs-tests (Makefile.am): Likewise.
      * modules/mbsspn-tests (Makefile.am): Likewise.
      * modules/mbsstr-tests (Makefile.am): Likewise.
      * modules/nl_langinfo-tests (Makefile.am): Likewise.
      * modules/quotearg-tests (Makefile.am): Likewise.
      * modules/regex-tests (Makefile.am): Likewise.
      * modules/strfmon_l-tests (Makefile.am): Likewise.
      * modules/strtod-tests (Makefile.am): Likewise.
      * modules/strtold-tests (Makefile.am): Likewise.
      * modules/unicase/locale-language-tests (Makefile.am): Likewise.
      * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
      * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
      * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
      * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
      * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
      * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
      * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
      * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
      * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
      * modules/wcrtomb-tests (Makefile.am): Likewise.
      * modules/wcsnrtombs-tests (Makefile.am): Likewise.
      * modules/wcsrtombs-tests (Makefile.am): Likewise.
      * modules/wcwidth-tests (Makefile.am): Likewise.
      * doc/posix-functions/setlocale.texi: Mention that the multithread-
      safety fix is also available in module 'setlocale'.
      505092c2
  4. 17 Dec, 2019 1 commit
  5. 15 Dec, 2019 1 commit
    • Bruno Haible's avatar
      setlocale-null: New module. · 567591f3
      Bruno Haible authored
      * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
      setlocale_null): New declarations.
      * lib/setlocale_null.c: New file.
      * lib/setlocale-lock.c: New file.
      * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
      * m4/setlocale_null.m4: New file.
      * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
      GNULIB_SETLOCALE_NULL.
      * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
      * modules/setlocale-null: New file.
      * doc/posix-functions/setlocale.texi: Mention the new module.
      567591f3
  6. 13 Dec, 2019 1 commit
  7. 12 Dec, 2019 6 commits
    • Bruno Haible's avatar
      stddef: Document the AIX xlc issue. · ea54538a
      Bruno Haible authored
      * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
      ea54538a
    • Bruno Haible's avatar
      wcwidth: Avoid test failure on AIX 7.2. · b037ed51
      Bruno Haible authored
      * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
      negative.
      * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
      b037ed51
    • Bruno Haible's avatar
      ilogbl: Work around Cygwin bug. · e5bad6d5
      Bruno Haible authored
      * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
      correct.
      * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
      e5bad6d5
    • Bruno Haible's avatar
      strtold: Work around Cygwin bug. · fac670ce
      Bruno Haible authored
      * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
      If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
      * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
      STRTOLD_HAS_UNDERFLOW_BUG is defined.
      * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
      fac670ce
    • Bruno Haible's avatar
      fsync tests: Skip test that is known to fail. · 8de83b9d
      Bruno Haible authored
      * doc/posix-functions/fsync.texi: Update list of platforms.
      * tests/test-fsync.c (main): Skip test with read-only file descriptors
      that is known to fail on AIX and Cygwin.
      8de83b9d
    • Bruno Haible's avatar
      getaddrinfo: Fix calling convention in 32-bit mode on native Windows. · dcf8aee1
      Bruno Haible authored
      * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
      non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
      HAVE_GETADDRINFO as a C macro.
      * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
      declare as replacement functions.
      * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
      define as no-op overrides.
      * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
      * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
      * modules/getaddrinfo (Depends-on, configure.ac): Test
      REPLACE_GETADDRINFO.
      * doc/posix-functions/getaddrinfo.texi: Mention calling convention
      problem.
      * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
      convention problems.
      dcf8aee1
  8. 11 Dec, 2019 1 commit
  9. 10 Dec, 2019 1 commit
  10. 09 Dec, 2019 1 commit
  11. 08 Dec, 2019 1 commit
  12. 07 Dec, 2019 2 commits
  13. 04 Dec, 2019 1 commit
  14. 27 Nov, 2019 1 commit
    • Bruno Haible's avatar
      openpty, forkpty: Fix build error on Solaris 11.4. · 82e12f20
      Bruno Haible authored
      * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
      also in <termios.h>.
      * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
      of the function also in <termios.h>.
      * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
      * doc/glibc-functions/forkpty.texi: Likewise.
      82e12f20
  15. 24 Nov, 2019 3 commits
    • Bruno Haible's avatar
      mbrtowc: Modernize autoconf test. · 42a04524
      Bruno Haible authored
      * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
      gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
      try a UTF-8 locale.
      * doc/posix-functions/mbrtowc.texi: Update info about AIX.
      42a04524
    • Bruno Haible's avatar
      wcstok: Correct documentation. · 3ae177f2
      Bruno Haible authored
      3ae177f2
    • Bruno Haible's avatar
      wcstok: Work around wrong signature on native Windows. · 5ac9de98
      Bruno Haible authored
      * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
      * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
      REPLACE_WCSTOK.
      * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
      * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
      * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
      * doc/posix-functions/wcstok.texi: Mention the problem.
      5ac9de98
  16. 17 Nov, 2019 1 commit
  17. 21 Oct, 2019 1 commit
    • Akim Demaille's avatar
      bitset: let freeing functions accept NULL · ac7fd666
      Akim Demaille authored
      * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
      given NULL.
      * lib/bitset.h: Document that.
      * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
      ac7fd666
  18. 28 Sep, 2019 1 commit
  19. 24 Sep, 2019 1 commit
  20. 23 Sep, 2019 2 commits
    • Paul Eggert's avatar
      Update URLs and associated text · 505e3dbf
      Paul Eggert authored
      (Thanks to Bruno Haible for proofreading the earlier patch.)
      505e3dbf
    • Paul Eggert's avatar
      Update some URLs · 9e78024b
      Paul Eggert authored
      This is a clerical change that mostly changes http: to https: in URLs
      where either will work.  It also updates some URLs that have moved,
      removes some URLs that no longer work, and fixes related text.
      9e78024b
  21. 15 Sep, 2019 2 commits
    • Bruno Haible's avatar
      access: New module. · 265886a2
      Bruno Haible authored
      * lib/unistd.in.h (access): New declaration.
      * lib/access.c: New file.
      * m4/access.m4: New file.
      * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
      (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
      * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
      REPLACE_ACCESS.
      * modules/access: New file.
      * tests/test-unistd-c++.cc (access): Check signature.
      * doc/posix-functions/access.texi: Mention the new module.
      265886a2
    • Bruno Haible's avatar
      creat: New module. · c5f7c7c6
      Bruno Haible authored
      * lib/fcntl.in.h (creat): New declaration.
      * lib/creat.c: New file, based on lib/open.c.
      * m4/creat.m4: New file.
      * m4/open-slash.m4: New file, extracted from m4/open.m4.
      * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
      Invoke gl_OPEN_TRAILING_SLASH_BUG.
      * modules/open (Files): Add m4/open-slash.m4.
      * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
      REPLACE_CREAT.
      * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
      * modules/creat: New file.
      * tests/test-fcntl-h-c++.cc (creat): Check signature.
      * doc/posix-functions/creat.texi: Mention the new module.
      c5f7c7c6
  22. 07 Sep, 2019 1 commit
    • Bruno Haible's avatar
      doc: Update for glibc 2.30. · f959a515
      Bruno Haible authored
      * doc/glibc-functions/gettid.texi: New file.
      * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
      * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
      * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
      * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
      * doc/glibc-functions/sem_clockwait.texi: New file.
      * doc/glibc-functions/tgkill.texi: New file.
      * doc/glibc-functions/twalk_r.texi: New file.
      * doc/gnulib.texi: Include them.
      (Glibc semaphore.h): New section.
      * doc/pastposix-functions/h_errno.texi: Update.
      * doc/posix-functions/*.texi: Likewise.
      f959a515
  23. 24 Aug, 2019 1 commit
  24. 21 Aug, 2019 1 commit
  25. 09 Aug, 2019 1 commit
  26. 15 Jul, 2019 2 commits
    • Bruno Haible's avatar
      doc: Update info about <pthread.h>. · d60d9c02
      Bruno Haible authored
      * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
      of 'pthread'.
      d60d9c02
    • Bruno Haible's avatar
      pthread-spin: New module. · 2d853e8b
      Bruno Haible authored
      * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
      pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
      inline definitions.
      * lib/pthread-spin.c: New file.
      * m4/pthread-spin.m4: New file.
      * modules/pthread-spin: New file.
      * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
      * doc/posix-functions/pthread_spin_lock.texi: Likewise.
      * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
      * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
      * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
      2d853e8b