summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-05-24(main): Remove quotes around %s.Jim Meyering
The argument is already quoted via the quote function.
2001-05-20Include "hard-locale.h".Jim Meyering
(nstrftime): New decl. (enum time_style): New enum. (time_style_args, time_style_types): New constants. (full_time): Remove. (long_time_format): Initialize to POSIX defaults. (TIME_STYLE_OPTION): New constant. (long_options, decode_switches, usage): Add --time-style support. (long_time_expected_width): Use nstrftime, not strftime. (print_long_format): Likewise. Increase initial size to match new full-iso time style.
2001-05-20(parse_obsolescent_option): Accept a b suffix.Jim Meyering
2001-05-20Rename new option values: s/all/precede/ and s/minimum/separate/.Jim Meyering
2001-05-19(delimit_method_map): Remove trailing comma.Jim Meyering
2001-05-19Support new modes for uniq's --all-repeated option.Jim Meyering
The default behavior is unchanged. Include argmatch.h. (usage): Update. (check_file): Implement it. (main): Handle new, optional arguments. Patch by Padraig Brady.
2001-05-15(parse_obsolescent_option): Use t_count_lines, notJim Meyering
count_lines, in error message.
2001-05-15(struct fileinfo.linkmode): Now st_mode.Jim Meyering
(print_color_indicator, print_name_with_quoting, print_type_indicator, length_of_file_name_and_frills): Use mode_t, not unsigned int, to store modes. (dired_dump_obstack): Do not assume size fits in 'int'. (get_link_name): readlink returns ssize_t, not int. (make_link_path): Store buffer size as size_t, not int. (print_long_format): Use unsigned long, not unsigned, to print nlink_t, uid_t, gid_t, major_t, minor_t.
2001-05-13(main): Check for NODEV device only if NODEV is defined.Jim Meyering
2001-05-13(NODEV): Remove, undoing previous change.Jim Meyering
2001-05-13(dir_name, dir_len): Define to different namesJim Meyering
to avoid shadowing warnings due to new declarations from dirname.h.
2001-05-13(enum Dereference_symlink): New type.Jim Meyering
(dereference): New var, replacing trace_links, which was removed. (long_options, main, decode_switches, gobble_file, usage): Implement the changes.
2001-05-13(NODEV): New macro, if not already defined.Jim Meyering
2001-05-13(main): Check for overflow when converting out of uintmax_t.Jim Meyering
Do not assume that major_t and minor_t are no wider than int. Check for makedev failures. Convert device numbers via uintmax_t, not unsigned long, just in case. Coalesce duplicate code in the block and character device cases.
2001-05-12Include "dirname.h".Jim Meyering
(base_name): Remove decl; now in dirname.h.
2001-05-12Include "dirname.h".Jim Meyering
(base_name, strip_trailing_slashes): Remove decls; now in dirname.h. (main): Use base_len instead of strip_trailing_slashes to strip trailing slashes.
2001-05-12(strip_trailing_slashes): Remove decl; now in dirname.h.Jim Meyering
(main): Use dir_len rather than dir_name_r.
2001-05-12(strip_trailing_slashes): Likewise.Jim Meyering
(find_mount_point): No need to strip trailing slashes before invoking new dir_name.
2001-05-12(strip_trailing_slashes): Remove; now in dirname.h.Jim Meyering
(make_path_private): Use dir_len instead of dir_name, and avoid an extra mealloc call.
2001-05-12(copy_internal): Remove the code that tested for NULLJim Meyering
dir_name return value. That can't happen.
2001-05-12Include "dirname.h".Jim Meyering
(strip_trailing_slashes_2): Remove; now done by strip_trailing_slashes. All callers changed.
2001-05-12(base_name): Remove decl; now in dirname.h.Jim Meyering
2001-05-12Include dirname.h, to get base_nameJim Meyering
2001-05-12include dirname.h.Jim Meyering
2001-05-12(strip_trailing_slashes): Remove declaration; now in dirname.h.Jim Meyering
2001-05-12(usage): Minor wording changes related to -o, -n, and -g.Jim Meyering
From Paul Eggert.
2001-05-12(mode_changed, change_file_mode):Jim Meyering
There's no need to invoke both lstat and stat here, so call just one of the two functions.
2001-05-11(usage): Warn about backups and mirrors.Jim Meyering
2001-05-10(main): Fix thinko: s/argv[optind]/optarg/.Jim Meyering
2001-05-05tweak diagnosticJim Meyering
2001-05-05(decode_switches): Complain if the envvar, QUOTING_STYLE,Jim Meyering
is set to an invalid value. Move some declarations of locals into scopes where they're used.
2001-05-05(print_owner): New global variable.Jim Meyering
(usage): Update the description of -g. (decode_switches): Honor the -g option (omit owner information), now that POSIX specifies it. (print_long_format): Don't print owner name if -g was specified. Move declaration of `user_name' into the scope where it's used. (print_group): Rename global from `inhibit_group'. Update all uses accordingly. (decode_switches): Make -n work just like -l, except with numeric IDs, per POSIX. Before, to have any effect, -n had to be used with -l. Reported by Dale Scheetz. (usage): Update the description of -n. Separate the descriptions of -n and --numeric-uid-gid. Split string in --help output that had exceeded my limit of 2048 bytes.
2001-05-05(usage): Correct description of -3.Jim Meyering
2001-04-29--help:Jim Meyering
downcase bulleted items remove some periods
2001-04-29(usage): Include in --help output the warning aboutJim Meyering
some of the filesystem types on which shred is not effective.
2001-04-29(usage): Mention shred.Jim Meyering
2001-04-24Include wheel-size.h.Jim Meyering
(WHEEL_START): Adjust definition. (wheel_tab[]): Remove body of definition. Include generated file, wheel.h, instead.
2001-04-23(dd_copy): When using sync with either block or unblock,Jim Meyering
pad with spaces.
2001-04-22fix typo in commentJim Meyering
2001-04-22(decode_switches): Ensure that -1 has no effect when it follows -l.Jim Meyering
2001-04-22fix typo in --help outputJim Meyering
2001-04-22(main): Fix off-by-one error introduced with last change.Jim Meyering
2001-04-22Fix bugs when computing length of large files.Jim Meyering
Add overflow and write error checks. Use uint_fast32_t, not unsigned long, to do checksum calculation, as C99 says uint_fast32_t should be no slower and might be faster. Include <stdio.h> and "system.h" even if CRCTAB is defined, so that the code will compile if CRCTAB is defined. Include "human.h" if CRCTAB is not defined. (uint_fast32_t): Define if it appears that stdint.h didn't. (BIT, remainder, main, crctab): Use uint_fast32_t, not unsigned long, for checksums. (fill_r, remainder, main): Use ANSI prototypes. (fill_r, remainder, main): Omit duplicate code. (main): Use uintmax_t, not unsigned long, for file lengths. Use size_t, not long, for result of fread. Check for overflow when computing file lengths. Check for write error immediately after printing a line, so that we don't write to stdout indefinitely after an error.
2001-04-22(usage): Mention that sync makes dd pad with spaces (rather than NULs)Jim Meyering
when used with block or unblock.
2001-04-21(main): When given two or more arguments but the only oneJim Meyering
that exists is a directory, don't treat it as if it were the only argument. Before, `mkdir d; ls no-dir d 2>/dev/null' would act like `ls d' and produce no output. Now, it prints `d:'.
2001-04-15(default_sort_size): Leave a 1/16 margin for RSS.Jim Meyering
2001-04-14(usage): Tweak --help output: s/line,/newline,/Jim Meyering
2001-04-13(main): Add a comment justifying the use ofJim Meyering
`multi-character' rather than `multibyte' in a diagnostic.
2001-04-13(RLIMIT_AS): Do not define; just use conditionalJim Meyering
code, since RLIMIT_RSS is similar (and is not standardized). (default_sort_size): Don't allocate more than the RSS limit, if this host has such a limit.
2001-04-04Don't inspect MB_LEN_MAX. Paul Eggert says it'sJim Meyering
not always defined correctly.