platform/upstream/coreutils.git
24 years agoSet COLUMNS envvar, just to be safe.
Jim Meyering [Sat, 29 Jan 2000 09:50:49 +0000 (09:50 +0000)]
Set COLUMNS envvar, just to be safe.

24 years ago(screen_columns): Change #if-0 (test code, mistakenly committed in last delta)
Jim Meyering [Sat, 29 Jan 2000 09:50:14 +0000 (09:50 +0000)]
(screen_columns): Change #if-0 (test code, mistakenly committed in last delta)
back to #ifdef TIOCGWINSZ.

24 years ago*** empty log message ***
Jim Meyering [Fri, 28 Jan 2000 22:04:47 +0000 (22:04 +0000)]
*** empty log message ***

24 years agoChange format of warning message to look more like that
Jim Meyering [Fri, 28 Jan 2000 22:04:41 +0000 (22:04 +0000)]
Change format of warning message to look more like that
from the missing script.  Suggestion from François Pinard.

24 years ago*** empty log message ***
Jim Meyering [Fri, 28 Jan 2000 08:32:14 +0000 (08:32 +0000)]
*** empty log message ***

24 years ago(wrapf): Emit a newline only if 0 < current_col.
Jim Meyering [Fri, 28 Jan 2000 08:32:01 +0000 (08:32 +0000)]
(wrapf): Emit a newline only if 0 < current_col.
(screen_columns): Use xstrtol, not atoi.
If get_win_size fails and $COLUMNS == 0, then return 80, not `0'.

24 years ago(detect_loop): Update incomplete comment.
Jim Meyering [Wed, 26 Jan 2000 21:47:06 +0000 (21:47 +0000)]
(detect_loop): Update incomplete comment.
From Mark Kettenis.

24 years ago*** empty log message ***
Jim Meyering [Tue, 25 Jan 2000 12:07:14 +0000 (12:07 +0000)]
*** empty log message ***

24 years agoChange expected output for cycle-1 and cycle-2 tests.
Jim Meyering [Tue, 25 Jan 2000 12:07:02 +0000 (12:07 +0000)]
Change expected output for cycle-1 and cycle-2 tests.

24 years agotsort now works more like the traditional UNIX tsort. Before it would
Jim Meyering [Tue, 25 Jan 2000 12:03:15 +0000 (12:03 +0000)]
tsort now works more like the traditional UNIX tsort.  Before it would
exit when it found a loop.  Now it continues and outputs all items.

(exit_status): New variable.
(loop): New varibale.
(count_items, scan_zeroes): Change return type to int.
(detect_loop): Complete rewrite to correctly implement detection
of loops.  Also change return type to int.
(recurse_tree): Stop if ACTION returns non-zero.  This involves
changing the return type of this function and ACTION to int.
(walk_tree): Change return type of ACTION to int.
(tsort): Continue sort after a loop has been detected (and
broken).  Set exit_status to 1 if a loop was detected.
(main): Use exit_status to determine exit code.

24 years ago*** empty log message ***
Jim Meyering [Tue, 25 Jan 2000 12:02:16 +0000 (12:02 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Tue, 25 Jan 2000 07:26:20 +0000 (07:26 +0000)]
*** empty log message ***

24 years agoRequire AC_HEADER_TIME, and include sys/time.h as well
Jim Meyering [Tue, 25 Jan 2000 07:26:14 +0000 (07:26 +0000)]
Require AC_HEADER_TIME, and include sys/time.h as well
as time.h in the compile check.

24 years agobump serial
Jim Meyering [Tue, 25 Jan 2000 07:25:49 +0000 (07:25 +0000)]
bump serial

24 years agoFix typo in cross-compiling case: s/yes/no/.
Jim Meyering [Tue, 25 Jan 2000 07:25:38 +0000 (07:25 +0000)]
Fix typo in cross-compiling case: s/yes/no/.

24 years agoRequire AC_HEADER_TIME rather than simply using it.
Jim Meyering [Tue, 25 Jan 2000 07:21:57 +0000 (07:21 +0000)]
Require AC_HEADER_TIME rather than simply using it.

24 years ago.
Jim Meyering [Tue, 25 Jan 2000 07:20:58 +0000 (07:20 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Mon, 24 Jan 2000 13:58:45 +0000 (13:58 +0000)]
*** empty log message ***

24 years ago(usage): Describe behavior when LINK_NAME is omitted.
Jim Meyering [Mon, 24 Jan 2000 13:58:38 +0000 (13:58 +0000)]
(usage): Describe behavior when LINK_NAME is omitted.
From Michael Stone.

24 years ago(main): Don't expect array index `n_files - 1' to evaluate
Jim Meyering [Mon, 24 Jan 2000 13:48:12 +0000 (13:48 +0000)]
(main): Don't expect array index `n_files - 1' to evaluate
to `-1' for unsigned int n_files == 0.  Doing so lead to a segfault on
alpha.  From Michael Stone.

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 16:25:35 +0000 (16:25 +0000)]
*** empty log message ***

24 years agoMove df-related tests here from fileutils/configure.in
Jim Meyering [Sun, 23 Jan 2000 16:23:50 +0000 (16:23 +0000)]
Move df-related tests here from fileutils/configure.in

24 years ago.
Jim Meyering [Sun, 23 Jan 2000 16:20:48 +0000 (16:20 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 16:20:34 +0000 (16:20 +0000)]
*** empty log message ***

24 years agos/list_mounted_fs/ac_list_mounted_fs/
Jim Meyering [Sun, 23 Jan 2000 16:20:21 +0000 (16:20 +0000)]
s/list_mounted_fs/ac_list_mounted_fs/
(jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.

24 years ago(jm_FILE_SYSTEM_USAGE): Take two parameters.
Jim Meyering [Sun, 23 Jan 2000 14:49:09 +0000 (14:49 +0000)]
(jm_FILE_SYSTEM_USAGE): Take two parameters.

24 years agos/space/ac_fsusage_space/.
Jim Meyering [Sun, 23 Jan 2000 14:12:45 +0000 (14:12 +0000)]
s/space/ac_fsusage_space/.

24 years agoExtracted from fileutils/configure.in.
Jim Meyering [Sun, 23 Jan 2000 14:08:35 +0000 (14:08 +0000)]
Extracted from fileutils/configure.in.

24 years ago.
Jim Meyering [Sun, 23 Jan 2000 14:01:32 +0000 (14:01 +0000)]
.

24 years ago(jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
Jim Meyering [Sun, 23 Jan 2000 10:55:10 +0000 (10:55 +0000)]
(jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 10:55:00 +0000 (10:55 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 10:35:49 +0000 (10:35 +0000)]
*** empty log message ***

24 years ago(jm_FUNC_FTRUNCATE): AC_REQUIRE it.
Jim Meyering [Sun, 23 Jan 2000 10:34:42 +0000 (10:34 +0000)]
(jm_FUNC_FTRUNCATE): AC_REQUIRE it.

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 10:34:04 +0000 (10:34 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 10:23:26 +0000 (10:23 +0000)]
*** empty log message ***

24 years ago(AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
Jim Meyering [Sun, 23 Jan 2000 10:23:23 +0000 (10:23 +0000)]
(AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 10:19:30 +0000 (10:19 +0000)]
*** empty log message ***

24 years ago(AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
Jim Meyering [Sun, 23 Jan 2000 10:19:26 +0000 (10:19 +0000)]
(AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
(AC_SUBST(POW_LIBM)): Likewise.

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 10:18:15 +0000 (10:18 +0000)]
*** empty log message ***

24 years ago(AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
Jim Meyering [Sun, 23 Jan 2000 10:13:25 +0000 (10:13 +0000)]
(AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 10:09:22 +0000 (10:09 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 09:53:53 +0000 (09:53 +0000)]
*** empty log message ***

24 years ago(libfetish_a_SOURCES): Remove explicit mention of obstack.c.
Jim Meyering [Sun, 23 Jan 2000 09:53:48 +0000 (09:53 +0000)]
(libfetish_a_SOURCES): Remove explicit mention of obstack.c.

24 years ago(AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
Jim Meyering [Sun, 23 Jan 2000 09:52:35 +0000 (09:52 +0000)]
(AM_FUNC_OBSTACK): Add (from fileutils/configure.in).

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 09:52:02 +0000 (09:52 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 23 Jan 2000 09:31:09 +0000 (09:31 +0000)]
*** empty log message ***

24 years ago(OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
Jim Meyering [Sun, 23 Jan 2000 09:31:06 +0000 (09:31 +0000)]
(OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
AC_SUBST these here, rather than just in sh-util/configure.in, so
that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
all the same.

24 years agoversion-control: never
Jim Meyering [Sun, 23 Jan 2000 09:19:33 +0000 (09:19 +0000)]
version-control: never

24 years ago.
Jim Meyering [Sun, 23 Jan 2000 09:08:39 +0000 (09:08 +0000)]
.

24 years ago.
Jim Meyering [Sat, 22 Jan 2000 22:55:11 +0000 (22:55 +0000)]
.

24 years ago(keycompare): Use global, hard_LC_COLLATE in place of
Jim Meyering [Sat, 22 Jan 2000 22:54:51 +0000 (22:54 +0000)]
(keycompare): Use global, hard_LC_COLLATE in place of
local that is sometimes undeclared.

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 22:43:37 +0000 (22:43 +0000)]
*** empty log message ***

24 years ago[! HAVE_DECL_STRTOUL]: Declare strtoul.
Jim Meyering [Sat, 22 Jan 2000 22:43:31 +0000 (22:43 +0000)]
[! HAVE_DECL_STRTOUL]: Declare strtoul.
[! HAVE_DECL_STRTOULL]: Declare strtoull.
Required for some AIX systems.  Reported by Christian Krackowizer.
[TESTING] (main): New function.

24 years ago[! HAVE_DECL_STRTOUL]: Declare strtoul.
Jim Meyering [Sat, 22 Jan 2000 22:41:02 +0000 (22:41 +0000)]
[! HAVE_DECL_STRTOUL]: Declare strtoul.
[! HAVE_DECL_STRTOULL]: Declare strtoull.
Required for some AIX systems.  Reported by Christian Krackowizer.

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 22:26:17 +0000 (22:26 +0000)]
*** empty log message ***

24 years agoCall AC_PROG_CC_STDC just before AC_C_CONST.
Jim Meyering [Sat, 22 Jan 2000 22:25:25 +0000 (22:25 +0000)]
Call AC_PROG_CC_STDC just before AC_C_CONST.

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 22:21:32 +0000 (22:21 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 22:20:08 +0000 (22:20 +0000)]
*** empty log message ***

24 years ago[HAVE_WCTYPE_H]: Include <wctype.h>.
Jim Meyering [Sat, 22 Jan 2000 22:19:48 +0000 (22:19 +0000)]
[HAVE_WCTYPE_H]: Include <wctype.h>.

24 years ago(jm_PREREQ_QUOTEARG): Add wctype.h.
Jim Meyering [Sat, 22 Jan 2000 22:19:12 +0000 (22:19 +0000)]
(jm_PREREQ_QUOTEARG): Add wctype.h.

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 22:08:50 +0000 (22:08 +0000)]
*** empty log message ***

24 years agoMerge the three lists of headers.
Jim Meyering [Sat, 22 Jan 2000 22:08:08 +0000 (22:08 +0000)]
Merge the three lists of headers.

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 22:05:13 +0000 (22:05 +0000)]
*** empty log message ***

24 years ago(AC_CHECK_HEADERS): Add checks from textutils' configure.in
Jim Meyering [Sat, 22 Jan 2000 22:04:33 +0000 (22:04 +0000)]
(AC_CHECK_HEADERS): Add checks from textutils' configure.in

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 22:03:12 +0000 (22:03 +0000)]
*** empty log message ***

24 years ago(AC_CHECK_HEADERS): Add checks from sh-utils' configure.in
Jim Meyering [Sat, 22 Jan 2000 22:03:01 +0000 (22:03 +0000)]
(AC_CHECK_HEADERS): Add checks from sh-utils' configure.in

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 22:00:31 +0000 (22:00 +0000)]
*** empty log message ***

24 years ago(AC_CHECK_HEADERS): Add checks from fileutils' configure.in
Jim Meyering [Sat, 22 Jan 2000 22:00:17 +0000 (22:00 +0000)]
(AC_CHECK_HEADERS): Add checks from fileutils' configure.in

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 21:52:02 +0000 (21:52 +0000)]
*** empty log message ***

24 years ago(jm_PREREQ_ADDEXT): New macro. Parts moved here from fileutils' configure.in.
Jim Meyering [Sat, 22 Jan 2000 21:51:57 +0000 (21:51 +0000)]
(jm_PREREQ_ADDEXT): New macro.  Parts moved here from fileutils' configure.in.

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 21:29:10 +0000 (21:29 +0000)]
*** empty log message ***

24 years ago(dir_name): Support for DOS-style file names with drive letters.
Jim Meyering [Sat, 22 Jan 2000 21:29:02 +0000 (21:29 +0000)]
(dir_name): Support for DOS-style file names with drive letters.

24 years agotack on the one from fileutils/lib
Jim Meyering [Sat, 22 Jan 2000 18:03:21 +0000 (18:03 +0000)]
tack on the one from fileutils/lib

24 years ago.
Jim Meyering [Sat, 22 Jan 2000 14:27:13 +0000 (14:27 +0000)]
.

24 years agoRemove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)' code.
Jim Meyering [Sat, 22 Jan 2000 14:24:50 +0000 (14:24 +0000)]
Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)' code.
Moved tests into their own function (_jm_DECL_HEADERS) in check-decl.m4.

24 years ago(_jm_DECL_HEADERS): Define new function.
Jim Meyering [Sat, 22 Jan 2000 14:22:42 +0000 (14:22 +0000)]
(_jm_DECL_HEADERS): Define new function.
(jm_CHECK_DECLARATIONS): Require it.

24 years agoRevert to using #if HAVE_STDLIB_H
Jim Meyering [Sat, 22 Jan 2000 14:07:23 +0000 (14:07 +0000)]
Revert to using #if HAVE_STDLIB_H
to guard inclusion of <stdlib.h>.

24 years agoGuard inclusion of <stdlib.h> with `#if STDC_HEADERS',
Jim Meyering [Sat, 22 Jan 2000 13:53:10 +0000 (13:53 +0000)]
Guard inclusion of <stdlib.h> with `#if STDC_HEADERS',
not `#if HAVE_STDLIB_H'.  The former wasn't defined.
Use #if rather than #ifdef.

Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
(jm_CHECK_DECLARATIONS): Add strtoul strtoull.

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 13:15:39 +0000 (13:15 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 13:14:17 +0000 (13:14 +0000)]
*** empty log message ***

