summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-01-06add blank lineJim Meyering
2000-01-06(apply_suffix): Comment.Jim Meyering
2000-01-06fix typo in commentJim Meyering
2000-01-06Minor code cleanup.Jim Meyering
(clock_get_realtime): Return argument, for convenience. (main): Use this to simplify main sleep loop.
2000-01-05Include nanosleep.h.Jim Meyering
(AUTHORS): Add Paul Eggert.
2000-01-05Add #pragma STDC FENV_ACCESS ON if C99.Jim Meyering
(<fenv.h>): Include if available. (main): Always round floating-point interval calculations upwards, as we must sleep for at least the specified time. Do the right thing with NaNs.
2000-01-02update usageJim Meyering
2000-01-02Remove non-POSIX warning about trailing-slashed symlink-to-directory.Jim Meyering
2000-01-02New option: --strip-trailing-slashes.Jim Meyering
2000-01-02(#pragma alloca): Add if _AIX is defined.Jim Meyering
(path-concat.h): Include. (show_point): If HAVE_REALPATH or HAVE_RESOLVEPATH is defined, find the real absolute path for PATH, and use that to find the mount point. (show_point): Prefer non-dummy entries in shortcuts, too. Disable bogus mount dirs instead of restatting them each time.
1999-12-30(remove_parents, main): Don't pass errno to errorJim Meyering
when printing "removing directory" message. Failure of rmdir is handled elsewhere.
1999-12-27minor var. renamingsJim Meyering
1999-12-27tweak --helpJim Meyering
1999-12-25Use < rather than >.Jim Meyering
(main): Normalize ts_stop.
1999-12-23(USE_CLOCK_GETTIME): Define.Jim Meyering
[USE_CLOCK_GETTIME]: Include sys/time.h. (timespec_subtract): New function. (clock_get_realtime): New function. (sighandler): Remove function. (main): Reimplement again, using nanosleep and clock_gettime.
1999-12-23(usage): Correct typos.Jim Meyering
List new --target-directory=... usage. Reported by Göran Uddeborg
1999-12-23(usage): List new --target-directory=... usage.Jim Meyering
1999-12-22(ceil_percent): Remove.Jim Meyering
(show_dev): Avoid overflow problems when calculating percent. Do not display negative percents.
1999-12-19tweak commentJim Meyering
1999-12-19tweak commentJim Meyering
1999-12-19[! LSTAT_FOLLOWS_SLASHED_SYMLINK]: Use lstat wrapper.Jim Meyering
[Notice the new test in m4/lstat-slash.m4. ] (main): Back out change from 1999-02-19 that made ls remove trailing slashes from command line arguments to accommodate early versions of Linux. Now, `ls symlink-to-dir/' acts like `ls symlink-to-dir/.' thus following the symbolic link, as POSIX says it should. Suggestion from Bruno Haible and Andreas Schwab.
1999-12-18(wipename): When repeatedly renaming a file, making the name shorterJim Meyering
and shorter, skip to the next shorter length length if a rename fails (e.g. due to permission denied). Otherwise, this loop would iterate for so long that shred would appear to be stuck in an infinite loop for any but the shortest file names.
1999-12-18(print_entry): Correct do_lookup test so that whoJim Meyering
prints whatever host information it has, even without --lookup.
1999-12-15(decode_switches): If -c or -u is specified and not -l (or any otherJim Meyering
option that implies -l), and no sort-type was specified, then sort by the ctime (-c) or atime (-u). Part of this change reverts the 1998-01-10 delta. (usage): Update to reflect this change. Reported by Paul Slootman via Michael Stone.
1999-12-12Move 120+ lines of stat.h-related macros from system.h (not shared)Jim Meyering
to sys2.h, which is shared between fileutils, sh-utils, textutils. * src/system.h: Move them from here... * src/sys2.h: ... to here.
1999-12-12(S_IRUSR, S_IRGRP, S_IWGRP, S_IROTH, S_IWOTH): DefineJim Meyering
if not defined. This was necessary on a NeXT Turbostation running Mach 3.3. Reported by Nelson H. F. Beebe.
1999-12-09(IGNORE_FAIL_ON_NON_EMPTY_OPTION): Likewise.Jim Meyering
1999-12-09(BLOCK_SIZE_OPTION, EXCLUDE_OPTION, MAX_DEPTH_OPTION):Jim Meyering
Define these and use them instead of `CHAR_MAX + n'.
1999-12-09(BLOCK_SIZE_OPTION, SYNC_OPTION, NO_SYNC_OPTION): DefineJim Meyering
these and use them instead of `CHAR_MAX + n'.
1999-12-09(anonymous enum): Define TIME_OPTION, and ...Jim Meyering
(longopts): ...use it here instead of `CHAR_MAX + 1'. (main): Likewise.
1999-12-09(enum): Remove useless CHAR_MAX + 2Jim Meyering
1999-12-05(main): Flush stdout before switching to unbuffered modeJim Meyering
and calling tail_forever. Required only on Solaris2.7 -- on other systems, using setvbuf to switch to unbufferd mode does the flush.
1999-12-05Revert the previous change.Jim Meyering
(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.
1999-12-04(copy_internal): Be consistent with intra-device behaviorJim Meyering
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.
1999-12-04Give the right diagnostic when failing to create a file in anJim Meyering
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.
1999-12-04(check_symlink_color): New variable.Jim Meyering
(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.
1999-11-30(usage): Shorten help for --show-control-chars.Jim Meyering
1999-11-28Don't include math.h or float.h.Jim Meyering
Don't use DBL_MAX. Use TIME_T_MAX instead.
1999-11-28don't include assert.hJim Meyering
1999-11-28Round more carefully so we never call nanosleep with more than 999,999,999Jim Meyering
nanoseconds. Comment out assertion because it uses on EINTR.
1999-11-28Rewrite to use nanosleep (hence, timer stops when sleep is suspended)Jim Meyering
and to remove gettimeofday/signal cruft. Improve overflow checking.
1999-11-28*** empty log message ***Jim Meyering
1999-11-28better error checkingJim Meyering
add FIXME comments for non-portable constructs
1999-11-27remove another printf stmtJim Meyering
1999-11-27remove printf stmtsJim Meyering
1999-11-27fix typosJim Meyering
1999-11-27Rewrite to allow fractional seconds and to handle SIGCONT.Jim Meyering
(main): Rewrite. (sighandler): New function. (apply_suffix): New function. (timeval_subtract): New function.
1999-11-27(usage): Add elipses to show that sleep allows more than one argument.Jim Meyering
1999-11-27(argdecode): Move definition to precede use.Jim Meyering
Remove prototype.
1999-11-26(df_readable): Now returns char const *, not char *.Jim Meyering
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.