Jim Meyering [Wed, 17 Mar 2004 17:31:15 +0000 (17:31 +0000)]
(touch invocation):
Describe use of fractional seconds.
(date invocation, Options for date): Likewise.
(date invocation): Mention effect of LC_TIME.
(Options for date): Describe new --iso-8601=ns option.
Jim Meyering [Wed, 17 Mar 2004 10:14:17 +0000 (10:14 +0000)]
(touch_LDADD): New macro, since `touch' now needs clock_gettime.
Jim Meyering [Wed, 17 Mar 2004 10:13:50 +0000 (10:13 +0000)]
*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 10:13:45 +0000 (10:13 +0000)]
(gl_GETDATE): Remove time-related stuff.
Require AM_STDBOOL_H and gl_TIMESPEC instead.
Require gl_CLOCK_TIME.
Jim Meyering [Wed, 17 Mar 2004 10:12:39 +0000 (10:12 +0000)]
(gl_CLOCK_TIME): Require AC_GNU_SOURCE.
Jim Meyering [Wed, 17 Mar 2004 10:11:12 +0000 (10:11 +0000)]
*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 10:09:24 +0000 (10:09 +0000)]
*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 10:09:16 +0000 (10:09 +0000)]
Include "getdate.h" first, as we can now
assume C89 and don't need to worry about 'const'.
Similarly, include "unlocked-io.h" near start, not in middle.
Include <limits.h>.
(textint.value): Use long int rather than int.
(textint.digits): Use size_t rather than int.
(BILLION, LOG10_BILLION): New constants.
(parser_control): New member rel_ns. Members day_ordinal,
time_zone, month, day, hour, minutes, rel_year, rel_month,
rel_day, rel_hour, rel_minutes, rel_seconds
are now long int, not int. Member seconds is now struct timespec,
not int. New member timespec_seen. Members dates_seen, days_seen,
local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
not int.
(%union.intval): Now long int, not int.
New member timespec.
(tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
(seconds, signed_seconds, unsigned_seconds): New nonterminals.
(spec): Now is a timespec or an item list.
(timespec, items): New nonterminals.
(time, rel, relunit, number, get_date):
Add support for fractional seconds.
(time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
(gmtime, localtime, mktime): Remove decls; not needed with C89.
(to_hour): First arg is now long int, not int.
(to_year): Returns long int, not int.
Don't treat year -70 like 70.
(tm_diff): Returns long int, not int.
(lookup_word): Use bool instead of int when appropriate.
(yylex): Use size_t for count, not int.
Detect overflow when parsing large integer constants.
Add support for fractions.
(get_date): Make pointers 'const' if possible.
Use more-portable code to detect integer overflow.
(main) [TEST]: Adjust to above changes. Test for localtime failure.
Don't use ctime; it's not reliable if the year has >4 digits.
Jim Meyering [Wed, 17 Mar 2004 10:09:02 +0000 (10:09 +0000)]
Include stdbool.h, and timespec.h instead of
the usual <time.h> dance.
(get_date): Change signature to support fractional time stamps.
All callers changed.
Jim Meyering [Wed, 17 Mar 2004 10:07:19 +0000 (10:07 +0000)]
(enum Time_spec): New enum TIME_SPEC_NS.
(time_spec_string, time_spec, show_date): Support it.
(usage): Remove description of -ITIMESPEC, as it's obsolete and
confusing. Mention --iso-8601=ns.
(batch_convert): getline returns ssize_t, not int.
Jim Meyering [Wed, 17 Mar 2004 10:06:57 +0000 (10:06 +0000)]
(newtime): Now an array of two timespecs, one
for access and one for modification.
(ref_stats): Remove.
(get_reldate): Use get_date's parameter profile.
(touch, main): Adjust to above changes.
(main): Work even if tm_year == INT_MAX (so long as long int is wider).
Use gettime instead of gettimeofday, for new get_date signature.
Jim Meyering [Mon, 15 Mar 2004 15:16:37 +0000 (15:16 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 13:06:09 +0000 (13:06 +0000)]
.
Jim Meyering [Mon, 15 Mar 2004 13:03:19 +0000 (13:03 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 13:03:13 +0000 (13:03 +0000)]
(date invocation): Add missing `C' to %[...] range
in the `Date directives:: ...' menu entry. From Bob Proulx.
Jim Meyering [Mon, 15 Mar 2004 12:03:46 +0000 (12:03 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 12:03:43 +0000 (12:03 +0000)]
(alpha beta major): `Make' the emit_upload_commands
target before updating $(prev_version_file).
Jim Meyering [Mon, 15 Mar 2004 12:02:25 +0000 (12:02 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 12:02:19 +0000 (12:02 +0000)]
Add FIXME comment:
The following don't have `invocation' nodes: [, pinky, shasum, uptime
Jim Meyering [Mon, 15 Mar 2004 09:46:47 +0000 (09:46 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 09:39:02 +0000 (09:39 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 09:11:20 +0000 (09:11 +0000)]
New file, to test for just-fixed bug in date.
See today's change in lib/getdate.y.
Jim Meyering [Mon, 15 Mar 2004 09:02:50 +0000 (09:02 +0000)]
(TESTS): Add date-sec.
Jim Meyering [Mon, 15 Mar 2004 08:37:07 +0000 (08:37 +0000)]
*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 08:37:03 +0000 (08:37 +0000)]
`date --date="21:04 +0100" +%S' would print the seconds value
from the current time, rather than `00'.
For a date string like `10:23 +0100',
set the number of seconds to zero. Reported by Marc Haber.
Jim Meyering [Mon, 15 Mar 2004 08:35:28 +0000 (08:35 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Mar 2004 16:09:32 +0000 (16:09 +0000)]
*** empty log message ***
Jim Meyering [Sun, 14 Mar 2004 16:09:28 +0000 (16:09 +0000)]
(print_changelog_deltas): Use `.sig' suffix for
signature files, not `.asc'. Reported by angico@yahoo.com.
Jim Meyering [Sat, 13 Mar 2004 08:10:53 +0000 (08:10 +0000)]
bump version to 5.3.0
Jim Meyering [Sat, 13 Mar 2004 08:10:13 +0000 (08:10 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 Mar 2004 08:09:58 +0000 (08:09 +0000)]
(do_copy): Tweak wording in a diagnostic.
Suggestion from Karl Berry.
Include "quoatearg.h".
(do_copy): Use quotearg_colon (not quote) for diagnostics
that begin with `"%s:'.
Jim Meyering [Sat, 13 Mar 2004 07:58:55 +0000 (07:58 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 Mar 2004 07:58:45 +0000 (07:58 +0000)]
(usage): Specify that nl uses _basic_ regular expressions.
Jim Meyering [Fri, 12 Mar 2004 19:19:50 +0000 (19:19 +0000)]
.
Jim Meyering [Fri, 12 Mar 2004 19:04:31 +0000 (19:04 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 19:03:46 +0000 (19:03 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 19:03:07 +0000 (19:03 +0000)]
Exit 77 (not 1) if we can't set up for the test.
This was triggered on a Linux-2.2.19 system using a file system
NFS-mounted from some sort of Sun.
Jim Meyering [Fri, 12 Mar 2004 16:00:59 +0000 (16:00 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 16:00:41 +0000 (16:00 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 15:59:20 +0000 (15:59 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 14:07:14 +0000 (14:07 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 14:06:44 +0000 (14:06 +0000)]
Sync with autoconf.
Jim Meyering [Fri, 12 Mar 2004 13:59:39 +0000 (13:59 +0000)]
.
Jim Meyering [Fri, 12 Mar 2004 13:55:52 +0000 (13:55 +0000)]
.
Jim Meyering [Fri, 12 Mar 2004 13:55:28 +0000 (13:55 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 12:04:57 +0000 (12:04 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 12:04:15 +0000 (12:04 +0000)]
(TESTS): Add part-hardlink.
Jim Meyering [Fri, 12 Mar 2004 12:04:02 +0000 (12:04 +0000)]
# Before coreutils-5.2.1, this test would fail.
Jim Meyering [Fri, 12 Mar 2004 11:53:57 +0000 (11:53 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Mar 2004 11:53:46 +0000 (11:53 +0000)]
(src_to_dest_lookup): Add prototype.
Jim Meyering [Fri, 12 Mar 2004 11:53:29 +0000 (11:53 +0000)]
(src_to_dest_lookup): New function.
Jim Meyering [Fri, 12 Mar 2004 11:53:18 +0000 (11:53 +0000)]
Sometimes, when source and destination partition are different,
mv mistakenly fails to preserve a hard link. Reported by IIDA Yosiaki.
When moving a set of N hard-linked files between
partitions, via two or more command line arguments where the
command line argument containing the Nth link contains no other
link to that same file, mv would mistakenly copy the file, rather
than hard-linking it to the other(s). That happens because when the
final link is processed, its link count has been reduced to 1 since
the other links have been `copied' to the destination partition
and the source links have been removed.
(copy_internal): When in move mode, use the source dev/inode
pair to look up destination name even when st_nlink == 1.
Jim Meyering [Thu, 11 Mar 2004 18:58:29 +0000 (18:58 +0000)]
.
Jim Meyering [Thu, 11 Mar 2004 09:25:53 +0000 (09:25 +0000)]
.
Jim Meyering [Thu, 11 Mar 2004 09:25:40 +0000 (09:25 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 18:06:04 +0000 (18:06 +0000)]
Also convert sizes in the 70-79 kB range,
so that this test works with SELinux-enable systems.
Based on a patch from Tim Waugh.
Jim Meyering [Wed, 10 Mar 2004 18:05:56 +0000 (18:05 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 17:57:00 +0000 (17:57 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 17:53:57 +0000 (17:53 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 17:53:50 +0000 (17:53 +0000)]
(Sorting the output): Remove description of
ls's --sort=directory option. ls doesn't accept that option, yet.
Jim Meyering [Wed, 10 Mar 2004 17:53:00 +0000 (17:53 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 17:40:00 +0000 (17:40 +0000)]
.
Jim Meyering [Wed, 10 Mar 2004 17:39:40 +0000 (17:39 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 17:39:34 +0000 (17:39 +0000)]
(invalid-j): New partial test for the above fix.
Jim Meyering [Wed, 10 Mar 2004 10:44:35 +0000 (10:44 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 10:44:31 +0000 (10:44 +0000)]
`join -1 x' would give a misleading diagnostic
(string_to_join_field): Report that a non-numeric field
number is invalid, rather than `so large that it is not representable'.
Jim Meyering [Wed, 10 Mar 2004 10:08:21 +0000 (10:08 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 09:57:29 +0000 (09:57 +0000)]
.
Jim Meyering [Wed, 10 Mar 2004 09:51:30 +0000 (09:51 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 09:51:26 +0000 (09:51 +0000)]
(cp invocation): Improve description of cp's --sparse=WHEN option.
Jim Meyering [Wed, 10 Mar 2004 06:51:09 +0000 (06:51 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Mar 2004 06:50:59 +0000 (06:50 +0000)]
(nl invocation): Specify that these are _basic_
regular expressions (BRE), and add a link to grep's documentation.
Jim Meyering [Mon, 8 Mar 2004 15:06:25 +0000 (15:06 +0000)]
.
Jim Meyering [Mon, 8 Mar 2004 09:56:48 +0000 (09:56 +0000)]
regenerate
Jim Meyering [Mon, 8 Mar 2004 09:54:31 +0000 (09:54 +0000)]
*** empty log message ***
Jim Meyering [Mon, 8 Mar 2004 09:54:28 +0000 (09:54 +0000)]
(Makefile.am): Don't use $<, as it doesn't work with Solaris make.
Jim Meyering [Mon, 8 Mar 2004 09:50:52 +0000 (09:50 +0000)]
*** empty log message ***
Jim Meyering [Mon, 8 Mar 2004 09:44:15 +0000 (09:44 +0000)]
*** empty log message ***
Jim Meyering [Mon, 8 Mar 2004 09:43:56 +0000 (09:43 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Mar 2004 23:25:01 +0000 (23:25 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Mar 2004 17:41:00 +0000 (17:41 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Mar 2004 17:40:56 +0000 (17:40 +0000)]
cp --sparse=always sparse-image-file.img /dev/hda1 could
produce an invalid copy on the destination device.
(copy_reg): Even with --sparse=always, try to
make `holes' only if the destination is a regular file.
Reported by Szakacsits Szabolcs.
Jim Meyering [Sat, 6 Mar 2004 14:45:50 +0000 (14:45 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Mar 2004 08:14:34 +0000 (08:14 +0000)]
*** empty log message ***
Jim Meyering [Fri, 5 Mar 2004 16:57:43 +0000 (16:57 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Mar 2004 22:01:16 +0000 (22:01 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Mar 2004 13:22:17 +0000 (13:22 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Mar 2004 13:14:11 +0000 (13:14 +0000)]
.
Jim Meyering [Thu, 4 Mar 2004 13:13:51 +0000 (13:13 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Mar 2004 13:13:43 +0000 (13:13 +0000)]
(getloadavg): Use `true', not `1'.
Jim Meyering [Thu, 4 Mar 2004 13:08:37 +0000 (13:08 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Mar 2004 13:08:29 +0000 (13:08 +0000)]
(set_cloexec_flag) [ ! (F_GETFD && F_SETFD)]: Return true, not false.
Jim Meyering [Thu, 4 Mar 2004 08:50:58 +0000 (08:50 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Mar 2004 08:50:50 +0000 (08:50 +0000)]
(main): Don't invoke set_cloexec_flag with a file descriptor of -1.
Jim Meyering [Thu, 4 Mar 2004 08:50:34 +0000 (08:50 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Mar 2004 08:49:10 +0000 (08:49 +0000)]
Include <stdbool.h>.
Adjust signature to use `bool' rather than `int'.
Jim Meyering [Thu, 4 Mar 2004 08:42:20 +0000 (08:42 +0000)]
Include "cloexec.h" first, and <unistd.h> before <fcntl.h>.
(set_cloexec_flag): Use bool for booleans. All uses changed.
If F_GETFD returns a negative number (not just -1), report a
failure. Don't use F_SETFD if the flags are already right.
Don't report a failure with F_SETFD unless it returns -1.
Jim Meyering [Wed, 3 Mar 2004 22:06:47 +0000 (22:06 +0000)]
Include "cloexec.h".
(getloadavg): Use set_cloexec_flag instead of manual fcntl call.
Jim Meyering [Wed, 3 Mar 2004 22:06:26 +0000 (22:06 +0000)]
.
Jim Meyering [Wed, 3 Mar 2004 22:06:17 +0000 (22:06 +0000)]
*** empty log message ***