platform/upstream/coreutils.git
25 years ago(BLOCK_SIZE_OPTION, SYNC_OPTION, NO_SYNC_OPTION): Define
Jim Meyering [Thu, 9 Dec 1999 15:43:41 +0000 (15:43 +0000)]
(BLOCK_SIZE_OPTION, SYNC_OPTION, NO_SYNC_OPTION): Define
these and use them instead of `CHAR_MAX + n'.

25 years ago(anonymous enum): Define TIME_OPTION, and ...
Jim Meyering [Thu, 9 Dec 1999 15:39:38 +0000 (15:39 +0000)]
(anonymous enum): Define TIME_OPTION, and ...
(longopts): ...use it here instead of `CHAR_MAX + 1'.
(main): Likewise.

25 years ago(enum): Remove useless CHAR_MAX + 2
Jim Meyering [Thu, 9 Dec 1999 15:35:41 +0000 (15:35 +0000)]
(enum): Remove useless CHAR_MAX + 2

25 years agoTest more of the framework (touch's -a and -m
Jim Meyering [Wed, 8 Dec 1999 17:05:59 +0000 (17:05 +0000)]
Test more of the framework (touch's -a and -m
options) before running the actual ls test.

25 years agos/test_failure/framework_failure/g
Jim Meyering [Wed, 8 Dec 1999 16:50:22 +0000 (16:50 +0000)]
s/test_failure/framework_failure/g

25 years ago(TESTS): Add fflush.
Jim Meyering [Sun, 5 Dec 1999 23:31:34 +0000 (23:31 +0000)]
(TESTS): Add fflush.

25 years agoRemove ftp.enst.fr.
Jim Meyering [Sun, 5 Dec 1999 22:59:30 +0000 (22:59 +0000)]
Remove ftp.enst.fr.

25 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 1999 22:36:11 +0000 (22:36 +0000)]
*** empty log message ***

25 years ago(main): Flush stdout before switching to unbuffered mode
Jim Meyering [Sun, 5 Dec 1999 22:36:02 +0000 (22:36 +0000)]
(main): Flush stdout before switching to unbuffered mode
and calling tail_forever.  Required only on Solaris2.7 -- on other
systems, using setvbuf to switch to unbufferd mode does the flush.

25 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 1999 16:45:27 +0000 (16:45 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Sun, 5 Dec 1999 16:39:39 +0000 (16:39 +0000)]
.

25 years ago*** empty log message *** FILEUTILS-4_0k
Jim Meyering [Sun, 5 Dec 1999 15:14:18 +0000 (15:14 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sun, 5 Dec 1999 15:13:40 +0000 (15:13 +0000)]
*** empty log message ***

25 years agoRevert the previous change.
Jim Meyering [Sun, 5 Dec 1999 15:13:21 +0000 (15:13 +0000)]
Revert the previous change.

(copy_internal): In move mode, if the rename attempt
fails, then unlink any existing destination file.  This makes a
cross-device `mv' more consistent with the intra-device behavior.
This change is required by POSIX to make a cross-device move act with
semantics similar to those of the rename syscall.  For example now
`mv' can move a file onto a symlink to itself when that symlink
is on a separate partition.  With fileutils-4.0j, it would fail with
a diagnostic saying they were the same file.
Reported by Bruno Haible.

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:46:39 +0000 (17:46 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Sat, 4 Dec 1999 17:46:06 +0000 (17:46 +0000)]
.

25 years ago(TESTS): Add to-symlink.
Jim Meyering [Sat, 4 Dec 1999 17:45:45 +0000 (17:45 +0000)]
(TESTS): Add to-symlink.

25 years agoMake sure that the copying code used in an inter-partition
Jim Meyering [Sat, 4 Dec 1999 17:44:59 +0000 (17:44 +0000)]
Make sure that the copying code used in an inter-partition
move unlinks a destination symlink before opening it.

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:34:39 +0000 (17:34 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:34:05 +0000 (17:34 +0000)]
*** empty log message ***

25 years ago(trap): Be careful to close $actual before
Jim Meyering [Sat, 4 Dec 1999 17:33:49 +0000 (17:33 +0000)]
(trap): Be careful to close $actual before
removing the containing directory.  Otherwise, on some systems rmdir
fails to remove the containing directory.

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:31:29 +0000 (17:31 +0000)]
*** empty log message ***

25 years agoList --full-time dates upon failure.
Jim Meyering [Sat, 4 Dec 1999 17:31:23 +0000 (17:31 +0000)]
List --full-time dates upon failure.

