platform/upstream/coreutils.git
22 years ago(rm): Add a comment.
Jim Meyering [Fri, 1 Feb 2002 23:30:23 +0000 (23:30 +0000)]
(rm): Add a comment.

22 years agoAdd more support for POSIX 1003.1-2001, which requires removal for
Jim Meyering [Fri, 1 Feb 2002 16:31:55 +0000 (16:31 +0000)]
Add more support for POSIX 1003.1-2001, which requires removal for
support of obsolete "-N" option syntax in expand, head, fold,
split, tail, unexpand, uniq, and which prohibits options with
optional arguments in od and pr.

(parse_obsolescent_option, main): Likewise.

22 years ago(start_lines): Handle the case in which bytes_read is zero.
Jim Meyering [Fri, 1 Feb 2002 09:12:50 +0000 (09:12 +0000)]
(start_lines): Handle the case in which bytes_read is zero.

22 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jan 2002 13:51:22 +0000 (13:51 +0000)]
*** empty log message ***

22 years ago(ac-check): Remove, now that we no longer have
Jim Meyering [Mon, 28 Jan 2002 13:50:50 +0000 (13:50 +0000)]
(ac-check): Remove, now that we no longer have
to duplicate that information.

22 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jan 2002 10:10:33 +0000 (10:10 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jan 2002 10:09:08 +0000 (10:09 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jan 2002 10:08:38 +0000 (10:08 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jan 2002 06:30:41 +0000 (06:30 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 27 Jan 2002 07:53:45 +0000 (07:53 +0000)]
*** empty log message ***

22 years agotail -n +2 would perform an extra read after encountering EOF
Jim Meyering [Sun, 27 Jan 2002 07:53:37 +0000 (07:53 +0000)]
tail -n +2 would perform an extra read after encountering EOF
(start_lines): Detect EOF, inform caller.
(tail_lines): Upon EOF in start_lines, return immediately.

22 years agosplit a long line
Jim Meyering [Sat, 26 Jan 2002 22:04:00 +0000 (22:04 +0000)]
split a long line

22 years ago.
Jim Meyering [Sat, 26 Jan 2002 19:03:43 +0000 (19:03 +0000)]
.

22 years ago(jm_MACROS): Require autoconf-2.52g.
Jim Meyering [Sat, 26 Jan 2002 19:03:23 +0000 (19:03 +0000)]
(jm_MACROS): Require autoconf-2.52g.

22 years ago. TEXTUTILS-2_0_20
Jim Meyering [Sat, 26 Jan 2002 09:56:05 +0000 (09:56 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 26 Jan 2002 09:55:15 +0000 (09:55 +0000)]
*** empty log message ***

22 years ago(getdate$U.o): Depend on unlocked-io.h.
Jim Meyering [Sat, 26 Jan 2002 09:55:02 +0000 (09:55 +0000)]
(getdate$U.o): Depend on unlocked-io.h.

22 years ago*** empty log message ***
Jim Meyering [Thu, 24 Jan 2002 09:14:52 +0000 (09:14 +0000)]
*** empty log message ***

22 years ago(START-INFO-DIR-ENTRY): Remove a few entries
Jim Meyering [Thu, 24 Jan 2002 09:14:45 +0000 (09:14 +0000)]
(START-INFO-DIR-ENTRY): Remove a few entries
and clean up a few others based on suggestions from Bob Proulx.

22 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jan 2002 18:16:06 +0000 (18:16 +0000)]
*** empty log message ***

22 years ago(skip): Remove redundant check for overflow.
Jim Meyering [Tue, 22 Jan 2002 18:15:57 +0000 (18:15 +0000)]
(skip): Remove redundant check for overflow.
fseeko's seek argument is already known to be in range,
since it is less than the file size.

22 years ago(save_stdin): Report proper errno value after
Jim Meyering [Tue, 22 Jan 2002 17:50:41 +0000 (17:50 +0000)]
(save_stdin): Report proper errno value after
fwrite failures.  Do not bother to rewind the temp file, as
it'll be read backwards anyway.

22 years ago.
Jim Meyering [Tue, 22 Jan 2002 12:00:00 +0000 (12:00 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jan 2002 11:59:20 +0000 (11:59 +0000)]
*** empty log message ***

22 years ago(Makefile): Don't depend on $(BUILT_SOURCES).
Jim Meyering [Tue, 22 Jan 2002 11:59:11 +0000 (11:59 +0000)]
(Makefile): Don't depend on $(BUILT_SOURCES).
Otherwise, some versions of automake would omit the rule that makes
Makefile from Makefile.in.

22 years ago.
Jim Meyering [Tue, 22 Jan 2002 11:58:36 +0000 (11:58 +0000)]
.

22 years agoheader-check: fix it yet again
Jim Meyering [Tue, 22 Jan 2002 11:22:03 +0000 (11:22 +0000)]
header-check: fix it yet again

22 years ago(header-check): Add `&& :'.
Jim Meyering [Tue, 22 Jan 2002 11:13:50 +0000 (11:13 +0000)]
(header-check): Add `&& :'.

22 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jan 2002 11:12:00 +0000 (11:12 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jan 2002 11:11:22 +0000 (11:11 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Tue, 22 Jan 2002 11:03:33 +0000 (11:03 +0000)]
.

22 years agoupdate copyright year
Jim Meyering [Tue, 22 Jan 2002 11:02:31 +0000 (11:02 +0000)]
update copyright year

22 years ago(swallow_file_in_memory): Work even if `open' returns 0.
Jim Meyering [Tue, 22 Jan 2002 10:51:53 +0000 (10:51 +0000)]
(swallow_file_in_memory): Work even if `open' returns 0.
Check for `close' error.

22 years agoremove the parens I just added to Paul's patch
Jim Meyering [Tue, 22 Jan 2002 10:47:14 +0000 (10:47 +0000)]
remove the parens I just added to Paul's patch

22 years ago(EOVERFLOW, fseeko): New macros.
Jim Meyering [Tue, 22 Jan 2002 10:46:05 +0000 (10:46 +0000)]
(EOVERFLOW, fseeko): New macros.

22 years ago(skip): Use fseeko rather than lseek.
Jim Meyering [Tue, 22 Jan 2002 10:44:13 +0000 (10:44 +0000)]
(skip): Use fseeko rather than lseek.
(Also, check for overflow when converting uintmax_t to off_t.)

22 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jan 2002 10:34:49 +0000 (10:34 +0000)]
*** empty log message ***

22 years ago(jm_MACROS): Require AC_FUNC_FSEEKO.
Jim Meyering [Tue, 22 Jan 2002 10:34:43 +0000 (10:34 +0000)]
(jm_MACROS): Require AC_FUNC_FSEEKO.

22 years ago.
Jim Meyering [Tue, 22 Jan 2002 09:53:13 +0000 (09:53 +0000)]
.

22 years ago.
Jim Meyering [Tue, 22 Jan 2002 08:14:46 +0000 (08:14 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jan 2002 08:13:00 +0000 (08:13 +0000)]
*** empty log message ***

22 years agoInclude xmemcoll.h, not memcoll.h.
Jim Meyering [Tue, 22 Jan 2002 08:12:51 +0000 (08:12 +0000)]
Include xmemcoll.h, not memcoll.h.
Use xmemcoll instead of memcoll.

(die): Do not invoke cleanup; atexit does this now.
(main): Use atexit to invoke cleanup on exit.
Set xmemcoll_exit_failure to SORT_FAILURE.

22 years agoInclude xmemcoll.h, not memcoll.h.
Jim Meyering [Tue, 22 Jan 2002 08:11:04 +0000 (08:11 +0000)]
Include xmemcoll.h, not memcoll.h.
Use xmemcoll instead of memcoll.

22 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jan 2002 08:04:03 +0000 (08:04 +0000)]
*** empty log message ***

22 years ago(libfetish_a_SOURCES): Add them.
Jim Meyering [Tue, 22 Jan 2002 08:03:54 +0000 (08:03 +0000)]
(libfetish_a_SOURCES): Add them.

22 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jan 2002 08:02:55 +0000 (08:02 +0000)]
*** empty log message ***

22 years ago(quotearg_n_style_mem): New function.
Jim Meyering [Tue, 22 Jan 2002 08:02:43 +0000 (08:02 +0000)]
(quotearg_n_style_mem): New function.

22 years ago(quotearg_buffer_restyled):
Jim Meyering [Tue, 22 Jan 2002 08:02:22 +0000 (08:02 +0000)]
(quotearg_buffer_restyled):
Fix bug with quoting buffers containing NUL when backslashing escapes.
This bug was exposed by the other changes in this patch.
(quotearg_n_options): New arg ARGSIZE.
All callers changed.
(quoting_options_from_style): New function.
(quotearg_n_style): Use it.
(quotearg_n_style_mem): New function.

22 years agoInclude errno.h, and declare errno if not defined.
Jim Meyering [Tue, 22 Jan 2002 07:56:44 +0000 (07:56 +0000)]
Include errno.h, and declare errno if not defined.
(memcoll): Set errno to zero if there is no error.

22 years ago*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 23:33:51 +0000 (23:33 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 22:02:35 +0000 (22:02 +0000)]
*** empty log message ***

22 years ago(CMP_WITH_IGNORE): Don't assume that the difference
Jim Meyering [Mon, 21 Jan 2002 22:02:28 +0000 (22:02 +0000)]
(CMP_WITH_IGNORE): Don't assume that the difference
between two size_t values can be stored in an int; this doesn't
work, for example, on 64-bit Solaris.

22 years ago(keycmp): Don't assume that the difference between two size_t values can be
Jim Meyering [Mon, 21 Jan 2002 22:01:58 +0000 (22:01 +0000)]
(keycmp): Don't assume that the difference between two size_t values can be
stored in an int; this doesn't work, for example, on 64-bit Solaris.

Also, fix the type of two locals to be size_t instead of int.

22 years ago(compare_files): Don't assume that the difference
Jim Meyering [Mon, 21 Jan 2002 22:00:32 +0000 (22:00 +0000)]
(compare_files): Don't assume that the difference
between two size_t values can be stored in an int; this doesn't
work, for example, on 64-bit Solaris.

22 years ago*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 20:04:08 +0000 (20:04 +0000)]
*** empty log message ***

22 years ago(header-check): New rule.
Jim Meyering [Mon, 21 Jan 2002 20:03:59 +0000 (20:03 +0000)]
(header-check): New rule.
(local-check): Add header-check.

22 years ago(strftime-check): New rule.
Jim Meyering [Mon, 21 Jan 2002 19:57:53 +0000 (19:57 +0000)]
(strftime-check): New rule.
(local-check): Convert this target to a list.  Update uses.
Mark them as .PHONY.

22 years ago*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 19:53:45 +0000 (19:53 +0000)]
*** empty log message ***

22 years agoDon't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Mon, 21 Jan 2002 19:53:23 +0000 (19:53 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.

22 years ago*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 19:52:06 +0000 (19:52 +0000)]
*** empty log message ***

22 years agoDon't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Mon, 21 Jan 2002 19:51:31 +0000 (19:51 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.

22 years agoDon't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Mon, 21 Jan 2002 19:50:50 +0000 (19:50 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.

22 years agoDon't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Mon, 21 Jan 2002 19:50:28 +0000 (19:50 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.

22 years ago*** empty log message ***
Jim Meyering [Mon, 21 Jan 2002 19:49:58 +0000 (19:49 +0000)]
*** empty log message ***

22 years agoDon't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Mon, 21 Jan 2002 19:49:51 +0000 (19:49 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.

22 years agoDon't include "xalloc.h", as system.h already does that via sys2.h.
Jim Meyering [Mon, 21 Jan 2002 19:49:24 +0000 (19:49 +0000)]
Don't include "xalloc.h", as system.h already does that via sys2.h.

22 years agoAvoid undefined behavior when strcoll fails,
Jim Meyering [Sun, 20 Jan 2002 20:44:49 +0000 (20:44 +0000)]
Avoid undefined behavior when strcoll fails,
by resorting the directory with strcmp instead.

Include <setjmp.h>.
Include "quote.h".
(compare_atime, rev_cmp_atime, compare_ctime, rev_cmp_ctime,
compare_mtime, rev_cmp_mtime, compare_size, rev_comp_size,
compare_name, rev_cmp_name, compare_extension, rev_cmp_extension,
compare_version, rev_compare_version): Move before use, so that
we can remove the forward declaration.  Reimplement in terms of
the new functions described below, using xstrcoll instead of strcoll.
(failed_strcoll): New var.
(xstrcoll): New function.
(V): New type.
(cmp_ctime, compstr_ctime, rev_str_ctime): New functions.
(cmp_mtime, compstr_mtime, rev_str_mtime): Likewise.
(cmp_atime, compstr_atime, rev_str_atime): Likewise.
(cmp_size, compstr_size, rev_str_size): Likewise.
(cmp_version): Likewise.
(cmp_name, compstr_name, rev_str_name): Likewise.
(cmp_extension, compstr_extension, rev_str_extension): Likewise.
(sort_files): Use prototype for internal function var.
If the strcoll-based comparison fails, fall back on a strcmp-based one.

22 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jan 2002 08:22:12 +0000 (08:22 +0000)]
*** empty log message ***

22 years agoEnsure that the two version numbers in configure.ac remain in sync.
Jim Meyering [Sat, 19 Jan 2002 00:12:30 +0000 (00:12 +0000)]
Ensure that the two version numbers in configure.ac remain in sync.
(local-check): Depend on ac-check.
(ac_p_pkg, AC_INIT_PKG): Define.
(ac_p_ver, AC_INIT_VER): Define.
(ac-check): New rule.

22 years ago.
Jim Meyering [Sat, 19 Jan 2002 00:07:20 +0000 (00:07 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jan 2002 00:03:42 +0000 (00:03 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jan 2002 00:02:48 +0000 (00:02 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 23:59:25 +0000 (23:59 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Fri, 18 Jan 2002 23:56:59 +0000 (23:56 +0000)]
.

22 years ago.
Jim Meyering [Fri, 18 Jan 2002 23:56:32 +0000 (23:56 +0000)]
.

22 years ago.
Jim Meyering [Fri, 18 Jan 2002 23:50:03 +0000 (23:50 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 23:47:33 +0000 (23:47 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 23:47:13 +0000 (23:47 +0000)]
*** empty log message ***

22 years ago(jm_MACROS): Use AC_FUNC_STRNLEN.
Jim Meyering [Fri, 18 Jan 2002 23:43:38 +0000 (23:43 +0000)]
(jm_MACROS): Use AC_FUNC_STRNLEN.
Remove useless quotes: DF_PROG="df".

22 years ago(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
Jim Meyering [Fri, 18 Jan 2002 23:40:06 +0000 (23:40 +0000)]
(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.

22 years ago(parse_obsolescent_option): Issue a warning for obsolete usage,
Jim Meyering [Fri, 18 Jan 2002 23:39:37 +0000 (23:39 +0000)]
(parse_obsolescent_option): Issue a warning for obsolete usage,
unless POSIXLY_CORRECT.

22 years ago(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
Jim Meyering [Fri, 18 Jan 2002 23:39:06 +0000 (23:39 +0000)]
(main):  Issue a warning for obsolete usage, unless POSIXLY_CORRECT.

22 years agotweak copyright line
Jim Meyering [Fri, 18 Jan 2002 23:36:00 +0000 (23:36 +0000)]
tweak copyright line

22 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 19:51:04 +0000 (19:51 +0000)]
*** empty log message ***

22 years agoAdd these tests:
Jim Meyering [Fri, 18 Jan 2002 19:50:28 +0000 (19:50 +0000)]
Add these tests:
tr '[==]' x
tr '[::]' x
they should fail, not get a failed assertion.

22 years agoFix tr so it no longer gets a failed assertion for [::] or [==].
Jim Meyering [Fri, 18 Jan 2002 19:18:07 +0000 (19:18 +0000)]
Fix tr so it no longer gets a failed assertion for [::] or [==].

(xmemdup): Rename from `substr' and rewrite to
take only pointer/length parameters.
(build_spec_list): Update sole caller.
Properly diagnose the invalid specs [::] and [==].
Pawel Prokop reported that `tr [::] _' elicits a failed assertion.

22 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 19:16:03 +0000 (19:16 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 18 Jan 2002 19:13:27 +0000 (19:13 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Fri, 18 Jan 2002 15:40:54 +0000 (15:40 +0000)]
.

22 years ago(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
Jim Meyering [Fri, 18 Jan 2002 15:36:23 +0000 (15:36 +0000)]
(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.

22 years ago.
Jim Meyering [Wed, 16 Jan 2002 23:33:48 +0000 (23:33 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 23:32:01 +0000 (23:32 +0000)]
*** empty log message ***

22 years agoAdd support for POSIX 1003.1-2001, which requires removal for
Jim Meyering [Wed, 16 Jan 2002 23:31:51 +0000 (23:31 +0000)]
Add support for POSIX 1003.1-2001, which requires removal for
support of the obsolete `touch [-acm] MMDDhhmm[YY] FILE...' syntax.

Document this.

22 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 23:31:33 +0000 (23:31 +0000)]
*** empty log message ***

22 years agoAdd support for POSIX 1003.1-2001, which requires removal for
Jim Meyering [Wed, 16 Jan 2002 23:31:14 +0000 (23:31 +0000)]
Add support for POSIX 1003.1-2001, which requires removal for
support of the obsolete `touch [-acm] MMDDhhmm[YY] FILE...' syntax.
(usage, main): Implement this.

22 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 23:14:24 +0000 (23:14 +0000)]
*** empty log message ***

22 years agoAdd support for POSIX 1003.1-2001, which requires removal for
Jim Meyering [Wed, 16 Jan 2002 23:13:49 +0000 (23:13 +0000)]
Add support for POSIX 1003.1-2001, which requires removal for
support of obsolete "+" option syntax in sort, tail, and uniq.
* doc/coreutils.texi: Document this.  (Also, document a similar
change to "touch", for fileutils).

22 years ago(ISDIGIT, S_ISVTX, S_IXUGO): Comment fix.
Jim Meyering [Wed, 16 Jan 2002 23:04:06 +0000 (23:04 +0000)]
(ISDIGIT, S_ISVTX, S_IXUGO): Comment fix.

22 years ago*** empty log message ***
Jim Meyering [Wed, 16 Jan 2002 23:02:37 +0000 (23:02 +0000)]
*** empty log message ***

22 years ago(_POSIX2_VERSION, POSIX2_VERSION): New macros.
Jim Meyering [Wed, 16 Jan 2002 23:02:28 +0000 (23:02 +0000)]
(_POSIX2_VERSION, POSIX2_VERSION): New macros.