1. 01 Jan, 2015 1 commit
    • Paul Eggert's avatar
      version-etc: new year · b9bfe784
      Paul Eggert authored
      * doc/gnulib.texi:
      * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
      * all files: Run 'make update-copyright'.
  2. 18 Dec, 2014 2 commits
  3. 16 Dec, 2014 1 commit
    • Pádraig Brady's avatar
      getcwd: fix test failure on OS X 10.9 · 4f3dc0be
      Pádraig Brady authored
      * m4/getcwd-path-max.m4: Avoid the replacement if it
      won't be effective due to the PATH_MAX limitation of lstat().
      (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
      * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
      for this case for use in tests, and also exclude this
      case when setting REPLACE_GETCWD.
      * tests/test-getcwd.c (test_long_name): Restrict the
      tested path length so that lstat() will not be passed
      a path greater than PATH_MAX.
      Also key a test condition on HAVE_OPENAT_SUPPORT rather
      than AT_FDCWD, since the latter is set unconditionally
      since Sep 2009 in commit 52c658e9.
  4. 12 Dec, 2014 1 commit
    • Paul Eggert's avatar
      stddef: support C11's max_align_t · 3ae2441d
      Paul Eggert authored
      * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
      * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
      Do not undef, as that might cause max_align_t to be defined twice.
      Instead, change use to check for _GL_STDDEF_WINT_T too.
      (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
      * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
      Check for max_align_t.
      * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
      * modules/stddef-tests (Depends-on): Add stdalign.
      * tests/test-stddef.c: Test max_align_t.
  5. 08 Dec, 2014 3 commits
  6. 05 Dec, 2014 1 commit
    • Bruno Haible's avatar
      Fix LDBL80_WORDS macro on big endian platforms. · 1000eab5
      Bruno Haible authored
      * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
      LDBL80_WORDS macro.
      * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
      * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
      * tests/test-isfinite.c (test_isfinitel): Likewise.
      * tests/test-isinf.c (test_isinfl): Likewise.
      * tests/test-isnan.c (test_long_double): Likewise.
      * tests/test-isnanl.h (main): Likewise.
      * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
      * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
      * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
      * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
      Reported by Pádraig Brady.
  7. 27 Nov, 2014 1 commit
  8. 14 Nov, 2014 1 commit
  9. 04 Nov, 2014 1 commit
  10. 03 Nov, 2014 2 commits
    • Pádraig Brady's avatar
      linkat: don't unconditionally replace on GNU/Linux · c564172a
      Pádraig Brady authored
      * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
      was redundant for a few reasons.  It was present to support compiling
      on new systems but running on the old narrow window of Linux 2.6.1[67].
      It setup and cleaned up test files which weren't actually used.
      On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
      implicit in the following check.
    • Pádraig Brady's avatar
      linkat: wrap to handle symlinks on OS X 10.10 · c8e57ce5
      Pádraig Brady authored
      * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
      but not usable because it doesn't support creating hardlinks
      to symlinks.  Therefore add a generic test for this capability
      and fallback to our emulation if linkat() fails with ENOTSUP.
  11. 24 Oct, 2014 1 commit
  12. 19 Oct, 2014 2 commits
    • Paul Eggert's avatar
      symlinkat: port to AIX 7.1 · 032bd151
      Paul Eggert authored
      * doc/posix-functions/symlinkat.texi (symlinkat):
      Mention AIX porting problem.
      * lib/symlinkat.c: Always include errno.h.
      (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
      * lib/unistd.in.h (symlinkat): Add replacement machinery.
      * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
      * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
      * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
      (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
      * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
    • Paul Eggert's avatar
      readlinkat: port to AIX 7.1 · cb3a9b8b
      Paul Eggert authored
      * doc/posix-functions/readlink.texi (readlink):
      * doc/posix-functions/readlinkat.texi (readlinkat):
      Mention AIX porting problem.
      * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
      New function.
      * lib/unistd.in.h (readlinkat): Add replacement machinery.
      * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
      * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
      * modules/readlinkat (configure.ac): Also compile replacement
      * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
  13. 15 Sep, 2014 1 commit
  14. 09 Sep, 2014 1 commit
    • Fridolin Pokorny's avatar
      mountlist: use /proc/self/mountinfo when available · 3ea43e02
      Fridolin Pokorny authored
      Use libmount to propagate device IDs provided by Linux in
      /proc/self/mountinfo.  This will give more accurate output when
      using df in chroot'ed environments as the device IDs are not
      determined by stat() which may be inaccurate within the chroot.
      * lib/mountlist.c (read_file_system_list): Use the libmount routines
      from util-linux to parse "/proc/self/mountinfo" or fall back to
      standard getmntent() processing.
      * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
      getmntent() is used, as is the case on GNU/Linux.
      * DEPENDENCIES: Mention the optional util-linux dependency.
  15. 04 Sep, 2014 1 commit
  16. 02 Sep, 2014 1 commit
  17. 01 Sep, 2014 1 commit
    • Paul Eggert's avatar
      manywarnings: add GCC 4.9 warnings · 157c42ef
      Paul Eggert authored
      Also, make it easier to maintain this in the future.
      * build-aux/gcc-warning.spec: Add -Wabi-tag,
      -Wconditionally-supported, -Wdelete-incomplete,
      -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
      Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
      * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
      -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
      only for older GCC versions that need them.  Handke
      -Wnormalized=nfc specially, so that the 'comm' command used
      for maintenance doesn't get confused.
  18. 29 Aug, 2014 1 commit
    • Paul Eggert's avatar
      qsort_r: new module, for GNU-style qsort_r · 1ce0e7dc
      Paul Eggert authored
      This works even on FreeBSD, which has an incompatible qsort_r API.
      * MODULES.html.sh: Add it.
      * doc/glibc-functions/qsort_r.texi: It's now supported.
      * lib/qsort.c: New file, taken from glibc with minor changes
      inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
      * lib/qsort_r.c: New file, compiled only on FreeBSD.
      * lib/stdlib.in.h (qsort_r): Declare in the usual way.
      * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
      * modules/qsort_r, modules/qsort_r-tests: New files.
      * modules/stdlib (Makefile): Set up its defaults.
      * tests/test-qsort_r.c: New file.
  19. 08 Aug, 2014 1 commit
    • Paul Eggert's avatar
      vararrays: modernize AC_C_VARARRAYS for C11 · e8e10012
      Paul Eggert authored
      This backports a change I recently made to Autoconf.
      * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
      VLAs are not supported, as this is what C11 does.  The old macro
      HAVE_C_VARARRAYS is still defined if they are supported, but is
      now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
  20. 04 Aug, 2014 1 commit
  21. 13 Jul, 2014 1 commit
    • Pádraig Brady's avatar
      gettext: revert "update macros to version 0.19" · 71be4c87
      Pádraig Brady authored
      This reverts commit 9b9370ca, as it currently requires that
      developers of any project that explicitly uses the gettext module
      or implicitly uses it through the utimens-tests or
      futimens-tests modules, use gettext >= 0.19.
      However there are some stability and availablity issues with
      that version at present.
      We can reinstate this soon, when stability is addressed
      and packages are more readily available.
  22. 09 Jul, 2014 1 commit
  23. 14 Jun, 2014 2 commits
  24. 11 Jun, 2014 1 commit
  25. 02 Jun, 2014 1 commit
  26. 01 Jun, 2014 2 commits
  27. 31 May, 2014 1 commit
    • Paul Eggert's avatar
      dup2, fcntl, fcntl-h: port to AIX 7.1 · 93ce02b4
      Paul Eggert authored
      This fixes some porting problems discovered when testing the latest
      grep snapshot on AIX 7.1.  I don't think if fixes any bugs
      in grep but it could be important for other applications.
      * doc/posix-functions/dup2.texi:
      * doc/posix-functions/fcntl.texi:
      * doc/posix-headers/fcntl.texi:
      Document AIX bugs.
      * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
      Define to 0 if outside 'int' range.
      * m4/dup2.m4 (gl_FUNC_DUP2):
      * m4/fcntl.m4 (gl_FUNC_FCNTL):
      Check for getdtablesize.  If it's available, test a value just
      outside its range instead of testing 1000000.  When cross-compiling,
      guess that AIX will fail this improved test.
  28. 30 May, 2014 2 commits
    • Paul Eggert's avatar
      printf, config.rpath: Port to FreeBSD 10. · b1b4baa3
      Paul Eggert authored
      Problem reported by Tijl Coosemans in:
      * build-aux/config.rpath (hardcode_libdir_flag_spec)
      (hardcode_direct): Simplify FreeBSD configuration.
      (library_names_spec): Don't mishandle FreeBSD 10+.
      * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
      Don't mishandle FreeBSD 10+ when cross-compiling.
    • Kieran Colford's avatar
      valgrind-tests: fixed misleading help message · 1c0d9852
      Kieran Colford authored
      The help message generated by a configure script using this module
      implied that valgrind was disabled by default, which it wasn't.
      Left the auto enablement in and patched the help message like:
  29. 29 May, 2014 1 commit
    • Paul Eggert's avatar
      pthread_sigmask, timer-time: use gl_THREADLIB only if needed · bc729c32
      Paul Eggert authored
      Without this fix, Emacs would sometimes call sigprocmask instead
      of pthread_sigmask, which is a no-no in multithreaded applications.
      Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
      * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
      Suppress check for pthread_sigmask working without -lpthread if
      the application always links with -lpthread.  Do not link with
      $LIBMULTITHREAD if gl_THREADLIB is not defined.
      * m4/timer_time.m4 (gl_TIMER_TIME):
      Require gl_THREADLIB only if it is defined.  Do not append
      $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
  30. 16 May, 2014 2 commits
    • Jim Meyering's avatar
      mbrtowc.m4: fix a comment typo · b4ed5427
      Jim Meyering authored
      * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
      emitted documentation string.
    • Paul Eggert's avatar
      mbrlen, mbrtowc: fix bug with empty input · 2a045bc3
      Paul Eggert authored
      * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
      * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
      so this is mainly for documentation.
      * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
      (gl_FUNC_MBRTOWC): Use it.
      * tests/test-mbrtowc.c (main): Test for the bug.
  31. 19 Apr, 2014 1 commit