summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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.
2001-04-02Include <getopt.h>.Jim Meyering
(usage, main): Add support for long options, and check option syntax as POSIX requires, though (as usual for GNU apps) options can follow file names unless POSIXLY_CORRECT is set. Many diagnostic revamped. (long_options): New constant. (badfieldspec): New arg MSGID. Mark as noreturn. (parse_field_count): New arg MSGID; if null, just return null on error. (new_key): Renamed from key_init. All callers changed. Now allocates the new key.
2001-03-18(usage): Warn that the +N form will be withdrawn.Jim Meyering
2001-03-18(usage): Warn that the +N form will be withdrawn.Jim Meyering
2001-03-17(usage): Tweak the obsolescent usage line so thatJim Meyering
help2man recognizes it as such.
2001-03-17(INT_STRLEN_BOUND): New macro.Jim Meyering
2001-03-17Include mbswidth.h.Jim Meyering
(standard_header, header, test_suite): Remove. (date_format, date_text, file_text, header_width_available): New vars. (long_options, main, init_header, usage): Add new -D or --date-format option. (CHARS_FOR_DATE_AND_PAGE, T_BUF_FMT, T_BUF_SIZE, NO_DATE): Remove. (init_header): Allow arbitrary width for date format. Change "Page %5d" to "Page %d", since the code no longer assumes fixed width. Do not assume that localtime succeeds. (init_header, print_header, usage): Do not truncate headers. (init_header, print_header): Defer width calculations until page is printed, since "Page 100000" is wider than "Page 1". Count columns, not bytes, in page headers. Custom headers take up only the center, not the whole header. (print_header): Use printf rather than fprintf(stdout).
2001-03-13(die): New message arg, to describe failuresJim Meyering
better. All callers changed.
2001-03-13Decrease buffer size when only merging or checking.Jim Meyering
(sort_size): Now the user-specified sort size. (MIN_MERGE_BUFFER_SIZE): New macro. (MIN_SORT_SIZE): Use it. (merge_buffer_size): New variable. (fillbuf): Increase merge_buffer_size if a longer line is encountered. (checkfp, mergefps): Do not allocate a buffer smaller than merge_buffer_size. (sort): Use the default_sort_size if sort_size is zero. (main): Do not set sort_size to default_sort_size.
2001-03-13(sort): If all the input files are empty, create an empty output file.Jim Meyering
2001-03-13(merge): Move declarations of local variables intoJim Meyering
the inner scope where they're used. (sort): Likewise.
2001-03-13Do not include closeout.h.Jim Meyering
(xfopen): Use stdout if *how != 'r'. (mergefps): Remove FPS arg. Open all input files, and close all files when done. If OFP is null, open the output file (but after opening input files). All callers changed. (first_same_file): New function. (sort, merge): Remove arg OFP; we now open the output file as needed. All callers changed. (merge): New arg MAX_MERGE. All callers changed. (sort): For "sort F -o F", close the input before opening the output. (main): Do not use close_stdout; 'sort' and 'merge' now close stdout. (This also fixes a close-stdout-twice bug.) Remove test for overlapping input and output files, as 'sort' no longer needs to worry about overlap, and 'merge' checks for overlap itself. Use first_same_file to inform 'merge' about how much to merge at the top level, to avoid overlap.
2001-03-12`fmt --prefix=S' would not work properly for any string S containingJim Meyering
a byte with the high bit set. (prefix): Declare to be of type unsigned char, not `char'. (get_prefix): Likewise for local, `p'.
2001-03-12(save_stdin): Use mkstemp to create temporary file.Jim Meyering
2001-03-09(usage): Describe %C.Jim Meyering
2001-03-06(S_TYPEISSHM): Rename parameter to reflect its type.Jim Meyering
(main): Pass a `struct stat *', not stat.st_mode to S_TYPEISSHM.
2001-03-04(output_char): Reformat so each statement is on a separate line.Jim Meyering
2001-03-03(die): New function.Jim Meyering
(create_temp_file, xfopen, xfclose, write_bytes, sort_buffer_size, fillbuf, main): Use it to regularize error messages. The only change in behavior is that write_bytes and the final close used to say "write error" but now give just the output file name, which should be enough.
2001-03-03(xfclose): Add FILE arg, and report the file nameJim Meyering
on error. All callers changed.