platform/upstream/coreutils.git
21 years agoAssume freestanding C89 or better.
Jim Meyering [Thu, 5 Jun 2003 21:55:47 +0000 (21:55 +0000)]
Assume freestanding C89 or better.

(HAVE_LIMITS_H): Remove.  Assume it's 1.
(__P): Remove; not used.
(CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
(mktime, not_equal_tm, print_tm, check_result,
main): Use prototypes.  Use const * where appropriate.
(main): Fix typo in testing code that uncovered by above changes.
(Local Variables): Remove -DHAVE_LIMITS_H from compile-command.

21 years ago*** empty log message ***
Jim Meyering [Thu, 5 Jun 2003 16:28:53 +0000 (16:28 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 4 Jun 2003 12:43:10 +0000 (12:43 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 4 Jun 2003 12:36:05 +0000 (12:36 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Wed, 4 Jun 2003 12:22:59 +0000 (12:22 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 4 Jun 2003 12:22:44 +0000 (12:22 +0000)]
*** empty log message ***

21 years ago(check-programs-vs-x): Rename target
Jim Meyering [Wed, 4 Jun 2003 12:22:06 +0000 (12:22 +0000)]
(check-programs-vs-x): Rename target
from check-programs-vs-1.  Adjust rule to check for the
primary (.x) file, not the generated one (.1).

21 years ago(dist_man_MANS): Add kill.1.
Jim Meyering [Wed, 4 Jun 2003 12:16:02 +0000 (12:16 +0000)]
(dist_man_MANS): Add kill.1.
(kill.1): New rule.

21 years ago*** empty log message ***
Jim Meyering [Wed, 4 Jun 2003 12:15:36 +0000 (12:15 +0000)]
*** empty log message ***

21 years ago(check-programs-vs-1): New phony target.
Jim Meyering [Wed, 4 Jun 2003 11:58:59 +0000 (11:58 +0000)]
(check-programs-vs-1): New phony target.
(check-local): Depend on it.

21 years ago.
Jim Meyering [Tue, 3 Jun 2003 13:00:22 +0000 (13:00 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Tue, 3 Jun 2003 08:46:06 +0000 (08:46 +0000)]
*** empty log message ***

21 years agoAvoid unnecessary copying of environment.
Jim Meyering [Tue, 3 Jun 2003 08:29:41 +0000 (08:29 +0000)]
Avoid unnecessary copying of environment.

(main): Rather than clearing the environment and --
unless told to ignore environment -- copying all settings from
the saved, original environment, clear the environment only when
that is requested.  Suggested by Jens Elkner.

21 years ago*** empty log message ***
Jim Meyering [Tue, 3 Jun 2003 07:52:51 +0000 (07:52 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Tue, 3 Jun 2003 06:53:45 +0000 (06:53 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Mon, 2 Jun 2003 08:15:45 +0000 (08:15 +0000)]
*** empty log message ***

21 years ago(MOSTLYCLEANFILES): Initialize.
Jim Meyering [Mon, 2 Jun 2003 08:15:38 +0000 (08:15 +0000)]
(MOSTLYCLEANFILES): Initialize.
(stdbool.h): New rule.
(all-local $(lib_OBJECTS)): Depend on $(STDBOOL_H)
(MOSTLYCLEANFILES): Add stdbool.h.
(EXTRA_DIST): Add stdbool.h.

21 years agoNew file. From gnulib.
Jim Meyering [Mon, 2 Jun 2003 08:15:16 +0000 (08:15 +0000)]
New file.  From gnulib.

21 years ago*** empty log message ***
Jim Meyering [Mon, 2 Jun 2003 07:47:08 +0000 (07:47 +0000)]
*** empty log message ***

21 years ago(jm_MACROS): Require AM_STDBOOL_H.
Jim Meyering [Mon, 2 Jun 2003 07:46:55 +0000 (07:46 +0000)]
(jm_MACROS): Require AM_STDBOOL_H.

21 years ago*** empty log message ***
Jim Meyering [Mon, 2 Jun 2003 06:58:27 +0000 (06:58 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Mon, 2 Jun 2003 06:58:22 +0000 (06:58 +0000)]
*** empty log message ***

21 years ago[!TEST_STANDALONE]: Remove #if-0'd block.
Jim Meyering [Mon, 2 Jun 2003 06:58:18 +0000 (06:58 +0000)]
[!TEST_STANDALONE]: Remove #if-0'd block.
(STREQ, S_IXUGO): Remove redundant (in system.h) definitions.

21 years agoAlways include <string.h>, since we assume C89.
Jim Meyering [Mon, 2 Jun 2003 06:56:30 +0000 (06:56 +0000)]
Always include <string.h>, since we assume C89.
Include <limits.h> without checking for HAVE_LIMITS_H.

21 years ago.
Jim Meyering [Sun, 1 Jun 2003 21:42:54 +0000 (21:42 +0000)]
.

21 years agoAvoid a race condition in `tail -f' described by Ken Raeburn in
Jim Meyering [Sun, 1 Jun 2003 18:26:38 +0000 (18:26 +0000)]
Avoid a race condition in `tail -f' described by Ken Raeburn in
http://mail.gnu.org/archive/html/bug-textutils/2003-05/msg00007.html

(file_lines): Add new parameter, *read_pos, and set it.
(pipe_lines, pipe_bytes, start_bytes, start_lines): Likewise.
(tail_bytes, tail_lines, tail): Likewise.
(tail_file): Use the new `read_pos' value as the size,
rather than stats.st_size from the fstat call.

21 years ago*** empty log message ***
Jim Meyering [Sun, 1 Jun 2003 18:24:46 +0000 (18:24 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 1 Jun 2003 12:02:20 +0000 (12:02 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 1 Jun 2003 08:48:10 +0000 (08:48 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 1 Jun 2003 08:47:18 +0000 (08:47 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 1 Jun 2003 08:44:52 +0000 (08:44 +0000)]
*** empty log message ***

21 years agoupdate from gnulib again
Jim Meyering [Fri, 30 May 2003 16:05:56 +0000 (16:05 +0000)]
update from gnulib again

21 years ago*** empty log message ***
Jim Meyering [Fri, 30 May 2003 16:01:07 +0000 (16:01 +0000)]
*** empty log message ***

21 years agoUpdate from gnulib.
Jim Meyering [Fri, 30 May 2003 16:01:04 +0000 (16:01 +0000)]
Update from gnulib.

21 years agoUpdate from gnulib.
Jim Meyering [Fri, 30 May 2003 07:39:20 +0000 (07:39 +0000)]
Update from gnulib.

21 years ago.
Jim Meyering [Thu, 29 May 2003 19:54:40 +0000 (19:54 +0000)]
.

21 years ago.
Jim Meyering [Thu, 29 May 2003 19:53:52 +0000 (19:53 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Thu, 29 May 2003 12:09:50 +0000 (12:09 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Thu, 29 May 2003 12:09:42 +0000 (12:09 +0000)]
*** empty log message ***

21 years agoMake the %r format directive honor any locale setting.
Jim Meyering [Thu, 29 May 2003 12:09:06 +0000 (12:09 +0000)]
Make the %r format directive honor any locale setting.

(my_strftime) [!defined _NL_CURRENT && HAVE_STRFTIME]:
Use underlying_strftime for %r.

21 years ago.
Jim Meyering [Wed, 28 May 2003 18:07:17 +0000 (18:07 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 28 May 2003 18:06:03 +0000 (18:06 +0000)]
*** empty log message ***

21 years agoAllow expansion of `$file' in the here-
Jim Meyering [Wed, 28 May 2003 18:05:46 +0000 (18:05 +0000)]
Allow expansion of `$file' in the here-
document corresponding to comment at the top of fs.h.

21 years agoupgrade to 1.7.5
Jim Meyering [Mon, 26 May 2003 21:08:58 +0000 (21:08 +0000)]
upgrade to 1.7.5

21 years ago*** empty log message ***
Jim Meyering [Mon, 26 May 2003 20:23:31 +0000 (20:23 +0000)]
*** empty log message ***

21 years agoFix portability problem on FreeBSD5.0: don't include
Jim Meyering [Mon, 26 May 2003 20:23:14 +0000 (20:23 +0000)]
Fix portability problem on FreeBSD5.0: don't include
<sys/statvfs.h> on systems without HAVE_STRUCT_STATVFS_F_BASETYPE.
Use #if/#elif/... cascade so we get only one set of include files.

21 years ago(UTILS_FUNC_DIRFD): Merge in change from gnulib, fixing an M4 quoting bug.
Jim Meyering [Mon, 26 May 2003 19:37:26 +0000 (19:37 +0000)]
(UTILS_FUNC_DIRFD): Merge in change from gnulib, fixing an M4 quoting bug.

21 years ago.
Jim Meyering [Mon, 26 May 2003 19:30:23 +0000 (19:30 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Mon, 26 May 2003 19:30:14 +0000 (19:30 +0000)]
*** empty log message ***

21 years ago(AM_PATH_PROG_WITH_TEST): Use TAB-SP, not SP-TAB when setting IFS.
Jim Meyering [Mon, 26 May 2003 19:30:10 +0000 (19:30 +0000)]
(AM_PATH_PROG_WITH_TEST): Use TAB-SP, not SP-TAB when setting IFS.

21 years ago(AC_LIB_PROG_LD_GNU): Use TAB-SP, not SP-TAB when setting IFS.
Jim Meyering [Mon, 26 May 2003 19:29:28 +0000 (19:29 +0000)]
(AC_LIB_PROG_LD_GNU): Use TAB-SP, not SP-TAB when setting IFS.

21 years ago.
Jim Meyering [Sat, 24 May 2003 18:18:57 +0000 (18:18 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sat, 24 May 2003 17:22:06 +0000 (17:22 +0000)]
*** empty log message ***

21 years ago(split_3): Accept the BSD format only when in MD5 mode.
Jim Meyering [Sat, 24 May 2003 16:55:37 +0000 (16:55 +0000)]
(split_3): Accept the BSD format only when in MD5 mode.

21 years agoNew tests for --check exit status, and for BSD-style checksum files.
Jim Meyering [Sat, 24 May 2003 16:55:21 +0000 (16:55 +0000)]
New tests for --check exit status, and for BSD-style checksum files.

21 years ago(bsd_split_3): New function.
Jim Meyering [Sat, 24 May 2003 16:51:52 +0000 (16:51 +0000)]
(bsd_split_3): New function.
(split_3): Detect checksums from BSD 'md5' command and handle them
using bsd_split_3.

21 years agoMake sure `sha1sum --check' doesn't accept the BSD format.
Jim Meyering [Sat, 24 May 2003 16:49:40 +0000 (16:49 +0000)]
Make sure `sha1sum --check' doesn't accept the BSD format.

21 years ago*** empty log message ***
Jim Meyering [Wed, 21 May 2003 09:30:08 +0000 (09:30 +0000)]
*** empty log message ***

21 years ago(elide_tail_lines_pipe): Fix a thinko.
Jim Meyering [Wed, 21 May 2003 09:29:50 +0000 (09:29 +0000)]
(elide_tail_lines_pipe): Fix a thinko.
This sort of thing is why it'd be *Really Good* to factor
out the common code used here and in tail.c.

21 years ago.
Jim Meyering [Tue, 20 May 2003 18:48:24 +0000 (18:48 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Thu, 15 May 2003 20:12:31 +0000 (20:12 +0000)]
*** empty log message ***

21 years agoRemove a space before a TAB.
Jim Meyering [Thu, 15 May 2003 20:12:26 +0000 (20:12 +0000)]
Remove a space before a TAB.

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 14:43:16 +0000 (14:43 +0000)]
*** empty log message ***

21 years ago(usage): Document new feature: --bytes=-N and --lines=-N.
Jim Meyering [Wed, 14 May 2003 14:43:13 +0000 (14:43 +0000)]
(usage): Document new feature: --bytes=-N and --lines=-N.

21 years ago.
Jim Meyering [Wed, 14 May 2003 14:21:18 +0000 (14:21 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 14:20:58 +0000 (14:20 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 14:20:32 +0000 (14:20 +0000)]
*** empty log message ***

21 years agoSkip this test if `.' is on an XFS file system.
Jim Meyering [Wed, 14 May 2003 14:20:23 +0000 (14:20 +0000)]
Skip this test if `.' is on an XFS file system.

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 14:20:04 +0000 (14:20 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 13:58:16 +0000 (13:58 +0000)]
*** empty log message ***

21 years ago(head invocation): Document --bytes=-N and --lines=-N.
Jim Meyering [Wed, 14 May 2003 13:58:13 +0000 (13:58 +0000)]
(head invocation): Document --bytes=-N and --lines=-N.

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 10:08:25 +0000 (10:08 +0000)]
*** empty log message ***

21 years ago(TESTS): Add fd-leak.
Jim Meyering [Wed, 14 May 2003 10:08:21 +0000 (10:08 +0000)]
(TESTS): Add fd-leak.

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 10:08:07 +0000 (10:08 +0000)]
*** empty log message ***

21 years agoNew file. Test for the bug in du that
Jim Meyering [Wed, 14 May 2003 10:08:02 +0000 (10:08 +0000)]
New file.  Test for the bug in du that
was fixed by the 2003-05-12 change to lib/ftw.c.

21 years ago.
Jim Meyering [Wed, 14 May 2003 09:50:55 +0000 (09:50 +0000)]
.

21 years ago.
Jim Meyering [Wed, 14 May 2003 09:50:38 +0000 (09:50 +0000)]
.

21 years ago.
Jim Meyering [Wed, 14 May 2003 09:36:01 +0000 (09:36 +0000)]
.

21 years ago.
Jim Meyering [Wed, 14 May 2003 09:35:33 +0000 (09:35 +0000)]
.

21 years ago.
Jim Meyering [Wed, 14 May 2003 09:34:36 +0000 (09:34 +0000)]
.

21 years ago.
Jim Meyering [Wed, 14 May 2003 09:33:42 +0000 (09:33 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 09:20:37 +0000 (09:20 +0000)]
*** empty log message ***

21 years ago(AUTHORS): Enclose string in N_(...), now that it includes `and'.
Jim Meyering [Wed, 14 May 2003 09:20:32 +0000 (09:20 +0000)]
(AUTHORS): Enclose string in N_(...), now that it includes `and'.

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 09:13:47 +0000 (09:13 +0000)]
*** empty log message ***

21 years ago(usage): Don't use `,' as the thousands separator
Jim Meyering [Wed, 14 May 2003 09:13:26 +0000 (09:13 +0000)]
(usage): Don't use `,' as the thousands separator
in e.g. 1,000,000 and 1,048,576.  Instead, do this:
`SIZE may be ..., MB 1000*1000, M 1024*1024 and so on...'

21 years ago(usage): Don't use `,' as the thousands separator
Jim Meyering [Wed, 14 May 2003 09:12:43 +0000 (09:12 +0000)]
(usage): Don't use `,' as the thousands separator
in e.g. 1,000,000 and 1,048,576.  Instead, do this:
`SIZE may be ..., MB 1000*1000, M 1024*1024 and so on...'

21 years agoTest that 'uniq -d -u' outputs nothing.
Jim Meyering [Wed, 14 May 2003 08:35:57 +0000 (08:35 +0000)]
Test that 'uniq -d -u' outputs nothing.

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 08:35:18 +0000 (08:35 +0000)]
*** empty log message ***

21 years agoFix uniq to conform to POSIX, which requires that "uniq -d -u"
Jim Meyering [Wed, 14 May 2003 08:34:56 +0000 (08:34 +0000)]
Fix uniq to conform to POSIX, which requires that "uniq -d -u"
must output nothing.  Problem reported by Josh Hyman.

(enum output_mode, mode): Remove, replacing with:
(output_unique, output_first_repeated, output_later_repeated):
New vars.  All uses of "mode" changed to use these variables,
which are not mutually exclusive as "mode" was.
(writeline): New arg "match", used to control whether to
obey output_first_repeated or output_later_repeated.
All callers changed.
(check_file, main): Adjust to above changes.

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 08:05:49 +0000 (08:05 +0000)]
*** empty log message ***

21 years ago(syntax-check): Add another check.
Jim Meyering [Wed, 14 May 2003 08:05:44 +0000 (08:05 +0000)]
(syntax-check): Add another check.

21 years ago(uniq invocation, squeezing, The uniq command):
Jim Meyering [Wed, 14 May 2003 07:58:40 +0000 (07:58 +0000)]
(uniq invocation, squeezing, The uniq command):
Use "repeated" rather than "duplicate" to describe adjacent
duplicates; this simplifies the description and makes it more
consistent with POSIX.
(uniq invocation): Make it clear that -d and -u suppress the
output of lines, rather than cause some lines to be output.
Mention what happens if a line lacks enough fields or characters.

21 years ago*** empty log message ***
Jim Meyering [Wed, 14 May 2003 06:30:23 +0000 (06:30 +0000)]
*** empty log message ***

21 years agoUse tr's \n notation rather than \012.
Jim Meyering [Wed, 14 May 2003 06:26:34 +0000 (06:26 +0000)]
Use tr's \n notation rather than \012.

21 years agoUse tr's \n notation rather than \012.
Jim Meyering [Wed, 14 May 2003 06:25:08 +0000 (06:25 +0000)]
Use tr's \n notation rather than \012.

21 years agoUse tr's \n notation rather than \012.
Jim Meyering [Wed, 14 May 2003 06:24:43 +0000 (06:24 +0000)]
Use tr's \n notation rather than \012.

21 years ago*** empty log message ***
Jim Meyering [Tue, 13 May 2003 17:04:46 +0000 (17:04 +0000)]
*** empty log message ***

21 years agoHandle argc < optind.
Jim Meyering [Tue, 13 May 2003 17:03:58 +0000 (17:03 +0000)]
Handle argc < optind.

21 years ago(elide_tail_lines_pipe): Don't apply cast to argument of free.
Jim Meyering [Tue, 13 May 2003 14:54:31 +0000 (14:54 +0000)]
(elide_tail_lines_pipe): Don't apply cast to argument of free.

21 years ago*** empty log message ***
Jim Meyering [Tue, 13 May 2003 14:49:07 +0000 (14:49 +0000)]
*** empty log message ***