Jim Meyering [Fri, 12 Aug 2005 07:45:29 +0000 (07:45 +0000)]
(dc_parse_file): Remove comment about now-removed OPENOPTS.
Jim Meyering [Fri, 12 Aug 2005 07:29:59 +0000 (07:29 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 07:29:51 +0000 (07:29 +0000)]
(main): Cosmetic: use X2REALLOC rather than x2realloc.
Jim Meyering [Fri, 12 Aug 2005 07:29:38 +0000 (07:29 +0000)]
(fold_file): Cosmetic: use X2REALLOC rather than x2realloc.
Jim Meyering [Fri, 12 Aug 2005 07:16:25 +0000 (07:16 +0000)]
Cosmetic: use X2NREALLOC (only two arguments) rather than x2nrealloc (with three).
Jim Meyering [Fri, 12 Aug 2005 07:15:37 +0000 (07:15 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 07:10:33 +0000 (07:10 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 07:10:22 +0000 (07:10 +0000)]
adjust long lines
Jim Meyering [Fri, 12 Aug 2005 07:09:47 +0000 (07:09 +0000)]
(main): Cosmetic: use '\0' in place of 0.
Jim Meyering [Fri, 12 Aug 2005 06:54:24 +0000 (06:54 +0000)]
.
Jim Meyering [Fri, 12 Aug 2005 06:50:29 +0000 (06:50 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 06:49:48 +0000 (06:49 +0000)]
(cp invocation, mv invocation): Remove square
brackets in --reply=[HOW]. Reported by Oscar Liljeblad.
Jim Meyering [Tue, 2 Aug 2005 21:15:19 +0000 (21:15 +0000)]
.
Jim Meyering [Tue, 2 Aug 2005 20:53:32 +0000 (20:53 +0000)]
Include "xanstrftime.h".
(show_date): Use xanstrftime instead of open-coding it.
Jim Meyering [Tue, 2 Aug 2005 20:52:49 +0000 (20:52 +0000)]
*** empty log message ***
Jim Meyering [Tue, 2 Aug 2005 20:52:44 +0000 (20:52 +0000)]
Include "xanstrftime.h".
(show_date): Use xanstrftime instead of open-coding it.
Jim Meyering [Tue, 2 Aug 2005 20:49:08 +0000 (20:49 +0000)]
*** empty log message ***
Jim Meyering [Tue, 2 Aug 2005 20:48:58 +0000 (20:48 +0000)]
Require gl_FUNC_XANSTRFTIME.
Jim Meyering [Tue, 2 Aug 2005 20:48:15 +0000 (20:48 +0000)]
*** empty log message ***
Jim Meyering [Tue, 2 Aug 2005 20:47:46 +0000 (20:47 +0000)]
*** empty log message ***
Jim Meyering [Tue, 2 Aug 2005 20:47:37 +0000 (20:47 +0000)]
new files
Jim Meyering [Tue, 2 Aug 2005 20:44:46 +0000 (20:44 +0000)]
*** empty log message ***
Jim Meyering [Tue, 2 Aug 2005 20:44:38 +0000 (20:44 +0000)]
(show_date): Remove now-unnecessary code that
treated an empty format string as a special case.
Jim Meyering [Tue, 2 Aug 2005 20:44:09 +0000 (20:44 +0000)]
(empty-format): New test, for this case.
Paul Eggert [Mon, 25 Jul 2005 19:29:51 +0000 (19:29 +0000)]
Import regex.m4 from gnulib.
Paul Eggert [Mon, 25 Jul 2005 19:29:34 +0000 (19:29 +0000)]
(gl_INCLUDED_REGEX): Use AC_RUN_ELSE instead of the
obsolescent AC_TRY_RUN. Include the default includes files, for 'exit'.
Paul Eggert [Thu, 21 Jul 2005 22:00:55 +0000 (22:00 +0000)]
Fix getdate bug with relative times.
Paul Eggert [Thu, 21 Jul 2005 22:00:34 +0000 (22:00 +0000)]
(relative_time): New type.
(RELATIVE_TIME_0): New constant.
(parser_control): Use relative_time instead of doing it ourselves.
(%union): Add new relative_time rel member.
(tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
Now typeless.
(relunit, relunit_snumber): Now of type rel.
(zone, rel, relunit, get_date): Adjust to above changes.
Paul Eggert [Thu, 21 Jul 2005 22:00:06 +0000 (22:00 +0000)]
(gl_C_COMPOUND_LITERALS): New macro.
(gl_GETDATE): Use it.
Jim Meyering [Tue, 19 Jul 2005 11:10:43 +0000 (11:10 +0000)]
*** empty log message ***
Jim Meyering [Tue, 19 Jul 2005 11:10:35 +0000 (11:10 +0000)]
(usage): Adjust printf argument list to match new format string.
Paul Eggert [Tue, 19 Jul 2005 07:35:51 +0000 (07:35 +0000)]
md5sum --check now accepts multiple input files.
Paul Eggert [Tue, 19 Jul 2005 07:34:55 +0000 (07:34 +0000)]
(usage, main): --check now accepts multiple input files.
Paul Eggert [Tue, 19 Jul 2005 07:34:26 +0000 (07:34 +0000)]
(md5sum invocation): --check now allows multiple FILE inputs.
Paul Eggert [Tue, 19 Jul 2005 07:34:02 +0000 (07:34 +0000)]
md5sum --check now accepts multiple input files, and similarly for sha1sum.
Paul Eggert [Mon, 18 Jul 2005 08:03:56 +0000 (08:03 +0000)]
Fix a problem noted by James Youngman: VPATH-style builds don't
work because of po file problems.
Paul Eggert [Mon, 18 Jul 2005 07:53:05 +0000 (07:53 +0000)]
(EXIT_STATUS): New macro.
(PROGRAM_NAME, usage): Behave like "false" if EXIT_STATUS indicates.
(usage): Remove "These option names may not be abbreviated."
Paul Eggert [Mon, 18 Jul 2005 07:52:37 +0000 (07:52 +0000)]
Initial revision.
Paul Eggert [Mon, 18 Jul 2005 07:52:18 +0000 (07:52 +0000)]
(BUILT_SOURCES): Remove false.c.
(false.c): Remove; it's now a source file.
Paul Eggert [Mon, 18 Jul 2005 07:51:49 +0000 (07:51 +0000)]
Update true/false doc.
Paul Eggert [Mon, 18 Jul 2005 07:51:32 +0000 (07:51 +0000)]
(false invocation):
Mention that false is often built-in, and that it exits
with status >1 on some hosts.
(true invocation): Remove now-incorrect "non-POSIX mode" reference.
Paul Eggert [Fri, 15 Jul 2005 21:55:32 +0000 (21:55 +0000)]
nohup no longer worries about POSIXLY_CORRECT.
Paul Eggert [Fri, 15 Jul 2005 21:55:13 +0000 (21:55 +0000)]
(main): Don't worry about POSIXLY_CORRECT.
Paul Eggert [Fri, 15 Jul 2005 21:54:56 +0000 (21:54 +0000)]
(nohup invocation): POSIXLY_CORRECT no longer
affects nohup's behavior. Input is redirected from /dev/null.
Paul Eggert [Fri, 15 Jul 2005 21:54:38 +0000 (21:54 +0000)]
nohup now ignores POSIXLY_CORRECT and redirects from /dev/null.
Paul Eggert [Thu, 14 Jul 2005 00:03:08 +0000 (00:03 +0000)]
Remove FESETROUND_LIBM; no longer needed.
Jim Meyering [Tue, 12 Jul 2005 18:34:45 +0000 (18:34 +0000)]
*** empty log message ***
Jim Meyering [Tue, 12 Jul 2005 18:31:51 +0000 (18:31 +0000)]
(copyright-check): Reflect rearrangement in version-etc files.
Jim Meyering [Tue, 12 Jul 2005 16:48:12 +0000 (16:48 +0000)]
*** empty log message ***
Jim Meyering [Tue, 12 Jul 2005 16:47:37 +0000 (16:47 +0000)]
(X2NREALLOC): Define.
Jim Meyering [Tue, 12 Jul 2005 16:44:52 +0000 (16:44 +0000)]
.
Jim Meyering [Tue, 12 Jul 2005 15:36:07 +0000 (15:36 +0000)]
replace leading spaces with a TAB
Paul Eggert [Mon, 11 Jul 2005 23:28:09 +0000 (23:28 +0000)]
(verify_expr): Use ((verify_type__ (R) *) 0), not
sizeof (verify_type__ (R)), to pacify C++ compilers.
Paul Eggert [Mon, 11 Jul 2005 21:59:08 +0000 (21:59 +0000)]
Reword copyright notices to conform to current GNU coding standards.
Paul Eggert [Mon, 11 Jul 2005 21:58:50 +0000 (21:58 +0000)]
Parameterize the copyright symbol and the year.
Paul Eggert [Mon, 11 Jul 2005 21:58:32 +0000 (21:58 +0000)]
(COPYRIGHT_YEAR): New constant.
(version_etc_va): Use parameterized copyright notice.
Reword to conform to the current GNU coding standards.
Paul Eggert [Mon, 11 Jul 2005 18:31:36 +0000 (18:31 +0000)]
Binary input and output are now implemented more consistently.
Paul Eggert [Mon, 11 Jul 2005 18:31:10 +0000 (18:31 +0000)]
Updates for cat and md5sum, for text vs binary.
Paul Eggert [Mon, 11 Jul 2005 18:30:26 +0000 (18:30 +0000)]
(setmode, fileno): Remove; no longer needed, we think.
(SET_MODE, SET_BINARY, SET_BINARY2): Remove.
[defined __DJGPP__]: Don't include <io.h> or <sys/exceptn.h>.
Paul Eggert [Mon, 11 Jul 2005 18:30:02 +0000 (18:30 +0000)]
(wipefile): Always use binary mode. Clearly this
never worked right on DOS!
Paul Eggert [Mon, 11 Jul 2005 18:29:44 +0000 (18:29 +0000)]
(usage): Clarify whether text or binary is the default.
(split_3, main): BINARY is now a 3-way value. All uses changed.
(digest_file): Likewise. Clear *BINARY if we determine the file
to be text. All uses changed.
(main): Don't report a file to be binary if we actually read it
as text in MS-DOS, because it was a terminal.
Paul Eggert [Mon, 11 Jul 2005 18:29:21 +0000 (18:29 +0000)]
(unexpand): Always copy in text mode. POSIX says
the input and output must be text.
Paul Eggert [Mon, 11 Jul 2005 18:28:53 +0000 (18:28 +0000)]
(expand): Always copy in text mode. POSIX says
the input and output must be text.
Paul Eggert [Mon, 11 Jul 2005 18:28:19 +0000 (18:28 +0000)]
(copy_reg): Always copy in binary mode.
Paul Eggert [Mon, 11 Jul 2005 18:27:49 +0000 (18:27 +0000)]
(wc): Avoid setmode; use POSIX-specified routines instead.
(wc_file): FILE might be null now.
(main): Simplify code a bit, so that fewer places need the setmode fixes.
Paul Eggert [Mon, 11 Jul 2005 18:27:10 +0000 (18:27 +0000)]
(main): Avoid setmode; use POSIX-specified routines instead.
Paul Eggert [Mon, 11 Jul 2005 18:26:52 +0000 (18:26 +0000)]
(tee): Avoid setmode; use POSIX-specified routines instead.
Paul Eggert [Mon, 11 Jul 2005 18:26:28 +0000 (18:26 +0000)]
(tail_bytes, tail_lines, tail_file, main):
Avoid setmode; use POSIX-specified routines instead.
Paul Eggert [Mon, 11 Jul 2005 18:25:56 +0000 (18:25 +0000)]
(copy_to_temp, tac_file, main):
Avoid setmode; use POSIX-specified routines instead.
Paul Eggert [Mon, 11 Jul 2005 18:25:23 +0000 (18:25 +0000)]
(bsd_sum_file, sysv_sym_file):
Avoid setmode; use POSIX-specified routines instead.
Paul Eggert [Mon, 11 Jul 2005 18:24:42 +0000 (18:24 +0000)]
(main): Avoid setmode; use POSIX-specified routines instead.
Paul Eggert [Mon, 11 Jul 2005 18:24:14 +0000 (18:24 +0000)]
(open_next_file): Avoid setmode; use POSIX-specified routines instead.
Paul Eggert [Mon, 11 Jul 2005 18:23:23 +0000 (18:23 +0000)]
(head_lines, head_file): Avoid setmode; use POSIX-specified routines instead.
(elide_tail_bytes_file, elide_tail_lines_file, head_bytes):
(head_lines, head_file): Always use binary mode except for std tty.
Paul Eggert [Mon, 11 Jul 2005 18:21:54 +0000 (18:21 +0000)]
(cksum): Avoid setmode; use POSIX-specified routines instead.
Paul Eggert [Mon, 11 Jul 2005 18:21:11 +0000 (18:21 +0000)]
(usage, main, long_options) [O_BINARY]:
Remove support for -B. Use same rules as other programs to decide
whether to use binary I/O, except that the -bensAE options always
select text mode.
(main): Avoid setmode; use POSIX-specified routines instead.
Paul Eggert [Mon, 11 Jul 2005 18:20:34 +0000 (18:20 +0000)]
(cat invocation): Remove -B or --binary option
(available on MS-DOS-like platforms only). Explain when text and
binary mode are used now.
(md5sum invocation): -b actually does have an effect on Unix: it
causes "*" to be output. Explain when text and binary mode are
used now.
Paul Eggert [Mon, 11 Jul 2005 18:20:05 +0000 (18:20 +0000)]
Binary input and output are now implemented more consistently.
These changes affect only platforms like MS-DOS that distinguish
between binary and text files.
Paul Eggert [Sat, 9 Jul 2005 22:10:38 +0000 (22:10 +0000)]
Don't include stdio.h; no longer needed.
Paul Eggert [Sat, 9 Jul 2005 07:40:15 +0000 (07:40 +0000)]
Regenerate.
Paul Eggert [Sat, 9 Jul 2005 07:39:04 +0000 (07:39 +0000)]
Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
stropt.h -> stropts.h
Paul Eggert [Sat, 9 Jul 2005 07:38:28 +0000 (07:38 +0000)]
Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
stropt.h -> stropts.h
Paul Eggert [Sat, 9 Jul 2005 07:37:58 +0000 (07:37 +0000)]
Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
Paul Eggert [Sat, 9 Jul 2005 07:37:19 +0000 (07:37 +0000)]
strtopt.h -> stropts.h
Paul Eggert [Sat, 9 Jul 2005 07:36:54 +0000 (07:36 +0000)]
strtopt.h -> stropts.h
Paul Eggert [Sat, 9 Jul 2005 07:36:33 +0000 (07:36 +0000)]
Undo previous change, and remove AC_HEADER_TIOCGWINSZ.
Paul Eggert [Sat, 9 Jul 2005 07:36:03 +0000 (07:36 +0000)]
Update to Eric Blake porting problems.
Paul Eggert [Fri, 8 Jul 2005 23:41:43 +0000 (23:41 +0000)]
(getloadavg) [__CYGWIN__]: Port to cygwin.
[__linux__]: Allocate a big enough buffer for /proc/loadavg.
[!LDAV_DONE]: Avoid unused variable warning.
Paul Eggert [Fri, 8 Jul 2005 22:57:38 +0000 (22:57 +0000)]
Regenerate.
Paul Eggert [Fri, 8 Jul 2005 22:57:09 +0000 (22:57 +0000)]
Fix porting problems reported by Eric Blake.
Paul Eggert [Fri, 8 Jul 2005 22:56:17 +0000 (22:56 +0000)]
(gl_CHECK_ALL_HEADERS): Check for stropt.h.
Paul Eggert [Fri, 8 Jul 2005 22:55:44 +0000 (22:55 +0000)]
(print_user): Don't assume uid fits in unsigned int.
(print_group): Likewise, for gid.
Paul Eggert [Fri, 8 Jul 2005 22:54:40 +0000 (22:54 +0000)]
Include stropt.h if available.
Paul Eggert [Fri, 8 Jul 2005 22:54:15 +0000 (22:54 +0000)]
Include stropt.h if available.
Use HAVE_FIONREAD_IN_SYS_IOCTL instead of _POSIX_SOURCE
to decide whether to include <sys/ioctl.h>.
Paul Eggert [Fri, 8 Jul 2005 22:53:50 +0000 (22:53 +0000)]
Add check for HAVE_FIONREAD_IN_SYS_IOCTL.
Paul Eggert [Fri, 8 Jul 2005 17:58:35 +0000 (17:58 +0000)]
(init_dfa, build_range_exp): Store __btowc value
in wint_t, not wchar_t. Remove now-unnecessary cast.
Paul Eggert [Fri, 8 Jul 2005 07:09:20 +0000 (07:09 +0000)]
backupfile.m4, same.m4 cleanup.
Paul Eggert [Fri, 8 Jul 2005 07:08:56 +0000 (07:08 +0000)]
(gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on pathconf.
Paul Eggert [Fri, 8 Jul 2005 07:08:41 +0000 (07:08 +0000)]
(gl_SAME): Use AC_CHECK_FUNCS_ONCE on pathconf.
Require AC_SYS_LONG_FILE_NAMES.
Paul Eggert [Fri, 8 Jul 2005 00:35:04 +0000 (00:35 +0000)]
Regenerate.
Paul Eggert [Fri, 8 Jul 2005 00:23:15 +0000 (00:23 +0000)]
Switch to Isamu Hasegawa's implementation of regex, which is
now in gnulib.