platform/upstream/coreutils.git
19 years ago(sparse_type_string, reply_args, decode_preserve_arg): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 17:49:12 +0000 (17:49 +0000)]
(sparse_type_string, reply_args, decode_preserve_arg): Use NULL, not `0'.

19 years ago(long_options): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 17:47:48 +0000 (17:47 +0000)]
(long_options): Use NULL, not `0'.

19 years ago(long_options): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 17:46:55 +0000 (17:46 +0000)]
(long_options): Use NULL, not `0'.

19 years ago*** empty log message ***
Jim Meyering [Mon, 28 Mar 2005 17:37:13 +0000 (17:37 +0000)]
*** empty log message ***

19 years ago(GETOPT_HELP_OPTION_DECL): Use NULL, not `0'.
Jim Meyering [Mon, 28 Mar 2005 17:37:07 +0000 (17:37 +0000)]
(GETOPT_HELP_OPTION_DECL): Use NULL, not `0'.
(GETOPT_VERSION_OPTION_DECL): Likewise.

19 years ago*** empty log message ***
Jim Meyering [Sun, 27 Mar 2005 16:40:43 +0000 (16:40 +0000)]
*** empty log message ***

19 years ago(argmatch): Clarify comment: null-terminated -> NULL-terminated.
Jim Meyering [Sun, 27 Mar 2005 16:40:02 +0000 (16:40 +0000)]
(argmatch): Clarify comment: null-terminated -> NULL-terminated.

19 years ago*** empty log message ***
Jim Meyering [Sun, 27 Mar 2005 08:40:38 +0000 (08:40 +0000)]
*** empty log message ***

19 years agoUse the same global destructor as dcgen.
Jim Meyering [Sun, 27 Mar 2005 08:40:30 +0000 (08:40 +0000)]
Use the same global destructor as dcgen.

19 years agoSimplify further, clean up. Require perl-5.002.
Jim Meyering [Sun, 27 Mar 2005 08:35:16 +0000 (08:35 +0000)]
Simplify further, clean up.  Require perl-5.002.
Add a standard-output-closing global destructor.

19 years agoClarify NUL vs null byte vs null character.
Paul Eggert [Sat, 26 Mar 2005 18:43:30 +0000 (18:43 +0000)]
Clarify NUL vs null byte vs null character.

19 years agoPropagate intprops.h comment fixes to mktime.c and strftime.c.
Paul Eggert [Sat, 26 Mar 2005 18:08:24 +0000 (18:08 +0000)]
Propagate intprops.h comment fixes to mktime.c and strftime.c.

19 years agoone's complement -> ones' complement
Paul Eggert [Sat, 26 Mar 2005 17:55:33 +0000 (17:55 +0000)]
one's complement -> ones' complement

19 years agoone's complement -> ones' complement
Paul Eggert [Sat, 26 Mar 2005 17:55:05 +0000 (17:55 +0000)]
one's complement -> ones' complement

19 years agoFix comment nits in intprops.h.
Paul Eggert [Sat, 26 Mar 2005 17:49:37 +0000 (17:49 +0000)]
Fix comment nits in intprops.h.

19 years agoFix comment nits.
Paul Eggert [Sat, 26 Mar 2005 17:49:22 +0000 (17:49 +0000)]
Fix comment nits.

19 years agoSimplify dcgen and dircolors.c.
Paul Eggert [Sat, 26 Mar 2005 17:41:26 +0000 (17:41 +0000)]
Simplify dcgen and dircolors.c.

19 years ago(parse_line): Use char *, not unsigned char *. This avoids casts.
Paul Eggert [Sat, 26 Mar 2005 17:39:17 +0000 (17:39 +0000)]
(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.

19 years agoSqueeze multiple blanks into one. Output a simple
Paul Eggert [Sat, 26 Mar 2005 17:38:48 +0000 (17:38 +0000)]
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.

19 years ago*** empty log message ***
Jim Meyering [Sat, 26 Mar 2005 14:58:28 +0000 (14:58 +0000)]
*** empty log message ***

19 years ago(usage): Document usage of LS_COLORS.
Jim Meyering [Sat, 26 Mar 2005 14:53:45 +0000 (14:53 +0000)]
(usage): Document usage of LS_COLORS.

19 years ago* src/dircolors.hin: Add "TERM cygin".
Paul Eggert [Sat, 26 Mar 2005 06:57:50 +0000 (06:57 +0000)]
* src/dircolors.hin: Add "TERM cygin".

19 years agoAdd "TERM cygwin".
Paul Eggert [Sat, 26 Mar 2005 06:56:01 +0000 (06:56 +0000)]
Add "TERM cygwin".

19 years ago*** empty log message ***
Jim Meyering [Fri, 25 Mar 2005 21:00:25 +0000 (21:00 +0000)]
*** empty log message ***

19 years ago(main): Update use of DECIMAL_DIGIT_ACCUMULATE.
Jim Meyering [Fri, 25 Mar 2005 20:59:48 +0000 (20:59 +0000)]
(main): Update use of DECIMAL_DIGIT_ACCUMULATE.

19 years ago(parse_tab_stops, main): Update use of DECIMAL_DIGIT_ACCUMULATE.
Jim Meyering [Fri, 25 Mar 2005 20:59:26 +0000 (20:59 +0000)]
(parse_tab_stops, main): Update use of DECIMAL_DIGIT_ACCUMULATE.

19 years ago(set_fields): Update use of DECIMAL_DIGIT_ACCUMULATE.
Jim Meyering [Fri, 25 Mar 2005 20:59:07 +0000 (20:59 +0000)]
(set_fields): Update use of DECIMAL_DIGIT_ACCUMULATE.

19 years ago(DECIMAL_DIGIT_ACCUMULATE): Reverse the sense of
Jim Meyering [Fri, 25 Mar 2005 20:58:57 +0000 (20:58 +0000)]
(DECIMAL_DIGIT_ACCUMULATE): Reverse the sense of
the return value, and update callers:

19 years ago*** empty log message ***
Jim Meyering [Wed, 23 Mar 2005 12:47:54 +0000 (12:47 +0000)]
*** empty log message ***

19 years agoRemove duplicate `#include "stat-macros.h"'.
Jim Meyering [Wed, 23 Mar 2005 12:47:46 +0000 (12:47 +0000)]
Remove duplicate `#include "stat-macros.h"'.

19 years ago*** empty log message ***
Jim Meyering [Tue, 22 Mar 2005 16:17:56 +0000 (16:17 +0000)]
*** empty log message ***

19 years agoReflect renaming: config -> build-aux.
Jim Meyering [Tue, 22 Mar 2005 16:17:50 +0000 (16:17 +0000)]
Reflect renaming: config -> build-aux.

19 years ago.
Jim Meyering [Tue, 22 Mar 2005 16:17:25 +0000 (16:17 +0000)]
.

19 years agoReflect renaming: config -> build-aux.
Jim Meyering [Tue, 22 Mar 2005 16:17:07 +0000 (16:17 +0000)]
Reflect renaming: config -> build-aux.

19 years agoReflect renaming: config -> build-aux.
Jim Meyering [Tue, 22 Mar 2005 16:09:18 +0000 (16:09 +0000)]
Reflect renaming: config -> build-aux.

19 years agoReflect renaming: config -> build-aux.
Jim Meyering [Tue, 22 Mar 2005 15:38:40 +0000 (15:38 +0000)]
Reflect renaming: config -> build-aux.

19 years agomoved to ../build-aux
Jim Meyering [Tue, 22 Mar 2005 15:10:35 +0000 (15:10 +0000)]
moved to ../build-aux

19 years ago*** empty log message ***
Jim Meyering [Tue, 22 Mar 2005 15:09:58 +0000 (15:09 +0000)]
*** empty log message ***

19 years agoReflect renaming: config -> build-aux.
Jim Meyering [Tue, 22 Mar 2005 15:09:54 +0000 (15:09 +0000)]
Reflect renaming: config -> build-aux.

19 years ago.
Jim Meyering [Tue, 22 Mar 2005 15:08:26 +0000 (15:08 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Tue, 22 Mar 2005 14:51:41 +0000 (14:51 +0000)]
*** empty log message ***

19 years ago(get_funky_string): Use '\a', rather than 7, for portability to EBCDIC hosts.
Jim Meyering [Tue, 22 Mar 2005 14:51:34 +0000 (14:51 +0000)]
(get_funky_string): Use '\a', rather than 7, for portability to EBCDIC hosts.

19 years agoRegenerate.
Paul Eggert [Mon, 21 Mar 2005 22:32:29 +0000 (22:32 +0000)]
Regenerate.

19 years ago* Makefile.am (libfetish_a_SOURCES): Remove stat-macros.h, xstrtoul.c,
Paul Eggert [Mon, 21 Mar 2005 22:31:18 +0000 (22:31 +0000)]
* Makefile.am (libfetish_a_SOURCES): Remove stat-macros.h, xstrtoul.c,
as they are now done by Autoconf macros.

19 years ago(libfetish_a_SOURCES): Remove stat-macros.h, xstrtoul.c,
Paul Eggert [Mon, 21 Mar 2005 22:31:05 +0000 (22:31 +0000)]
(libfetish_a_SOURCES): Remove stat-macros.h, xstrtoul.c,
as they are now done by Autoconf macros.

19 years agoImport a few more changes from gnulib.
Paul Eggert [Mon, 21 Mar 2005 22:28:15 +0000 (22:28 +0000)]
Import a few more changes from gnulib.

19 years ago(gl_XSTRTOL): Add xstrtoul.c to AC_LIBSOURCES.
Paul Eggert [Mon, 21 Mar 2005 22:27:46 +0000 (22:27 +0000)]
(gl_XSTRTOL): Add xstrtoul.c to AC_LIBSOURCES.
Add xstrtoul to AC_LIBOBJ.

19 years agoAdd stat-macros.h to AC_LIBSOURCES.
Paul Eggert [Mon, 21 Mar 2005 22:27:09 +0000 (22:27 +0000)]
Add stat-macros.h to AC_LIBSOURCES.

19 years agoRegenerate.
Paul Eggert [Mon, 21 Mar 2005 20:37:19 +0000 (20:37 +0000)]
Regenerate.

19 years agoReplace onceonly.m4 with onceonly_2_57.m4 to shrink "configure".
Paul Eggert [Mon, 21 Mar 2005 20:33:48 +0000 (20:33 +0000)]
Replace onceonly.m4 with onceonly_2_57.m4 to shrink "configure".

19 years agoImport memcasecmp.m4 change from gnulib.
Paul Eggert [Mon, 21 Mar 2005 20:15:37 +0000 (20:15 +0000)]
Import memcasecmp.m4 change from gnulib.

19 years agogl_FUNC_MEMCASECMP -> gl_MEMCASECMP
Paul Eggert [Mon, 21 Mar 2005 20:15:18 +0000 (20:15 +0000)]
gl_FUNC_MEMCASECMP -> gl_MEMCASECMP

19 years agoAnother change imported from gnulib.
Paul Eggert [Mon, 21 Mar 2005 20:14:56 +0000 (20:14 +0000)]
Another change imported from gnulib.
(gl_MEMCASECMP): Renamed from gl_FUNC_MEMCASECMP.
All uses changed.  Require AC_HEADER_STDC instead of invoking it.
Remove check for stddef.h, size_t, const, since we now assume
C89 or better.

19 years ago.
Jim Meyering [Mon, 21 Mar 2005 10:15:27 +0000 (10:15 +0000)]
.

19 years agoSync from gnulib.
Paul Eggert [Mon, 21 Mar 2005 07:42:07 +0000 (07:42 +0000)]
Sync from gnulib.

19 years ago*** empty log message ***
Jim Meyering [Sun, 20 Mar 2005 19:53:44 +0000 (19:53 +0000)]
*** empty log message ***

19 years ago(init_header): Use zero-filled `.%09d' format, not space-filled `.%9d'.
Jim Meyering [Sun, 20 Mar 2005 19:53:30 +0000 (19:53 +0000)]
(init_header): Use zero-filled `.%09d' format, not space-filled `.%9d'.

