platform/upstream/coreutils.git
19 years ago(docolon): Add IF_LINT check to avoid GCC warning.
Paul Eggert [Tue, 13 Sep 2005 22:30:56 +0000 (22:30 +0000)]
(docolon): Add IF_LINT check to avoid GCC warning.

19 years ago* configure.ac: Don't invoke AC_CONFIGURE_HOST directly.
Paul Eggert [Tue, 13 Sep 2005 22:20:25 +0000 (22:20 +0000)]
* configure.ac: Don't invoke AC_CONFIGURE_HOST directly.

19 years agoAdd date --rfc-3339.
Paul Eggert [Tue, 13 Sep 2005 22:09:25 +0000 (22:09 +0000)]
Add date --rfc-3339.

19 years agoAdd tests for --rfc-3339.
Paul Eggert [Tue, 13 Sep 2005 22:09:03 +0000 (22:09 +0000)]
Add tests for --rfc-3339.

19 years ago(TIME_SPEC_DATE): No longer needs to be nonzero, so
Paul Eggert [Tue, 13 Sep 2005 22:08:41 +0000 (22:08 +0000)]
(TIME_SPEC_DATE): No longer needs to be nonzero, so
remove the "=1".
(TIME_SOEC_HOURS, TIME_SPEC_MINUTES): Must be at end now, so put
them there.
(time_spec_string, time_spec): Hours and minutes must be at
start now, so put them there.
(rfc_2822_format): Now a string constant, not a boolean.  All uses
changed.
(iso_8601_format, rfc_format): Remove.
(RFC_3339_OPTION): New constant.
(long_options): Add --rfc-3339.
(usage): Add --rfc-3339.  Don't mention --iso-8601.
Mention %:z, %::z, %:::z.
(main): Simplify calculation of 'format'; it was getting too hairy
to follow.  Add --rfc-3339.
(show_date): Assume format arg is not NULL, which is the case
now.  The default code is moved to 'main'.  This simplifies things
and allows the default to be calculated just once.

19 years ago(my_strftime): Add support for %:z, %::z, %:::z.
Paul Eggert [Tue, 13 Sep 2005 22:08:18 +0000 (22:08 +0000)]
(my_strftime): Add support for %:z, %::z, %:::z.
Fix bug in formats like %2N.

19 years ago(Time conversion specifiers, Options for date):
Paul Eggert [Tue, 13 Sep 2005 22:07:58 +0000 (22:07 +0000)]
(Time conversion specifiers, Options for date):
Document date --rfc-3339 and new specifiers %:z, %::z, %:::z.  Use
"date and time" consistently; the old version sometimes said "time
and date".  Fix a minor bug in the documentation for --rfc-2822:
it claimed day-of-month < 10 had leading space, not leading zero.
Use a consistent format for terms like "RFC".

19 years agodate has a new --rfc-3339 option, and the old --iso-8601
Paul Eggert [Tue, 13 Sep 2005 22:07:34 +0000 (22:07 +0000)]
date has a new --rfc-3339 option, and the old --iso-8601
option is deprecated.  date and ls also have new time format
specifiers %:z, %::z, %:::z.

19 years agotweak comment
Jim Meyering [Tue, 13 Sep 2005 21:25:21 +0000 (21:25 +0000)]
tweak comment

19 years ago*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 21:11:29 +0000 (21:11 +0000)]
*** empty log message ***

19 years agoRevert unintended change that removed definitions
Jim Meyering [Tue, 13 Sep 2005 21:11:25 +0000 (21:11 +0000)]
Revert unintended change that removed definitions
of X2REALLOC and X2NREALLOC.

19 years agomostly update copyrights CPPI-1_12
Jim Meyering [Tue, 13 Sep 2005 15:46:12 +0000 (15:46 +0000)]
mostly update copyrights

19 years ago*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 15:43:51 +0000 (15:43 +0000)]
*** empty log message ***

19 years agoescape a $ in a diagnostic
Jim Meyering [Tue, 13 Sep 2005 15:42:45 +0000 (15:42 +0000)]
escape a $ in a diagnostic

19 years agodon't check for HAVE_UNISTD_H
Jim Meyering [Tue, 13 Sep 2005 14:58:56 +0000 (14:58 +0000)]
don't check for HAVE_UNISTD_H

19 years ago*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 14:14:46 +0000 (14:14 +0000)]
*** empty log message ***

19 years ago(GZIP_ENV): Add --rsyncable option.
Jim Meyering [Tue, 13 Sep 2005 14:14:41 +0000 (14:14 +0000)]
(GZIP_ENV): Add --rsyncable option.

