Commit Graph
4943 Commits
Author SHA1 Message Date
Jim Meyering 637eeea9bd (find_mount_point, show_point): Use NULL, not `0'. 2005-03-28 17:59:54 +00:00
Jim Meyering d8c14fc15e (extract_regexp): Use NULL, not `0'. 2005-03-28 17:57:57 +00:00
Jim Meyering 3fbb037ff8 (copy_reg): Use NULL, not `0'. 2005-03-28 17:55:43 +00:00
Jim Meyering 87c01f7dcb (long_options): Use NULL, not `0'. 2005-03-28 17:54:13 +00:00
Jim Meyering 47f1cd0d8a (chopt_init): Use NULL, not `0'. 2005-03-28 17:50:54 +00:00
Jim Meyering 5f107875c5 (reply_args): Use NULL, not `0'. 2005-03-28 17:50:14 +00:00
Jim Meyering b2edc18b20 (sparse_type_string, reply_args, decode_preserve_arg): Use NULL, not `0'. 2005-03-28 17:49:12 +00:00
Jim Meyering 6705c31311 (long_options): Use NULL, not `0'. 2005-03-28 17:47:48 +00:00
Jim Meyering 60d48be63c (long_options): Use NULL, not `0'. 2005-03-28 17:46:55 +00:00
Jim Meyering 13f07e7893 (GETOPT_HELP_OPTION_DECL): Use NULL, not `0'.
(GETOPT_VERSION_OPTION_DECL): Likewise.
2005-03-28 17:37:07 +00:00
Jim Meyering ae95bdc5e7 Use the same global destructor as dcgen. 2005-03-27 08:40:30 +00:00
Jim Meyering e2b271d81d Simplify further, clean up. Require perl-5.002.
Add a standard-output-closing global destructor.
2005-03-27 08:35:16 +00:00
Paul Eggert 6f7e430f4b (parse_line): Use char *, not unsigned char *. This avoids casts.
(dc_parse_stream, main): Avoid casts.
Adjust to simpler data structure generated by new dcgen.
2005-03-26 17:39:17 +00:00
Paul Eggert 4e149db6d1 Squeeze multiple blanks into one. Output a simple
array of adjacent strings rather than a more complicated data
structure; this saves space in the dircolors executable.
2005-03-26 17:38:48 +00:00
Jim Meyering 4e9420afd2 (usage): Document usage of LS_COLORS. 2005-03-26 14:53:45 +00:00
Paul Eggert 80e5790de6 Add "TERM cygwin". 2005-03-26 06:56:01 +00:00
Jim Meyering 622816d41a (main): Update use of DECIMAL_DIGIT_ACCUMULATE. 2005-03-25 20:59:48 +00:00
Jim Meyering 3bf2d948e7 (parse_tab_stops, main): Update use of DECIMAL_DIGIT_ACCUMULATE. 2005-03-25 20:59:26 +00:00
Jim Meyering 0d22e40caf (set_fields): Update use of DECIMAL_DIGIT_ACCUMULATE. 2005-03-25 20:59:07 +00:00
Jim Meyering c7f57f1750 (DECIMAL_DIGIT_ACCUMULATE): Reverse the sense of
the return value, and update callers:
2005-03-25 20:58:57 +00:00
Jim Meyering 0c7d9eda5c . 2005-03-22 16:17:25 +00:00
Jim Meyering e49f13c2cf (get_funky_string): Use '\a', rather than 7, for portability to EBCDIC hosts. 2005-03-22 14:51:34 +00:00
Paul Eggert 78fa4b674d Regenerate. 2005-03-21 20:37:19 +00:00
Jim Meyering 438cf50659 . 2005-03-21 10:15:27 +00:00
Jim Meyering 2168f7c7a1 (init_header): Use zero-filled .%09d' format, not space-filled .%9d'. 2005-03-20 19:53:30 +00:00
Jim Meyering b8c473b62e (init_header): Add missing `%' in format string. 2005-03-20 19:25:15 +00:00
Jim Meyering 3feaa088bd (parse_column_count): Adjust comment to match the code. 2005-03-20 18:40:40 +00:00
Jim Meyering 33f2ed5c4d . 2005-03-19 14:20:47 +00:00
Jim Meyering bb425f2177 (pr_LDADD): Now that pr uses gettime, add
$(LIB_CLOCK_GETTIME) to get the required -lrt on newer Linux systems.
2005-03-19 13:58:51 +00:00
Paul Eggert 2bad486665 Include strftime.h, timespec.h.
(init_header): Obtain and format nanosecond part of time stamp.
2005-03-19 06:18:19 +00:00
Paul Eggert c8f3dc402b (main): nohup now ignores the umask when creating nohup.out.
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-19 00:45:48 +00:00
Jim Meyering 0ef98b62fb comment tweak 2005-03-18 09:38:31 +00:00
Jim Meyering 500175daed Add comments for new macros. 2005-03-18 09:37:54 +00:00
Jim Meyering aa450da526 fix typo 2005-03-18 06:51:40 +00:00
Jim Meyering 4ef7ce47dc Make __typeof__-using code depend on HAVE_TYPEOF, not __GNUC__,
since so many other C compilers also honor __typeof__.
2005-03-17 19:00:52 +00:00
Jim Meyering e778babb00 spacing nit 2005-03-17 18:08:46 +00:00
Jim Meyering cc391abad8 Fix typo. 2005-03-17 17:43:54 +00:00
Jim Meyering 6b0f94088c (DECIMAL_DIGIT_ACCUMULATE): The use of __typeof__ must be conditional. 2005-03-17 17:42:53 +00:00
Jim Meyering 9e1e48f018 (main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code. 2005-03-17 15:33:50 +00:00
Jim Meyering f864f6df1c (parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro in
place of nearly-equivalent code.
2005-03-17 15:32:53 +00:00
Jim Meyering 3bf5718c30 (main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code. 2005-03-17 15:32:10 +00:00
Jim Meyering b90c3e4609 (parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro in
place of nearly-equivalent code.
2005-03-17 15:30:00 +00:00
Jim Meyering 183cba6524 (set_fields): Use DECIMAL_DIGIT_ACCUMULATE macro in
place of nearly-equivalent code.
2005-03-17 14:35:42 +00:00
Jim Meyering a26f414348 Use VERIFY macro in place of an equivalent open-coded declaration. 2005-03-17 14:34:23 +00:00
Jim Meyering c74255c9b6 (VERIFY, VERIFY_EXPR, DECIMAL_DIGIT_ACCUMULATE): New macros. 2005-03-17 14:33:39 +00:00
Jim Meyering cee4fe1969 Before, this command would make uniq skip 11 fields and print
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-17 14:27:12 +00:00
Jim Meyering 331efbd2db . 2005-03-15 19:24:19 +00:00
Jim Meyering 6d9f816b5c Both pr -0' and e.g., pr -03' evoke `column count too large'.
`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 18:05:13 +00:00
Jim Meyering d583b1ce69 (copy_reg): Copy regular files in binary mode. 2005-03-15 15:39:40 +00:00
Jim Meyering e1ba36b607 Add a little infrastructure to help prevent future bugs like the
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-12 10:59:23 +00:00