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. 10 Sep, 2012 2 commits
  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. 01 Jan, 2011 1 commit
  9. 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
  10. 01 Jul, 2010 1 commit
  11. 28 Mar, 2010 1 commit
  12. 01 Jan, 2010 1 commit
  13. 25 Dec, 2009 1 commit
  14. 17 Dec, 2009 2 commits
    • Eric Blake's avatar
      fcntl: port portions of fcntl to mingw · 021c8619
      Eric Blake authored
      Borrow ideas from dup_cloexec and dup3 to implement F_DUPFD and
      F_DUPFD_CLOEXEC.  Support querying the inheritance status via
      F_GETFD, but for now, no support for changing with F_SETFD.
      The remaining portions of fcntl fail with EINVAL.
      
      * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
      * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
      replacement for mingw.
      * modules/fcntl (Description): Update.
      (Depends-on): Add dup2.
      * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
      * modules/fcntl-h (Makefile.am): Substitute it.
      * lib/fcntl.in.h (fcntl): Update declaration.
      (F_DUPFD, F_GETFD): New macros, when needed.
      * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
      * doc/posix-functions/fcntl.texi (fcntl): Likewise.
      * tests/test-fcntl.c (check_flags, main): Enhance test for items
      we now guarantee.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      021c8619
    • Eric Blake's avatar
      fcntl: support F_DUPFD_CLOEXEC on systems with fcntl · 38f87b03
      Eric Blake authored
      Implement F_DUPFD_CLOEXEC.  The unit test still fails on systems
      with other fcntl bugs (such as cygwin 1.5 mishandling F_DUPFD,
      or mingw lacking fcntl altogether).  Passes on Linux, both with
      and without kernel support, and on cygwin 1.7.
      
      * modules/fcntl (Files): List new files.
      (configure.ac): Run a test.
      * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
      * lib/fcntl.c (rpl_fcntl): Likewise.
      * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
      (gl_FCNTL_H): Always replace fcntl.h.
      * modules/fcntl-h (Makefile.am): Substitute witnesses.
      * lib/fcntl.in.h (fcntl): Declare replacement.
      (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
      needed, plus a witness.
      * doc/posix-functions/fcntl.texi (fcntl): Document this.
      * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
      * tests/test-fcntl.c: New file.
      * modules/fcntl-tests: Likewise.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      38f87b03
  15. 10 Dec, 2009 1 commit
  16. 18 Oct, 2009 1 commit
  17. 22 Sep, 2009 1 commit
  18. 19 Sep, 2009 1 commit
    • Eric Blake's avatar
      openat: fix openat bugs on Solaris 9 · 4c45e93c
      Eric Blake authored
      openat(fd,"file/",O_RDONLY) mistakenly succeeded.
      
      * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
      * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
      * modules/openat (Depends-on): Add open.
      * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
      * modules/fcntl-h (Makefile.am): Substitute it.
      * lib/fcntl.in.h (openat): Declare replacement.
      * doc/posix-functions/openat.texi (openat): Document this.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      4c45e93c
  19. 06 Sep, 2009 1 commit
  20. 04 Sep, 2009 1 commit
    • Eric Blake's avatar
      openat: declare in POSIX headers · 52c658e9
      Eric Blake authored
      * NEWS: Mention this.
      * modules/openat (configure.ac): Declare witnesses.
      (Depends-on): Add fcntl-h, sys_stat, unistd.
      (Include): Mention correct headers.
      * modules/fcntl-h (Depends-on): Add link-warning.
      (Files): Add openat.m4.
      (Makefile.am): Substitute witnesses.
      * modules/sys_stat (Files, Makefile.am): Likewise.
      * modules/unistd (Files, Makefile.am): Likewise.
      * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
      (gl_OPENAT_DEFAULTS): New macro.
      * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
      * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
      * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
      (SYS_STAT_H): Remove unused variable.
      * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
      * lib/fcntl--.h (includes): Remove unneeded header.
      * lib/openat-safer.c (includes): Likewise.
      * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
      (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
      appropriate headers.
      (__OPENAT_PREFIX): Delete.
      * lib/fcntl.in.h (openat): Provide declaration.
      (AT_FDCWD): Fix Solaris bug.
      (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
      * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
      * lib/fchmodat.c (includes):  Adjust to find declaration.
      * lib/fchownat.c (includes): Likewise.
      * lib/mkdirat.c (includes): Likewise.
      * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
      still visible.
      Signed-off-by: default avatarEric Blake <ebb9@byu.net>
      52c658e9
  21. 14 Apr, 2009 1 commit
  22. 12 Apr, 2009 1 commit
  23. 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
  24. 07 Oct, 2007 1 commit
  25. 21 Jun, 2007 1 commit
    • Paul Eggert's avatar
      * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST · b6a9d33e
      Paul Eggert authored
      INCLUDE_NEXT.
      (gl_CHECK_NEXT_HEADERS): New macro.
      * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
      the obsolescent gl_ABSOLUTE_HEADER.
      * m4/float_h.m4 (gl_FLOAT_H): Likewise.
      * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
      * m4/math_h.m4 (gl_MATH_H): Likewise.
      * m4/search_h.m4 (gl_SEARCH_H): Likewise.
      * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
      * m4/stdint.m4 (gl_STDINT_H): Likewise.
      * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
      * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
      * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
      * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
      * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
      * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
      * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
      * m4/wchar.m4 (gl_WCHAR_H): Likewise.
      * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
      * m4/inttypes.m4 (gl_INTTYPES_H): Define
      _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
      builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
      * m4/stdint.m4 (gl_STDINT_H): Likewise, for
      _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
      * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
      rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
      * lib/float_.h: Likewise.
      * lib/inttypes_.h: Likewise.
      * lib/math_.h: Likewise.
      * lib/search_.h: Likewise.
      * lib/signal_.h: Likewise.
      * lib/stdint_.h: Likewise.
      * lib/stdio_.h: Likewise.
      * lib/stdlib_.h: Likewise.
      * lib/string_.h: Likewise.
      * lib/sys_stat_.h: Likewise.
      * lib/sys_time_.h: Likewise.
      * lib/time_.h: Likewise.
      * lib/unistd_.h: Likewise.
      * lib/wchar_.h: Likewise.
      * lib/wctype_.h: Likewise.
      * modules/fcntl (Depends-on): Depend on absolute-header, not
      include_next.
      (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
      HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
      * modules/float: Likewise.
      * modules/inttypes: Likewise.
      * modules/math: Likewise.
      * modules/search: Likewise.
      * modules/signal: Likewise.
      * modules/stdint: Likewise.
      * modules/stdio: Likewise.
      * modules/stdlib: Likewise.
      * modules/string: Likewise.
      * modules/sys_stat: Likewise.
      * modules/sys_time: Likewise.
      * modules/time: Likewise.
      * modules/unistd: Likewise.
      * modules/wchar: Likewise.
      * modules/wctype: Likewise.
      * modules/sys_stat: Change maintainer to "all".
      * modules/unistd: Likewise.
      b6a9d33e
  26. 25 Nov, 2006 1 commit
  27. 05 Oct, 2006 1 commit
    • Paul Eggert's avatar
      [lib/ChangeLog] · 2e749d98
      Paul Eggert authored
      * fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
      we now test for that separately.
      * fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
      rather than O_NOFOLLOW, when testing whether it's possible to
      avoid a race condition reliably.
      * savewd.c (savewd_chdir): Likewise.
      [m4/ChangeLog]
      * fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
      of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
      O_NOATIME works.
      2e749d98
  28. 25 Sep, 2006 1 commit
  29. 28 Aug, 2006 1 commit
    • Paul Eggert's avatar
      * lib/fcntl_.h: New file. · e9255b85
      Paul Eggert authored
      * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
      the fcntl module.
      * lib/dirchownmod.c: Likewise.
      * lib/fts.c: Likewise.
      * m4/fcntl_h.m4: New file.
      * modules/fcntl: New file.
      * modules/chdir-safer (Depends-on): Add fcntl.
      * modules/fts: Likewise.
      * modules/mkdir-p: Likewise.
      e9255b85