Jim Meyering [Sat, 2 Jan 1999 19:30:32 +0000 (19:30 +0000)]
.
Jim Meyering [Sat, 2 Jan 1999 19:30:05 +0000 (19:30 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Jan 1999 19:29:47 +0000 (19:29 +0000)]
Adapt to use new interface to XARGMATCH.
Jim Meyering [Sat, 2 Jan 1999 19:28:42 +0000 (19:28 +0000)]
.
Jim Meyering [Sat, 2 Jan 1999 19:28:31 +0000 (19:28 +0000)]
(get_version): Adapt to use new interface to XARGMATCH.
Jim Meyering [Sat, 2 Jan 1999 18:33:08 +0000 (18:33 +0000)]
(XARGMATCH): Don't return a value; instead, modify a parameter.
Add a `Die_stmt' parameter.
Add parentheses.
Jim Meyering [Sat, 2 Jan 1999 18:32:50 +0000 (18:32 +0000)]
(__xargmatch_internal): Remove now-unused function.
(argmatch_to_argument): Add `const' attribute to first parameter.
Jim Meyering [Sat, 2 Jan 1999 16:36:25 +0000 (16:36 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Jan 1999 16:35:55 +0000 (16:35 +0000)]
use XARGMATCH, not XARGCASEMATCH
Jim Meyering [Sat, 2 Jan 1999 15:55:52 +0000 (15:55 +0000)]
Add #ifdefs so it can be used for strncasecmp, too.
Jim Meyering [Sat, 2 Jan 1999 15:55:44 +0000 (15:55 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Jan 1999 12:45:50 +0000 (12:45 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Jan 1999 05:54:07 +0000 (05:54 +0000)]
Move inclusion of assert.h to follow that of stdio.h.
Some losing systems require this.
Use STREQ macro instead of strcmp in a few places.
Jim Meyering [Sat, 2 Jan 1999 05:30:07 +0000 (05:30 +0000)]
Remove definition of setlocale.
Remove definitions of bindtextdomain and textdomain.
Jim Meyering [Sat, 2 Jan 1999 05:27:32 +0000 (05:27 +0000)]
Include locale.h and libintl.h, and define `_()'.
Mark translatable strings.
Jim Meyering [Sat, 2 Jan 1999 05:17:17 +0000 (05:17 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Jan 1999 05:16:57 +0000 (05:16 +0000)]
(make_dir): New function, factored out of make_path.
(make_path): Use make_dir rather than open-coding it twice.
This effectively reverses the order of the latter pair of stat/mkdir
calls and fixes a race condition bug whereby one of two concurrent
`mkdir -p' processes could fail with EEXIST.
Jim Meyering [Sat, 2 Jan 1999 02:34:47 +0000 (02:34 +0000)]
*** empty log message ***
Jim Meyering [Sat, 2 Jan 1999 02:34:11 +0000 (02:34 +0000)]
Include readtokens.h.
(zeros): Rename global from `rr'.
(getstr): Remove function.
(tsort) Use readtoken instead of getstr.
Jim Meyering [Fri, 1 Jan 1999 23:48:23 +0000 (23:48 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Jan 1999 23:46:52 +0000 (23:46 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Jan 1999 23:31:36 +0000 (23:31 +0000)]
.
Jim Meyering [Fri, 1 Jan 1999 22:55:53 +0000 (22:55 +0000)]
fix typo in comment
Jim Meyering [Fri, 1 Jan 1999 22:51:58 +0000 (22:51 +0000)]
(PATH_MAX_IN_DIR) [HAVE_UNISTD_H]: New macro, for max
file name characters in a given directory.
(tempname): Make sure the temp file name is unique even if long
file names aren't supported.
Jim Meyering [Fri, 1 Jan 1999 22:49:44 +0000 (22:49 +0000)]
(cwrite) [O_BINARY]: Write output in binary mode.
(main) [O_BINARY]: Read input in binary mode.
Jim Meyering [Fri, 1 Jan 1999 22:48:51 +0000 (22:48 +0000)]
(bsd_sum_file, sysv_sum_file) [O_BINARY]: Read input in binary mode.
Jim Meyering [Fri, 1 Jan 1999 22:48:03 +0000 (22:48 +0000)]
(tail_lines, tail_bytes) [O_BINARY]: Use binary I/O when appropriate.
Jim Meyering [Fri, 1 Jan 1999 22:44:21 +0000 (22:44 +0000)]
Add comments about peculiarities of Textutils operation on MS-DOS/MS-Windows.
Jim Meyering [Fri, 1 Jan 1999 22:42:36 +0000 (22:42 +0000)]
(wc): Use binary mode for input.
Jim Meyering [Fri, 1 Jan 1999 22:41:58 +0000 (22:41 +0000)]
(unexpand): Use binary I/O where appropriate.
Jim Meyering [Fri, 1 Jan 1999 22:40:48 +0000 (22:40 +0000)]
(main) [O_BINARY]: Use binary I/O when appropriate.
Jim Meyering [Fri, 1 Jan 1999 22:33:15 +0000 (22:33 +0000)]
(skip, read_char, read_block) [O_BINARY]: Switch input
stream to binary mode.
Jim Meyering [Fri, 1 Jan 1999 22:29:32 +0000 (22:29 +0000)]
(OPENOPTS) [O_BINARY]: Use binary I/O when non-zero argument.
(md5_file) [O_BINARY]: Switch redirected stdin to binary mode.
(main) [O_BINARY]: Use binary reads by default on those systems
which care about the difference.
Jim Meyering [Fri, 1 Jan 1999 22:28:40 +0000 (22:28 +0000)]
(head_bytes, head_lines) [O_BINARY]: Use binary I/O.
Jim Meyering [Fri, 1 Jan 1999 22:27:36 +0000 (22:27 +0000)]
(expand): Use binary I/O where appropriate.
Jim Meyering [Fri, 1 Jan 1999 22:22:02 +0000 (22:22 +0000)]
(cksum) [O_BINARY]: Read redirected stdin in binary mode.
Jim Meyering [Fri, 1 Jan 1999 22:20:23 +0000 (22:20 +0000)]
(usage) [O_BINARY]: Describe -B,--binary option.
(main) [O_BINARY]: binary_files, binary_output, file_open_mode:
new variables. Add --binary to long_options[]. Switch stdin and
stdout to binary mode unless file contents are not important
anyway. Open files in binary mode when required.
Jim Meyering [Fri, 1 Jan 1999 22:11:50 +0000 (22:11 +0000)]
.
Jim Meyering [Fri, 1 Jan 1999 21:56:21 +0000 (21:56 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Jan 1999 21:47:08 +0000 (21:47 +0000)]
(parse_options): Use XARGCASEMATCH in place of argmatch.
Jim Meyering [Fri, 1 Jan 1999 19:31:43 +0000 (19:31 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Jan 1999 19:30:08 +0000 (19:30 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Jan 1999 19:29:31 +0000 (19:29 +0000)]
Rename globals N and R so they don't shadow locals.
(tsort): Rename from `sort'.
Jim Meyering [Fri, 1 Jan 1999 19:05:47 +0000 (19:05 +0000)]
remove trailing blanks
Jim Meyering [Fri, 1 Jan 1999 19:05:05 +0000 (19:05 +0000)]
from Mark Kettenis
Jim Meyering [Fri, 1 Jan 1999 17:43:50 +0000 (17:43 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Jan 1999 17:43:10 +0000 (17:43 +0000)]
(quoting_style_vals): New public array.
Jim Meyering [Fri, 1 Jan 1999 17:40:08 +0000 (17:40 +0000)]
Add comments.
(xcalloc, xmalloc, xrealloc): Remove prototypes.
(calloc): Remove `#ifdef NOT_USED' that used to hide this function.
Jim Meyering [Fri, 1 Jan 1999 17:36:43 +0000 (17:36 +0000)]
Add comments.
(PARAMS, XMALLOC, XCALLOC, XREALLOC): Define.
Based on changes from Akim Demaille.
Jim Meyering [Fri, 1 Jan 1999 17:34:18 +0000 (17:34 +0000)]
remove leading _ from _ARGMATCH_H_
Jim Meyering [Fri, 1 Jan 1999 07:10:00 +0000 (07:10 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Jan 1999 07:09:08 +0000 (07:09 +0000)]
.
Jim Meyering [Fri, 1 Jan 1999 07:08:54 +0000 (07:08 +0000)]
.
Jim Meyering [Fri, 1 Jan 1999 07:06:23 +0000 (07:06 +0000)]
*** empty log message ***
Jim Meyering [Fri, 1 Jan 1999 07:03:16 +0000 (07:03 +0000)]
(quotearg_n_options): Make `options' parameter be `const'.
Jim Meyering [Fri, 1 Jan 1999 07:02:16 +0000 (07:02 +0000)]
(quotearg_buffer): Cast -1 to size_t before comparing.
(quotearg_n): Change type of 1st parameter from int to unsigned int.
(quotearg_n_options): Likewise.
From Akim Demaille.
Jim Meyering [Fri, 1 Jan 1999 06:47:04 +0000 (06:47 +0000)]
(humblock): Use ARGMATCH in place of argmatch.
Jim Meyering [Fri, 1 Jan 1999 06:43:04 +0000 (06:43 +0000)]
(get_version): Use XARGCASEMATCH in place of argmatch & co.
Jim Meyering [Thu, 31 Dec 1998 23:24:08 +0000 (23:24 +0000)]
.
Jim Meyering [Thu, 31 Dec 1998 22:03:13 +0000 (22:03 +0000)]
(libfu_a_SOURCES): Remove strcasecmp.c.
(BUILT_SOURCES): Add strcasecmp.c and strncasecmp.c.
(EXTRA_DIST): Add strcasecmp.cin.
(strcasecmp.c): New rule.
(strncasecmp.c): New rule.
Jim Meyering [Thu, 31 Dec 1998 21:59:58 +0000 (21:59 +0000)]
*** empty log message ***
Jim Meyering [Thu, 31 Dec 1998 21:59:42 +0000 (21:59 +0000)]
(main): Use XARGCASEMATCH in place of argmatch & co.
Jim Meyering [Thu, 31 Dec 1998 21:49:36 +0000 (21:49 +0000)]
(indicator_style_types): New variable.
(format_types): Rename from `formats'.
(color_args): Remove unnecessary `no' string.
(color_types): Remove corresponding `color_never' entry.
(main): Use ARGMATCH_TO_ARGUMENT.
(decode_switches): Use ARGCASEMATCH instead of argmatch code
in each of several cases.
From Akim Demaille.
Jim Meyering [Thu, 31 Dec 1998 21:41:04 +0000 (21:41 +0000)]
(main): Use XARGCASEMATCH in place of argmatch & co.
Jim Meyering [Thu, 31 Dec 1998 18:12:40 +0000 (18:12 +0000)]
fix typo
Jim Meyering [Thu, 31 Dec 1998 18:10:53 +0000 (18:10 +0000)]
white space changes
Jim Meyering [Thu, 31 Dec 1998 18:07:23 +0000 (18:07 +0000)]
(strncasecmp): Move to a separate file.
Add curly braces around some one-stmt-but-multiline blocks.
Jim Meyering [Thu, 31 Dec 1998 17:53:59 +0000 (17:53 +0000)]
*** empty log message ***
Jim Meyering [Thu, 31 Dec 1998 16:19:31 +0000 (16:19 +0000)]
remove trailing blanks
Jim Meyering [Thu, 31 Dec 1998 16:18:46 +0000 (16:18 +0000)]
lots of changes from Akim Demaille.
Jim Meyering [Thu, 31 Dec 1998 16:18:13 +0000 (16:18 +0000)]
lots of changes from Akim Demaille.
Jim Meyering [Thu, 31 Dec 1998 14:56:20 +0000 (14:56 +0000)]
(addext): Protoize.
Indent cpp directives to match nesting.
Jim Meyering [Thu, 31 Dec 1998 14:53:16 +0000 (14:53 +0000)]
(posix_time_parse): Change type of index `i' from int to unsigned int.
Jim Meyering [Thu, 31 Dec 1998 14:37:21 +0000 (14:37 +0000)]
Fix warnings from gcc -W -Wall
(__attribute__): Define.
(ATTRIBUTE_UNUSED): Define.
(yyerror): Mark parameter as unused with ATTRIBUTE_UNUSED.
(MonthDayTable): Add initializers for last entry.
(UnitsTable): Likewise.
(OtherTable): Likewise.
(MilitaryTable): Likewise.
Jim Meyering [Tue, 22 Dec 1998 22:46:53 +0000 (22:46 +0000)]
.
Jim Meyering [Tue, 22 Dec 1998 21:57:52 +0000 (21:57 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 Dec 1998 13:50:13 +0000 (13:50 +0000)]
.
Jim Meyering [Sun, 20 Dec 1998 02:31:54 +0000 (02:31 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 Dec 1998 02:31:47 +0000 (02:31 +0000)]
Use absolute path for final rm.
Jim Meyering [Sat, 19 Dec 1998 21:07:32 +0000 (21:07 +0000)]
remove .saved-state
Jim Meyering [Sat, 19 Dec 1998 17:21:00 +0000 (17:21 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 Dec 1998 17:20:03 +0000 (17:20 +0000)]
break long line
Jim Meyering [Sat, 19 Dec 1998 17:19:13 +0000 (17:19 +0000)]
break long line
Jim Meyering [Sat, 19 Dec 1998 17:18:23 +0000 (17:18 +0000)]
split long line
Jim Meyering [Sat, 19 Dec 1998 13:54:04 +0000 (13:54 +0000)]
.
Jim Meyering [Sat, 19 Dec 1998 13:53:37 +0000 (13:53 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 Dec 1998 13:53:21 +0000 (13:53 +0000)]
(my-distcheck): Run make with CFLAGS='-Wformat -Werror'.
Jim Meyering [Fri, 18 Dec 1998 22:11:39 +0000 (22:11 +0000)]
.
Jim Meyering [Fri, 18 Dec 1998 15:32:54 +0000 (15:32 +0000)]
remove semicolon -- from Lars
Jim Meyering [Fri, 18 Dec 1998 15:32:29 +0000 (15:32 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Dec 1998 14:49:38 +0000 (14:49 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Dec 1998 14:49:30 +0000 (14:49 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Dec 1998 14:49:01 +0000 (14:49 +0000)]
(Makefile.am): Simplify rule.
Based on suggestion from Lars Hecking.
Jim Meyering [Fri, 18 Dec 1998 14:48:32 +0000 (14:48 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Dec 1998 14:22:50 +0000 (14:22 +0000)]
(copy_internal): Remove errnoeous `%s: ' prefix
from format string. From Michiel Bacchiani.
Jim Meyering [Fri, 18 Dec 1998 14:22:30 +0000 (14:22 +0000)]
*** empty log message ***
Jim Meyering [Fri, 18 Dec 1998 14:09:29 +0000 (14:09 +0000)]
(UID_T_MAX, GID_T_MAX): Define them here instead.
Jim Meyering [Fri, 18 Dec 1998 14:09:19 +0000 (14:09 +0000)]
(UID_T_MAX, GID_T_MAX): Remove definitions.
Jim Meyering [Fri, 18 Dec 1998 14:07:58 +0000 (14:07 +0000)]
(MAXGID): Define.
Use gid_t (not int) as the type for `group' variables.
(parse_group): Use MAXGID, not INT_MAX.
Jim Meyering [Thu, 17 Dec 1998 13:56:25 +0000 (13:56 +0000)]
New options for tail: --follow=name, --follow=descriptor, --allow-missing
(Follow_mode): New enum.
(n_live_files): New function.
(tail_forever): Avoid starvation with --follow=name and a
continually-growing unlinked or renamed file.