summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-01-21Don't include "xalloc.h", as system.h already does that via sys2.h.Jim Meyering
2002-01-21Don't include "xalloc.h", as system.h already does that via sys2.h.Jim Meyering
2002-01-21Don't include "xalloc.h", as system.h already does that via sys2.h.Jim Meyering
2002-01-21Don't include "xalloc.h", as system.h already does that via sys2.h.Jim Meyering
2002-01-21Don't include "xalloc.h", as system.h already does that via sys2.h.Jim Meyering
2002-01-21Don't include "xalloc.h", as system.h already does that via sys2.h.Jim Meyering
2002-01-20Avoid undefined behavior when strcoll fails,Jim Meyering
by resorting the directory with strcmp instead. Include <setjmp.h>. Include "quote.h". (compare_atime, rev_cmp_atime, compare_ctime, rev_cmp_ctime, compare_mtime, rev_cmp_mtime, compare_size, rev_comp_size, compare_name, rev_cmp_name, compare_extension, rev_cmp_extension, compare_version, rev_compare_version): Move before use, so that we can remove the forward declaration. Reimplement in terms of the new functions described below, using xstrcoll instead of strcoll. (failed_strcoll): New var. (xstrcoll): New function. (V): New type. (cmp_ctime, compstr_ctime, rev_str_ctime): New functions. (cmp_mtime, compstr_mtime, rev_str_mtime): Likewise. (cmp_atime, compstr_atime, rev_str_atime): Likewise. (cmp_size, compstr_size, rev_str_size): Likewise. (cmp_version): Likewise. (cmp_name, compstr_name, rev_str_name): Likewise. (cmp_extension, compstr_extension, rev_str_extension): Likewise. (sort_files): Use prototype for internal function var. If the strcoll-based comparison fails, fall back on a strcmp-based one.
2002-01-18(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.Jim Meyering
2002-01-18(parse_obsolescent_option): Issue a warning for obsolete usage,Jim Meyering
unless POSIXLY_CORRECT.
2002-01-18(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.Jim Meyering
2002-01-18tweak copyright lineJim Meyering
2002-01-18Fix tr so it no longer gets a failed assertion for [::] or [==].Jim Meyering
(xmemdup): Rename from `substr' and rewrite to take only pointer/length parameters. (build_spec_list): Update sole caller. Properly diagnose the invalid specs [::] and [==]. Pawel Prokop reported that `tr [::] _' elicits a failed assertion.
2002-01-18(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.Jim Meyering
2002-01-16Add support for POSIX 1003.1-2001, which requires removal forJim Meyering
support of the obsolete `touch [-acm] MMDDhhmm[YY] FILE...' syntax. (usage, main): Implement this.
2002-01-16(ISDIGIT, S_ISVTX, S_IXUGO): Comment fix.Jim Meyering
2002-01-16(_POSIX2_VERSION, POSIX2_VERSION): New macros.Jim Meyering
2002-01-16add 2002 to Copyright lineJim Meyering
2002-01-16tweak commentJim Meyering
2002-01-16add 2002 to Copyright lineJim Meyering
2002-01-16Add support for POSIX 1003.1-2001, which requires removal forJim Meyering
support of obsolete "+" option syntax in sort, tail, and uniq. (usage, main): Implement this.
2002-01-16add 2002 to Copyright lineJim Meyering
2002-01-16Add support for POSIX 1003.1-2001, which requires removal forJim Meyering
support of obsolete "+" option syntax in sort, tail, and uniq. (usage, main): Implement this.
2002-01-16Add support for POSIX 1003.1-2001, which requires removal forJim Meyering
support of obsolete "+" option syntax in sort, tail, and uniq. (usage, parse_obsolescent_option): Implement the above.
2002-01-14Comment fixes to bring us up to date with respect to POSIX 1003.1-2001.Jim Meyering
In particular, POSIX.2 is now obsolete.
2002-01-14Comment fixes to bring us up to date with respect to POSIX 1003.1-2001.Jim Meyering
In particular, POSIX.2 is now obsolete.
2002-01-14Comment fixes to bring us up to date with respect to POSIX 1003.1-2001.Jim Meyering
In particular, POSIX.2 is now obsolete.
2002-01-14(mergefps): Fix bug when eliminating empty files.Jim Meyering
2002-01-12(copy_reg): Don't treat errno==ENOENT as a special case.Jim Meyering
(same_file_ok): Detect a case that would have lead to the errno==ENOENT condition above (and a misleading diagnostic), and return 0 so we give a diagnostic about the source and destination being the same file. (copy_internal): Use an explicit test for errno==EXDEV to detect that rename has failed because source and destination are on different devices. This reverts part of a change from 1997-12-13, and is to avoid letting a race condition evoke a bogus diagnostic. Note that while POSIX has encouraged the errno==EXDEV test for years, it was inadequate back in 1997. I'm hoping that many more systems have conforming support these days. Reported by Michael Gaughen <mgaughen@polyserve.com>
2002-01-12(usage): Also mention Ext3.Jim Meyering
2002-01-08(long_time_format): Extended translator comments.Jim Meyering
2001-12-29(main): With -r, always dereference symlinks.Jim Meyering
2001-12-21[!HAVE_CONFIG_H]: Remove block of code that duplicatedJim Meyering
code in lib/ for compiling this program without config.h.
2001-12-21(usage): Deprecate --kilobytes. Document size suffixes.Jim Meyering
2001-12-21(BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'.Jim Meyering
(long_options, usage, main): Add -B. (usage): Deprecate --kilobytes, -m, --megabytes. Document size suffixes. (print_header, show_dev): Enlarge column widths for trailing "B".
2001-12-21(BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'.Jim Meyering
(long_options, usage, main): Add -B. (usage): Deprecate --kilobytes, -m, --megabytes. Document size suffixes.
2001-12-21(usage, parse_integer): Prefer K to k for 1024.Jim Meyering
2001-12-20(usage, specify_sort_size): Accept 'K' (which isJim Meyering
now preferred, as it connotes 1024) as well as 'k'.
2001-12-19Add FSF copyright notice.Jim Meyering
2001-12-19(xstrtoumax): If there is no number but thereJim Meyering
is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary. Accept 'K' as well as 'k'.
2001-12-17(usage): Remove strap `)' in --help output.Jim Meyering
2001-12-16use generated fs_name functionJim Meyering
2001-12-15Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions. Split --help output into smaller pieces. Use fputs, not printf.
2001-12-15from Marcus BrinkmannJim Meyering
2001-12-13(wc): Use ISSPACE and iswspace in addition to hard-codingJim Meyering
the ASCII space character.
2001-12-11(main):Jim Meyering
Include the word `fail' in some diagnostics to make it clearer that they indicate a failure. s/getting attributes/failed to get attributes/
2001-12-11split long lineJim Meyering
2001-12-11(change_file_mode, main):Jim Meyering
Include the word `fail' in some diagnostics to make it clearer that they indicate a failure. s/getting attributes/failed to get attributes/
2001-12-11(change_file_owner):Jim Meyering
Include the word `fail' in some diagnostics to make it clearer that they indicate a failure. s/getting attributes/failed to get attributes/
2001-12-11(main):Jim Meyering
Include the word `fail' in some diagnostics to make it clearer that they indicate a failure. s/getting attributes/failed to get attributes/
2001-12-11(re_protect):Jim Meyering
Include the word `fail' in some diagnostics to make it clearer that they indicate a failure. s/getting attributes/failed to get attributes/