summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
2005-03-27Use the same global destructor as dcgen.Jim Meyering-8/+9
2005-03-27Simplify further, clean up. Require perl-5.002.Jim Meyering-32/+25
Add a standard-output-closing global destructor.
2005-03-26(parse_line): Use char *, not unsigned char *. This avoids casts.Paul Eggert-26/+26
(dc_parse_stream, main): Avoid casts. Adjust to simpler data structure generated by new dcgen.
2005-03-26Squeeze multiple blanks into one. Output a simplePaul Eggert-38/+9
array of adjacent strings rather than a more complicated data structure; this saves space in the dircolors executable.
2005-03-26(usage): Document usage of LS_COLORS.Jim Meyering-1/+2
2005-03-26Add "TERM cygwin".Paul Eggert-0/+1
2005-03-25(main): Update use of DECIMAL_DIGIT_ACCUMULATE.Jim Meyering-2/+2
2005-03-25(parse_tab_stops, main): Update use of DECIMAL_DIGIT_ACCUMULATE.Jim Meyering-4/+4
2005-03-25(set_fields): Update use of DECIMAL_DIGIT_ACCUMULATE.Jim Meyering-1/+1
2005-03-25(DECIMAL_DIGIT_ACCUMULATE): Reverse the sense ofJim Meyering-8/+6
the return value, and update callers:
2005-03-22.Jim Meyering-3/+3
2005-03-22(get_funky_string): Use '\a', rather than 7, for portability to EBCDIC hosts.Jim Meyering-1/+1
2005-03-21Regenerate.Paul Eggert-2/+2
2005-03-21.Jim Meyering-1/+1
2005-03-20(init_header): Use zero-filled `.%09d' format, not space-filled `.%9d'.Jim Meyering-1/+1
2005-03-20(init_header): Add missing `%' in format string.Jim Meyering-1/+1
2005-03-20(parse_column_count): Adjust comment to match the code.Jim Meyering-1/+1
2005-03-19.Jim Meyering-8/+8
2005-03-19(pr_LDADD): Now that pr uses gettime, addJim Meyering-0/+1
$(LIB_CLOCK_GETTIME) to get the required -lrt on newer Linux systems.
2005-03-19Include strftime.h, timespec.h.Paul Eggert-13/+24
(init_header): Obtain and format nanosecond part of time stamp.
2005-03-19(main): nohup now ignores the umask when creating nohup.out.Paul Eggert-25/+25
nohup now closes stderr if it is a terminal and stdout is closed. Be a little more paranoid about return values; e.g., check for any negative return from open. Assume free (NULL) works. Close file descriptor leak when redirecting standard output to a file.
2005-03-18comment tweakJim Meyering-1/+1
2005-03-18Add comments for new macros.Jim Meyering-3/+5
2005-03-18fix typoJim Meyering-1/+1
2005-03-17Make __typeof__-using code depend on HAVE_TYPEOF, not __GNUC__,Jim Meyering-4/+4
since so many other C compilers also honor __typeof__.
2005-03-17spacing nitJim Meyering-1/+1
2005-03-17Fix typo.Jim Meyering-1/+1
2005-03-17(DECIMAL_DIGIT_ACCUMULATE): The use of __typeof__ must be conditional.Jim Meyering-1/+7
2005-03-17(main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code.Jim Meyering-4/+2
2005-03-17(parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro inJim Meyering-6/+2
place of nearly-equivalent code.
2005-03-17(main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code.Jim Meyering-4/+2
2005-03-17(parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro inJim Meyering-6/+2
place of nearly-equivalent code.
2005-03-17(set_fields): Use DECIMAL_DIGIT_ACCUMULATE macro inJim Meyering-5/+2
place of nearly-equivalent code.
2005-03-17Use VERIFY macro in place of an equivalent open-coded declaration.Jim Meyering-6/+3
2005-03-17(VERIFY, VERIFY_EXPR, DECIMAL_DIGIT_ACCUMULATE): New macros.Jim Meyering-0/+24
2005-03-17Before, this command would make uniq skip 11 fields and printJim Meyering-3/+14
only the first line. $ _POSIX2_VERSION=1 ./uniq -f1 -1 <(seq --format='1 %g' 2) 1 1 1 2 (main): Interpret `uniq -f1 -1' like `uniq -f1', not like `uniq -f11'.
2005-03-15.Jim Meyering-1/+1
2005-03-15Both `pr -0' and e.g., `pr -03' evoke `column count too large'.Jim Meyering-16/+22
`pr -0' should give a better diagnostic and `pr -03' should be equivalent to `pr -3'. (parse_column_count): Change return type to void. Call error (EXIT_FAILURE, ... for an invalid string. (main): Allocate space for column_count_string using malloc. Accumulate all old-style column-count digits before converting. When the number of columns is specified via both old-style, (e.g., -3), and a long option (--columns=5), ensure that only the last one specified takes effect.
2005-03-15(copy_reg): Copy regular files in binary mode.Jim Meyering-0/+1
2005-03-12Add a little infrastructure to help prevent future bugs like theJim Meyering-46/+63
one fixed today. (xstrcat): New function. (print_statfs, print_stat): Add buf_len parameter and convert all uses of strcat to xstrcat. Update callers. (print_it): Call print_func with buf_len parameter.
2005-03-12Invoking stat -c FMT with a lone format directive of %s, %f, %h, %s,Jim Meyering-1/+1
could cause a buffer overrun error. (print_it): Allocate 2 more bytes, to accommodate our conversion of the stat %s format string to the longer printf %llu one. Patch from Guochun Shi.
2005-03-11(TIME_STAMP_LEN_MAXIMUM): New constant.Paul Eggert-49/+27
(long_time_expected_width, print_long_format): Use it, to avoid some possible denial-of-service attacks.
2005-03-11Prompt once again for `mv -i A B' when A and B are hard linksJim Meyering-9/+25
to the same file. This fixes a bug introduced by my 2003-04-04 (coreutils-5.0.1) change. (abandon_move): New function, factored out of copy_internal, now that this code is being used from two places. (copy_internal): Perform the same interactive-related test for whether it's alright to proceed and (usually) overwrite the destination file.
2005-03-10(long_time_expected_width): Use x2nrealloc, not alloca,Jim Meyering-3/+21
so format string abuse cannot provoke stack overflow. (print_long_format): Likewise.
2005-03-10Don't segfault for a long header date string, e.g.,Jim Meyering-9/+10
echo a|pr -D +%9999999A (init_header): Use x2nrealloc, rather than alloca. Don't bother with fixed-sized initial buffer; always use x*alloc.
2005-03-10(tostring, printv): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1.Jim Meyering-2/+2
2005-03-10(init_header): Use INT_BUFSIZE_BOUND in place of INT_STRLEN_BOUND + 1.Jim Meyering-1/+1
2005-03-09.Jim Meyering-1/+1
2005-03-09Include intprops.h.Paul Eggert-12/+1
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND): Remove; they are now defined in intprops.h.
2005-03-09.Jim Meyering-26/+26