1. 12 Oct, 2006 3 commits
    • Bruno Haible's avatar
      e8684643
    • Jim Meyering's avatar
      remove trailing blank line · 5d5ff338
      Jim Meyering authored
      5d5ff338
    • Jim Meyering's avatar
      Big performance improvement for fts-based tools that use FTS_NOSTAT. · 73d4f7ae
      Jim Meyering authored
      Avoid spurious inode-mismatch problems on non-POSIX file systems.
      Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
      * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
      (FTS_OPTIONMASK): Extend the mask to reflect this addition.
      * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
      (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
      (fts_set_stat_required): New function.
      (fts_open): Defer the calls to fts_stat, if possible or requested.
      Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
      into fts_stat itself.
      (fts_read): Perform any required (deferred) fts_stat call.
      (fts_build): Likewise, for the directory we're about to open and read.
      In the readdir loop, carefully decide whether each entry will require
      an eventual call to fts_stat, using dirent.d_type info if available.
      (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
      a command line argument into this function.  Update all callers.
      Map a return value of FTS_DOT to FTS_D for a command line argument.
      * modules/fts (Depends-on): Add d-type.  Alphabetize.
      Thanks to Miklos Szeredi for his tenacity and for the initial
      bug report about "find" failing on a FUSE-based file system.
      73d4f7ae
  2. 11 Oct, 2006 1 commit
    • Paul Eggert's avatar
      Port to Tandem NSK OSS, which has 64-bit signed int but at most · 5895949a
      Paul Eggert authored
      32-bit unsigned int.  Problem reported by Matthew Woehlke in:
      http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
      More generally, don't assume that 64-bit signed int is available
      if unsigned int is, and vice versa.
      * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
      unsigned symbols, not on their signed counterparts.
      * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
      (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
      (UINT64_C, UINTMAX_C):
      Likewise.
      * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
      unsigned counterparts.
      (Have_long_long, Unsigned): New macros.
      (Int): Renamed from INT.
      (strtoimax): Use the new macros.
      * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
      and substitute HAVE_UNSIGNED_LONG_LONG_INT.
      * modules/inttypes (inttypes.h): Substitute
      HAVE_UNSIGNED_LONG_LONG_INT.
      * modules/stdint (stdint.h): Likewise.
      (Files): Add m4/ulonglong.m4.
      5895949a
  3. 07 Oct, 2006 3 commits
  4. 06 Oct, 2006 2 commits
  5. 03 Oct, 2006 1 commit
  6. 30 Sep, 2006 1 commit
    • Paul Eggert's avatar
      [lib/ChangeLog] · 75ff6c9d
      Paul Eggert authored
      Work around bug in Solaris 10 /proc file system:
      /proc/self/fd/NNN/.. isn't the parent directory of
      the directory whose file descriptor is NNN.  This needs to
      be worked around at run time, not compile time, since a
      program might be built on Solaris 8, where things work, and
      run on Solaris 10.
      * openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
      to use the following interface instead:
      (OPENAT_BUFFER_SIZE): New macro.
      (openat_proc_name): New function.
      * at-func.c (AT_FUNC_NAME): Adjust to above changes.
      * openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
      Likewise.
      * openat-proc.c: New file.
      [ChangeLog]
      * modules/openat (Files): Add lib/openat-proc.c.
      (Depends-on): Add same-inode, stdbool.
      [m4/ChangeLog]
      * openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
      75ff6c9d
  7. 28 Sep, 2006 1 commit
  8. 26 Sep, 2006 2 commits
    • Paul Eggert's avatar
      [ChangeLog] · 68aa9462
      Paul Eggert authored
      * modules/savewd (Depends-on): Add 'raise'.
      [lib/ChangeLog]
      * savewd.c: Include <signal.h>, for 'raise'.
      68aa9462
    • Paul Eggert's avatar
      [ChangeLog] · 2a15b99b
      Paul Eggert authored
      * modules/clock-time (Maintainer): Add self.
      * modules/getlogin_r (Depends-on): Add extensions.
      [m4/ChangeLog]
      * host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
      2a15b99b
  9. 25 Sep, 2006 2 commits
  10. 22 Sep, 2006 3 commits
  11. 20 Sep, 2006 3 commits
    • Paul Eggert's avatar
      * modules/mkstemp (Files): Add mkstemp.h. · be4552e7
      Paul Eggert authored
      be4552e7
    • Paul Eggert's avatar
      27e91a32
    • Paul Eggert's avatar
      [ChangeLog] · 6b35600a
      Paul Eggert authored
      * modules/mkstemp (Depends-on): Add extensions, so that
      mkstemp is visible on some platforms.
      (Makefile.am): Add mkstemp.h to EXTRA_DIST.
      [lib/ChangeLog]
      * mkstemp.h: New file, since some standard headers
      #define mkstemp.
      * mkstemp.c: Revamp to put the !_LIBC code together.
      Include "mkstemp.h".
      Make the _LIBC code resemble glibc original more,
      e.g., use K&R style.
      * stdlib--.h: Include mkstemp.h.
      [m4/ChangeLog]
      * mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
      Check that large offsets work.  Modernize Autoconf usages.
      Prefer "yes" to mean a good thing rather than a bad.
      Don't put "#define mkstemp" in config.h, as this might interfere
      with standard system headers that "#define mkstemp mkstemp64".
      6b35600a
  12. 18 Sep, 2006 3 commits
  13. 16 Sep, 2006 1 commit
    • Paul Eggert's avatar
      * lib/dirchownmod.c: Don't include fcntl.h; no longer needed. · eeb96e1a
      Paul Eggert authored
      (dirchownmod): New arg FD.  All callers changed.
      Use FD rather than opening the directory ourself, as opening is
      now the caller's responsibility.
      * lib/dirchownmod.h: Likewise.
      * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
      hosts that require <sys/types.h> before <sys/stat.h>.  Include
      fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
      (test_dir): Remove.
      (mkancesdirs): Return length of prefix of FILE that has already
      been made, or -2 if there is a child doing the work.  Redo
      algorithm so that it is O(N) rather than O(N**2).  Optimize away
      ".", and treat ".." specially since it might stray back into
      already-created areas.  Use a subprocess if necessary.  New arg
      WD; all users changed.  MAKE_DIR function should now return 1
      if it creates a directory that is not readable.  Return -2 if
      a child process is spun off.
      * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
      Adjust signature to match code.
      * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
      (make_dir_parents): Use a subprocess if necessary.  New arg WD;
      all users changed.
      * lib/savewd.c, lib/savewd.h: New files.
      * m4/savewd.m4: New file.
      * modules/mkancesdirs (Depends-on): Add fcntl.
      * modules/savewd: New file.
      * MODULES.html.sh (File system functions): Add savewd.
      eeb96e1a
  14. 15 Sep, 2006 3 commits
    • Paul Eggert's avatar
      * modules/configmake (Makefile.am): Add support for the · 02fbd376
      Paul Eggert authored
      Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
      02fbd376
    • Jim Meyering's avatar
      [ChangeLog] · 2dd00679
      Jim Meyering authored
      * modules/rename-dest-slash: New module.
      * MODULES.html.sh (posix_compat): Add it here.
      [lib/ChangeLog]
      * rename-dest-slash.c: New file.
      [m4/ChangeLog]
      * rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New file.
      2dd00679
    • 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
  15. 11 Sep, 2006 1 commit
  16. 09 Sep, 2006 2 commits
  17. 08 Sep, 2006 1 commit
    • Jim Meyering's avatar
      Don't make generated files read-only. That would bother too many · 0f55f146
      Jim Meyering authored
      people.  However, do retain the ability to work when targets are
      read-only: remove the destination and temporary files before writing
      them (when generated via sed or echo), or by using the -f option for
      both cp and mv commands.  Suggestion to use -f from Paul Eggert.
      * modules/alloca-opt, modules/argz, modules/arpa_inet:
      * modules/byteswap, modules/configmake, modules/fcntl:
      * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
      * modules/localcharset, modules/netinet_in, modules/poll:
      * modules/stdbool, modules/stdint, modules/sys_select:
      * modules/sys_socket, modules/sys_stat, modules/sysexits:
      0f55f146
  18. 07 Sep, 2006 1 commit
    • Jim Meyering's avatar
      Fix global typo in last change: use chmod u-w, not chmod u-x. · f110f8c4
      Jim Meyering authored
      Spotted by Paul Eggert and Bruce Korb.
      * modules/alloca-opt, modules/argz, modules/arpa_inet:
      * modules/byteswap, modules/configmake, modules/fcntl:
      * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
      * modules/localcharset, modules/netinet_in, modules/poll:
      * modules/stdbool, modules/stdint, modules/sys_select:
      * modules/sys_socket, modules/sys_stat, modules/sysexits:
      f110f8c4
  19. 06 Sep, 2006 4 commits
    • Jim Meyering's avatar
      Make generated files be read-only. · d1aadab2
      Jim Meyering authored
      * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
      Ensure that each generated file is now read-only.
      * modules/argz: Likewise.
      * modules/arpa_inet: Likewise.
      * modules/byteswap: Likewise.
      * modules/configmake: Likewise.
      * modules/fcntl: Likewise.
      * modules/fnmatch: Likewise.
      * modules/getopt: Likewise.
      * modules/glob: Likewise.
      * modules/inttypes: Likewise.
      * modules/netinet_in: Likewise.
      * modules/poll: Likewise.
      * modules/stdbool: Likewise.
      * modules/stdint: Likewise.
      * modules/sys_select: Likewise.
      * modules/sys_socket: Likewise.
      * modules/sys_stat: Likewise.
      * modules/sysexits: Likewise.
      * modules/localcharset: Same as above, but continue using temporary
      file named "t-$@" (why different?) rather than the "$@-t" used
      everywhere else.
      
      * modules/sysexits (Makefile.am): Replace literal occurrences
      of "sysexit.h" more readable, and more consistent, "$@".
      d1aadab2
    • Bruno Haible's avatar
    • Bruno Haible's avatar
      New module 'xstriconv'. · 041e6f00
      Bruno Haible authored
      041e6f00
    • Bruno Haible's avatar
      New module 'striconv'. · 771ffe34
      Bruno Haible authored
      771ffe34
  20. 05 Sep, 2006 1 commit
  21. 31 Aug, 2006 1 commit
    • Paul Eggert's avatar
      * modules/getloadavg (Files): Add m4/getloadavg.m4. · 7092917c
      Paul Eggert authored
      (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
      the former is now obsolescent.
      * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
      or stdbool.h, because they might not exist while configuring.
      * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
      obsolescent, and programs should use gnulib instead.
      * m4/getloadavg.m4: New file, with contents taken from Autoconf
      but with prefixes changed.
      7092917c