Jim Meyering [Wed, 10 Sep 2003 08:45:43 +0000 (08:45 +0000)]
Include <string.h> unconditionally.
Jim Meyering [Wed, 10 Sep 2003 08:45:08 +0000 (08:45 +0000)]
(const): Remove macro.
(getopt_long, getopt_long_only, main): Define with prototype.
Jim Meyering [Wed, 10 Sep 2003 08:44:46 +0000 (08:44 +0000)]
(const): Remove macro.
Include <string.h> unconditionally.
(my_index): Remove; all uses changed to strchr.
(strlen): Remove decl.
(exchange): Remove forward decl; no longer needed.
(exchange, _getopt_initialize, _getopt_internal, getopt, main):
Define with prototype.
Jim Meyering [Wed, 10 Sep 2003 08:44:28 +0000 (08:44 +0000)]
(struct option.name): Assume C89, and use 'const'.
(getopt, etopt_long, getopt_long_only, _getopt_internal)
[defined __GNU_LIBRARY__]: Assume C89, so we can always declare
with a prototype.
Jim Meyering [Wed, 10 Sep 2003 08:44:15 +0000 (08:44 +0000)]
(getloadavg, main): Define via prototypes.
Jim Meyering [Wed, 10 Sep 2003 08:42:04 +0000 (08:42 +0000)]
Assume stdlib.h per the C89 spec.
Jim Meyering [Wed, 10 Sep 2003 08:37:38 +0000 (08:37 +0000)]
Include <stddef.h>.
(gethostname): Define with prototype. Length is size_t, not int.
Jim Meyering [Wed, 10 Sep 2003 08:37:15 +0000 (08:37 +0000)]
Include <stdlib.h>, <string.h> unconditionally.
Jim Meyering [Wed, 10 Sep 2003 08:36:52 +0000 (08:36 +0000)]
(FCT): Remove forward decl; no longer needed.
(FCT): Define using a prototype.
Jim Meyering [Wed, 10 Sep 2003 08:36:22 +0000 (08:36 +0000)]
Include fnmatch.h first, to test interface.
Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
(getenv): Remove decl.
(fnmatch): Define using a prototype.
Jim Meyering [Wed, 10 Sep 2003 08:35:47 +0000 (08:35 +0000)]
(__P): Remove. All uses changed to assume prototypes.
Jim Meyering [Wed, 10 Sep 2003 08:31:57 +0000 (08:31 +0000)]
Include <stdlib.h> unconditionally.
Jim Meyering [Wed, 10 Sep 2003 08:31:47 +0000 (08:31 +0000)]
Include <stdlib.h>, <string.h> unconditionally.
Jim Meyering [Wed, 10 Sep 2003 08:31:35 +0000 (08:31 +0000)]
(main): Define with a prototype.
Jim Meyering [Wed, 10 Sep 2003 08:31:14 +0000 (08:31 +0000)]
Include error.h first, to check interface.
Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
(VA_START): Remove; all uses changeed to va_start.
(exit, strerror): Remove decls.
(error_print_progname): Prototype uncondionally.
Don't include <errno.h>; no longer needed.
(private_strerror): Remove.
(error_tail): Always define.
(error, error_at_line): Assume C89 or better; always use prototypes.
Jim Meyering [Wed, 10 Sep 2003 08:30:18 +0000 (08:30 +0000)]
(error, error_at_line, error_print_progname)
[! (defined (__STDC__) && __STDC__)]: Remove decls.
Jim Meyering [Wed, 10 Sep 2003 08:29:47 +0000 (08:29 +0000)]
Include <stdlib.h>, <string.h> unconditionally.
Jim Meyering [Wed, 10 Sep 2003 08:29:31 +0000 (08:29 +0000)]
Include <stddef.h>.
(bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
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.