1. 01 Jan, 2018 1 commit
  2. 11 Jul, 2017 1 commit
    • Bruno Haible's avatar
      More systematic m4 quoting and indentation. · 95af6e04
      Bruno Haible authored
      * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
      * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
      * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
      * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
      * m4/host-os.m4 (gl_HOST_OS): Likewise.
      * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
      gl_WINSIZE_IN_PTEM): Likewise.
      * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
      * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
      * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
      * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
      Correct indentation.
      * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
      * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
      * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
      * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
      * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
      * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
      95af6e04
  3. 01 Jan, 2017 1 commit
    • Paul Eggert's avatar
      version-etc: new year · a3fd683d
      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'.
      a3fd683d
  4. 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
  5. 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
  6. 01 Jan, 2014 1 commit
  7. 01 Jan, 2013 1 commit
  8. 30 Nov, 2012 1 commit
    • Paul Eggert's avatar
      chdir-long, cycle-check, savewd: better 'inline' · e4b23b86
      Paul Eggert authored
      * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
      (find_non_slash):
      * lib/cycle-check.c (is_zero_or_power_of_two):
      * lib/savewd.c (savewd_delegating):
      Change 'static inline' to 'inline'.
      * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
      Replace all remaining uses of 'static inline' with it.
      * lib/savewd.h:
      Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
      * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
      * m4/cycle-check.m4 (gl_CYCLE_CHECK):
      * m4/savewd.m4 (gl_SAVEWD):
      Do not require AC_C_INLINE.
      * modules/savewd (Depends-on): Add extern-inline.
      e4b23b86
  9. 01 Jan, 2012 1 commit
  10. 22 Sep, 2011 1 commit
    • Bruno Haible's avatar
      Consolidate all uses of PATH_MAX in *.m4 files. · b5bfe10b
      Bruno Haible authored
      * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
      macros.
      * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
      and gl_PATHMAX_SNIPPET.
      * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
      * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
      * modules/chdir-long (Files): Add m4/pathmax.m4.
      * modules/getcwd (Files): Likewise.
      b5bfe10b
  11. 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
  12. 15 Jun, 2011 1 commit
  13. 01 Jan, 2011 1 commit
  14. 01 Jan, 2010 1 commit
  15. 31 Dec, 2009 1 commit
  16. 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
  17. 25 Jan, 2007 1 commit
    • Bruno Haible's avatar
      2007-01-24 Bruno Haible <bruno@clisp.org> · a6e76f4e
      Bruno Haible authored
              Drop AC_REQUIRE calls that are redundant with the module dependencies.
              * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
              gl_GETADDRINFO.
              * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
              gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
              * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
      a6e76f4e
  18. 25 Sep, 2006 1 commit
  19. 21 Aug, 2006 1 commit
    • Paul Eggert's avatar
      Avoid the need for AC_LIBSOURCES in m4 macros. · 901bc47c
      Paul Eggert authored
      * modules/acl (EXTRA_DIST): Add acl.h.
      * modules/argmatch (Files): Add m4/argmatch.m4.
      (configure.ac): Add gl_ARGMATCH.
      (EXTRA_DIST): Renamed from lib_SOURCES, for
      consistency with the other modules.  Remove argmatch.c.
      * modules/backupfile (EXTRA_DIST): Add backupfile.h.
      * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
      * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
      * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
      * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
      * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
      * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
      * modules/cloexec (EXTRA_DIST): Add cloexec.h.
      * modules/close-stream (EXTRA_DIST): Add close-stream.h.
      * modules/closeout (EXTRA_DIST): Add closeout.h.
      * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
      * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
      * modules/dirfd (EXTRA_DIST): Add dirfd.h.
      * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
      dirname.h; remove basename.c and stripslash.c.
      * modules/exclude (EXTRA_DIST): Add exclude.h.
      * modules/exitfail (EXTRA_DIST): Add exitfail.h.
      * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
      * modules/file-type (EXTRA_DIST): Add file-type.h.
      * modules/filemode (EXTRA_DIST): Add filemode.h.
      * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
      * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
      * modules/fpending (EXTRA_DIST): Add __fpending.h.
      * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
      * modules/fsusage (EXTRA_DIST): Add fsusage.h.
      * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
      * modules/getcwd (EXTRA_DIST): Add getcwd.h.
      * modules/getdate (EXTRA_DIST): Add getdate.c.
      * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
      * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
      * modules/getpass (EXTRA_DIST): Add getpass.h.
      * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
      * modules/group-member (EXTRA_DIST): Add group-member.h.
      * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
      * modules/hash (EXTRA_DIST): Add hash.h.
      * modules/human (EXTRA_DIST): Add human.h.
      * modules/inttypes (EXTRA_DIST): Add inttypes.h.
      * modules/lchmod (EXTRA_DIST): Add lchmod.h.
      * modules/lchown (EXTRA_DIST): Add lchown.h.
      * modules/long-options (EXTRA_DIST): Add long-options.h.
      * modules/lstat (EXTRA_DIST): Add lstat.h.
      * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
      * modules/memcoll (EXTRA_DIST): Add memcoll.h.
      * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
      * modules/memrchr (EXTRA_DIST): Add memrchr.h.
      * modules/memxor (EXTRA_DIST): Add memxor.h.
      * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
      * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
      * modules/mountlist (EXTRA_DIST): Add mountlist.h.
      * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
      * modules/pathmax (EXTRA_DIST): Add pathmax.h.
      * modules/physmem (EXTRA_DIST): Add physmem.h.
      * modules/posixtm (EXTRA_DIST): Add posixtm.h.
      * modules/posixver (EXTRA_DIST): Add posixver.h.
      * modules/quote (EXTRA_DIST): Add quote.h.
      * modules/quotearg (EXTRA_DIST): Add quotearg.h.
      * modules/readtokens (EXTRA_DIST): Add readtokens.h.
      * modules/readutmp (EXTRA_DIST): Add readutmp.h.
      * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c regex_internal.h regexec.c.
      * modules/safe-read (EXTRA_DIST): Add safe-read.h.
      * modules/safe-write (EXTRA_DIST): Add safe-write.h.
      * modules/same (EXTRA_DIST): Add same.h.
      * modules/same-inode (EXTRA_DIST): Add same-inode.h.
      * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
      * modules/savedir (EXTRA_DIST): Add savedir.h.
      * modules/sha1 (EXTRA_DIST): Add sha1.h.
      * modules/sig2str (EXTRA_DIST): Add sig2str.h.
      * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
      * modules/stat-time (EXTRA_DIST): Add stat-time.h.
      * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
      * modules/strdup (EXTRA_DIST): Add strdup.h.
      * modules/strftime (EXTRA_DIST): Add strftime.h.
      * modules/strndup (EXTRA_DIST): Add strndup.h.
      * modules/strnlen (EXTRA_DIST): Add strnlen.h.
      * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
      * modules/time_r (EXTRA_DIST): Add time_r.h.
      * modules/timespec (EXTRA_DIST): Add timespec.h.
      * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
      * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
      * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
      * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
      * modules/userspec (EXTRA_DIST): Add userspec.h.
      * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
      * modules/utimens (EXTRA_DIST): Add utimens.h.
      * modules/xalloc (EXTRA_DIST): Add xalloc.h.
      * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
      * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
      * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
      * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
      * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
      * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
      * modules/yesno (EXTRA_DIST): Add yesno.h.
      +
      * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
      * m4/dev-ino.m4, same-inode.m4: Remove.
      +
      * m4/_inttypes_h.m4 (gl_INTTYPES_H):
      * m4/acl.m4 (AC_FUNC_ACL):
      * m4/backupfile.m4 (gl_BACKUPFILE):
      * m4/c-strtod.m4 (gl_C99_STRTOLD):
      * m4/canon-host.m4 (gl_CANON_HOST):
      * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
      * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
      * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
      * m4/cloexec.m4 (gl_CLOEXEC):
      * m4/close-stream.m4 (gl_CLOSE_STREAM):
      * m4/closeout.m4 (gl_CLOSEOUT):
      * m4/dirfd.m4 (gl_FUNC_DIRFD):
      * m4/dirname.m4 (gl_DIRNAME):
      * m4/exclude.m4 (gl_EXCLUDE):
      * m4/exitfail.m4 (gl_EXITFAIL):
      * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
      * m4/file-type.m4 (gl_FILE_TYPE):
      * m4/filemode.m4 (gl_FILEMODE):
      * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
      * m4/fpending.m4 (gl_FUNC_FPENDING):
      * m4/fprintftime.m4 (gl_FPRINTFTIME):
      * m4/fts.m4 (gl_FUNC_FTS):
      * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
      * m4/getdate.m4 (gl_GETDATE):
      * m4/gethrxtime.m4 (gl_GETHRXTIME):
      * m4/getpagesize.m4 (gl_GETPAGESIZE):
      * m4/getpass.m4 (gl_FUNC_GETPASS):
      * m4/gettime.m4 (gl_GETTIME):
      * m4/getugroups.m4 (gl_GETUGROUPS):
      * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
      * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
      * m4/hard-locale.m4 (gl_HARD_LOCALE):
      * m4/hash.m4 (gl_HASH):
      * m4/idcache.m4 (gl_IDCACHE):
      * m4/lchmod.m4 (gl_FUNC_LCHMOD):
      * m4/lchown.m4 (gl_FUNC_LCHOWN):
      * m4/long-options.m4 (gl_LONG_OPTIONS):
      * m4/lstat.m4 (gl_FUNC_LSTAT):
      * m4/md5.m4 (gl_MD5):
      * m4/memcasecmp.m4 (gl_MEMCASECMP):
      * m4/memcoll.m4 (gl_MEMCOLL):
      * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
      * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
      * m4/memxor.m4 (gl_MEMXOR):
      * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
      * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
      * m4/modechange.m4 (gl_MODECHANGE):
      * m4/mountlist.m4 (gl_MOUNTLIST):
      * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
      * m4/openat.m4 (gl_FUNC_OPENAT):
      * m4/pathmax.m4 (gl_PATHMAX):
      * m4/physmem.m4 (gl_PHYSMEM):
      * m4/posixtm.m4 (gl_POSIXTM):
      * m4/posixver.m4 (gl_POSIXVER):
      * m4/quote.m4 (gl_QUOTE):
      * m4/quotearg.m4 (gl_QUOTEARG):
      * m4/readtokens.m4 (gl_READTOKENS):
      * m4/readutmp.m4 (gl_READUTMP):
      * m4/regex.m4 (gl_REGEX):
      * m4/safe-read.m4 (gl_SAFE_READ):
      * m4/safe-write.m4 (gl_SAFE_WRITE):
      * m4/same.m4 (gl_SAME):
      * m4/save-cwd.m4 (gl_SAVE_CWD):
      * m4/savedir.m4 (gl_SAVEDIR):
      * m4/settime.m4 (gl_SETTIME):
      * m4/sha1.m4 (gl_SHA1):
      * m4/sig2str.m4 (gl_FUNC_SIG2STR):
      * m4/stat-macros.m4 (gl_STAT_MACROS):
      * m4/stat-time.m4 (gl_STAT_TIME):
      * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
      * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
      * m4/strdup.m4 (gl_FUNC_STRDUP):
      * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
      * m4/strndup.m4 (gl_FUNC_STRNDUP):
      * m4/strnlen.m4 (gl_FUNC_STRNLEN):
      * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
      * m4/time_r.m4 (gl_TIME_R):
      * m4/timespec.m4 (gl_TIMESPEC):
      * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
      * m4/unlinkdir.m4 (gl_UNLINKDIR):
      * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
      * m4/userspec.m4 (gl_USERSPEC):
      * m4/utimecmp.m4 (gl_UTIMECMP):
      * m4/utimens.m4 (gl_UTIMENS):
      * m4/xalloc.m4 (gl_XALLOC):
      * m4/xgetcwd.m4 (gl_XGETCWD):
      * m4/xnanosleep.m4 (gl_XNANOSLEEP):
      * m4/xreadlink.m4 (gl_XREADLINK):
      * m4/xstrtod.m4 (gl_XSTRTOD):
      * m2/yesno.m4 (gl_YESNO):
      Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
      to get the necessary .h files and whatnot.
      901bc47c
  20. 30 Oct, 2005 1 commit
    • Paul Eggert's avatar
      * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local · a1a1e584
      Paul Eggert authored
      variables to suggest the intended function of the PATH_MAX check.
      
      Trivial changes to support SCO systems.
      * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
      as PATH_MAX.
      * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
      where __ptr is null when no I/O is pending.
      a1a1e584
  21. 02 Oct, 2005 1 commit
    • Paul Eggert's avatar
      Sync from coreutils. · 9db27e41
      Paul Eggert authored
      * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h, getpass.c
      mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
      * lib/.cvsignore: Add fts.h, search.h, t-fpending.
      * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
      bother returning ENOSYS if settimeofday or stime fails; just let
      them return whatever errno they want to return.
      * lib/utimens.c: Include unistd.h, for dup2.
      (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
      (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
      * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
      * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H'.
      * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
      Remove AT_FDCWD test.
      Do not consume the fd unless successful.
      * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
      * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
      block, so that we don't even try to compile it if settimeofday is
      available.  This works around a compilation failure on OSF1 V5.1,
      due to stime requiring a `long int*' while tv_sec is `int'.
      * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
      * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
      defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
      ULLONG_MAX doesn't work with 2.7.2.1.
      * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
      from glibc-2.2.5 that fails for read-only files.
      * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
      against `yes', rather than just testing for nonempty.
      9db27e41
  22. 21 Mar, 2005 1 commit
  23. 18 Jan, 2005 1 commit
    • Paul Eggert's avatar
      * modules/chdir-long, modules/openat: New files. · d9203c96
      Paul Eggert authored
      * modules/save-cwd (Depends-on): Depend on chdir-long.
      (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
      * lib/save-cwd.c: Include "save-cwd.h" before other include files.
      (O_DIRECTORY): Remove; not needed here, since "." must be
      a directory.  All uses removed.
      (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
      universal on Suns, and we also need to test for IRIX.
      Revamp code to use 'if' rather than '#if'.
      Avoid unnecessary comparison of cwd->desc to 0.
      
      Change the name of the robust chdir function from chdir to chdir_long.
      * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
      (restore_cwd): Use chdir_long, not chdir.
      * lib/chdir-long.c: Renamed from chdir.c.
      * lib/chdir-long.h: Renamed from chdir.h.
      [!defined PATH_MAX]: Define chdir_long to chdir on systems like the Hurd.
      
      * m4/chdir-long.m4, openat.m4: New files.
      * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
      save-cwd.h.  Add AC_LIBOBJ for save-cwd.
      d9203c96