summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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.
1999-11-22(recheck): Handle a race condition (including <dev,inode>Jim Meyering
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.
1999-11-20(errno_rmdir_non_empty): New function to encapsulate errno comparison.Jim Meyering
(remove_parents): Use it. (main): Use it.
1999-11-20Declare lstat; needed on e.g. SunOS4.Jim Meyering
Reported by Tom Tromey.
1999-11-17(S_IRWXUGO): Define if necessary.Jim Meyering
(main): Use chmod to set the permissions if bits other than those of S_IRWXUGO were requested. Reported by Sami Farin.
1999-11-14(touch): Simplify code a tad, using fd == -1 insteadJim Meyering
of separate valid_fd variable.
1999-11-13(touch): Don't fail just because we couldn't openJim Meyering
an existing file. This makes it so that touching a read-only file now works. Also clean up and simplify. Based on a patch from Chip Salzenberg.
1999-11-12(print_nth_dir): Write one fewer byte so we don't print a trailing slash.Jim Meyering
(rm): Fix bugs in (and test, this time) the very-rarely-used code to warn about directory cycles.
1999-11-12Adjust comments to reflect that lots of code has moved to remove.c.Jim Meyering
1999-11-11(copy_internal): Treat src and dest as the `same' inJim Meyering
`mv src symlink-to-src' when src and dest are on different partitions. Otherwise, that `mv' command would silently remove `src'. Reported by Michael Stone.
1999-11-09(NEW): Undefine to avoid warning about redefinition.Jim Meyering
(NEW): Redefine in terms of XMALLOC.
1999-11-07Add several more TERM types.Jim Meyering
Add .bz2 suffix. Add .png for real this time. Change the image types colors to be visible in a black-on-white xterm.
1999-11-07(xstat): New global.Jim Meyering
(main): Define it. (change_file_group): Use it. Before this change, when running chgrp on a symlink without --dereference (-h) and when the requested group is the same as the group for the *symlink*, chgrp would do nothing. Now it changes the group of the file referenced through the symlink. Reported by Martin Mitchell.
1999-11-07Define and use REFERENCE_FILE_OPTION andJim Meyering
DEREFERENCE_OPTION in place of bare `CHAR_MAX + N'.
1999-11-07Use REFERENCE_FILE_OPTION instead of bare `CHAR_MAX + 1'.Jim Meyering
1999-11-07(do_link): Warn that making a hard link to a symbolic link is not portable.Jim Meyering
1999-11-07Remove entire #if LINK_FOLLOWS_SYMLINKS block.Jim Meyering
1999-11-07Add comment prior to removing #if LINK_FOLLOWS_SYMLINKS blockJim Meyering
1999-11-07Allow hard links to symlinks on systems that support it.Jim Meyering
(STAT_LIKE_LINK): Define. (do_link): Use STAT_LIKE_LINK, rather than bare `stat', and perform the extra lstat only on systems where LINK_FOLLOWS_SYMLINKS.
1999-11-07add missing \n\Jim Meyering
1999-11-07(remove_parents): Use the correct testJim Meyering
(same as in main) in handling --ignore-fail-on-non-empty. From Michael Stone.
1999-11-06(do_link): Fix typo (in which the function name `symlink'Jim Meyering
was tested instead of the variable `symbolic_link') that could make ln perform an unneeded `stat' call.
1999-11-06(long_options): Correct typo (s/'F'/'p'/) so that `-p'Jim Meyering
works as the short form of --file-type, per the documentation. From Michael Stone.
1999-11-05Use HAVE_STRUCT_STAT_ST_BLOCKS, not deprecated HAVE_ST_BLOCKS.Jim Meyering
1999-11-05(SORTALLOC): New macro.Jim Meyering
(sortalloc, mergealloc, LINEALLOC): Use it. (sortalloc, mergealloc, linelength): Now const. (sortalloc): Increase from 0.5 to 8 MB. (mergealloc): Increase from 16 to 256 kB. (LINEALLOC): Increase from 0.25 to 4 MB.
1999-11-04(begfield, limfield, findlines, keycompare, compare):Jim Meyering
Do not consider newline to be part of a line when comparing lines in `sort' and `comm'. POSIX.2 requires that we consider newline, but this is a bug in the spec and the bug will likely be fixed.
1999-11-04(compare_files):Jim Meyering
Do not consider newline to be part of a line when comparing lines in `sort' and `comm'. POSIX.2 requires that we consider newline, but this is a bug in the spec and the bug will likely be fixed.