summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2003-07-22don't include stdboo.h. it's already included via system.hJim Meyering
2003-07-22.Jim Meyering
2003-07-22*** empty log message ***Jim Meyering
2003-07-22(main) [lint]: Initialize spec_list_string to avoid warning.Jim Meyering
2003-07-22Don't include <unistd.h>. system.h already does that.Jim Meyering
2003-07-22*** empty log message ***Jim Meyering
2003-07-22(set_fields): Mark all selected indices before trying toJim Meyering
determine range endpoints.
2003-07-22New test for the above fix.Jim Meyering
2003-07-22*** empty log message ***Jim Meyering
2003-07-22Begin to address this comment: What if someone wants toJim Meyering
extract the 1,000,000-th field of some huge input file? The first step is to rearrange things so that the values in the printable_field array are all 0/1 rather than 0/1/2. (RANGE_START_SENTINEL): Remove. Store range-start indices in a hash table, rather than overloading the `printable_field' array. (range_start_ht): New global. (hash_int, hash_compare_ints, is_range_start_index): New functions. (print_kth): Use is_range_start_index; don't test printable_field. (set_fields): Detect overflow. (set_fields): Insert each range-start index into range_start_ht. (main): Call set_fields only once, and only after output_delimiter_specified and (if required) range_start_ht have been defined.
2003-07-20*** empty log message ***Jim Meyering
2003-07-20(get_input_fstatus): Fix typo: `stat' was beingJim Meyering
invoked with a null pointer when there were no file arguments.
2003-07-20*** empty log message ***Jim Meyering
2003-07-20(sc_changelog): Add another nit-picky check.Jim Meyering
2003-07-20.Jim Meyering
2003-07-20.Jim Meyering
2003-07-20*** empty log message ***Jim Meyering
2003-07-20*** empty log message ***Jim Meyering
2003-07-20*** empty log message ***Jim Meyering
2003-07-20(write_counts): Add a comment.Jim Meyering
(wc): Rename `file' parameter. Set new local, `file', to be the file name, or (when it's NULL) _("standard output") so that all uses of `file' use the proper value. Use STREQ, not strcmp.
2003-07-20*** empty log message ***Jim Meyering
2003-07-20Adjust to the new output widths.Jim Meyering
2003-07-20wc count field widths now are heuristically adjusted dependingJim Meyering
on the input size, if known. If only one count is printed, it is guaranteed to be printed without leading spaces. Previously, wc did not align the count fields if POSIXLY_CORRECT was set, but POSIX did not actually require this undesirable behavior, so it has been removed. * doc/coreutils.texi (wc invocation): Likewise.
2003-07-20*** empty log message ***Jim Meyering
2003-07-20(number_width): New var.Jim Meyering
(posixly_correct): Remove. (struct fstatus): New struct. (write_counts): Output fields of width number_width. Do not worry about POSIXLY_CORRECT. Use null file, not empty-string file, to denote stdin, since "" is a valid file name on some hosts. (wc, wc_file): New arg fstatus. Use it to avoid invoking fstat if possible. (wc): Avoid problems if end_pos - current_pos overflows. Do not print odd message if stdin has a read error. (get_input_fstatus, compute_number_width): New functions. (main): Use them to implement the new behavior. Ignore POSIXLY_CORRECT.
2003-07-20convert each 8-space prefix to a TABJim Meyering
2003-07-20convert each 8-space prefix to a TABJim Meyering
2003-07-20convert each 8-space prefix to a TABJim Meyering
2003-07-20convert each 8-space prefix to a TABJim Meyering
2003-07-20*** empty log message ***Jim Meyering
2003-07-20*** empty log message ***Jim Meyering
2003-07-20*** empty log message ***Jim Meyering
2003-07-20from gnulibJim Meyering
2003-07-20(jm_MACROS): Invoke gl_MEMCOLL.Jim Meyering
2003-07-19*** empty log message ***Jim Meyering
2003-07-19Restore definition of $verbose.Jim Meyering
2003-07-19Don't create temporary directory -- we don't use it.Jim Meyering
2003-07-19*** empty log message ***Jim Meyering
2003-07-19remove now-redundant VERSION checkJim Meyering
2003-07-19*** empty log message ***Jim Meyering
2003-07-19Don't open-code test for UID != 0.Jim Meyering
Use priv-check's require-non-root instead. Update to use newer framework.
2003-07-19*** empty log message ***Jim Meyering
2003-07-19(expected_failure_status_expr): Record thatJim Meyering
expr exits with status of 3 for e.g., a write error.
2003-07-19*** empty log message ***Jim Meyering
2003-07-19Use `id -u' to see if we're running as root,Jim Meyering
rather than trying go write to an write-protected file. When running as root, ensure $NON_ROOT_USERNAME is valid. When running as root with `require-non-root', ensure that `.' is writable by $NON_ROOT_USERNAME, then reinvoke $0 set-user-ID to $NON_ROOT_USERNAME. If `.' is not writable, then skip the test.
2003-07-19*** empty log message ***Jim Meyering
2003-07-19Include "exitfail.h".Jim Meyering
(main): Set exit_failure rather than calling close_stdout_set_status.
2003-07-19Include "exitfail.h".Jim Meyering
(main): Set exit_failure rather than calling close_stdout_set_status.
2003-07-19*** empty log message ***Jim Meyering
2003-07-19Likewise. Include "closeout.h" right after config.h,Jim Meyering
to test that it can stand by itself. Include "exitfail.h". Clients should set exit_failure instead. (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.