1. 01 Jan, 2016 1 commit
    • Paul Eggert's avatar
      version-etc: new year · 71090a2a
      Paul Eggert authored
      * build-aux/gendocs.sh (version):
      * doc/gendocs_template:
      * doc/gendocs_template_min:
      * doc/gnulib.texi:
      * lib/version-etc.c (COPYRIGHT_YEAR):
      Update copyright dates by hand in templates and the like.
      * all files: Run 'make update-copyright'.
      71090a2a
  2. 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
  3. 01 Jan, 2014 1 commit
  4. 01 Jan, 2013 1 commit
  5. 04 May, 2012 1 commit
    • Bruno Haible's avatar
      Avoid "guessing no" guesses when cross-compiling to glibc systems. · 9f1f81e4
      Bruno Haible authored
      * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
      * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
      * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
      * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
      * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_chown_slash_works,
      gl_cv_func_chown_ctime_works to "guessing yes".
      * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
      * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
      * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
      * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_open_directory_works to
      "guessing yes".
      * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
      * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
      cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
      "guessing yes".
      * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
      * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_floorf_ieee to
      "guessing yes".
      * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
      * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
      * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
      * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
      cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
      "guessing yes".
      * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
      * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_hypotf_ieee to
      "guessing yes".
      * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_hypotl_ieee to
      "guessing yes".
      * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
      * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
      * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
      * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
      * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_log10f_ieee to
      "guessing yes".
      * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
      * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_log1pf_ieee to
      "guessing yes".
      * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_log1pl_ieee to
      "guessing yes".
      * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
      * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
      * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
      gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
      * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_mkfifo_works to
      "guessing yes".
      * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_mknod_works to
      "guessing yes".
      * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
      cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
      "guessing yes".
      * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
      * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
      * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
      * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_svid_putenv to
      "guessing yes".
      * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
      cross-compiling to glibc systems, set gl_cv_func_readlink_works to
      "guessing yes".
      * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
      cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
      "guessing yes".
      * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
      When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
      to "guessing yes".
      * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
      When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
      to "guessing yes".
      * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_rmdir_works to
      "guessing yes".
      * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
      gl_cv_func_unlink_parent_fails to "guessing yes".
      * m4/remove.m4 (gl_FUNC_REMOVE): Update.
      * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
      gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
      gl_cv_func_rename_dest_works to "guessing yes".
      * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
      * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_roundf_ieee to
      "guessing yes".
      * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_roundl_ieee to
      "guessing yes".
      * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_setenv_works to
      "guessing yes".
      (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_unsetenv_works to
      "guessing yes".
      * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_sleep_works to
      "guessing yes".
      * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_stat_file_slash to
      "guessing yes".
      * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
      cross-compiling to glibc systems, set gl_cv_func_symlink_works to
      "guessing yes".
      * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
      * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_truncf_ieee to
      "guessing yes".
      * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_truncl_ieee to
      "guessing yes".
      * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_usleep_works to
      "guessing yes".
      * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
      compiling to glibc systems, set gl_cv_func_futimesat_works to
      "guessing yes".
      9f1f81e4
  6. 01 Jan, 2012 1 commit
  7. 11 Sep, 2011 1 commit
    • Bruno Haible's avatar
      unistd et al.: Don't assume <unistd.h> exists. · 912da04e
      Bruno Haible authored
      * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
      does not exist.
      * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
      exist. But include <stdlib.h>.
      * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
      include <io.h> and <stdlib.h> instead. Don't test symbolink links if
      symlink() does not exist.
      * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
      include <io.h> instead.
      * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
      * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
      include <direct.h> instead.
      * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
      * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
      * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
      <io.h> instead.
      * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
      correctly if the system does not have hard links.
      * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
      <direct.h> instead.
      * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
      it when looking for function declarations.
      * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
      <direct.h> and <io.h> instead.
      * doc/posix-headers/unistd.texi: More details about MSVC problem.
      912da04e
  8. 15 Jun, 2011 1 commit
  9. 01 Jan, 2011 1 commit
  10. 06 Dec, 2010 1 commit
    • Bruno Haible's avatar
      Put more information about failed tests into the test return codes. · 1f8c872f
      Bruno Haible authored
      * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
      program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
      * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
      * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
      * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
      * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
      * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
      * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
      * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
      * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
      * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
      * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
      * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
      * m4/stdint.m4 (gl_STDINT_H): Likewise.
      * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
      returns a bit mask.
      * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
      * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
      * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
      * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
      * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
      * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
      * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
      * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
      * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
      * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
      * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
      * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
      * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
      * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
      * m4/link.m4 (gl_FUNC_LINK): Likewise.
      * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
      * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
      * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
      * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
      * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
      * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
      * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
      * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
      * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
      * m4/open.m4 (gl_FUNC_OPEN): Likewise.
      * m4/poll.m4 (gl_FUNC_POLL): Likewise.
      * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
      * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
      gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
      gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
      gl_PRINTF_PRECISION): Likewise.
      * m4/regex.m4 (gl_REGEX): Likewise.
      * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
      * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
      * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
      * m4/stat.m4 (gl_FUNC_STAT): Likewise.
      * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
      * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
      * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
      * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
      * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
      * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
      * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
      * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
      * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
      * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
      * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
      * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
      * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
      * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
      * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
      * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
      (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
      enumerated value.
      * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
      1f8c872f
  11. 30 Jul, 2010 1 commit
  12. 01 Jan, 2010 1 commit
  13. 29 Dec, 2009 1 commit
    • Jim Meyering's avatar
      update nearly all FSF copyright year lists to include 2009 · 3030c5b5
      Jim Meyering authored
      The files named by the following are exempted:
      
          grep -v '^#' config/srclist.txt|grep -v '^$' \
            | while read src dst; do
                test -f "$dst" && { echo "$dst"; continue; }
                test -d "$dst" || continue
                echo "$dst"/$(basename "$src")
              done > exempt
          git ls-files tests/unictype >> exempt
      
      In the remaining files, convert to all-interval notation if
      - there is already at least one year interval like 2000-2003
      - the file is maintained by me
      - the file is in lib/uni*/, where that style already prevails
      Otherwise, use update-copyright's default.
      3030c5b5
  14. 09 Nov, 2009 1 commit
    • Eric Blake's avatar
      rename: detect FreeBSD bug · d462fe17
      Eric Blake authored
      rename("link-to-file/","new") mistakenly succeeded.
      
      * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
      slash on symlink.
      * modules/renameat-tests (Depends-on): Add filenamecat.
      * tests/test-rename.h (test_rename): Allow one more errno.
      * tests/test-renameat.c (main): Likewise.
      * doc/posix-functions/rename.texi (rename): Document the bug.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      d462fe17
  15. 02 Oct, 2009 5 commits
    • Eric Blake's avatar
      rename: fix another cygwin 1.5 bug · 33790590
      Eric Blake authored
      Cygwin 1.5 sometimes, but not always, failed on rename("dir1","dir2")
      when "dir2" exists.  Beef up the m4 tests to more reliably
      detect at least one of cygwin's bugs, in spite of not knowing
      why the rename only failed sporadically (thankfully, cygwin 1.7
      does not have the bug).  Meanwhile, although NetBSD needs to
      share the hard link workarounds, it does not need the trailing
      dot and directory workarounds, so split the m4 test into two
      separate feature checks.
      
      * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
      checks.
      * lib/rename.c (rpl_rename): Don't penalize NetBSD with
      unnecessary cygwin workarounds.  Also work around bug with moving
      full directory onto an empty one.
      * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      33790590
    • Eric Blake's avatar
      rename-dest-slash: merge into rename module · 13002362
      Eric Blake authored
      Tested that NetBSD workaround still passes unit test.
      
      * modules/rename-dest-slash (Status): Mark obsolete.
      (Depends-on): Add rename.
      (Files): Let rename do it all.
      * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
      subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
      * m4/rename-dest-slash.m4: ...so this file can be deleted.
      * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
      * lib/rename.c (rpl_rename): Update comments.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      13002362
    • Eric Blake's avatar
      rename: fix cygwin 1.5.x bugs · 3e7684c3
      Eric Blake authored
      On cygwin 1.5.x, rename("dir","file") mistakenly succeeded.
      rename("hard1","hard2") mistakenly reduced the hard link count,
      such that "hard1" disappears once "hard2" is unlinked.
      
      * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
      * lib/rename.c (rpl_rename): Work around them.
      * modules/rename (Depends-on): Add same-inode.
      3e7684c3
    • Eric Blake's avatar
      rename: fix Solaris 10 bug · 2f45acc3
      Eric Blake authored
      rename("file","name/") mistakenly succeeded.  But since Solaris 10
      already obeys POSIX behavior on rename("link/","name"), we avoid
      blindly forcing GNU behavior of rejecting symlinks with trailing slash.
      
      * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
      * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
      was the only bug.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      2f45acc3
    • Eric Blake's avatar
      rename: fix Solaris 9 bug · add9fba5
      Eric Blake authored
      rename("file/","oops") mistakenly succeeded.
      
      * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
      on non-directory.  Avoid calling exit.
      * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
      strdup.
      * modules/rename-tests (Depends-on): Drop lstat.
      * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
      (gl_PREREQ_RENAME): Delete unused macro.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      add9fba5
  16. 07 Sep, 2009 1 commit
    • Eric Blake's avatar
      rename: modernize replacement · c5c46dcc
      Eric Blake authored
      * modules/rename (Depends-on): Add stdio.
      (configure.ac): Declare witness.
      * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
      stdio take care of replacement.
      * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
      * modules/stdio (Makefile.am): Substitute them.
      * lib/stdio.in.h (rename): Declare replacement.
      * lib/rename.c (includes): Allow cross-compilation to non-windows
      machines.
      * doc/posix-functions/rename.texi (rename): Improve
      documentation.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      c5c46dcc
  17. 02 Sep, 2009 1 commit
    • Ralf Wildenhues's avatar
      Replace uses of obsolete autoconf macros in Jim's modules. · 1bea6655
      Ralf Wildenhues authored
      The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
      AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
      can evoke a warning from autoconf when run with -Wobsolete
      enabled.  They were declared obsolete for good reasons (see
      the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
      recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
      should not continue using the deprecated macros.
      
      * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
      obsolete Autoconf macros with modern counterparts.
      * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
      * m4/dos.m4 (gl_AC_DOS): Likewise.
      * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
      * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
      * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
      * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
      * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
      * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
      * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
      * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
      * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
      Likewise.
      * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
      * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
      * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
      * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
      * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
      * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
      Signed-off-by: default avatarRalf Wildenhues <Ralf.Wildenhues@gmx.de>
      1bea6655
  18. 14 May, 2009 1 commit
  19. 12 Apr, 2009 1 commit
  20. 14 Jan, 2009 1 commit
    • Jim Meyering's avatar
      many *.m4 files: improve m4 quoting · 42d1eda5
      Jim Meyering authored
      99% of this change was performed by running the following commands:
      git ls-files | grep '\.m4$' | xargs perl -pi \
        -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
        -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
        -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
        -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
      perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
      
      The remainder were to add Copyright dates, increment serial numbers,
      undo some changes in comments, exclude m4/intl.m4, and add quotes
      around the "1" in ",1" where the unusual spacing prohibited the
      above regexps from doing the job.  For more details, see
      <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
      42d1eda5
  21. 15 Sep, 2006 1 commit
    • Jim Meyering's avatar
      [ChangeLog] · a4f548f6
      Jim Meyering authored
      * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
      [m4/ChangeLog]
      * rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
      a4f548f6
  22. 24 Apr, 2006 1 commit
    • Paul Eggert's avatar
      * fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit. · f2b62ff7
      Paul Eggert authored
      Don't assume that exit status -1 is valid.
      * nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
      * putenv.m4 (gl_FUNC_PUTENV): Likewise.
      * rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
      * readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
      * rename.m4 (vb_FUNC_RENAME): Likewise.
      * unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
      not AC_TRY_RUN.  Use return, not exit.  Don't assume that
      functions can be used without declaring them, or that you can
      exit with status -1.
      * utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
      f2b62ff7
  23. 02 Jun, 2005 1 commit
    • Paul Eggert's avatar
      Sync from coreutils. · 359c0a71
      Paul Eggert authored
      Use "file name" when talking about file names, instead of "filename"
      or "path", as per the GNU coding standards.
      
      * MODULES.html.sh: mkdir-p renamed from makepath.
      filenamecat renamed from path-concat.
      * modules/filenamecat: Renamed from modules/path-concat.
      (Files): filenamecat.h and filenamecat.c renamed from
      path-concat.h and path-concat.c.
      (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
      (Include): filenamecat.h, not path-concat.h.
      * modules/mkdir-p: Renamed from modules/makepath.
      (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and makepath.c.
      (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
      (Include): mkdir-p.h, not makepath.h.
      * lib/mkdir-p.c: Renamed from makepath.c.
      (make_dir_parents): Renamed from make_path.  All callers changed.
      * lib/mkdir-p.h: Likewise.  All includers changed.
      * lib/filenamecat.c: Renamed from path-concat.c.
      (file_name_concat): Renamed from path_concat.  All callers changed.
      [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
      * lib/filenamecat.h: Likewise.  All includers changed.
      * lib/acl.c: Don't use "path" or "filename" to mean "file name"
      in comments or local variable names.
      * lib/basename.c: Likewise.
      * lib/canonicalize.c, canonicalize.h: Likewise.
      * lib/dirname.c, dirname.h: Likewise.
      * lib/euidaccess.c: Likewise.
      * lib/exclude.c: Likewise
      * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
      * lib/fsusage.c, fsuage.h: Likewise.
      * lib/fts.c, fts_.h: Likewise.
      * lib/getcwd.c: Likewise.
      * lib/getloadavg.c: Likewise.
      * lib/mkstemp.c: Likewise.
      * lib/mountlist.c, mountlist.h: Likewise.
      * lib/openat.c, openat.h: Likewise.
      * lib/readlink-stub.c: Likewise.
      * lib/readutmp.c, readutmp.h: Likewise.
      * lib/rename.c: Likewise.
      * lib/rmdir.c: Likewise.
      * lib/same.c: Likewise.
      * lib/savedir.c: Likewise.
      * lib/stripslash.c: Likewise.
      * lib/tempname.c: Likewise.
      * lib/xreadlink.c: Likewise.
      * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
      All uses changed.
      * lib/exclude.h: Likewise.
      * m4/mkdir-p.m4: Renamed from makepath.m4.
      (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
      Rename files from makepath.c to mkdir-p.c, and from
      makepath.h to mkdir-p.h.
      * m4/filenamecat.m4: Renamed from path-concat.m4.
      (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
      Rename files from path-concat.c to filenamecat.c,
      and from path-concat.h to filenamecat.h.
      * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
      "file name" in local variables or comments.
      * rename.m4: Likewise.
      
      * lib/euidaccess.c (getuid, getgid, getuid, getegid)
      [!defined _POSIX_VERSION]: Remove decls; not needed these days.
      * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
      [!defined _POSIX_VERSION]: Remove decls; not needed these days.
      * lib/pathmax.h: Include <limits.h> unconditionally, since other
      files have been getting away with it for years (MORE/BSD 4.3
      is extinct now).
      * lib/userspec.c (getpwnam, getgrnam, getgrgid)
      [!defined _POSIX_VERSION]: Remove decls; not needed these days.
      
      * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
      Define to 256, not 255, as per modern POSIX.
      359c0a71
  24. 23 Jan, 2005 1 commit
  25. 10 Sep, 2003 1 commit
  26. 31 Jan, 2003 1 commit
  27. 31 Dec, 2002 1 commit
  28. 17 Sep, 2001 1 commit
  29. 12 Aug, 2001 1 commit
  30. 30 Jan, 2001 1 commit
  31. 14 Jan, 2001 3 commits