25 years ago.
Jim Meyering [Sat, 4 Dec 1999 17:30:24 +0000 (17:30 +0000)]
.

25 years agoAdapt to reflect this change in behavior.
Jim Meyering [Sat, 4 Dec 1999 17:30:16 +0000 (17:30 +0000)]
Adapt to reflect this change in behavior.
Make sure the VERSION_CONTROL envvar is not set.
Run diff if comparison fails.

25 years agoUse mv, ls, rm, not $MV, $LS, $RM.
Jim Meyering [Sat, 4 Dec 1999 17:24:19 +0000 (17:24 +0000)]
Use mv, ls, rm, not $MV, $LS, $RM.

25 years ago(copy_internal): Be consistent with intra-device behavior
Jim Meyering [Sat, 4 Dec 1999 17:21:47 +0000 (17:21 +0000)]
(copy_internal): Be consistent with intra-device behavior
and *do* allow `mv' to move a file onto a symlink to itself when that
symlink is on a separate partition.  With fileutils-4.0j, it would
fail with a diagnostic saying they were the same file.
Reported by Bruno Haible.

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:21:06 +0000 (17:21 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 17:05:27 +0000 (17:05 +0000)]
*** empty log message ***

25 years agoGive the right diagnostic when failing to create a file in an
Jim Meyering [Sat, 4 Dec 1999 17:03:43 +0000 (17:03 +0000)]
Give the right diagnostic when failing to create a file in an
unwritable directory.

(touch): Record errno upon failed errno and use that
saved value if a subsequent fstat, stat or utime call fails.
Reported by Wichert Akkerman via Michael Stone.

25 years ago*** empty log message ***
Jim Meyering [Sat, 4 Dec 1999 16:56:07 +0000 (16:56 +0000)]
*** empty log message ***

25 years ago(check_symlink_color): New variable.
Jim Meyering [Sat, 4 Dec 1999 16:55:27 +0000 (16:55 +0000)]
(check_symlink_color): New variable.
(main): Set it if we need to check for dangling symlinks when
displaying colors.
(gobble_file): Check check_symlink_color instead of print_with_color.

25 years ago(usage): Shorten help for --show-control-chars.
Jim Meyering [Tue, 30 Nov 1999 21:09:35 +0000 (21:09 +0000)]
(usage): Shorten help for --show-control-chars.

25 years ago*** empty log message ***
Jim Meyering [Tue, 30 Nov 1999 16:09:58 +0000 (16:09 +0000)]
*** empty log message ***

25 years agoDon't include math.h or float.h.
Jim Meyering [Sun, 28 Nov 1999 19:59:18 +0000 (19:59 +0000)]
Don't include math.h or float.h.
Don't use DBL_MAX.
Use TIME_T_MAX instead.

25 years ago*** empty log message ***
Jim Meyering [Sun, 28 Nov 1999 19:57:54 +0000 (19:57 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sun, 28 Nov 1999 19:56:38 +0000 (19:56 +0000)]
*** empty log message ***

25 years agodon't include assert.h
Jim Meyering [Sun, 28 Nov 1999 14:04:12 +0000 (14:04 +0000)]
don't include assert.h

25 years agoRound more carefully so we never call nanosleep with more than 999,999,999
Jim Meyering [Sun, 28 Nov 1999 14:03:43 +0000 (14:03 +0000)]
Round more carefully so we never call nanosleep with more than 999,999,999
nanoseconds.
Comment out assertion because it uses on EINTR.

25 years agoRewrite to use nanosleep (hence, timer stops when sleep is suspended)
Jim Meyering [Sun, 28 Nov 1999 13:35:00 +0000 (13:35 +0000)]
Rewrite to use nanosleep (hence, timer stops when sleep is suspended)
  and to remove gettimeofday/signal cruft.
Improve overflow checking.

25 years ago*** empty log message ***
Jim Meyering [Sun, 28 Nov 1999 08:08:51 +0000 (08:08 +0000)]
*** empty log message ***

25 years agobetter error checking
Jim Meyering [Sun, 28 Nov 1999 08:00:58 +0000 (08:00 +0000)]
better error checking
add FIXME comments for non-portable constructs

25 years agoremove another printf stmt
Jim Meyering [Sat, 27 Nov 1999 20:03:05 +0000 (20:03 +0000)]
remove another printf stmt

25 years agoremove printf stmts
Jim Meyering [Sat, 27 Nov 1999 20:02:38 +0000 (20:02 +0000)]
remove printf stmts

25 years agofix typos
Jim Meyering [Sat, 27 Nov 1999 20:01:22 +0000 (20:01 +0000)]
fix typos

25 years agoRewrite to allow fractional seconds and to handle SIGCONT.
Jim Meyering [Sat, 27 Nov 1999 20:00:54 +0000 (20:00 +0000)]
Rewrite to allow fractional seconds and to handle SIGCONT.
(main): Rewrite.
(sighandler): New function.
(apply_suffix): New function.
(timeval_subtract): New function.

25 years ago(usage): Add elipses to show that sleep allows more than one argument.
Jim Meyering [Sat, 27 Nov 1999 17:10:15 +0000 (17:10 +0000)]
(usage): Add elipses to show that sleep allows more than one argument.

25 years agoremove brackets around required sleep argument
Jim Meyering [Sat, 27 Nov 1999 17:04:29 +0000 (17:04 +0000)]
remove brackets around required sleep argument

25 years ago(argdecode): Move definition to precede use.
Jim Meyering [Sat, 27 Nov 1999 15:02:27 +0000 (15:02 +0000)]
(argdecode): Move definition to precede use.
Remove prototype.

25 years ago*** empty log message ***
Jim Meyering [Sat, 27 Nov 1999 10:15:46 +0000 (10:15 +0000)]
*** empty log message ***

25 years agoDon't set/use MV, etc.
Jim Meyering [Sat, 27 Nov 1999 10:14:53 +0000 (10:14 +0000)]
Don't set/use MV, etc.

25 years ago*** empty log message ***
Jim Meyering [Sat, 27 Nov 1999 10:14:24 +0000 (10:14 +0000)]
*** empty log message ***

25 years agoDon't set/use MV, etc.
Jim Meyering [Sat, 27 Nov 1999 10:14:04 +0000 (10:14 +0000)]
Don't set/use MV, etc.

25 years agoDon't set/use RM and MV.
Jim Meyering [Sat, 27 Nov 1999 10:11:25 +0000 (10:11 +0000)]
Don't set/use RM and MV.

25 years agoDon't set/use LS MV MKDIR MKNOD RM TOUCH
Jim Meyering [Sat, 27 Nov 1999 10:10:02 +0000 (10:10 +0000)]
Don't set/use LS MV MKDIR MKNOD RM TOUCH

25 years agoDon't set/use DF or MKDIR.
Jim Meyering [Sat, 27 Nov 1999 10:08:55 +0000 (10:08 +0000)]
Don't set/use DF or MKDIR.

25 years ago*** empty log message ***
Jim Meyering [Sat, 27 Nov 1999 10:05:25 +0000 (10:05 +0000)]
*** empty log message ***

25 years ago(TESTS): Add partition-perm.
Jim Meyering [Sat, 27 Nov 1999 10:05:11 +0000 (10:05 +0000)]
(TESTS): Add partition-perm.

25 years ago*** empty log message *** FILEUTILS-4_0j
Jim Meyering [Sat, 27 Nov 1999 09:01:22 +0000 (09:01 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 27 Nov 1999 09:01:05 +0000 (09:01 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Fri, 26 Nov 1999 16:50:33 +0000 (16:50 +0000)]
*** empty log message ***

25 years ago(df_readable): Now returns char const *, not char *.
Jim Meyering [Fri, 26 Nov 1999 16:50:24 +0000 (16:50 +0000)]
(df_readable): Now returns char const *, not char *.
New arg NEGATIVE.
(ceil_percent): Now returns double, not int.
Be more careful about adding 1 to a wild value.
(show_dev): Don't filter out wild sizes from the underlying operating
system; instead, show them to the user as faithfully as possible.

25 years ago.
Jim Meyering [Fri, 26 Nov 1999 07:31:42 +0000 (07:31 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Tue, 23 Nov 1999 12:57:38 +0000 (12:57 +0000)]
*** empty log message ***

25 years ago(Calendar date item): Correction regarding 0..68/
Jim Meyering [Tue, 23 Nov 1999 12:57:10 +0000 (12:57 +0000)]
(Calendar date item): Correction regarding 0..68/
69-99 split for 1900 vs 2000.  From Peter Moulder.

25 years ago*** empty log message ***
Jim Meyering [Tue, 23 Nov 1999 12:56:30 +0000 (12:56 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Mon, 22 Nov 1999 15:05:52 +0000 (15:05 +0000)]
.

25 years ago.
Jim Meyering [Mon, 22 Nov 1999 14:10:07 +0000 (14:10 +0000)]
.

25 years ago(DISTCLEANFILES): Add lstat.c and stat.c.
Jim Meyering [Mon, 22 Nov 1999 14:09:58 +0000 (14:09 +0000)]
(DISTCLEANFILES): Add lstat.c and stat.c.

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Nov 1999 13:21:48 +0000 (13:21 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Mon, 22 Nov 1999 13:14:19 +0000 (13:14 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Nov 1999 11:35:12 +0000 (11:35 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Nov 1999 11:23:35 +0000 (11:23 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Nov 1999 11:23:08 +0000 (11:23 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Mon, 22 Nov 1999 09:16:27 +0000 (09:16 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Nov 1999 09:15:42 +0000 (09:15 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Mon, 22 Nov 1999 09:13:32 +0000 (09:13 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Nov 1999 09:13:15 +0000 (09:13 +0000)]
*** empty log message ***

25 years ago(recheck): Handle a race condition (including <dev,inode>
Jim Meyering [Mon, 22 Nov 1999 09:07:58 +0000 (09:07 +0000)]
(recheck): Handle a race condition (including <dev,inode>
reuse) that would lead to a failed assertion.
Reported by Ken Pizzini.
(tail_forever): Record errno before using it in call to `error'
which might change it.
(tail_file): Likewise.

