1. 01 Jan, 2018 1 commit
  2. 22 Apr, 2017 1 commit
    • Paul Eggert's avatar
      parse-datetime: overflow and debug cleanups · 30784c47
      Paul Eggert authored
      This long patch was triggered by this bug report from Ruediger Meier:
      I fixed the bug he noted, then found some others nearby, and then
      still others.  Oh my goodness, there were a lot of bugs.  I cleaned
      up some of the code to follow GNU standards while I was at it.
      * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
      use c_isdigit.
      (EPOCH_YEAR): Remove; unused.
      (TM_YEAR_BASE): Now an enum rather than a macro.
      (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
      time zone offset, since timezones now are in terms of seconds and
      not minutes.
      (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
      appropriate.  Verify that intmax_t is wide enough.
      (time_overflow, time_zone_str): New functions, used to deal
      more reliably with overflow.
      (dbg_printf): Add printf attribute, to help catch integer width errors.
      (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
      (%union, to_hour, yylex, parse_datetime2):
      Use intmax_t instead of long int and/or long_time_t.
      All uses changed.
      (DBGBUFSIZE): Move earlier.
      (relative_time, set_hhmmss, parser_control):
      Just use int for nanoseconds and for time zones; that’s wide enough.
      (parser_control): Use bool for members like year_seen that can
      be booleans instead of counters.  All uses changed.
      Remove debug_default_input_timezone; no longer needed.
      All uses removed.
      (apply_relative_time): Return a bool overflow flag.
      All uses changed to check for overflow.
      (apply_relative_time, zone, date, relunit, relunit_snumber)
      (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
      Check for integer overflow portably.
      (str_days): Use just int for N, as it’s wide enough.
      Prefer 2D char arrays to arrays of char * when it looks like
      2D is a win on typical platforms.
      Prefer snprintf to strncpy/strncat, for simplicity;
      all buffers are smaller than INT_MAX so this is safe.
      (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
      (debug_print_current_time): Don’t assume tv_nsec is of type long,
      as this is not true on x32.  Output "." before any nanoseconds.
      (debug_print_current_time, parse_datetime2):
      Output local zones using a more-consistent format.
      (debug_print_current_time, date, parse_datetime2):
      (main) [TEST]:
      Don’t assume time_t is the same width as long.
      (print_rel_part): New function, replacing ...
      (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
      (debug_print_relative_time): Use bool for boolean.
      (local_zone): dsts_seen now counts only tDST instances.
      (date): Fix printf of size_t to use %z.  Do not assume numeric
      tokens have negative values merely because the context suggests
      a syntax with "-" separating tokens.
      (time_zone_hhmm): Return bool success indicator, which checks for
      overflow.  Store result into PC->time_zone instead.  All callers
      (tm_year_str): New function.  Return a bool success indicator and
      store the result into a buffer.  All callers changed.  Output the
      numerically correct string even if adding 1900 to the year would
      (to_tm_year): New function, replacing the old to_year.  All
      callers changed.
      (tm_diff): Sync with glibc.
      (lookup_word): Use to_uchar instead of doing it by hand.
      (TZBUFSIZE): Now local to the only function that needs it.
      (debug_strfdatetime): Simplify now that time zones are int seconds.
      (debug_strfdate): Work even if tm_year + 1900 would overflow.
      (get_effective_timezone): Remove.  All uses removed.
      (parse_datetime2): Use fprintf in pieces instead of snprintfing
      to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
      localtime succeeds.  Use tm_gmtoff if available.  Simplify how
      ‘goto fail;’ works in conjunction with the ‘ok’ flag.
      * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
      TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
      * modules/parse-datetime (Depends-on): Add inttypes.
  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'.
  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'.
  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'.
  6. 01 Jan, 2014 1 commit
  7. 01 Jan, 2013 1 commit
  8. 30 Nov, 2012 1 commit
    • Paul Eggert's avatar
      parse-datetime, parse-duration: no 'static inline' · fe23fd49
      Paul Eggert authored
      * lib/parse-datetime.y (to_uchar):
      * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
      Now static, not static inline.
      * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
      * modules/parse-duration (configure.ac):
      Do not require AC_C_INLINE.
  9. 04 Jul, 2012 1 commit
    • Jim Meyering's avatar
      parse-datetime: fix failure to diagnose invalid input · d8f90adf
      Jim Meyering authored
      date -d "$(printf '\xb0')" would print 00:00:00 with today's date
      rather than diagnosing the invalid input.  Now it reports this:
      date: invalid date '\260'
      * lib/parse-datetime.y (to_uchar): Define.
      (yylex): Don't sign-extend "other" bytes.
      * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
      Thanks to Bruno Haible for the patch to this file.
      * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
      Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
  10. 01 Jan, 2012 1 commit
  11. 30 Jan, 2011 1 commit
    • Paul Eggert's avatar
      TYPE_MAXIMUM: avoid theoretically undefined behavior · ee9e39c0
      Paul Eggert authored
      * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
      negative number, which the C Standard says has undefined behavior.
      In practice this is not a problem, but might as well do it by the book.
      Reported by Rich Felker and Eric Blake; see
      * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
      * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
      * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
      * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
      * m4/stdint.m4 (gl_STDINT_H): Likewise.
      * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
  12. 01 Jan, 2011 1 commit
  13. 05 Oct, 2010 1 commit
    • Eric Blake's avatar
      parse-datetime: better name than get_date · 2bb63bfb
      Eric Blake authored
      * NEWS: Reword the deprecation notice.
      * modules/get_date: Rename to modules/parse-datetime.
      * modules/get_date-tests: Rename to modules/parse-datetime-tests.
      * m4/get_date.m4: Rename to m4/parse-datetime.m4.
      * lib/get_date.y: Rename to lib/parse-datetime.y.
      * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
      * doc/get_date.texi: Rename to doc/parse-datetime.texi.
      * doc/getdate.texi: Provide fallback wrapper.
      * lib/getdate.h: Move guts, and wrap...
      * lib/parse-datetime.h: ...new file.
      * lib/parse-datetime.y (get_date): Rename...
      (parse_datetime): ...to this.
      * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
      (gl_PARSE_DATETIME): ...to this.
      * doc/posix-functions/getdate.texi (get_date): Provide fallback
      * modules/getdate (Files): Provide fallback docs and header.
      (Notice, Depends-on): Update references.
      * tests/test-parse-datetime.c: Likewise.
      * DEPENDENCIES: Likewise.
      * MODULES.html.sh (Date and time <time.h>): Likewise.
      * doc/parse-datetime.texi (Date input formats)
      (Authors of parse_datetime): Likewise.
      * modules/parse-datetime (Files, configure.ac, Makefile.am)
      (Include): Likewise.
      * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
      * gnulib-tool: Likewise.
      * m4/bison.m4 (gl_BISON): Likewise.
      Suggested by Bruno Haible.
      Signed-off-by: 's avatarEric Blake <eblake@redhat.com>
  14. 30 Sep, 2010 2 commits
    • Bruno Haible's avatar
      More renaming from 'getdate' to 'get_date'. · a88d2561
      Bruno Haible authored
      * doc/get_date.texi: Renamed from doc/getdate.texi.
      * modules/get_date (Files): Update.
      * MODULES.html.sh (Date and time <time.h>): Update.
      * DEPENDENCIES: Update.
      * gnulib-tool: Update comment.
      * m4/bison.m4 (gl_BISON): Likewise.
      * m4/get_date.m4 (gl_GET_DATE): Likewise.
    • Eric Blake's avatar
      getdate: rename to get_date · 9ff86bc1
      Eric Blake authored
      Note: getdate.h is not renamed, to minimize client impact.
      Besides, whenever we eventually add getdate-posix, we'll
      want to use getdate.m4 and getdate.c for the implementation,
      but don't need to worry about getdate.h since getdate() uses
      <time.h> for its header.
      * modules/getdate: Mark obsolete.  Move old contents...
      * modules/get_date: ...to new module name.
      * modules/getdate-tests: Move...
      * modules/get_date-tests: ...here.
      * m4/getdate.m4: Move...
      * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
      * lib/getdate.y: Move...
      * lib/get_date.y: ...here.
      * tests/test-getdate.c: Move...
      * tests/test-get_date.c: ...here.
      * doc/posix-functions/getdate.texi (getdate): Update name.
      * NEWS: Mention the change.
      Signed-off-by: 's avatarEric Blake <eblake@redhat.com>
  15. 01 Jan, 2010 1 commit
  16. 17 Sep, 2009 1 commit
  17. 10 Sep, 2009 1 commit
    • Ralf Wildenhues's avatar
      Remove obsolete macros from several modules. · 30dccb61
      Ralf Wildenhues authored
      * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
      obsolete Autoconf macros with their modern counterparts.
      * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
      * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
      * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
      * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
      * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
      * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
      * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
      * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
      * m4/poll.m4 (gl_FUNC_POLL): Likewise.
      * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
      * m4/round.m4 (gl_FUNC_ROUND): Likewise.
      * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
      * m4/select.m4 (gl_FUNC_SELECT): Likewise.
      * m4/sockets.m4 (gl_SOCKETS): Likewise.
      * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
      * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
      * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
      * m4/time_r.m4 (gl_TIME_R): Likewise.
      * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
      * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
      * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
      Signed-off-by: 's avatarRalf Wildenhues <Ralf.Wildenhues@gmx.de>
  18. 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
  19. 24 Jun, 2008 1 commit
  20. 22 Sep, 2006 1 commit
    • Ralf Wildenhues's avatar
      * fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable. · e40cf4e4
      Ralf Wildenhues authored
      * getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
      * jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
      also add missing comma that caused broken test.
      * link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
      stdlib.h, for `abort'.
      * ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
      * mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
      include unistd.h if present, for `rmdir'.
      * physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
      * putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
      in the process include standard headers for prototypes.
      * readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
      gets declared on GNU/Linux.
      * rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
      unistd.h, for `rmdir'.
      * time_r.m4 (gl_TIME_R): Avoid unused variables.
  21. 13 Sep, 2006 1 commit
  22. 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.
  23. 05 Jul, 2006 1 commit
    • Paul Eggert's avatar
      * lib/memcasecmp.c: Include <limits.h>. · 4fde4952
      Paul Eggert authored
      (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
      * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
      Don't assume isdigit succeeds only on '0' through '9'.
      * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
      All uses of is_space replaced by isspace.
      * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
      (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
      replaced by isprint etc.
      * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
      * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
      * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
      * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
      * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
      * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
      * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
      rather than AC_CHECK_DECLS for strtoimax and strtoumax.
      * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer needed.
      All uses removed.
      * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
      * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
      * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer needed.
      * m4/getdate.m4 (gl_GETDATE): Likewise.
      * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
      * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
      * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
      * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
      * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
      * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
      * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
      * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
      no longer needed.
      * m4/exclude.m4 (gl_EXCLUDE): Likewise.
      * m4/getdate.m4 (gl_GETDATE): Likewise.
      * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
      * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
      * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
      * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
      * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
  24. 22 Sep, 2005 1 commit
    • Paul Eggert's avatar
      * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro. · 5cc13c0f
      Paul Eggert authored
      (gl_GETDATE): Use it.
      * lib/getdate.y (relative_time): New type.
      (RELATIVE_TIME_0): New constant.
      (parser_control): Use relative_time instead of doing it ourselves.
      (%union): Add new relative_time rel member.
      Now typeless.
      (relunit, relunit_snumber): Now of type rel.
      (zone, rel, relunit, get_date): Adjust to above changes.
  25. 21 Mar, 2005 1 commit
  26. 23 Jan, 2005 1 commit
  27. 24 Dec, 2004 1 commit
  28. 18 Apr, 2004 1 commit
  29. 31 Mar, 2004 1 commit
  30. 09 Sep, 2003 1 commit
  31. 31 Dec, 2002 1 commit