24 years ago(seq --format): Mention that integer formats are accepted, too.
Jim Meyering [Sat, 22 Jan 2000 13:13:45 +0000 (13:13 +0000)]
(seq --format): Mention that integer formats are accepted, too.

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 13:07:25 +0000 (13:07 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 13:06:59 +0000 (13:06 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 12:37:01 +0000 (12:37 +0000)]
*** empty log message ***

24 years agoTopologically sort the functions and remove fwd declarations.
Jim Meyering [Sat, 22 Jan 2000 12:36:35 +0000 (12:36 +0000)]
Topologically sort the functions and remove fwd declarations.

24 years ago(enum Format_type): Declare.
Jim Meyering [Sat, 22 Jan 2000 11:14:22 +0000 (11:14 +0000)]
(enum Format_type): Declare.
(format_type): New global to take place of intconv.
(DO_printf): New macro.
(main): Use it.

24 years agoAdd new tests for the new functionality.
Jim Meyering [Sat, 22 Jan 2000 11:10:40 +0000 (11:10 +0000)]
Add new tests for the new functionality.

24 years agoAdd support for octal and hexadecimal output.
Jim Meyering [Sat, 22 Jan 2000 10:09:29 +0000 (10:09 +0000)]
Add support for octal and hexadecimal output.
(intconv): New variable.
(usage): Update.
(main): Call scan_arg instead of scan_double_arg. Call check_format
before scan_arg.
(scan_int_arg, scan_arg): New functions.
(check_format): Add intconv argument. Accept %d, %u, %o, %x, %X.
(print_numbers): If intconv is true, pass an int argument to printf.

24 years ago.
Jim Meyering [Sat, 22 Jan 2000 09:44:23 +0000 (09:44 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sat, 22 Jan 2000 09:43:37 +0000 (09:43 +0000)]
*** empty log message ***

24 years ago(ISDIGIT): Define.
Jim Meyering [Sat, 22 Jan 2000 09:43:23 +0000 (09:43 +0000)]
(ISDIGIT): Define.
(strverscmp): Use ISDIGIT, not isdigit.

24 years ago.
Jim Meyering [Sat, 22 Jan 2000 09:42:33 +0000 (09:42 +0000)]
.

24 years ago(o-rep-1, o-rep-2): New tests.
Jim Meyering [Sat, 22 Jan 2000 09:42:14 +0000 (09:42 +0000)]
(o-rep-1, o-rep-2): New tests.

24 years ago("xstrtol.h"): Include.
Jim Meyering [Sat, 22 Jan 2000 09:31:19 +0000 (09:31 +0000)]
("xstrtol.h"): Include.
(Filter): Rename from PFL.
(non_neg_strtol): Remove function.
(find_bracketed_repeat): Use xstrtoul instead of non_neg_strtol.
(squeeze_filter, set_initialize, main): Use size_t and ssize_t in
place of long and int in several decls.
(read_and_delete, read_and_xlate): Likewise, and remove assertion.

24 years ago*** empty log message ***
Jim Meyering [Fri, 21 Jan 2000 15:08:14 +0000 (15:08 +0000)]
*** empty log message ***

24 years agoCorrect copying notice to use GPL, per author's request.
Jim Meyering [Fri, 21 Jan 2000 15:08:08 +0000 (15:08 +0000)]
Correct copying notice to use GPL, per author's request.
(AUTHORS): Add djm.

24 years agoCorrect copying notice to use GPL, per author's request.
Jim Meyering [Fri, 21 Jan 2000 15:07:53 +0000 (15:07 +0000)]
Correct copying notice to use GPL, per author's request.

24 years ago*** empty log message ***
Jim Meyering [Fri, 21 Jan 2000 14:39:07 +0000 (14:39 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Fri, 21 Jan 2000 07:33:33 +0000 (07:33 +0000)]
*** empty log message ***

24 years ago(PFI): Return `long', not `int'.
Jim Meyering [Fri, 21 Jan 2000 07:33:25 +0000 (07:33 +0000)]
(PFI): Return `long', not `int'.
(PFL): Rename from PFI now that it returns long.
(squeeze_filter): Declare as `long': i, nr, out_len.