Commit Graph

4108 Commits

Author SHA1 Message Date
Paul Eggert f7e5bc2908 Fix comments and indenting. 2005-03-15 00:44:29 +00:00
Paul Eggert 53d430be4e Sync mktime.c and strtol.c macros from intprops.h. 2005-03-15 00:40:17 +00:00
Paul Eggert 2f82566ff2 * strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
&& HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[].
2005-03-14 23:23:25 +00:00
Jim Meyering e5d16d2b72 *** empty log message *** 2005-03-11 10:04:16 +00:00
Paul Eggert 4d645f3053 Add TYPE_ONES_COMPLEMENT and TYPE_SIGNED_MAGNITUDE, and use
less-tricky TYPE_MINIMUM and TYPE_MAXIMUM.
2005-03-09 23:22:14 +00:00
Jim Meyering f0f31b512f *** empty log message *** 2005-03-09 23:21:10 +00:00
Jim Meyering 9d0f3eeb6c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
so that this module works on systems without fchdir.
2005-03-09 23:21:00 +00:00
Jim Meyering 5ccd8ce31d . 2005-03-09 23:16:07 +00:00
Jim Meyering 4f07deaab6 *** empty log message *** 2005-03-09 23:12:48 +00:00
Jim Meyering d828d15348 (libfetish_a_SOURCES): Remove xstrtol.c and xstrtol.h. 2005-03-09 23:11:19 +00:00
Paul Eggert 707034f696 Factor int-properties macros into a single file, except for
glibc-related files.
2005-03-09 19:26:36 +00:00
Paul Eggert f240872265 Include xstrtol.h first, to test interface.
Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:25:58 +00:00
Paul Eggert 09aa89fc35 Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:25:34 +00:00
Paul Eggert d7506ef9cd Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
(utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
instead of rolling our own expressions.
2005-03-09 19:25:14 +00:00
Paul Eggert 81e7c85bca Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
2005-03-09 19:24:37 +00:00
Paul Eggert 6c5e34b431 Adjust comments to match intprops.h. 2005-03-09 19:24:15 +00:00
Paul Eggert cb675ad062 (TYPE_SIGNED): Remove.
(INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
2005-03-09 19:23:59 +00:00
Paul Eggert bdbdf51a00 Include <signal.h>, intprops.h.
(INT_STRLEN_BOUND): Remove.
2005-03-09 19:23:35 +00:00
Paul Eggert 5fd82cbf0d (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
for consistency with intprops.h.
(time_t_is_integer, twos_complement_arithmetic): Use them.
2005-03-09 19:23:05 +00:00
Paul Eggert 064157578c Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
2005-03-09 19:22:48 +00:00
Paul Eggert 111fada0c3 (LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000. 2005-03-09 19:22:21 +00:00
Paul Eggert 67f958c224 Include intprops.h.
(group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
2005-03-09 19:22:05 +00:00
Paul Eggert 0040b0209c Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND): Remove.
2005-03-09 19:21:43 +00:00
Paul Eggert b3c509e6ae * lib/fts.c: Include intprops.h.
(TYPE_SIGNED): Remove.
2005-03-09 19:21:20 +00:00
Paul Eggert 1c6661af1b Initial revision. 2005-03-09 19:20:59 +00:00
Jim Meyering 72a21d8bfe . 2005-03-09 10:17:51 +00:00
Jim Meyering c4ce40a9a3 . 2005-03-09 10:17:30 +00:00
Jim Meyering fce0021622 More migration to AC_LIBSOURCES/AC_LIBOBJ.
(libfetish_a_SOURCES): Remove two more pairs of files:
cycle-check.c, cycle-check.h and argmatch.c, argmatch.h.
2005-03-09 09:41:58 +00:00
Jim Meyering 7c7007fb8a . 2005-03-09 08:56:50 +00:00
Jim Meyering fed0306054 Don't include "xalloc.h". It's not used. 2005-03-09 08:54:48 +00:00
Paul Eggert c747ee56a7 Remove workaround for nanosleep bug in Linux kernel 2.6.8 or thereabouts. 2005-03-04 06:43:08 +00:00
Jim Meyering 56553ab2e1 . 2005-03-01 20:27:24 +00:00
Paul Eggert 23adaf0bed Don't include gethrxtime.h or xtime.h.
(NANOSLEEP_BUG_WORKAROUND): Remove.
(xnanosleep): Remove the workaround.
2005-03-01 17:25:53 +00:00
Jim Meyering 79ddee707c *** empty log message *** 2005-02-28 10:03:02 +00:00
Jim Meyering db042d2022 (xnanosleep): Work around bug in Linux-2.6.8.1's
nanosleep whereby it fails without setting errno upon being resumed
after being suspended.
2005-02-28 10:02:58 +00:00
Paul Eggert 9ba7355604 Regenerate. 2005-02-26 07:42:19 +00:00
Paul Eggert d37169d9c4 * vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Correct the test for
integer overflow again.
2005-02-26 07:38:14 +00:00
Paul Eggert c8d8d339d3 (VASNPRINTF) [!USE_SNPRINTF]: Correct the test for
integer overflow again.  Actually, neither this nor the 2005-01-23
change fixes any bug on any plausible platform; it's more of a
code-clarity thing.
2005-02-26 07:37:49 +00:00
Paul Eggert f93ba58756 Sync from gnulib. 2005-02-26 07:31:20 +00:00
Paul Eggert 157fdac571 strftime.c cleanup to handle outlandish years. 2005-02-24 00:27:17 +00:00
Paul Eggert 3477139eaa Include <stdbool.h>. Use bool where appropriate, instead of int.
(my_strftime): Do not mishandle years close to INT_MAX, by doing
the right thing even if adding 1900 would overflow.  Similarly
for tm_mon + 1 and tm_yday + 1.
Make %Y always equivalent to %C%y, and similarly for %G and %g.
(DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
(DO_SIGNED_NUMBER): New macro.
(my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
2005-02-24 00:26:55 +00:00
Paul Eggert 5677f3f7d9 Regenerate. 2005-02-22 07:21:57 +00:00
Paul Eggert ff35a3ca2b Fix clock_gettime library access problem on recent GNU/Linux systems. 2005-02-22 07:19:43 +00:00
Paul Eggert ba8ad9a1e6 (libfetish_a_SOURCES): Remove xnanosleep.c,
xnanosleep.h; now done by ../m4/xnanosleep.m4 automatically.
2005-02-22 07:08:43 +00:00
Paul Eggert 7244117ba2 Regenerate. 2005-02-21 08:26:21 +00:00
Paul Eggert 10ca18d561 Describe recent changes to use realtime clocks if available,
when appropriate; also, gettime now returns void.
2005-02-21 08:20:15 +00:00
Paul Eggert 13aa6d899c Include xtime.h and gethrxtime.h, not xalloc.h.
(timespec_subtract): Remove.
(NANOSLEEP_BUG_WORKAROUND): New constant.
(xnanosleep): Use gethrxtime rather than gettime; this simplifies
things considerably.  Use it only on GNU/Linux hosts, since the
workaround shouldn't be needed elsewhere.
2005-02-21 08:10:47 +00:00
Paul Eggert 14d0416864 (gettime): Return void, since it always
succeeds now.  All uses changed.
2005-02-21 08:10:11 +00:00
Paul Eggert dfefe8e5de (gettime) Return void, since it always
succeeds now.  All uses changed.
[HAVE_NANOTIME]: Prefer nanotime.
Assume gettimeofday succeeds, as POSIX requires.
Assime time () succeeds, since other code already does.
2005-02-21 08:09:30 +00:00
Paul Eggert fa5269cf6f (get_date): gettime now returns void, not int. 2005-02-21 08:08:38 +00:00