1. 25 Jan, 2010 1 commit
    • Jim Meyering's avatar
      xstrtoll: new module · 99b70425
      Jim Meyering authored
      * modules/xstrtoll: New file.
      * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
      * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
      * lib/xstrtoll.c, lib/xstrtoull.c: New files.
      ./configure fails if you use this module and lack "long long".
      * modules/xstrtoll-tests: New module.
      * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
      * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
      new init.sh-based test framework.
  2. 01 Jan, 2010 1 commit
  3. 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.
  4. 10 Dec, 2009 1 commit
  5. 13 Jan, 2008 1 commit
  6. 07 Oct, 2007 1 commit
  7. 10 Aug, 2007 1 commit
    • Paul Eggert's avatar
      * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal. · e9c57721
      Paul Eggert authored
      * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
      xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
      depends on it.
      (xstrtol_error): Remove.
      (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
      but with a different signature.
      (ATTRIBUTE_NORETURN, __attribute__): New macros.
      * lib/xstrtol-error.c: Include exitfail.h.
      (xstrtol_fatal): New function, with a different signature from the
      old xstrtol_error, so that the caller need not worry about passing
      in an exit status, or about storage management of the option argument.
      (xstrtol_error): Now a static function.  Redo signature to
      implement xstrtol_fatal.  Output the correct number of hyphens in
      front of the option so that the caller need not worry about
      storage management.
      (N_): New macro.
      (_): Remove; not used now.
      * modules/xstrtol: Depend on getopt.
      * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
      of old STRTOL_FATAL_ERROR macro.
      * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
      of test program.
  8. 08 Aug, 2007 1 commit
    • Eric Blake's avatar
      Move xstrtol messages into gnulib domain, when --pobase is used. · c7110f3b
      Eric Blake authored
      * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
      * lib/xstrtol-error.c (xstrtol_error): ...into new file.
      * modules/xstrtol (Files): Distribute new file.
      * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
      * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
      * tests/test-xstrtol.c: ...into new file.
      * tests/test-xstrtoul.c: Also test xstrtoul.
      * tests/test-xstrtoimax.c: Also test xstrtoimax.
      * tests/test-xstrtoumax.c: Also test xstrtoumax.
      * tests/test-xstrtol.sh: Drive the tests.
      * tests/test-xstrtoimax.sh: Likewise.
      * tests/test-xstrtoumax.sh: Likewise.
      * modules/xstrtol-tests: New module.
      * modules/xstrtoimax-tests: Likewise.
      * modules/xstrtoumax-tests: Likewise.
  9. 06 Aug, 2007 1 commit
    • Paul Eggert's avatar
      * NEWS: Describe interface changes to human, xstrtol. · 0253ee27
      Paul Eggert authored
      * lib/human.h: Include <xstrtol.h>.
      (human_options): Return enum strtol_error, not int.  Remove
      bool arg; take int * instead.
      * lib/human.c: Don't include "gettext.h".
      (_): Remove; no longer used.
      Don't include <xstrtol.h>, since human.h does it.
      (human_options): Adjust to abovementioned interface changes.
      Do not report error to stderr; that's now the caller's
      * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
      interface change.
      * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
      Str, Argument_type_string.  All uses changed.  Put " argument"
      in diagnostics to make them clearer.  Change wording of suffix
      message for clarity.
      (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
      (STRTOL_FATAL_WARN): Remove; no longer used.
      * modules/human (Depends-on): Remove gettext-h.
  10. 26 Jul, 2007 1 commit
  11. 25 Jul, 2007 1 commit
    • Bruno Haible's avatar
      2007-07-25 Jim Meyering <jim@meyering.net> · c03635e1
      Bruno Haible authored
                  Bruno Haible  <bruno@clisp.org>
              * lib/xstrtol.h (_STRTOL_ERROR): Change third argument from a
              localized noun to an option name.
              (STRTOL_FATAL_ERROR, STRTOL_FAIL_WARN): Likewise.
              * lib/human.h (human_options): Insert a third argument.
              * lib/human.h (human_options): Likewise. Pass it to STRTOL_FATAL_ERROR.
  12. 19 Oct, 2006 1 commit
    • Paul Eggert's avatar
      * lib/xstrtol.h: Include gettext.h. · 580c6148
      Paul Eggert authored
      (_STRTOL_ERROR): Wrap English-language formats inside gettext.
      Problem reported by Eric Blake.
      * modules/xstrtol (Depends-on): Add gettext-h.
  13. 21 Aug, 2006 1 commit
    • Paul Eggert's avatar
      Add and change modules to make it easier for coreutils to use · 82ff49b5
      Paul Eggert authored
      * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
      now assume the stdint module.  Do not include inttypes.h.
      * lib/fsusage.h: Likewise.
      * lib/getndelim2.c: Likewise.
      * lib/human.h: Likewise.
      * lib/inttostr.h: Likewise.
      * lib/obstack.c: Likewise.
      * lib/regex_internal.h: Likewise.
      * lib/tempname.c: Likewise.
      * lib/utimecmp.c: Likewise.
      * lib/xstrtol.h: Likewise.
      * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
      * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
      * lib/xtime.h: Likewise.
      Remove files that are no longer needed by their respective modules.
      * m4/obstack.m4: Remove.
      * m4/strerror_r.m4: Remove.
      * m4/uint32_t.m4: Remove.
      * m4/uintptr_t.m4: Remove.
      * m4/ullong_max.m4: Remove.
      * m4/xstrtoimax.m4: Remove.
      * m4/xstrtoumax.m4: Remove.
      * cycle-check.m4 (gl_CYCLE_CHECK): Do not require gl_AC_TYPE_UINTMAX_T,
      gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib dependencies now
      capture this.
      * cycle-check.m4 (gl_CYCLE_CHECK):
      Do not use AC_LIBSOURCES, since gnulib modules now do this.
      * fsusage.m4 (gl_FSUSAGE): Likewise.
      * human.m4 (gl_HUMAN): Likewise.
      * inttostr.m4 (gl_INTTOSTR): Likewise.
      * xstrtol.m4 (gl_XSTRTOL): Likewise.
      * filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
      * filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
      gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
      * human.m4 (gl_HUMAN): Likewise.
      * inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
      * mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
      * strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
      * strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
      * xstrtol (gl_XSTRTOL): Likewise.
      * gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
      * strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
      * strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
      * strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
      * strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
      * human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
      on stdbool.
      * xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
      (gl_PREREQ_XSTRTOUL): Remove.
      * ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
      * posixver.m4: Fix comment since head -1 now works even in POSIX mode.
      * modules/backupfile (Files): Remove m4/d-ino.m4.
      (Depends-on): Add d-ino.
      * modules/cycle-check (Depends-on): Add stdint.
      (lib_SOURCES): Add cycle-check.h.
      * modules/d-ino: New module.
      * modules/d-type: New module.
      * modules/error (Files): Remove m4/strerror_r.m4.
      * modules/filemode (Files): Add m4/st_dm_mode.m4.
      * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
      m4/inttypes_h.m4, m4/uintmax_t.m4.
      (Depends-on): Add stdint.
      (lib_SOURCES): Add fsusage.h.
      * modules/getcwd (Files): Remove d-ino.m4.
      (Depends-on): Add d-ino.
      * modules/getndelim2 (Depends-on): Add stdint.
      * modules/glob (Files): Remove m4/d-type.m4.
      (Depends-on): Add d-type.
      * modules/host-os: New module.
      * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
      m4/inttypes_h.m4, m4/uintmax_t.m4.
      * Depends-on: Add stdint.
      (lib_SOURCES): Add human.h.
      * modules/inttostr (Files): Remove m4/intmax_t.m4,
      m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
      m4/uintmax_t.m4, m4/ulonglong.m4.
      (Depends-on): Add stdint.
      (EXTRA_DIST): Add inttostr.h.
      * modules/lchmod: New module.
      * modules/link-follow: New module.
      * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
      (Depends-on): Add lchmod.
      * modules/mkstemp (Files): Remove m4/ulonglong.m4,
      m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
      (Depends-on): Add stdint.
      * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
      m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
      (Depends-on): Add stdint.
      (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
      * modules/perl: New module.
      * modules/regex (Depends-on): Add stdint.
      * modules/rmdir-errno: New module.
      * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
      (Depends-on): Add stdint.
      * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
      (Depends-on): Add stdint.
      * modules/unlink-busy: New module.
      * modules/utimecmp (Depends-on): Add stdint.
      * modules/uptime: New module.
      * modules/winsz-ioctl: New module.
      * modules/winsz-termios: New module.
      * modules/xnanosleep (Depends-on): Add nanosleep.
      * modules/ullong_max: Remove.
      * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
      (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
      * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
      m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
      (Depends-on): Add inttypes.
      (lib_SOURCES): Add xstrtol.h.
      * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
      (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
      * MODULES.html.sh: Move 'assert' into the assert section.
      Move 'dummy' into the linking section.
      Remove ullong_max.
      Add section for compatibility checks for POSIX:2001 functions,
      and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
      winsz-ioctl, and winsz-termios into it.
      Add lchmod.
      Add top-level Misc section and put host-os, perl, and uptime
      into it.
  14. 14 May, 2005 1 commit
  15. 07 Aug, 2004 1 commit
  16. 24 Jan, 2004 1 commit
  17. 14 Oct, 2003 1 commit
  18. 18 Jun, 2003 1 commit
  19. 06 Jan, 2003 1 commit
  20. 31 Aug, 2001 1 commit
  21. 26 Aug, 2001 1 commit
  22. 18 Apr, 1999 1 commit
    • Jim Meyering's avatar
      (__xstrtol, __strtol, __unsigned): Remove macro decls. · c35eaf64
      Jim Meyering authored
      <inttypes.h>: Include if HAVE_INTTYPES_H.
      (_DECLARE_XSTRTOL): New macro.
      (xstrtol, xstrtoul, xstrtoumax): Declare all three functions, so that
      we need only one include file, not three.
      (_STRTOL_ERROR): Do not undef, as this is no longer needed.
      Reword overflow message so that it's independent of type.
  23. 29 Jun, 1998 1 commit
  24. 21 Dec, 1997 1 commit
  25. 25 Jan, 1997 1 commit
  26. 29 Oct, 1996 3 commits
  27. 17 Oct, 1996 1 commit
  28. 21 Mar, 1995 1 commit
  29. 12 Mar, 1995 1 commit
  30. 27 Jan, 1995 1 commit
  31. 20 Dec, 1994 1 commit