25 years agocomment out echo stmts
Jim Meyering [Mon, 22 Nov 1999 09:03:57 +0000 (09:03 +0000)]
comment out echo stmts

25 years ago(TESTS): remove infloop-1
Jim Meyering [Mon, 22 Nov 1999 09:03:12 +0000 (09:03 +0000)]
(TESTS): remove infloop-1

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Nov 1999 08:56:52 +0000 (08:56 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Nov 1999 08:56:39 +0000 (08:56 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Nov 1999 08:55:00 +0000 (08:55 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Mon, 22 Nov 1999 08:54:09 +0000 (08:54 +0000)]
*** empty log message ***

25 years ago(TESTS): Add `assert'.
Jim Meyering [Mon, 22 Nov 1999 08:40:50 +0000 (08:40 +0000)]
(TESTS): Add `assert'.

25 years ago*** empty log message ***
Jim Meyering [Sat, 20 Nov 1999 12:16:11 +0000 (12:16 +0000)]
*** empty log message ***

25 years ago(errno_rmdir_non_empty): New function to encapsulate errno comparison.
Jim Meyering [Sat, 20 Nov 1999 12:15:46 +0000 (12:15 +0000)]
(errno_rmdir_non_empty): New function to encapsulate errno comparison.
(remove_parents): Use it.
(main): Use it.

25 years ago*** empty log message ***
Jim Meyering [Sat, 20 Nov 1999 11:18:54 +0000 (11:18 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 20 Nov 1999 10:46:39 +0000 (10:46 +0000)]
*** empty log message ***

25 years agoRun `diff -u' if the test fails.
Jim Meyering [Sat, 20 Nov 1999 10:46:06 +0000 (10:46 +0000)]
Run `diff -u' if the test fails.

25 years ago*** empty log message ***
Jim Meyering [Sat, 20 Nov 1999 10:39:29 +0000 (10:39 +0000)]
*** empty log message ***

25 years agoUse `ls' and `touch', not $LS and $TOUCH.
Jim Meyering [Sat, 20 Nov 1999 10:39:19 +0000 (10:39 +0000)]
Use `ls' and `touch', not $LS and $TOUCH.

25 years ago(TESTS_ENVIRONMENT): Specify PATH, etc.
Jim Meyering [Sat, 20 Nov 1999 10:38:38 +0000 (10:38 +0000)]
(TESTS_ENVIRONMENT): Specify PATH, etc.

25 years ago*** empty log message ***
Jim Meyering [Sat, 20 Nov 1999 09:51:31 +0000 (09:51 +0000)]
*** empty log message ***

25 years agoDeclare lstat; needed on e.g. SunOS4.
Jim Meyering [Sat, 20 Nov 1999 09:50:58 +0000 (09:50 +0000)]
Declare lstat;  needed on e.g. SunOS4.
Reported by Tom Tromey.

25 years ago*** empty log message ***
Jim Meyering [Fri, 19 Nov 1999 17:02:38 +0000 (17:02 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Fri, 19 Nov 1999 17:02:31 +0000 (17:02 +0000)]
*** empty log message ***

25 years ago(strstr): Include config.h.
Jim Meyering [Fri, 19 Nov 1999 17:02:01 +0000 (17:02 +0000)]
(strstr): Include config.h.
Add a `;' between shloop label and `}'.

25 years ago*** empty log message ***
Jim Meyering [Fri, 19 Nov 1999 11:49:53 +0000 (11:49 +0000)]
*** empty log message ***