1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-03-06 04:55:52 +02:00
Commit Graph

19551 Commits

Author SHA1 Message Date
Jim Meyering
d77d7fe158 Ensure that no close failure goes unreported.
(close_stdout): Always close stdout.  I.e., don't
return early when it seems there's nothing to flush.
Don't include __fpending.h.
2004-11-06 22:37:23 +00:00
Jim Meyering
d73a00981c (xfclose): Don't close stdout here (just flush it),
since close_stdout now closes stdout unconditionally.
2004-11-06 22:37:02 +00:00
Paul Eggert
3e0f7c5dc3 * src/sort.c: Fixx size_t and alloca bugs. 2004-11-05 23:02:46 +00:00
Paul Eggert
8a0f42dff9 (inittables, sort_buffer_size, getmonth, mergefps,
first_same_file, merge, sort, main): Use size_t for indexes into arrays.
This fixes some unlikely havoc-wreaking bugs (e.g., more than INT_MAX
temporary files).
(getmonth, keycompare, compare): Rewrite to avoid need for alloca,
thus avoiding unchecked stack overflow in some cases.  As a side
effect this improve the performance of "sort -M" by a factor of 4
on my benchmarks.
2004-11-05 23:02:09 +00:00
Paul Eggert
5312181e5b Regenerate. 2004-11-04 00:02:19 +00:00
Jim Meyering
0753839f7a remove trailing spaces 2004-11-03 23:31:20 +00:00
Paul Eggert
3b39a3022a Log recent getdate-etc. related changes. 2004-11-03 23:25:32 +00:00
Paul Eggert
80b4895f7a Sync from gnulib. 2004-11-03 23:24:07 +00:00
Paul Eggert
2c0b64899b Include "vasprintf.h" since we use vasprintf now. 2004-11-03 23:17:29 +00:00
Paul Eggert
4b738e2f5d Sync from gnulib. 2004-11-03 23:15:44 +00:00
Paul Eggert
90d6db1fbb (check-AUTHORS): Don't assume \? works in a sed
expression; it's not portable.  Problem reported by Albert Chin.
Don't invoke a program more than once.
2004-11-03 23:12:55 +00:00
Paul Eggert
fe92cc42b2 (version): New variable, containing author info,
for benefit of AUTHORS check.  Use it when acting on --version option.
2004-11-03 23:11:45 +00:00
Paul Eggert
adff4ef93c Remove duplicate lines. Remove bogus "chroot:" in groups line. 2004-11-03 23:10:50 +00:00
Paul Eggert
61619a55a5 (libfetish_a_SOURCES): Remove setenv.c. 2004-11-03 23:05:47 +00:00
Paul Eggert
b0c285c9da New file, from gnulib. 2004-11-03 23:04:03 +00:00
Paul Eggert
abd8f84b4a (gl_PREREQ): Require gt_FUNC_SETENV. 2004-11-03 23:03:17 +00:00
Jim Meyering
36ed808afb . 2004-11-03 20:54:10 +00:00
Jim Meyering
fcd1aefe35 . 2004-11-03 20:53:32 +00:00
Paul Eggert
8655b4eabd Don't #define and #undef getopt around <stdlib.h>,
as this breaks the new regime that does "#define getopt rpl_getopt".
2004-11-03 18:44:33 +00:00
Paul Eggert
2dff6afdde * Makefile.am (_W, W_): New macros. 2004-11-03 17:39:23 +00:00
Paul Eggert
51bdc5fb8b (_W, W_): New macros.
(check-texinfo): Use them instead of assuming grep -w (which is not portable).
Problem reported by Albert Chin.
2004-11-03 17:39:00 +00:00
Jim Meyering
29f1f2906c (libfetish_a_SOURCES): Add setenv.c and setenv.h. 2004-11-03 09:20:23 +00:00
Jim Meyering
3c8d863cc6 remove trailing blanks 2004-11-03 08:54:51 +00:00
Jim Meyering
187d2d06e8 *** empty log message *** 2004-11-03 08:50:38 +00:00
Jim Meyering
9f6eecc987 quote(...) file names in diagnostics. 2004-11-03 08:50:11 +00:00
Paul Eggert
8d05798863 Import from gnulib. 2004-11-03 08:04:49 +00:00
Paul Eggert
da9f67dcf6 Regenerate. 2004-11-03 07:47:08 +00:00
Paul Eggert
5a5367474b Sync from gnulib. 2004-11-03 07:44:15 +00:00
Paul Eggert
47bcfc54da * NEWS: Document getdate changes. 2004-10-30 00:06:22 +00:00
Paul Eggert
a4f1136b52 Document getdate changes. 2004-10-30 00:05:00 +00:00
Paul Eggert
7babf896a7 Sync from gnulib (for getdate changes). 2004-10-29 23:46:23 +00:00
Paul Eggert
a4a87ad5bb Sync from gnulib. 2004-10-29 23:43:34 +00:00
Paul Eggert
df8ea7a4e8 Document TZ better, and adjust to new getdate.texi.
(Top): Update menu.
(pr invocation, Formatting file timestamps, touch invocation,
stat invocation, who invocation, date invocation, Options for date):
Mention TZ.
2004-10-29 23:22:09 +00:00
Jim Meyering
caf82de4ba `tac /proc/modules' would print nothing 2004-10-29 22:10:36 +00:00
Jim Meyering
dc3504e276 *** empty log message *** 2004-10-29 22:05:04 +00:00
Jim Meyering
404fe2a045 *** empty log message *** 2004-10-29 21:59:39 +00:00
Jim Meyering
0c1c5b483d * src/tac.c (tac_file): Remove temporary prototype and move this
function `down' so that it precedes definition of tac_nonseekable.
2004-10-29 21:59:33 +00:00
Jim Meyering
bbda05b8ee *** empty log message *** 2004-10-29 21:55:21 +00:00
Jim Meyering
259934f3a4 `tac /proc/modules' would print nothing
(copy_to_temp): Renamed from save_stdin, since
now it copies a general file descriptor, not just stdin.
(tac_nonseekable): Renamed/adapted from tac_stdin.
(tac_file): Get fd via `open' directly rather than via fopen/fileno,
since we never used the stream.  Perform "-" to stdin mapping here
rather than in main.  Determine whether a file is seekable,
by trying to `lseek' to its end, and dispatch to tac_seekable or
tac_nonseekable accordingly.
(main): Rewrite argument handling now that it uses only tac_file.
Reported by Harald Dunkel in http://bugs.debian.org/278604.
2004-10-29 21:55:15 +00:00
Jim Meyering
7230399d89 *** empty log message *** 2004-10-29 21:50:15 +00:00
Paul Eggert
d6ef01c78f * coreutils.texi (Standards conformance): Use "head -10" rather
than "head -1".
2004-10-28 07:51:25 +00:00
Paul Eggert
57ac7f5a02 (Standards conformance): Use "head -10" rather than "head -1" as
example of obsolete usage, since the POSIX consensus is that "head -1"
could be supported even if we don't yet have clear consensus on "head
-10".  See today's revision to the SUS FAQ
<http://www.opengroup.org/austin/papers/single_unix_faq.html>.
2004-10-28 07:50:51 +00:00
Paul Eggert
acdb9f592e * coreutils.texi (pathchk invocation): Options must precede operands. 2004-10-25 03:20:29 +00:00
Paul Eggert
ea75231962 (pathchk invocation): Options must precede operands. 2004-10-25 03:20:02 +00:00
Paul Eggert
3eb23529c5 * mktime.c (leapyear): Arg is long int, not int. 2004-10-24 23:25:18 +00:00
Paul Eggert
c707d3acbe (leapyear): Arg is long int, not int. Change imported from gnulib. 2004-10-24 23:24:47 +00:00
Jim Meyering
2168e06a9d . 2004-10-21 10:39:15 +00:00
Jim Meyering
0492f5ec4a *** empty log message *** 2004-10-21 10:38:56 +00:00
Jim Meyering
37c518aaf4 *** empty log message *** 2004-10-21 10:38:37 +00:00
Jim Meyering
90b7cc00d0 *** empty log message *** 2004-10-21 10:38:09 +00:00