1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-25 18:19:00 +02:00
Commit Graph

21673 Commits

Author SHA1 Message Date
Paul Eggert 14d1fdaec1 (CYCLIC): New macro. All uses of rol changed to use CYCLIC.
Redo comment to minimize changes from libc.
2005-09-13 23:32:01 +00:00
Paul Eggert a19c71988b (__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.
2005-09-13 23:31:37 +00:00
Paul Eggert 9e64eb8369 Fix wording in previous patch. 2005-09-13 23:01:59 +00:00
Paul Eggert f4e071662d (uname invocation): Mention that Linux outputs "unknown" for -i and -p. 2005-09-13 22:57:25 +00:00
Paul Eggert 36081fa635 * 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.
2005-09-13 22:43:11 +00:00
Paul Eggert 360b98042f (docolon): Add IF_LINT check to avoid GCC warning. 2005-09-13 22:30:56 +00:00
Paul Eggert 24cae62c93 * configure.ac: Don't invoke AC_CONFIGURE_HOST directly. 2005-09-13 22:20:25 +00:00
Paul Eggert b673eeb49c Add date --rfc-3339. 2005-09-13 22:09:25 +00:00
Paul Eggert 7cc7ac0574 Add tests for --rfc-3339. 2005-09-13 22:09:03 +00:00
Paul Eggert 2c29ba03ac (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.
2005-09-13 22:08:41 +00:00
Paul Eggert 7846768c6c (my_strftime): Add support for %:z, %::z, %:::z.
Fix bug in formats like %2N.
2005-09-13 22:08:18 +00:00
Paul Eggert 602043e0b8 (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".
2005-09-13 22:07:58 +00:00
Paul Eggert a6a9495c14 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.
2005-09-13 22:07:34 +00:00
Jim Meyering 2859e85770 tweak comment 2005-09-13 21:25:21 +00:00
Jim Meyering 3e4d8edce9 *** empty log message *** 2005-09-13 21:11:29 +00:00
Jim Meyering 8fc8f946c4 Revert unintended change that removed definitions
of X2REALLOC and X2NREALLOC.
2005-09-13 21:11:25 +00:00
Jim Meyering 700395d652 mostly update copyrights CPPI-1_12 2005-09-13 15:46:12 +00:00
Jim Meyering 37cf570cb8 *** empty log message *** 2005-09-13 15:43:51 +00:00
Jim Meyering fcbf217aa5 escape a $ in a diagnostic 2005-09-13 15:42:45 +00:00
Jim Meyering 0fafb6d2f1 don't check for HAVE_UNISTD_H 2005-09-13 14:58:56 +00:00
Jim Meyering d632b63cc3 *** empty log message *** 2005-09-13 14:14:46 +00:00
Jim Meyering 4c7c6d6e78 (GZIP_ENV): Add --rsyncable option. 2005-09-13 14:14:41 +00:00
Jim Meyering 82d96eac2e *** empty log message *** 2005-09-13 13:54:01 +00:00
Jim Meyering 5ac066ae80 Use AB_INIT (from autobuild). 2005-09-13 13:53:55 +00:00
Jim Meyering 54f2d33cff *** empty log message *** 2005-09-13 13:52:27 +00:00
Jim Meyering 59e9d0b604 . 2005-09-13 13:52:16 +00:00
Jim Meyering 5452065818 *** empty log message *** 2005-09-13 12:12:44 +00:00
Jim Meyering 2922ae7380 Use ARGMATCH_VERIFY, just in case. 2005-09-13 12:12:36 +00:00
Jim Meyering 4034cf6ad5 *** empty log message *** 2005-09-11 07:42:48 +00:00
Jim Meyering 68b1902041 (usage): Remove leading spaces in 2-line
description, so that help2man doesn't mangle it.
2005-09-11 07:42:43 +00:00
Jim Meyering 8890d86818 *** empty log message *** 2005-09-11 07:41:56 +00:00
Jim Meyering bcadcf23a9 . 2005-09-10 14:27:00 +00:00
Jim Meyering aadcf5b2e4 . 2005-09-10 14:16:53 +00:00
Jim Meyering 8650ea82a4 . 2005-09-10 14:07:59 +00:00
Jim Meyering 5c2d345121 Add test for the bug fixed today. 2005-09-10 14:06:29 +00:00
Jim Meyering 0fca40dd6c *** empty log message *** 2005-09-10 14:06:01 +00:00
Jim Meyering 5791c43f91 *** empty log message *** 2005-09-10 13:56:56 +00:00
Jim Meyering 2729563f6b 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.
2005-09-10 13:56:45 +00:00
Jim Meyering d4595fdae9 *** empty log message *** 2005-09-10 07:48:40 +00:00
Paul Eggert c991c0e9f8 Insert missing paren. 2005-09-10 00:08:28 +00:00
Paul Eggert 97f9677790 Regenerate. 2005-09-09 21:21:16 +00:00
Paul Eggert 330bb6eeee Fix typo in previous patch: @command{POSIX} -> @acronym{POSIX}. 2005-09-09 21:16:49 +00:00
Paul Eggert 916bce3a7c (tac_seekable): Store match length in regoff_t, not int. Assume that
negative return values less than -2 represent regoff_t overflow.
2005-09-09 21:11:36 +00:00
Paul Eggert fe041980c8 (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.
2005-09-09 21:11:07 +00:00
Paul Eggert 0d11284c9e (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.
2005-09-09 21:09:48 +00:00
Paul Eggert 35155485bb * src/expr.c (docolon): 64-bit regex fixes. 2005-09-09 21:08:51 +00:00
Paul Eggert 1bd916412d (process_regexp): Store match length in regoff_t,
not int.  Assume that negative return values less than -2
represent regoff_t overflow.
2005-09-09 21:08:19 +00:00
Paul Eggert 3301671de9 Import latest regex module from gnulib, to fix some 64-bit bugs. 2005-09-09 21:07:50 +00:00
Paul Eggert fd4a5b1b53 More nice fixes. 2005-09-09 20:51:55 +00:00
Paul Eggert 263672792f (nice invocation): Document "niceness" versus
"nice value" versus "scheduling priority".
2005-09-09 20:50:51 +00:00