summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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.
1999-11-03Fix so that `tail -fn 2 file' works again.Jim Meyering
(anonymous enum) [LONG_FOLLOW_OPTION]: Define. (long_options): Use LONG_FOLLOW_OPTION here, instead of 'f'. (main): Remove the `::' after the `f' in getopt_long string. Add `case LONG_FOLLOW_OPTION' after `case 'f':'. Based on a patch from Tim Waugh.
1999-11-03(anonymous enum) [RETRY_OPTION]: Define.Jim Meyering
[MAX_UNCHANGED_STATS_OPTION]: Likewise. [MAX_CONSECUTIVE_SIZE_CHANGES_OPTION]: Likewise. [PID_OPTION]: Likewise. (long_options): Use *_OPTION instead of CHAR_MAX + N. (main): Likewise.
1999-11-03(recheck): Don't refuse to tail a non-regular, non-pipe.Jim Meyering
(tail_file): Likewise.
1999-11-01(usage): Warn about mixing use of `-r' with FIFOs andJim Meyering
other special files like /dev/zero.
1999-10-31Convert --backup to take an optional argument.Jim Meyering
Deprecate --version-control (-V) in comments. (usage): Remove mention of --version-control. (main): Make -V warn then fall through into --backup case. [--backup case]: Handle optional arg.
1999-10-31tweak usageJim Meyering
1999-10-30(usage): Tweak --backup descriptionJim Meyering
1999-10-30Convert --backup to take an optional argument.Jim Meyering
Deprecate --version-control (-V) in comments. (usage): Remove mention of --version-control. (main): Make -V warn then fall through into --backup case. [--backup case]: Handle optional arg.
1999-10-24(do_copy): Constify `dest', and cast-away the newJim Meyering
const in assignment to new_dest.
1999-10-24add missing program_name arg to match new usage %sJim Meyering
1999-10-23label use of -V/--versin-control as a warningJim Meyering
1999-10-23(full_write): Remove unused decl.Jim Meyering
(open_maybe_create): Remove. (touch): Don't record whether the file was created; this isn't possible to do reliably and portably without race conditions. If the file was created and if amtime_now is nonzero, this change means we'll have to do another utime system call, but that's no more harmful than the previous version of this code.
1999-10-17Convert --backup to take an optional argument.Jim Meyering
Deprecate --version-control (-V) in comments. (usage): Remove mention of --version-control. (main): Make -V warn then fall through into --backup case. [--backup case]: Handle optional arg.
1999-10-17change a message and add usage(1) to another.Jim Meyering
1999-10-17Accept new option: --target-directory=DIRJim Meyering
(TARGET_DIRECTORY_OPTION): Define. (SPARSE_OPTION): Define. (usage): Describe it. (do_copy): Change meanings/names of first two parameters: use `n_files' in place of `argc - optind', and `file' instead of `argv + optind'. Add parameter, target_directory. (main): Pass new arg, target_directory.
1999-10-17don't compute isdir() of -- or an option stringJim Meyering
1999-10-17remove last `,' in enumJim Meyering
1999-10-16Convert --backup to take an optional argument.Jim Meyering
Deprecate --version-control (-V) in comments. (usage): Remove mention of --version-control. (main): Make -V warn then fall through into --backup case. [--backup case]: Handle optional arg.
1999-10-09Accept new option: --target-directory=DIRJim Meyering
(TARGET_DIRECTORY_OPTION): Define. (usage): Describe it. (main): Implement it. Make code clearer: use new variable `n_files' in place of `argc - optind'. Use `file' instead of `argv + optind'.