Paul Eggert [Fri, 16 Sep 2005 07:39:18 +0000 (07:39 +0000)]
(ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
(MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
in a different way.
(timespec_cmp): New function.
Jim Meyering [Fri, 16 Sep 2005 07:39:08 +0000 (07:39 +0000)]
*** empty log message ***
Paul Eggert [Fri, 16 Sep 2005 07:38:17 +0000 (07:38 +0000)]
New file.
Paul Eggert [Fri, 16 Sep 2005 07:36:48 +0000 (07:36 +0000)]
New file.
Paul Eggert [Fri, 16 Sep 2005 07:36:35 +0000 (07:36 +0000)]
Add stat-time.h.
Jim Meyering [Fri, 16 Sep 2005 07:35:32 +0000 (07:35 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 07:33:41 +0000 (07:33 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 07:33:36 +0000 (07:33 +0000)]
Include fprintftime.h.
Don't include strftime.h or xanstrftime.h -- no longer needed.
(show_date): Use fprintftime rather than xanstrftime.
Jim Meyering [Fri, 16 Sep 2005 07:32:13 +0000 (07:32 +0000)]
(libcoreutils_a_SOURCES): Add fprintftime.c and fprintftime.h.
Jim Meyering [Fri, 16 Sep 2005 07:31:34 +0000 (07:31 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 07:31:29 +0000 (07:31 +0000)]
[FPRINTFTIME] (fprintftime): Provide a new interface:
size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
int utc, int nanoseconds);
Background:
date should not have to allocate a megabyte of virtual memory to
handle a format argument like +%1048575T. When implemented with
strftime, it must allocate such a buffer, use strftime to fill it
in, print it, then free it.
With fprintftime, it simply prints everything and exits.
With no need for memory allocation, that's one fewer way to fail.
Jim Meyering [Fri, 16 Sep 2005 07:01:00 +0000 (07:01 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 06:54:26 +0000 (06:54 +0000)]
*** empty log message ***
Jim Meyering [Fri, 16 Sep 2005 06:54:19 +0000 (06:54 +0000)]
(subfmt-up1): Test the combination of the
to-upper-case modifier (^) and a conversion specifier that
expands to a string containing lower case characters.
Paul Eggert [Thu, 15 Sep 2005 19:57:04 +0000 (19:57 +0000)]
(usage, main): uname -a no longer generates the -p and -i outputs if
they are unknown.
Paul Eggert [Thu, 15 Sep 2005 19:56:35 +0000 (19:56 +0000)]
uname -a no longer generates the -p and -i outputs if they are unknown.
Paul Eggert [Thu, 15 Sep 2005 18:48:13 +0000 (18:48 +0000)]
Rewrite previous strftime change slightly.
Paul Eggert [Thu, 15 Sep 2005 18:47:56 +0000 (18:47 +0000)]
(my_strftime): Rewrite the previous change slightly,
to make it a bit faster and (I hope) clearer.
Jim Meyering [Wed, 14 Sep 2005 16:10:41 +0000 (16:10 +0000)]
*** empty log message ***
Jim Meyering [Wed, 14 Sep 2005 16:10:38 +0000 (16:10 +0000)]
(my_strftime): Be sure to use L_('x') for literals.
Jim Meyering [Wed, 14 Sep 2005 10:02:57 +0000 (10:02 +0000)]
*** empty log message ***
Jim Meyering [Wed, 14 Sep 2005 10:02:54 +0000 (10:02 +0000)]
(my_strftime): Parse the colons of %:::z *after* the
optional field width, not before, so we accept %9:z, not %:9z.
Jim Meyering [Wed, 14 Sep 2005 09:54:27 +0000 (09:54 +0000)]
*** empty log message ***
Jim Meyering [Wed, 14 Sep 2005 09:54:15 +0000 (09:54 +0000)]
(tz-5w, tz-5wf): Test new %:z format with a field width.
Paul Eggert [Wed, 14 Sep 2005 06:59:17 +0000 (06:59 +0000)]
Fix typos noted by Eric Blake.
Paul Eggert [Wed, 14 Sep 2005 06:58:44 +0000 (06:58 +0000)]
Add tz-1 through tz-5.
Paul Eggert [Wed, 14 Sep 2005 06:58:08 +0000 (06:58 +0000)]
(my_strftime): Fix typo in octal number introduced in last change.
Paul Eggert [Wed, 14 Sep 2005 06:57:35 +0000 (06:57 +0000)]
du and pr also have +:z etc.
Paul Eggert [Tue, 13 Sep 2005 23:32:50 +0000 (23:32 +0000)]
Merge md5 from libc, and clean up some sha1 glitches.
Paul Eggert [Tue, 13 Sep 2005 23:32:35 +0000 (23:32 +0000)]
(SWAP): Renamed from NOTSWAP, to avoid a horrible misnaming.
All uses changed. Remove the old SWAP.
Remove obvious comment about BLOCKSIZE.
(rol): New macro, moved here from md5.h.
(sha1_process_block): Remove an incoherent FIXME comment.
Paul Eggert [Tue, 13 Sep 2005 23:32:15 +0000 (23:32 +0000)]
(struct sha1_ctx): Mark buffer as being aligned.
Paul Eggert [Tue, 13 Sep 2005 23:32:01 +0000 (23:32 +0000)]
(CYCLIC): New macro. All uses of rol changed to use CYCLIC.
Redo comment to minimize changes from libc.
Paul Eggert [Tue, 13 Sep 2005 23:31:37 +0000 (23:31 +0000)]
(__GNUC_PREREQ, __THROW, __attribute__): New macros.
(__md5_buffer): Renamed from md5_buffer. Add a macro undoing this
if _LIBC is not defined. Add __THROW.
(__md5_finish_ctx, __md5_init_ctx, __md5_process_block):
(__md5_process_bytes, __md5_read_ctx, __md5_stream): Likewise.
(struct md5_ctx): Mark buffer as being aligned.
(rol): Remove; all uses changed to CYCLIC.
Paul Eggert [Tue, 13 Sep 2005 23:01:59 +0000 (23:01 +0000)]
Fix wording in previous patch.
Paul Eggert [Tue, 13 Sep 2005 22:57:25 +0000 (22:57 +0000)]
(uname invocation): Mention that Linux outputs "unknown" for -i and -p.
Paul Eggert [Tue, 13 Sep 2005 22:43:11 +0000 (22:43 +0000)]
* src/dd.c: Detect some very unlikely buffer overflows.
(INPUT_BLOCK_SLOP, OUTPUT_BLOCK_SLOP): New macros.
(MAX_BLOCKSIZE): Now accepts an arg. All uses changed.
(page_size): New var.
(scanargs, skip, main): Use more-straightforward way to detect overflow.
(dd_copy): Use page_size rather than invoking getpagesize.
Use INPUT_BLOCK_SLOP, OUTPUT_BLOCK_SLOP.
(main): Set page_size.
Avoid a call to stat in the usual case where ftruncate succeeds.
Paul Eggert [Tue, 13 Sep 2005 22:30:56 +0000 (22:30 +0000)]
(docolon): Add IF_LINT check to avoid GCC warning.
Paul Eggert [Tue, 13 Sep 2005 22:20:25 +0000 (22:20 +0000)]
* configure.ac: Don't invoke AC_CONFIGURE_HOST directly.
Paul Eggert [Tue, 13 Sep 2005 22:09:25 +0000 (22:09 +0000)]
Add date --rfc-3339.
Paul Eggert [Tue, 13 Sep 2005 22:09:03 +0000 (22:09 +0000)]
Add tests for --rfc-3339.
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.
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.
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".
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.
Jim Meyering [Tue, 13 Sep 2005 21:25:21 +0000 (21:25 +0000)]
tweak comment
Jim Meyering [Tue, 13 Sep 2005 21:11:29 +0000 (21:11 +0000)]
*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 21:11:25 +0000 (21:11 +0000)]
Revert unintended change that removed definitions
of X2REALLOC and X2NREALLOC.
Jim Meyering [Tue, 13 Sep 2005 15:46:12 +0000 (15:46 +0000)]
mostly update copyrights
Jim Meyering [Tue, 13 Sep 2005 15:43:51 +0000 (15:43 +0000)]
*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 15:42:45 +0000 (15:42 +0000)]
escape a $ in a diagnostic
Jim Meyering [Tue, 13 Sep 2005 14:58:56 +0000 (14:58 +0000)]
don't check for HAVE_UNISTD_H
Jim Meyering [Tue, 13 Sep 2005 14:14:46 +0000 (14:14 +0000)]
*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 14:14:41 +0000 (14:14 +0000)]
(GZIP_ENV): Add --rsyncable option.
Jim Meyering [Tue, 13 Sep 2005 13:54:01 +0000 (13:54 +0000)]
*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 13:53:55 +0000 (13:53 +0000)]
Use AB_INIT (from autobuild).
Jim Meyering [Tue, 13 Sep 2005 13:52:27 +0000 (13:52 +0000)]
*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 13:52:16 +0000 (13:52 +0000)]
.
Jim Meyering [Tue, 13 Sep 2005 12:12:44 +0000 (12:12 +0000)]
*** empty log message ***
Jim Meyering [Tue, 13 Sep 2005 12:12:36 +0000 (12:12 +0000)]
Use ARGMATCH_VERIFY, just in case.
Jim Meyering [Sun, 11 Sep 2005 07:42:48 +0000 (07:42 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 11 Sep 2005 07:41:56 +0000 (07:41 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Sep 2005 14:27:00 +0000 (14:27 +0000)]
.
Jim Meyering [Sat, 10 Sep 2005 14:16:53 +0000 (14:16 +0000)]
.
Jim Meyering [Sat, 10 Sep 2005 14:07:59 +0000 (14:07 +0000)]
.
Jim Meyering [Sat, 10 Sep 2005 14:06:29 +0000 (14:06 +0000)]
Add test for the bug fixed today.
Jim Meyering [Sat, 10 Sep 2005 14:06:01 +0000 (14:06 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Sep 2005 13:56:56 +0000 (13:56 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 10 Sep 2005 07:48:40 +0000 (07:48 +0000)]
*** empty log message ***
Paul Eggert [Sat, 10 Sep 2005 00:08:28 +0000 (00:08 +0000)]
Insert missing paren.
Paul Eggert [Fri, 9 Sep 2005 21:21:16 +0000 (21:21 +0000)]
Regenerate.
Paul Eggert [Fri, 9 Sep 2005 21:16:49 +0000 (21:16 +0000)]
Fix typo in previous patch: @command{POSIX} -> @acronym{POSIX}.
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.
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.
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.
Paul Eggert [Fri, 9 Sep 2005 21:08:51 +0000 (21:08 +0000)]
* src/expr.c (docolon): 64-bit regex fixes.
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.
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.
Paul Eggert [Fri, 9 Sep 2005 20:51:55 +0000 (20:51 +0000)]
More nice fixes.
Paul Eggert [Fri, 9 Sep 2005 20:50:51 +0000 (20:50 +0000)]
(nice invocation): Document "niceness" versus
"nice value" versus "scheduling priority".
Paul Eggert [Fri, 9 Sep 2005 20:47:46 +0000 (20:47 +0000)]
(main): Hoist errno=0 outside the ifdef.
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.
Paul Eggert [Fri, 9 Sep 2005 20:46:54 +0000 (20:46 +0000)]
Document "niceness" vs "nice value".
Jim Meyering [Fri, 9 Sep 2005 07:30:01 +0000 (07:30 +0000)]
*** empty log message ***
Jim Meyering [Fri, 9 Sep 2005 07:22:27 +0000 (07:22 +0000)]
(neg-secs2, fill-1, fill-2): Add new tests.
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.
Jim Meyering [Wed, 7 Sep 2005 06:11:11 +0000 (06:11 +0000)]
*** empty log message ***
Jim Meyering [Wed, 7 Sep 2005 06:08:01 +0000 (06:08 +0000)]
(time_args): Use NULL in place of 0.
Paul Eggert [Tue, 6 Sep 2005 08:21:20 +0000 (08:21 +0000)]
* verify.h: Use a bit-field instead.
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.
Jim Meyering [Mon, 5 Sep 2005 17:17:47 +0000 (17:17 +0000)]
.
Jim Meyering [Mon, 5 Sep 2005 17:13:21 +0000 (17:13 +0000)]
*** empty log message ***
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.
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.
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.
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.
Jim Meyering [Mon, 5 Sep 2005 16:57:46 +0000 (16:57 +0000)]
*** empty log message ***
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.
Jim Meyering [Mon, 5 Sep 2005 15:06:37 +0000 (15:06 +0000)]
Don't omit comments until there is better documentation.