Jim Meyering [Wed, 10 Sep 2003 08:28:38 +0000 (08:28 +0000)]
Include <string.h> unconditionally.
Jim Meyering [Wed, 10 Sep 2003 08:27:55 +0000 (08:27 +0000)]
(atexit): Define using a prototype.
Jim Meyering [Wed, 10 Sep 2003 08:27:32 +0000 (08:27 +0000)]
Include <string.h>, <stdlib.h> unconditionally.
(POINTER_TYPE, pointer): Remove; all uses changed to void *.
(NULL): Remove.
(find_stack_direction, alloca): Use prototypes.
Jim Meyering [Wed, 10 Sep 2003 08:26:42 +0000 (08:26 +0000)]
Include <string.h>, <stdlib.h> unconditionally.
Don't declare getenv or malloc.
Jim Meyering [Wed, 10 Sep 2003 08:25:43 +0000 (08:25 +0000)]
Include <string.h> unconditionally.
Jim Meyering [Wed, 10 Sep 2003 08:24:00 +0000 (08:24 +0000)]
Include <stdlib.h> unconditionally.
(getusershell, setusershell, endusershell, readname, main):
Define with prototypes.
(readname, default_index, line_size, readname):
Use size_t, not int, for sizes.
(readname): If the size overflows, report an error instead of
looping forever.
Jim Meyering [Wed, 10 Sep 2003 06:33:31 +0000 (06:33 +0000)]
*** empty log message ***
Jim Meyering [Wed, 10 Sep 2003 06:33:25 +0000 (06:33 +0000)]
[!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
(utime_null): Fix typo: 'st' was sometimes called 'sb'.
Jim Meyering [Tue, 9 Sep 2003 17:25:14 +0000 (17:25 +0000)]
*** empty log message ***
Jim Meyering [Tue, 9 Sep 2003 17:25:02 +0000 (17:25 +0000)]
Alphabetize includes.
Remove duplicate inclusion of "same.h".
Jim Meyering [Tue, 9 Sep 2003 07:14:03 +0000 (07:14 +0000)]
.
Jim Meyering [Tue, 9 Sep 2003 05:50:28 +0000 (05:50 +0000)]
*** empty log message ***
Jim Meyering [Tue, 9 Sep 2003 05:46:48 +0000 (05:46 +0000)]
.
Jim Meyering [Mon, 8 Sep 2003 13:25:38 +0000 (13:25 +0000)]
*** empty log message ***
Jim Meyering [Mon, 8 Sep 2003 13:25:32 +0000 (13:25 +0000)]
(GZIP_ENV): Remove --rsyncable.
Didn't give enough of a benefit, mainly because it's not yet
in wide enough use.
Jim Meyering [Mon, 8 Sep 2003 13:21:22 +0000 (13:21 +0000)]
*** empty log message ***
Jim Meyering [Mon, 8 Sep 2003 13:03:07 +0000 (13:03 +0000)]
*** empty log message ***
Jim Meyering [Mon, 8 Sep 2003 12:38:00 +0000 (12:38 +0000)]
(VERSION): Bump to 5.0.92
Jim Meyering [Mon, 8 Sep 2003 11:22:45 +0000 (11:22 +0000)]
.
Jim Meyering [Mon, 8 Sep 2003 09:17:47 +0000 (09:17 +0000)]
.
Jim Meyering [Mon, 8 Sep 2003 09:17:38 +0000 (09:17 +0000)]
*** empty log message ***
Jim Meyering [Mon, 8 Sep 2003 09:17:32 +0000 (09:17 +0000)]
(programs): Use ../src, not $(srcdir)/../src.
(check-programs-vs-x): Fail if $(programs) is empty.
Jim Meyering [Mon, 8 Sep 2003 06:38:37 +0000 (06:38 +0000)]
.
Jim Meyering [Mon, 8 Sep 2003 06:09:10 +0000 (06:09 +0000)]
.
Jim Meyering [Mon, 8 Sep 2003 06:08:13 +0000 (06:08 +0000)]
Add a comment.
Jim Meyering [Mon, 8 Sep 2003 06:05:50 +0000 (06:05 +0000)]
.
Jim Meyering [Sun, 7 Sep 2003 17:34:23 +0000 (17:34 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 17:33:47 +0000 (17:33 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 17:33:42 +0000 (17:33 +0000)]
(D_INO, ENABLE_CYCLE_CHECK) [D_INO_IN_DIRENT]:
Don't define. These symbols are no longer used.
Jim Meyering [Sun, 7 Sep 2003 17:21:52 +0000 (17:21 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 17:21:48 +0000 (17:21 +0000)]
Write ^D as \cD.
Complete the change of 2003-08-02.
Jim Meyering [Sun, 7 Sep 2003 17:17:57 +0000 (17:17 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 17:17:54 +0000 (17:17 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 17:17:35 +0000 (17:17 +0000)]
(EXTRA_DIST): Add vfat.
Jim Meyering [Sun, 7 Sep 2003 17:16:31 +0000 (17:16 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 17:12:48 +0000 (17:12 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 17:12:34 +0000 (17:12 +0000)]
(po-check): Use cvsu, so that a temporary source
file in lib/ or src/ doesn't induce an unwarranted failure.
Add a kludge to filter out the sole generated source file that
also has translatable messages: false.c.
Jim Meyering [Sun, 7 Sep 2003 16:57:30 +0000 (16:57 +0000)]
.
Jim Meyering [Sun, 7 Sep 2003 16:46:16 +0000 (16:46 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 16:45:27 +0000 (16:45 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 16:43:40 +0000 (16:43 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 16:37:33 +0000 (16:37 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 16:36:05 +0000 (16:36 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 16:34:01 +0000 (16:34 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Sep 2003 16:32:02 +0000 (16:32 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Sep 2003 21:44:17 +0000 (21:44 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Sep 2003 21:37:44 +0000 (21:37 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Sep 2003 09:17:10 +0000 (09:17 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Sep 2003 08:49:43 +0000 (08:49 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Sep 2003 08:49:37 +0000 (08:49 +0000)]
(enum): Add ALLOW_MISSING_OPTION.
(parse_options): Give a diagnostic for (but still accept) the
deprecated --allow-missing option.
Jim Meyering [Fri, 5 Sep 2003 20:55:28 +0000 (20:55 +0000)]
.
Jim Meyering [Fri, 5 Sep 2003 20:53:37 +0000 (20:53 +0000)]
*** empty log message ***
Jim Meyering [Fri, 5 Sep 2003 20:53:08 +0000 (20:53 +0000)]
Don't ignore -S if input is a pipe. Bug report by Michael McFarland in
<http://mail.gnu.org/archive/html/bug-coreutils/2003-09/msg00008.html>.
(sort_buffer_size): Omit SIZE_BOUND arg. Compute the
size_bound ourselves. if an input file is a pipe and the user
specified a size, use that size instead of trying to guess the
pipe size. This has the beneficial side effect of avoiding the
overhead of default_sort_size in that case. All callers changed.
(sort): Remove static var size; now done by sort_buffer_size.
Jim Meyering [Fri, 5 Sep 2003 20:45:32 +0000 (20:45 +0000)]
*** empty log message ***
Jim Meyering [Fri, 5 Sep 2003 20:45:26 +0000 (20:45 +0000)]
(elide_tail_lines_pipe): Don't assign 0 or SAFE_READ_ERROR to tmp->nbytes.
(struct linebuffer): Change nbytes and nlines
from unsigned int to size_t. unsigned int is safe (after the
2003-09-03 patch) but size_t is cleaner.
Standardize on BUFSIZ as opposed to other macro names and values.
(BUFSIZE): Remove. All uses changed to BUFSIZ.
Jim Meyering [Fri, 5 Sep 2003 20:44:20 +0000 (20:44 +0000)]
(pipe_lines, pipe_bytes): Don't assign 0 or SAFE_READ_ERROR to tmp->nbytes.
(struct linebuffer, struct charbuffer): Change nbytes and nlines from
unsigned int to size_t. unsigned int is safe (after the 2003-09-03 patch)
but size_t is cleaner.
(pipe_bytes): Likewise for local variable 'i', which was 'int'.
Standardize on BUFSIZ as opposed to other macro names and values.
(BUFSIZ) [!defined BUFSIZ]: Remove. stdio.h has always defined it,
and other code already assumes it's defined.
Jim Meyering [Fri, 5 Sep 2003 19:11:20 +0000 (19:11 +0000)]
*** empty log message ***
Jim Meyering [Fri, 5 Sep 2003 14:27:27 +0000 (14:27 +0000)]
Standardize on BUFSIZ as opposed to other macro names and values.
(BUFSIZ) [!defined BUFSIZ]: Don't define.
(IO_BUF_SIZE): Remove; replace all uses with sizeof io_buf.
(io_buf): IO_BUF_SIZE -> BUFSIZ.
Jim Meyering [Fri, 5 Sep 2003 07:56:52 +0000 (07:56 +0000)]
*** empty log message ***
Jim Meyering [Fri, 5 Sep 2003 07:56:39 +0000 (07:56 +0000)]
Wait .5 seconds for backgrounded process
to start, rather than just .1. Upon failure, print unexpected state.
Jim Meyering [Fri, 5 Sep 2003 06:59:32 +0000 (06:59 +0000)]
*** empty log message ***
Jim Meyering [Fri, 5 Sep 2003 06:56:38 +0000 (06:56 +0000)]
(onearg-2): Output should be empty.
Jim Meyering [Fri, 5 Sep 2003 06:54:59 +0000 (06:54 +0000)]
(step): Default to 1.
(print_numbers): Allow the output to be empty.
(main): The default step is 1, even if LAST < FIRST;
as per documentation.
Jim Meyering [Fri, 5 Sep 2003 06:43:14 +0000 (06:43 +0000)]
*** empty log message ***
Jim Meyering [Fri, 5 Sep 2003 06:43:03 +0000 (06:43 +0000)]
(wget_files): Temporarily disable, until master
versions are restored to ftp.gnu.org.
Jim Meyering [Thu, 4 Sep 2003 22:28:35 +0000 (22:28 +0000)]
.
Jim Meyering [Thu, 4 Sep 2003 22:27:47 +0000 (22:27 +0000)]
.
Jim Meyering [Thu, 4 Sep 2003 22:27:07 +0000 (22:27 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Sep 2003 22:27:00 +0000 (22:27 +0000)]
(AM_INIT_AUTOMAKE): Specify automake-1.7.6.
Jim Meyering [Thu, 4 Sep 2003 22:25:58 +0000 (22:25 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Sep 2003 22:25:53 +0000 (22:25 +0000)]
sort -t '\0' now uses a NUL tab.
sort option order no longer matters, unless POSIX requires it.
Jim Meyering [Thu, 4 Sep 2003 22:25:34 +0000 (22:25 +0000)]
(sort invocation): -d now overrides -i.
"whitespace" -> "blanks"; "whitespace" isn't correct.
-t '\0' now specifies a NUL tab.
Jim Meyering [Thu, 4 Sep 2003 22:24:21 +0000 (22:24 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Sep 2003 22:22:05 +0000 (22:22 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Sep 2003 22:21:25 +0000 (22:21 +0000)]
This makes seq's --width (-w) option work properly even when the
endpoint requiring the largest width is negative and smaller than
the other endpoint.
(get_width_format): Include `-' in the set of bytes
allowed in a `simple' number (no decimal point, no exponent).
Jim Meyering [Thu, 4 Sep 2003 22:20:51 +0000 (22:20 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Sep 2003 22:13:20 +0000 (22:13 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Sep 2003 22:13:08 +0000 (22:13 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Sep 2003 22:12:59 +0000 (22:12 +0000)]
(usage): Say "blanks" instead of "whitespace",
Similar fixes for many comments.
(TAB_DEFAULT): New constant, so that we can support NUL as
the field separator.
(tab): Now int, not char. Initialize to TAB_DEFAULT.
(specify_sort_size): If multiple sizes are specified, use the largest.
(begfield, limfield): Support NUL tab char.
(set_ordering): Do not let -i override -d.
(main): Report an error if incompatible -o or -t options are given.
Report an error for "-t ''". Allow "-t '\0'" to specify a NUL tab.
Jim Meyering [Thu, 4 Sep 2003 22:11:16 +0000 (22:11 +0000)]
[o2, nul-tab]: New tests for changes of 2003-09-02.
Jim Meyering [Thu, 4 Sep 2003 21:43:35 +0000 (21:43 +0000)]
(elide_tail_lines_pipe): Don't truncate return value from safe_read.
Jim Meyering [Thu, 4 Sep 2003 21:43:12 +0000 (21:43 +0000)]
(pipe_lines): Don't truncate return value from safe_read.
Jim Meyering [Wed, 3 Sep 2003 20:30:40 +0000 (20:30 +0000)]
*** empty log message ***
Jim Meyering [Wed, 3 Sep 2003 20:30:31 +0000 (20:30 +0000)]
*** empty log message ***
Jim Meyering [Wed, 3 Sep 2003 20:30:25 +0000 (20:30 +0000)]
(human_readable): Fix bug that rounded 10501 to 10k.
Bug reported by Lute Kamstra in
<http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
Jim Meyering [Wed, 3 Sep 2003 08:53:29 +0000 (08:53 +0000)]
*** empty log message ***
Jim Meyering [Wed, 3 Sep 2003 08:53:19 +0000 (08:53 +0000)]
(AUTHORS): Remove Larry McVoy's name, since the relatively
small amount of code from him was first moved to lib/human.c, and was
subsequently rewritten entirely.
Jim Meyering [Wed, 3 Sep 2003 08:28:12 +0000 (08:28 +0000)]
*** empty log message ***
Jim Meyering [Wed, 3 Sep 2003 08:28:08 +0000 (08:28 +0000)]
(relative_time_table): Use tDAY_UNIT for "tomorrow",
"yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
course with correspondingly smaller numbers for tomorrow and
yesterday. From Tadayoshi Funaba. Originally installed into
sh-utils on 1999-08-07, but the patch was mistakenly reverted by
the next change to that shared file (but this time in fileutils)
on 1999-08-29.
Jim Meyering [Tue, 2 Sep 2003 21:48:18 +0000 (21:48 +0000)]
*** empty log message ***
Jim Meyering [Sun, 31 Aug 2003 11:26:40 +0000 (11:26 +0000)]
*** empty log message ***
Jim Meyering [Sun, 31 Aug 2003 11:26:23 +0000 (11:26 +0000)]
Reorder/rename the last 3 tests to make them consistent with
those in tests/sha1sum/basic-1.
Jim Meyering [Sun, 31 Aug 2003 11:23:57 +0000 (11:23 +0000)]
(check-bsd2, check-bsd3): New tests for
--check exit status and BSD SHA1 format (adapted from tests
in tests/md5sum/basic-1).
Jim Meyering [Sun, 31 Aug 2003 11:19:53 +0000 (11:19 +0000)]
(check-bsd3): New test to make sure that
`md5sum --check' doesn't accept the BSD SHA1 format (adapted
from `check-bsd' test in tests/sha1sum/basic-1).
Jim Meyering [Sun, 31 Aug 2003 11:11:10 +0000 (11:11 +0000)]
(split_3): Accept the BSD format for generic
message digest modes. Currently works with BSD's MD5 and SHA1
formats since these are the two algorithms presently used in
coreutils. Updated comments to reflect this change.
(bsd_split_3): Updated comments.
Jim Meyering [Sun, 31 Aug 2003 08:24:41 +0000 (08:24 +0000)]
Change meaning of -l from --lookup to --login, per POSIX.
who's -l option has been eliciting an unconditional warning about
this impending change since sh-utils-2.0.12 (April 2002).
Jim Meyering [Sun, 31 Aug 2003 05:54:59 +0000 (05:54 +0000)]
*** empty log message ***
Jim Meyering [Sat, 30 Aug 2003 20:26:49 +0000 (20:26 +0000)]
*** empty log message ***
Jim Meyering [Sat, 30 Aug 2003 20:26:42 +0000 (20:26 +0000)]
(do_link): Use SAME_INODE rather than open-coding it.
Jim Meyering [Sat, 30 Aug 2003 18:13:27 +0000 (18:13 +0000)]
*** empty log message ***