19 years ago*** empty log message ***
Jim Meyering [Sun, 20 Mar 2005 19:25:31 +0000 (19:25 +0000)]
*** empty log message ***

19 years ago(init_header): Add missing `%' in format string.
Jim Meyering [Sun, 20 Mar 2005 19:25:15 +0000 (19:25 +0000)]
(init_header): Add missing `%' in format string.

19 years ago(parse_column_count): Adjust comment to match the code.
Jim Meyering [Sun, 20 Mar 2005 18:40:40 +0000 (18:40 +0000)]
(parse_column_count): Adjust comment to match the code.

19 years ago.
Jim Meyering [Sat, 19 Mar 2005 14:20:47 +0000 (14:20 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Sat, 19 Mar 2005 13:58:55 +0000 (13:58 +0000)]
*** empty log message ***

19 years ago(pr_LDADD): Now that pr uses gettime, add
Jim Meyering [Sat, 19 Mar 2005 13:58:51 +0000 (13:58 +0000)]
(pr_LDADD): Now that pr uses gettime, add
$(LIB_CLOCK_GETTIME) to get the required -lrt on newer Linux systems.

19 years agopr -D "FORMAT" now accepts the same formats that date +"FORMAT" does.
Paul Eggert [Sat, 19 Mar 2005 06:20:20 +0000 (06:20 +0000)]
pr -D "FORMAT" now accepts the same formats that date +"FORMAT" does.

19 years ago"pr -D FORMAT" now accepts the same formats that "date +FORMAT" does.
Paul Eggert [Sat, 19 Mar 2005 06:20:01 +0000 (06:20 +0000)]
"pr -D FORMAT" now accepts the same formats that "date +FORMAT" does.

19 years agoInclude strftime.h, timespec.h.
Paul Eggert [Sat, 19 Mar 2005 06:18:19 +0000 (06:18 +0000)]
Include strftime.h, timespec.h.
(init_header): Obtain and format nanosecond part of time stamp.

19 years ago* strftime.c (my_strftime): If the underlying strftime returns 0
Paul Eggert [Sat, 19 Mar 2005 05:33:16 +0000 (05:33 +0000)]
* strftime.c (my_strftime): If the underlying strftime returns 0
(which shouldn't happen), generate nothing instead of returning 0
immediately, so that nstrftime (NULL, ...) doesn't return 0.

19 years ago(my_strftime): If the underlying strftime returns 0
Paul Eggert [Sat, 19 Mar 2005 05:33:01 +0000 (05:33 +0000)]
(my_strftime): If the underlying strftime returns 0
(which shouldn't happen), generate nothing instead of returning 0
immediately, so that nstrftime (NULL, ...) doesn't return 0.

19 years agonohup now ignores the umask when creating nohup.out.
Paul Eggert [Sat, 19 Mar 2005 00:46:47 +0000 (00:46 +0000)]
nohup now ignores the umask when creating nohup.out.
nohup now closes stderr if it is a terminal and stdout is closed.

19 years ago* coreutils.texi (nohup invocation): Clarify nohup.out creation.
Paul Eggert [Sat, 19 Mar 2005 00:46:29 +0000 (00:46 +0000)]
* coreutils.texi (nohup invocation): Clarify nohup.out creation.

19 years ago(nohup invocation): Clarify nohup.out creation.
Paul Eggert [Sat, 19 Mar 2005 00:46:16 +0000 (00:46 +0000)]
(nohup invocation): Clarify nohup.out creation.

19 years ago(main): nohup now ignores the umask when creating nohup.out.
Paul Eggert [Sat, 19 Mar 2005 00:45:48 +0000 (00:45 +0000)]
(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.

19 years agonohup now ignores the umask when creating nohup.out.
Paul Eggert [Sat, 19 Mar 2005 00:45:08 +0000 (00:45 +0000)]
nohup now ignores the umask when creating nohup.out.
nohup now closes stderr if it is a terminal and stdout is closed.

19 years agocomment tweak
Jim Meyering [Fri, 18 Mar 2005 09:38:31 +0000 (09:38 +0000)]
comment tweak

19 years agoAdd comments for new macros.
Jim Meyering [Fri, 18 Mar 2005 09:37:54 +0000 (09:37 +0000)]
Add comments for new macros.

19 years agofix typo
Jim Meyering [Fri, 18 Mar 2005 06:51:40 +0000 (06:51 +0000)]
fix typo

19 years agotweak comment
Jim Meyering [Thu, 17 Mar 2005 20:50:50 +0000 (20:50 +0000)]
tweak comment

19 years ago*** empty log message ***
Jim Meyering [Thu, 17 Mar 2005 19:02:06 +0000 (19:02 +0000)]
*** empty log message ***

19 years ago(gl_PREREQ): Require gl_TYPEOF.
Jim Meyering [Thu, 17 Mar 2005 19:01:39 +0000 (19:01 +0000)]
(gl_PREREQ): Require gl_TYPEOF.

19 years ago(gl_TYPEOF): New file/macro.
Jim Meyering [Thu, 17 Mar 2005 19:01:15 +0000 (19:01 +0000)]
(gl_TYPEOF): New file/macro.

19 years agoMake __typeof__-using code depend on HAVE_TYPEOF, not __GNUC__,
Jim Meyering [Thu, 17 Mar 2005 19:00:52 +0000 (19:00 +0000)]
Make __typeof__-using code depend on HAVE_TYPEOF, not __GNUC__,
since so many other C compilers also honor __typeof__.

19 years agospacing nit
Jim Meyering [Thu, 17 Mar 2005 18:08:46 +0000 (18:08 +0000)]
spacing nit

19 years agoFix typo.
Jim Meyering [Thu, 17 Mar 2005 17:43:54 +0000 (17:43 +0000)]
Fix typo.

19 years ago(DECIMAL_DIGIT_ACCUMULATE): The use of __typeof__ must be conditional.
Jim Meyering [Thu, 17 Mar 2005 17:42:53 +0000 (17:42 +0000)]
(DECIMAL_DIGIT_ACCUMULATE): The use of __typeof__ must be conditional.

19 years ago*** empty log message ***
Jim Meyering [Thu, 17 Mar 2005 17:38:28 +0000 (17:38 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Thu, 17 Mar 2005 15:34:53 +0000 (15:34 +0000)]
*** empty log message ***

19 years ago(main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code.
Jim Meyering [Thu, 17 Mar 2005 15:33:50 +0000 (15:33 +0000)]
(main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code.

19 years ago(parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro in
Jim Meyering [Thu, 17 Mar 2005 15:32:53 +0000 (15:32 +0000)]
(parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro in
place of nearly-equivalent code.

19 years ago(main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code.
Jim Meyering [Thu, 17 Mar 2005 15:32:10 +0000 (15:32 +0000)]
(main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code.

19 years ago(parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro in
Jim Meyering [Thu, 17 Mar 2005 15:30:00 +0000 (15:30 +0000)]
(parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro in
place of nearly-equivalent code.

19 years ago(set_fields): Use DECIMAL_DIGIT_ACCUMULATE macro in
Jim Meyering [Thu, 17 Mar 2005 14:35:42 +0000 (14:35 +0000)]
(set_fields): Use DECIMAL_DIGIT_ACCUMULATE macro in
place of nearly-equivalent code.

19 years agoUse VERIFY macro in place of an equivalent open-coded declaration.
Jim Meyering [Thu, 17 Mar 2005 14:34:23 +0000 (14:34 +0000)]
Use VERIFY macro in place of an equivalent open-coded declaration.

19 years ago(VERIFY, VERIFY_EXPR, DECIMAL_DIGIT_ACCUMULATE): New macros.
Jim Meyering [Thu, 17 Mar 2005 14:33:39 +0000 (14:33 +0000)]
(VERIFY, VERIFY_EXPR, DECIMAL_DIGIT_ACCUMULATE): New macros.

19 years agoBefore, this command would make uniq skip 11 fields and print
Jim Meyering [Thu, 17 Mar 2005 14:27:12 +0000 (14:27 +0000)]
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'.

19 years ago* strftime.c (my_strftime): Prepend space to format.
Paul Eggert [Wed, 16 Mar 2005 01:01:36 +0000 (01:01 +0000)]
* strftime.c (my_strftime): Prepend space to format.

19 years ago(my_strftime): Prepend space to format so that we can
Paul Eggert [Wed, 16 Mar 2005 01:01:23 +0000 (01:01 +0000)]
(my_strftime): Prepend space to format so that we can
reliably distinguish strftime failure from empty output on POSIX
hosts.

19 years ago.
Jim Meyering [Tue, 15 Mar 2005 19:24:19 +0000 (19:24 +0000)]
.

19 years ago.
Jim Meyering [Tue, 15 Mar 2005 18:10:50 +0000 (18:10 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Tue, 15 Mar 2005 18:10:26 +0000 (18:10 +0000)]
*** empty log message ***

19 years agoBoth `pr -0' and e.g., `pr -03' would evoke `column count too large'.
Jim Meyering [Tue, 15 Mar 2005 18:09:05 +0000 (18:09 +0000)]
Both `pr -0' and e.g., `pr -03' would 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.

Add tests for the above.