Jim Meyering
d0f21b4a55
Prompt once again for `mv -i A B' when A and B are hard links
...
to the same file. This fixes a bug introduced by my 2003-04-04
(coreutils-5.0.1) change.
(abandon_move): New function, factored out of
copy_internal, now that this code is being used from two places.
(copy_internal): Perform the same interactive-related test for
whether it's alright to proceed and (usually) overwrite the
destination file.
2005-03-11 09:36:52 +00:00
Jim Meyering
5bb81adac0
(long_time_expected_width): Use x2nrealloc, not alloca,
...
so format string abuse cannot provoke stack overflow.
(print_long_format): Likewise.
2005-03-10 12:07:31 +00:00
Jim Meyering
82477b8efb
Don't segfault for a long header date string, e.g.,
...
echo a|pr -D +%9999999A
(init_header): Use x2nrealloc, rather than alloca.
Don't bother with fixed-sized initial buffer; always use x*alloc.
2005-03-10 08:51:49 +00:00
Jim Meyering
f83e17f928
(tostring, printv): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1.
2005-03-10 08:02:24 +00:00
Jim Meyering
075a99ffcf
(init_header): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1.
2005-03-10 07:58:34 +00:00
Jim Meyering
5ccd8ce31d
.
2005-03-09 23:16:07 +00:00
Paul Eggert
87d42256b3
Include intprops.h.
...
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND): Remove;
they are now defined in intprops.h.
2005-03-09 19:27:02 +00:00
Jim Meyering
c4ce40a9a3
.
2005-03-09 10:17:30 +00:00
Paul Eggert
02019487ea
(usage): Redo to match recent documentation changes.
...
Don't bother documenting which usages are GNU extensions; the list
wasn't correct, and is better left to the printed manual anyway.
2005-03-08 22:20:11 +00:00
Jim Meyering
048a5ce26c
Factor out column-count processing.
...
Include "inttostr.h".
(parse_column_count): New function.
(main): Use the new function for both old-style, -9, and long,
--columns=-9, options.
2005-03-06 19:34:07 +00:00
Jim Meyering
e098a29c75
Remove `register' keyword.
2005-03-06 16:34:01 +00:00
Jim Meyering
6eb01f34a6
Remove `register' keyword.
2005-03-06 16:33:20 +00:00
Jim Meyering
af20319737
Remove `register' keyword.
2005-03-06 16:31:51 +00:00
Jim Meyering
947457a331
Remove `register' keyword.
2005-03-06 16:30:45 +00:00
Jim Meyering
ea510d7e41
Remove `register' keyword.
2005-03-06 16:26:38 +00:00
Jim Meyering
bd2147af16
Remove `register' keyword.
2005-03-06 16:25:26 +00:00
Jim Meyering
2a005547b7
Remove register keyword.
2005-03-06 16:23:27 +00:00
Jim Meyering
5179365337
Remove register keyword.
2005-03-06 16:20:43 +00:00
Jim Meyering
74e3e13b3a
Remove register keyword.
2005-03-06 16:19:44 +00:00
Jim Meyering
56553ab2e1
.
2005-03-01 20:27:24 +00:00
Paul Eggert
d8adc99dc1
(nanosec_libs): Remove $(LIB_XANOSLEEP); no longer needed.
2005-03-01 17:28:49 +00:00
Jim Meyering
4303f04545
(copy_internal): Change test of source type from !S_ISREG to S_ISLNK.
...
Reported by Paul Eggert in
http://lists.gnu.org/archive/html/bug-coreutils/2004-10/msg00050.html .
2005-03-01 12:27:47 +00:00
Paul Eggert
9ba7355604
Regenerate.
2005-02-26 07:42:19 +00:00
Paul Eggert
5677f3f7d9
Regenerate.
2005-02-22 07:21:57 +00:00
Paul Eggert
df066e2695
(dd_LDADD, shred_LDADD): Add $(LIB_GETHRXTIME).
...
(nanosec_libs): Add $(LIB_XNANOSLEEP). Needed for newer GNU/Linux
hosts with clock_gettime.
2005-02-22 07:10:07 +00:00
Paul Eggert
7244117ba2
Regenerate.
2005-02-21 08:26:21 +00:00
Paul Eggert
3178b01865
(time): Remove obsolete decl.
...
(main): Gettime now returns void.
2005-02-21 08:17:00 +00:00
Paul Eggert
2ec39c3ada
Include gethrxtime.h.
...
(isaac_seed): Use gethrxtime rather than a mishmash.
2005-02-21 08:15:45 +00:00
Paul Eggert
70c98ff92d
(time): Remove obsolete decl.
...
(get_current_time): gettimeofday always returns 0, so don't
check its result.
2005-02-21 08:15:10 +00:00
Paul Eggert
c339d6843e
Include gethrxtime.h, xtime.h.
...
(start_time): Now of type xtime_t, not struct timespec.
(print_stats, main): Use gethrxtime rather than gettime.
2005-02-21 08:14:40 +00:00
Paul Eggert
1b29344371
(main): gettime now returns void.
2005-02-21 08:14:13 +00:00
Paul Eggert
7fd8ef9cc1
(dd_LDADD, shred_LDADD, nanosec_libs):
...
Remove $(LIB_CLOCK_GETTIME). These functions now use
gethrxtime instead.
2005-02-21 08:13:12 +00:00
Paul Eggert
e0cc736489
(enum RCH_status): Remove trailing comma,
...
as it's not valid in standard C89.
2005-02-21 06:57:45 +00:00
Jim Meyering
384e3830bc
.
2005-02-17 20:28:22 +00:00
Jim Meyering
4e49c3974f
regenerate
2005-02-15 12:29:22 +00:00
Jim Meyering
3695d0212a
(human_fstype): Add case/definition for S_MAGIC_JFS
...
so that file systems of type `jfs' are recognized as such.
2005-02-15 12:23:40 +00:00
Jim Meyering
b353489b18
regen for XFS
2005-02-15 09:01:34 +00:00
Jim Meyering
9fea5777f3
(human_fstype): Add case/definition for S_MAGIC_XFS
...
so that file systems of type `xfs' are recognized as such.
2005-02-15 08:57:59 +00:00
Jim Meyering
83f00235d7
(NZERO) [NZERO == 0]: Undefine and define to 20,
...
to work around the invalid definition from Darwin 7.7.0.
2005-02-15 08:20:49 +00:00
Paul Eggert
47a3ba5c45
(mergefps): Use binary search rather than linear one
...
when comparing new line to lines already in main memory.
2005-02-14 18:04:22 +00:00
Jim Meyering
017b3436b8
.
2005-02-13 08:15:24 +00:00
Jim Meyering
4738975f66
.
2005-02-09 09:58:07 +00:00
Jim Meyering
045fbb6d7c
* src/copy.c (valid_options): Add an assertion that
...
not both hard_link and symbolic_link are set.
2005-02-09 09:01:44 +00:00
Paul Eggert
058d7358ed
(STATFS_FRSIZE): New macro.
...
(print_statfs): Use it to implement %S.
(do_statfs): Change default formats to include %S.
(usage): Document %S (versus %s).
2005-02-08 21:38:53 +00:00
Paul Eggert
9440e98dd4
(usage): Normalize terminology, capitalization, and sort order to
...
match manual. Say that %s is the "Fundamental block size", since that
is what POSIX says.
2005-02-08 20:45:03 +00:00
Paul Eggert
2b9a84b4dc
Include "memrchr.h".
...
(memrchr) [!HAVE_DECL_MEMRCHR]: Remove decl.
2005-02-03 21:34:34 +00:00
Jim Meyering
708cc3e146
(elide_tail_bytes_pipe): Correct wording in diagnostic.
2005-01-30 17:57:24 +00:00
Jim Meyering
f63d36ff61
Remove unnecessary parentheses in #if directives.
2005-01-30 14:58:11 +00:00
Jim Meyering
9c3cb2ad2e
[VSWTCH]: Some systems, like Cygwin, use VSWTC
...
instead of VSWTCH, for use with CSWTCH.
2005-01-30 14:50:22 +00:00
Jim Meyering
a13d89b58f
.
2005-01-29 14:45:17 +00:00