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'.
      b9bfe784
  2. 31 Dec, 2014 2 commits
  3. 30 Dec, 2014 1 commit
    • Pádraig Brady's avatar
      xstrtol: ensure errno is reset · 55cda57a
      Pádraig Brady authored
      Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
      Noticed with a spurious coreutils test failure on Darwin 14.0.0.
      
      * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
      55cda57a
  4. 28 Dec, 2014 1 commit
  5. 26 Dec, 2014 1 commit
  6. 22 Dec, 2014 1 commit
    • Eric Blake's avatar
      docs: mention why libgen.h is bad · 16518d9e
      Eric Blake authored
      I just debugged a failure in sharutils-4.14.2-1 for using basename()
      without including <libgen.h>.  In the process, I realized that we
      aren't doing a good job of explaining why we don't offer a libgen.h
      replacement (it is useless because the only two functions it
      provides are also useless).
      
      * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      16518d9e
  7. 21 Dec, 2014 1 commit
  8. 20 Dec, 2014 1 commit
    • Paul Eggert's avatar
      assure: new module · 034a1804
      Paul Eggert authored
      This works better than 'assert' when compiling with -DNDEBUG,
      as it avoids some compiler diagnostics in that case.
      Reported by Norihiro Tanaka in:
      http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html
      * MODULES.html.sh (func_all_modules): Add 'assure'.
      * lib/assure.h, modules/assure: New files.
      * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
      * lib/poll.c, lib/savewd.c, lib/utimens.c, lib/xstrtol.c:
      Prefer 'assure' to 'assert'.
      * modules/chdir-long, modules/cycle-check, modules/fchdir:
      * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
      Depend on 'assure'.
      034a1804
  9. 19 Dec, 2014 1 commit
  10. 18 Dec, 2014 2 commits
  11. 17 Dec, 2014 1 commit
  12. 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.
      4f3dc0be
  13. 14 Dec, 2014 2 commits
  14. 13 Dec, 2014 1 commit
  15. 12 Dec, 2014 3 commits
    • Karl Berry's avatar
      update from texinfo · 3e51cf70
      Karl Berry authored
      3e51cf70
    • 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.
      3ae2441d
    • Daiki Ueno's avatar
      unistd: fix iOS check conditional · 73991ca4
      Daiki Ueno authored
      On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
      as 0 or 1 in <TargetConditionals.h>, and the previous check always
      yielded true on non-iOS environment.
      * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
      TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
      they are defined.
      73991ca4
  16. 10 Dec, 2014 1 commit
    • Paul Eggert's avatar
      posixtm: avoid compiler warning in a better way · 89db07c7
      Paul Eggert authored
      * lib/posixtm.c (IF_LINT): Remove.
      (year, posix_time_parse):
      Return true (not 0) if successful.  All callers changed.
      (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
      89db07c7
  17. 09 Dec, 2014 1 commit
    • KO Myung-Hun's avatar
      relocatable: support UNIXROOT in relocate() on EMX · cc000985
      KO Myung-Hun authored
      UNIXROOT is used to specify a drive of a root of FHS. So if a path is
      started with '/', then it should be translated to "$UNIXROOT/".
      
      * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
      started with '/' on EMX.
      cc000985
  18. 08 Dec, 2014 8 commits
  19. 06 Dec, 2014 1 commit
  20. 05 Dec, 2014 3 commits
    • Karl Berry's avatar
      autoupdate · 79002fdd
      Karl Berry authored
      79002fdd
    • Pádraig Brady's avatar
      filevercmp, posixtm: avoid compiler warnings with -O3 · 819cfe3c
      Pádraig Brady authored
      * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
      * lib/posixtm.c: (IF_LINT): Define.
      (posix_time_parse): Use it to void a "may be used uninitialized"
      warning, seen only with -O3.
      819cfe3c
    • 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.
      1000eab5
  21. 03 Dec, 2014 1 commit
  22. 02 Dec, 2014 3 commits
  23. 29 Nov, 2014 1 commit
  24. 28 Nov, 2014 1 commit