19 years ago*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 13:54:01 +0000 (13:54 +0000)]
*** empty log message ***

19 years agoUse AB_INIT (from autobuild).
Jim Meyering [Tue, 13 Sep 2005 13:53:55 +0000 (13:53 +0000)]
Use AB_INIT (from autobuild).

19 years ago*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 13:52:27 +0000 (13:52 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Tue, 13 Sep 2005 13:52:16 +0000 (13:52 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 12:12:44 +0000 (12:12 +0000)]
*** empty log message ***

19 years agoUse ARGMATCH_VERIFY, just in case.
Jim Meyering [Tue, 13 Sep 2005 12:12:36 +0000 (12:12 +0000)]
Use ARGMATCH_VERIFY, just in case.

19 years ago*** empty log message ***
Jim Meyering [Sun, 11 Sep 2005 07:42:48 +0000 (07:42 +0000)]
*** empty log message ***

19 years ago(usage): Remove leading spaces in 2-line
Jim Meyering [Sun, 11 Sep 2005 07:42:43 +0000 (07:42 +0000)]
(usage): Remove leading spaces in 2-line
description, so that help2man doesn't mangle it.

19 years ago*** empty log message ***
Jim Meyering [Sun, 11 Sep 2005 07:41:56 +0000 (07:41 +0000)]
*** empty log message ***

19 years ago.
Jim Meyering [Sat, 10 Sep 2005 14:27:00 +0000 (14:27 +0000)]
.

19 years ago.
Jim Meyering [Sat, 10 Sep 2005 14:16:53 +0000 (14:16 +0000)]
.

19 years ago.
Jim Meyering [Sat, 10 Sep 2005 14:07:59 +0000 (14:07 +0000)]
.

19 years agoAdd test for the bug fixed today.
Jim Meyering [Sat, 10 Sep 2005 14:06:29 +0000 (14:06 +0000)]
Add test for the bug fixed today.

19 years ago*** empty log message ***
Jim Meyering [Sat, 10 Sep 2005 14:06:01 +0000 (14:06 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sat, 10 Sep 2005 13:56:56 +0000 (13:56 +0000)]
*** empty log message ***

19 years agocsplit could produce corrupt output, given input lines longer than 8KB
Jim Meyering [Sat, 10 Sep 2005 13:56:45 +0000 (13:56 +0000)]
csplit could produce corrupt output, given input lines longer than 8KB

(load_buffer): Don't read from free'd memory
when handling lines longer than the initial buffer length.
(save_to_hold_area): Don't leak the previous hold_area buffer.
Reported by Tristan Miller and Luke Kendall.
* NEWS: Mention this.

(load_buffer): Avoid integer overflow in buffer
size calculations for very long lines.

19 years ago*** empty log message ***
Jim Meyering [Sat, 10 Sep 2005 07:48:40 +0000 (07:48 +0000)]
*** empty log message ***

19 years agoInsert missing paren.
Paul Eggert [Sat, 10 Sep 2005 00:08:28 +0000 (00:08 +0000)]
Insert missing paren.

19 years agoRegenerate.
Paul Eggert [Fri, 9 Sep 2005 21:21:16 +0000 (21:21 +0000)]
Regenerate.

19 years agoFix typo in previous patch: @command{POSIX} -> @acronym{POSIX}.
Paul Eggert [Fri, 9 Sep 2005 21:16:49 +0000 (21:16 +0000)]
Fix typo in previous patch: @command{POSIX} -> @acronym{POSIX}.

19 years ago(tac_seekable): Store match length in regoff_t, not int. Assume that
Paul Eggert [Fri, 9 Sep 2005 21:11:36 +0000 (21:11 +0000)]
(tac_seekable): Store match length in regoff_t, not int.  Assume that
negative return values less than -2 represent regoff_t overflow.

19 years ago(SKIP_SOMETHING, find_occurs_in_text):
Paul Eggert [Fri, 9 Sep 2005 21:11:07 +0000 (21:11 +0000)]
(SKIP_SOMETHING, find_occurs_in_text):
Store match length in regoff_t,
not int.  Assume that negative return values less than -2
represent regoff_t overflow.
(matcher_error): New function.
(SKIP_SOMETHING, find_occurs_in_text): Use it to report matcher errors.
(alloc_and_compile_regex): No longer any need to worry about
int versus size_t mismatch.

19 years ago(proc_text): Store match length in regoff_t,
Paul Eggert [Fri, 9 Sep 2005 21:09:48 +0000 (21:09 +0000)]
(proc_text): Store match length in regoff_t,
not int.  Assume that negative return values less than -2
represent regoff_t overflow.
(build_type_arg): Check for size_t overflow.

19 years ago* src/expr.c (docolon): 64-bit regex fixes.
Paul Eggert [Fri, 9 Sep 2005 21:08:51 +0000 (21:08 +0000)]
* src/expr.c (docolon): 64-bit regex fixes.

19 years ago(process_regexp): Store match length in regoff_t,
Paul Eggert [Fri, 9 Sep 2005 21:08:19 +0000 (21:08 +0000)]
(process_regexp): Store match length in regoff_t,
not int.  Assume that negative return values less than -2
represent regoff_t overflow.

19 years agoImport latest regex module from gnulib, to fix some 64-bit bugs.
Paul Eggert [Fri, 9 Sep 2005 21:07:50 +0000 (21:07 +0000)]
Import latest regex module from gnulib, to fix some 64-bit bugs.

19 years agoMore nice fixes.
Paul Eggert [Fri, 9 Sep 2005 20:51:55 +0000 (20:51 +0000)]
More nice fixes.

19 years ago(nice invocation): Document "niceness" versus
Paul Eggert [Fri, 9 Sep 2005 20:50:51 +0000 (20:50 +0000)]
(nice invocation): Document "niceness" versus
"nice value" versus "scheduling priority".

19 years ago(main): Hoist errno=0 outside the ifdef.
Paul Eggert [Fri, 9 Sep 2005 20:47:46 +0000 (20:47 +0000)]
(main): Hoist errno=0 outside the ifdef.

19 years ago(utils_cv_func_setpriority): Simplify the tests.
Paul Eggert [Fri, 9 Sep 2005 20:47:29 +0000 (20:47 +0000)]
(utils_cv_func_setpriority): Simplify the tests.
Define HAVE_NICE rather than NICE_PRIORITY (since a niceness is
not a priority); all uses changed.

19 years agoDocument "niceness" vs "nice value".
Paul Eggert [Fri, 9 Sep 2005 20:46:54 +0000 (20:46 +0000)]
Document "niceness" vs "nice value".

19 years ago*** empty log message ***
Jim Meyering [Fri, 9 Sep 2005 07:30:01 +0000 (07:30 +0000)]
*** empty log message ***

19 years ago(neg-secs2, fill-1, fill-2): Add new tests.
Jim Meyering [Fri, 9 Sep 2005 07:22:27 +0000 (07:22 +0000)]
(neg-secs2, fill-1, fill-2): Add new tests.

19 years agoUse the phrase "niceness" instead of "nice value" to describe
Paul Eggert [Thu, 8 Sep 2005 06:52:09 +0000 (06:52 +0000)]
Use the phrase "niceness" instead of "nice value" to describe
the biased nice value that can go negative.  This corrects
a discrepancy with POSIX, which states that nice values are
nonnegative.

19 years ago*** empty log message ***
Jim Meyering [Wed, 7 Sep 2005 06:11:11 +0000 (06:11 +0000)]
*** empty log message ***

19 years ago(time_args): Use NULL in place of 0.
Jim Meyering [Wed, 7 Sep 2005 06:08:01 +0000 (06:08 +0000)]
(time_args): Use NULL in place of 0.

19 years ago* verify.h: Use a bit-field instead.
Paul Eggert [Tue, 6 Sep 2005 08:21:20 +0000 (08:21 +0000)]
* verify.h: Use a bit-field instead.

19 years ago(__builtin_constant_p): Remove, undoing previous change.
Paul Eggert [Tue, 6 Sep 2005 08:20:56 +0000 (08:20 +0000)]
(__builtin_constant_p): Remove, undoing previous change.
(verify_type__): Solve the problem by using a bit-field rather
than an array.

19 years ago.
Jim Meyering [Mon, 5 Sep 2005 17:17:47 +0000 (17:17 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Mon, 5 Sep 2005 17:13:21 +0000 (17:13 +0000)]
*** empty log message ***

19 years ago(setuid-etc): New test, for today's addition of colorization for
Jim Meyering [Mon, 5 Sep 2005 17:13:09 +0000 (17:13 +0000)]
(setuid-etc): New test, for today's addition of colorization for
setuid, setgid files and sticky, other-writable, sticky-and-other-writable
directories.

19 years agoColorize set-user-ID and set-group-ID files and sticky,
Jim Meyering [Mon, 5 Sep 2005 17:12:07 +0000 (17:12 +0000)]
Colorize set-user-ID and set-group-ID files and sticky,
other-writable, and sticky-and-other-writable directories.

(indicator_no[]): Add new symbols.
(indicator_name[]): Add corresponding mode strings.
(color_indicator[]): Add an entry for each new mode string.
(print_color_indicator): Honor new types.

From Mike Frysinger, based on a patch from Fedora.

19 years agoColorize set-user-ID and set-group-ID files and sticky,
Jim Meyering [Mon, 5 Sep 2005 17:11:39 +0000 (17:11 +0000)]
Colorize set-user-ID and set-group-ID files and sticky,
other-writable, and sticky-and-other-writable directories.

Document the default colors for the new strings.
From Mike Frysinger, based on a patch from Fedora.

19 years agoColorize set-user-ID and set-group-ID files and sticky,
Jim Meyering [Mon, 5 Sep 2005 17:11:15 +0000 (17:11 +0000)]
Colorize set-user-ID and set-group-ID files and sticky,
other-writable, and sticky-and-other-writable directories.

(slack_codes): Add new dircolors mode names.
(ls_codes): Add corresponding two-letter ls mode strings.
From Mike Frysinger, based on a patch from Fedora.

19 years ago*** empty log message ***
Jim Meyering [Mon, 5 Sep 2005 16:57:46 +0000 (16:57 +0000)]
*** empty log message ***

19 years ago(__builtin_constant_p) [__GNUC__ <= 2]: Define to 1.
Jim Meyering [Mon, 5 Sep 2005 16:57:40 +0000 (16:57 +0000)]
(__builtin_constant_p) [__GNUC__ <= 2]: Define to 1.
(verify_type__) [verify_error_if_non_const__]: New member/test,
to help detect when verify or verify_expr is mistakenly passed
a non-constant argument within a function.

19 years agoDon't omit comments until there is better documentation.
Jim Meyering [Mon, 5 Sep 2005 15:06:37 +0000 (15:06 +0000)]
Don't omit comments until there is better documentation.

19 years ago.
Jim Meyering [Sun, 4 Sep 2005 20:08:25 +0000 (20:08 +0000)]
.

19 years ago.
Jim Meyering [Sun, 4 Sep 2005 20:06:36 +0000 (20:06 +0000)]
.

19 years agoClarify comment about size bounds.
Paul Eggert [Thu, 1 Sep 2005 19:31:10 +0000 (19:31 +0000)]
Clarify comment about size bounds.

19 years agoRequire gl_STAT_MACROS
Jim Meyering [Thu, 1 Sep 2005 18:10:34 +0000 (18:10 +0000)]
Require gl_STAT_MACROS

19 years ago*** empty log message ***
Jim Meyering [Thu, 1 Sep 2005 18:10:12 +0000 (18:10 +0000)]
*** empty log message ***

19 years agoRequire gl_FUNC_CHOWN, for the definition of
Jim Meyering [Thu, 1 Sep 2005 18:06:54 +0000 (18:06 +0000)]
Require gl_FUNC_CHOWN, for the definition of
CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.

19 years ago*** empty log message ***
Jim Meyering [Wed, 31 Aug 2005 07:51:07 +0000 (07:51 +0000)]
*** empty log message ***

19 years ago(quotearg_n_options): Change code to be suboptimal, in
Jim Meyering [Wed, 31 Aug 2005 07:51:04 +0000 (07:51 +0000)]
(quotearg_n_options): Change code to be suboptimal, in
order to avoid an unsuppressible warning from gcc on 64-bit systems.

19 years ago*** empty log message ***
Jim Meyering [Wed, 31 Aug 2005 07:20:21 +0000 (07:20 +0000)]
*** empty log message ***

19 years ago(get_charset_aliases): Add `void' in parameter list
Jim Meyering [Wed, 31 Aug 2005 07:19:26 +0000 (07:19 +0000)]
(get_charset_aliases): Add `void' in parameter list
to placate gcc's -Wstrict-prototypes.

19 years ago"rm -FOO" now suggests "rm ./-FOO" if the file "-FOO"
Paul Eggert [Mon, 29 Aug 2005 21:14:06 +0000 (21:14 +0000)]
"rm -FOO" now suggests "rm ./-FOO" if the file "-FOO"
exists and "-FOO" is not a valid option.

19 years agoInclude lstat.h, quotearg.h.
Paul Eggert [Mon, 29 Aug 2005 21:13:32 +0000 (21:13 +0000)]
Include lstat.h, quotearg.h.
(diagnose_leading_hyphen): New function.
(main): Use it.

19 years agoupdate from gnulib
Jim Meyering [Sun, 28 Aug 2005 09:18:33 +0000 (09:18 +0000)]
update from gnulib

19 years agoNew file
Jim Meyering [Sat, 27 Aug 2005 20:50:42 +0000 (20:50 +0000)]
New file

19 years agoInclude <sys/types.h> and declare creat_safer.
Jim Meyering [Sat, 27 Aug 2005 20:43:26 +0000 (20:43 +0000)]
Include <sys/types.h> and declare creat_safer.

19 years ago*** empty log message ***
Jim Meyering [Sat, 27 Aug 2005 20:42:53 +0000 (20:42 +0000)]
*** empty log message ***

19 years agosync from gnulib
Jim Meyering [Sat, 27 Aug 2005 20:40:31 +0000 (20:40 +0000)]
sync from gnulib

19 years ago*** empty log message ***
Jim Meyering [Sat, 27 Aug 2005 19:05:28 +0000 (19:05 +0000)]
*** empty log message ***

19 years agoGo ahead and leave the patch in (i.e., revert
Jim Meyering [Sat, 27 Aug 2005 19:05:24 +0000 (19:05 +0000)]
Go ahead and leave the patch in (i.e., revert
today's change).  It doesn't cause a problem after all, since
--exclude-from=- is always handled before --files0-from=F.

19 years ago*** empty log message ***
Jim Meyering [Sat, 27 Aug 2005 18:12:58 +0000 (18:12 +0000)]
*** empty log message ***

19 years agoRevert the du.c part of the change from 2005-07-02:
Jim Meyering [Sat, 27 Aug 2005 18:12:54 +0000 (18:12 +0000)]
Revert the du.c part of the change from 2005-07-02:
That change (to reopen stdin on F for --files0-from=F) made it so
--exclude-from=- and --files0-from=F would not work together.

19 years ago*** empty log message ***
Jim Meyering [Sat, 27 Aug 2005 16:12:25 +0000 (16:12 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Sat, 27 Aug 2005 16:12:16 +0000 (16:12 +0000)]
*** empty log message ***

19 years agoUse `#error' rather than a string literal to provoke failure.
Jim Meyering [Sat, 27 Aug 2005 16:11:43 +0000 (16:11 +0000)]
Use `#error' rather than a string literal to provoke failure.

19 years ago*** empty log message ***
Jim Meyering [Thu, 25 Aug 2005 16:28:21 +0000 (16:28 +0000)]
*** empty log message ***

19 years agoInclude <config.h>.
Jim Meyering [Thu, 25 Aug 2005 16:28:18 +0000 (16:28 +0000)]
Include <config.h>.
Otherwise, we'd lose LARGEFILE support in any file using e.g. "fcntl--.h"

19 years ago*** empty log message ***
Jim Meyering [Wed, 24 Aug 2005 15:25:33 +0000 (15:25 +0000)]
*** empty log message ***

19 years ago(stdopen): Revert to iterating over descriptors, but
Jim Meyering [Wed, 24 Aug 2005 15:25:29 +0000 (15:25 +0000)]
(stdopen): Revert to iterating over descriptors, but
rather than using fstat, use fcntl with its F_GETFD flag, which
is more efficient.  Unlike the 2-syscall dup-close approach,
this one doesn't apply any unnecessary pressure on the file
descriptor pool -- thus there is one fewer way to fail.

19 years agoadjust prototype
Jim Meyering [Wed, 24 Aug 2005 13:01:31 +0000 (13:01 +0000)]
adjust prototype
Include stdbool.h.

19 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 19:42:08 +0000 (19:42 +0000)]
*** empty log message ***

19 years agoUpdate from gnulib.
Jim Meyering [Tue, 23 Aug 2005 19:41:09 +0000 (19:41 +0000)]
Update from gnulib.

19 years ago.
Jim Meyering [Tue, 23 Aug 2005 16:58:04 +0000 (16:58 +0000)]
.

19 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 16:57:42 +0000 (16:57 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 16:52:13 +0000 (16:52 +0000)]
*** empty log message ***

19 years ago(sc_useless_cpp_parens): New rule.
Jim Meyering [Tue, 23 Aug 2005 16:52:09 +0000 (16:52 +0000)]
(sc_useless_cpp_parens): New rule.
(syntax-check-rules): Add it.

19 years ago*** empty log message ***
Jim Meyering [Tue, 23 Aug 2005 16:51:07 +0000 (16:51 +0000)]
*** empty log message ***