summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2003-09-28Remove unnecessary casts of alloca, since now it's guaranteed to be (void *).Jim Meyering
2003-09-28Remove unnecessary cast of alloca, since now it's guaranteed to be (void *).Jim Meyering
2003-09-28Remove unnecessary cast of alloca, since now it's guaranteed to be (void *).Jim Meyering
2003-09-28Minor efficiency tweak.Jim Meyering
(PATH_BASENAME_CONCAT): Use memcpy rather than strcpy. (do_link): Likewise.
2003-09-27Don't exhaust virtual memory when processing large inputs.Jim Meyering
Fix this by removing csplit's internal free-list management; instead rely on malloc for that. (free_list): Remove global. (clear_all_line_control): Remove function. (get_new_buffer): Always use create_new_buffer to obtain a new buffer, rather than searching free_list. (free_buffer): Just call free.
2003-09-26.Jim Meyering
2003-09-24(check_and_close, dump, dump_strings): Don't report bogus errno valueJim Meyering
after ferror discovers an output error. We don't know the proper errno value, since it might have been caused by any of a whole bunch of calls, and it might have been trashed in the meantime. Fixing this problem will require much more extensive changes; in the meantime just say "write error". (skip): If a read fails, don't retry it later, so that we report the proper errno.
2003-09-23(get_line): Report error right away if I/O fails,Jim Meyering
so that the proper errno value is used.
2003-09-23(close_output_file): Don't report bogus errno valueJim Meyering
after ferror discovers an output error. We don't know the proper errno value, since it might have been caused by any of a whole bunch of calls, and it might have been trashed in the meantime. Fixing this problem will require much more extensive changes; in the meantime just say "write error".
2003-09-23(paste_serial): Save errno after input error,Jim Meyering
to report proper errno value. Based on a patch from Paul Eggert.
2003-09-23(fold_file): Save errno after input error, to report proper errno value.Jim Meyering
2003-09-23(compare_files): Save errno after input error, to report proper errno value.Jim Meyering
2003-09-23(unexpand): Save errno after input error, to report proper errno value.Jim Meyering
2003-09-23(tee): Adjust fwrite arguments so that the returnJim Meyering
value is the number of bytes written.
2003-09-22(tac_mem): Don't return a value; nobody uses it.Jim Meyering
2003-09-22(tee): Once a write failure has occurred, don't botherJim Meyering
writing anything more to that stream.
2003-09-22(check_file): Report error right away if I/O fails,Jim Meyering
so that the proper errno value is used. (check_file): Check for ferror (stdout) even if ostream == stdout. (check_file): Don't report bogus errno value after ferror discovers an output error. We don't know the proper errno value, since it might have been caused by any of a whole bunch of calls, and it might have been trashed in the meantime. Fixing this problem will require much more extensive changes; in the meantime just say "write error".
2003-09-22(UNROLL): Remove.Jim Meyering
(main): Exit immediately when write failure is detected. Simplify code by assigning to argv when argc == 1.
2003-09-22Switch encoding from Latin-1 to UTF-8.Jim Meyering
(WRITTEN_BY): Change "Franc,ois" (actually using c-with-cedilla in Latin-1) to "F.", so that it's ASCII, as xgettext requires.
2003-09-19`du -D symlink-to-dir' would mistakenly omit the slash inJim Meyering
lines like this: 24 symlink-to-dir/subdir (process_file): Fix offset calculation. Reported by Jeff Sheinberg as Debian bug #211591; http://bugs.debian.org/205251
2003-09-19(process_file): Remove useless disjunct.Jim Meyering
2003-09-18*** empty log message ***Jim Meyering
2003-09-18(WRITTEN_BY): Rename from AUTHORS.Jim Meyering
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable.
2003-09-18(case_GETOPT_VERSION_CHAR): Rename parameter, Authors, to Written_by.Jim Meyering
2003-09-18revert previous changeJim Meyering
2003-09-18Update AUTHORS definition to be a comma-separated list of strings and/or updateJim Meyering
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-09-18(case_GETOPT_VERSION_CHAR): Append NULL to version_etc argument list.Jim Meyering
2003-09-18(main): Append NULL to version_etc argument list.Jim Meyering
2003-09-18(numcompare): Rename local, logb, to log_b to avoidJim Meyering
shadowing the math function name. Also rename loga to log_a.
2003-09-14(print_factors): Give a separate diagnosticJim Meyering
for numbers that are too large, but otherwise valid.
2003-09-10.Jim Meyering
2003-09-09Alphabetize includes.Jim Meyering
Remove duplicate inclusion of "same.h".
2003-09-09.Jim Meyering
2003-09-08Add a comment.Jim Meyering
2003-09-07(D_INO, ENABLE_CYCLE_CHECK) [D_INO_IN_DIRENT]:Jim Meyering
Don't define. These symbols are no longer used.
2003-09-07.Jim Meyering
2003-09-06(enum): Add ALLOW_MISSING_OPTION.Jim Meyering
(parse_options): Give a diagnostic for (but still accept) the deprecated --allow-missing option.
2003-09-05.Jim Meyering
2003-09-05Don't ignore -S if input is a pipe. Bug report by Michael McFarland inJim Meyering
<http://mail.gnu.org/archive/html/bug-coreutils/2003-09/msg00008.html>. (sort_buffer_size): Omit SIZE_BOUND arg. Compute the size_bound ourselves. if an input file is a pipe and the user specified a size, use that size instead of trying to guess the pipe size. This has the beneficial side effect of avoiding the overhead of default_sort_size in that case. All callers changed. (sort): Remove static var size; now done by sort_buffer_size.
2003-09-05(elide_tail_lines_pipe): Don't assign 0 or SAFE_READ_ERROR to tmp->nbytes.Jim Meyering
(struct linebuffer): Change nbytes and nlines from unsigned int to size_t. unsigned int is safe (after the 2003-09-03 patch) but size_t is cleaner. Standardize on BUFSIZ as opposed to other macro names and values. (BUFSIZE): Remove. All uses changed to BUFSIZ.
2003-09-05(pipe_lines, pipe_bytes): Don't assign 0 or SAFE_READ_ERROR to tmp->nbytes.Jim Meyering
(struct linebuffer, struct charbuffer): Change nbytes and nlines from unsigned int to size_t. unsigned int is safe (after the 2003-09-03 patch) but size_t is cleaner. (pipe_bytes): Likewise for local variable 'i', which was 'int'. Standardize on BUFSIZ as opposed to other macro names and values. (BUFSIZ) [!defined BUFSIZ]: Remove. stdio.h has always defined it, and other code already assumes it's defined.
2003-09-05Standardize on BUFSIZ as opposed to other macro names and values.Jim Meyering
(BUFSIZ) [!defined BUFSIZ]: Don't define. (IO_BUF_SIZE): Remove; replace all uses with sizeof io_buf. (io_buf): IO_BUF_SIZE -> BUFSIZ.
2003-09-05(step): Default to 1.Jim Meyering
(print_numbers): Allow the output to be empty. (main): The default step is 1, even if LAST < FIRST; as per documentation.
2003-09-04This makes seq's --width (-w) option work properly even when theJim Meyering
endpoint requiring the largest width is negative and smaller than the other endpoint. (get_width_format): Include `-' in the set of bytes allowed in a `simple' number (no decimal point, no exponent).
2003-09-04(usage): Say "blanks" instead of "whitespace",Jim Meyering
Similar fixes for many comments. (TAB_DEFAULT): New constant, so that we can support NUL as the field separator. (tab): Now int, not char. Initialize to TAB_DEFAULT. (specify_sort_size): If multiple sizes are specified, use the largest. (begfield, limfield): Support NUL tab char. (set_ordering): Do not let -i override -d. (main): Report an error if incompatible -o or -t options are given. Report an error for "-t ''". Allow "-t '\0'" to specify a NUL tab.
2003-09-04(elide_tail_lines_pipe): Don't truncate return value from safe_read.Jim Meyering
2003-09-04(pipe_lines): Don't truncate return value from safe_read.Jim Meyering
2003-09-03(AUTHORS): Remove Larry McVoy's name, since the relativelyJim Meyering
small amount of code from him was first moved to lib/human.c, and was subsequently rewritten entirely.
2003-08-31(split_3): Accept the BSD format for genericJim Meyering
message digest modes. Currently works with BSD's MD5 and SHA1 formats since these are the two algorithms presently used in coreutils. Updated comments to reflect this change. (bsd_split_3): Updated comments.
2003-08-31Change meaning of -l from --lookup to --login, per POSIX.Jim Meyering
who's -l option has been eliciting an unconditional warning about this impending change since sh-utils-2.0.12 (April 2002).