platform/upstream/coreutils.git
25 years agoInclude getpagesize.h.
Jim Meyering [Thu, 15 Jul 1999 12:06:18 +0000 (12:06 +0000)]
Include getpagesize.h.
(ROUND_UP_TO_MODULUS): Define.
(dd_copy): Page-align the input buffer.
Based on a patch from Scott Lurndal.

25 years ago.
Jim Meyering [Thu, 15 Jul 1999 09:31:44 +0000 (09:31 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Thu, 15 Jul 1999 09:31:34 +0000 (09:31 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Thu, 15 Jul 1999 09:28:43 +0000 (09:28 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Thu, 15 Jul 1999 09:11:24 +0000 (09:11 +0000)]
*** empty log message ***

25 years ago(AC_CHECK_FUNCS): Check for getpagesize.
Jim Meyering [Thu, 15 Jul 1999 09:11:13 +0000 (09:11 +0000)]
(AC_CHECK_FUNCS): Check for getpagesize.

25 years ago(get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]:
Jim Meyering [Thu, 15 Jul 1999 07:50:06 +0000 (07:50 +0000)]
(get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]:
Work around SunOS botch also when block size is different from 1k.

25 years ago*** empty log message ***
Jim Meyering [Thu, 15 Jul 1999 07:49:28 +0000 (07:49 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Mon, 12 Jul 1999 20:07:37 +0000 (20:07 +0000)]
*** empty log message ***

25 years ago(mempcpy): Define only if not already defined.
Jim Meyering [Mon, 12 Jul 1999 08:37:31 +0000 (08:37 +0000)]
(mempcpy): Define only if not already defined.
Reported by Collin Rogowski.

25 years ago*** empty log message ***
Jim Meyering [Mon, 12 Jul 1999 08:37:21 +0000 (08:37 +0000)]
*** empty log message ***

25 years ago(recheck): Use assert instead of unnecessary close_fd.
Jim Meyering [Sun, 11 Jul 1999 09:05:31 +0000 (09:05 +0000)]
(recheck): Use assert instead of unnecessary close_fd.
Remove a couple unnecessary FIXME comments.

25 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 16:40:33 +0000 (16:40 +0000)]
*** empty log message ***

25 years agocpp indent and split a long line
Jim Meyering [Sat, 10 Jul 1999 16:40:16 +0000 (16:40 +0000)]
cpp indent and split a long line

25 years agouse a space, not TAB after #define
Jim Meyering [Sat, 10 Jul 1999 16:36:56 +0000 (16:36 +0000)]
use a space, not TAB after #define

25 years agocpp indent
Jim Meyering [Sat, 10 Jul 1999 16:36:11 +0000 (16:36 +0000)]
cpp indent

25 years ago(struct File_spec) [tailable]: Rename from `missing' and
Jim Meyering [Sat, 10 Jul 1999 12:24:10 +0000 (12:24 +0000)]
(struct File_spec) [tailable]: Rename from `missing' and
document.  Change all uses and locals like was_missing to was_tailable.
Invert expressions as appropriate.
(reopen_inaccessible_files): Rename from allow_missing.
(sleep_interval): Describe.
(--allow-missing): Deprecate.
(--retry): New option, equivalent to --allow-missing.
(usage): Document name vs. descriptor differences.
Refer to manual for descriptions of --max-unchanged-stats=N
and --max-consecutive-size-changes=N.
(valid_file_spec): New function.
(recheck): Assert valid_file_spec.
Remove dead else-if block (suggestion from Eli Zaretskii).
Adjust stmts that set f->tailable -- unlike for `missing', tailable
doesn't depend on errno == ENOENT.
(parse_options): Give a warning if --retry is used when not following
by name.

25 years ago(struct File_spec): New member, errnum.
Jim Meyering [Sat, 10 Jul 1999 09:56:37 +0000 (09:56 +0000)]
(struct File_spec): New member, errnum.
(recheck): Record the new value of errno in f->errnum.  Don't
output an error message unless the new value of errno differs from
the old one.  Output a message if previously-inaccessible file
becomes accessible.
(tail_forever): Always recheck files whose fd is negative.  If the
file cannot be fstat'ed, record the errno value in f[i].errnum.
(tail_file): If the file cannot be open, record the errno value in
f->errnum.  If it can be opened, initialize f->errnum to zero.  If
it's a non-regular non-fifo file, initialize f->errnum to -1.

25 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 08:44:58 +0000 (08:44 +0000)]
*** empty log message ***

25 years agoImport version 1.012.
Jim Meyering [Sat, 10 Jul 1999 08:44:49 +0000 (08:44 +0000)]
Import version 1.012.

25 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 07:37:39 +0000 (07:37 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 07:34:52 +0000 (07:34 +0000)]
*** empty log message ***

25 years agoImport version 1.011.
Jim Meyering [Sat, 10 Jul 1999 07:28:05 +0000 (07:28 +0000)]
Import version 1.011.

25 years ago.
Jim Meyering [Sat, 10 Jul 1999 07:17:02 +0000 (07:17 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Fri, 9 Jul 1999 12:51:18 +0000 (12:51 +0000)]
*** empty log message ***

25 years agoreinclude memcoll.h (mistakenly removed by me)
Jim Meyering [Sun, 4 Jul 1999 10:41:26 +0000 (10:41 +0000)]
reinclude memcoll.h (mistakenly removed by me)

25 years ago*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 10:40:15 +0000 (10:40 +0000)]
*** empty log message ***

25 years ago[!defined strtoumax]: Declare strtoumax.
Jim Meyering [Sun, 4 Jul 1999 10:40:04 +0000 (10:40 +0000)]
[!defined strtoumax]: Declare strtoumax.

25 years ago.
Jim Meyering [Sun, 4 Jul 1999 10:38:37 +0000 (10:38 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 10:33:50 +0000 (10:33 +0000)]
*** empty log message ***

25 years ago(readline): Leave room for an extra byte
Jim Meyering [Sun, 4 Jul 1999 10:31:01 +0000 (10:31 +0000)]
(readline): Leave room for an extra byte
after the newline; comm needs this for memcoll.

25 years agoAdd support for LC_COLLATE locale.
Jim Meyering [Sun, 4 Jul 1999 10:28:08 +0000 (10:28 +0000)]
Add support for LC_COLLATE locale.
Include hard-locale.h, linebuffer.h, memcoll.h.
(struct line): New member `buf', replacing `beg' and `lim'.
All uses changed.
(hard_LC_COLLATE): New var.
(main): Initialize it.
(get_line): Use readline to read the line,
instead of doing it by hand.
That way, we get a buffer that we can pass to memcoll.
(keycmp): Use memcoll to compare lines if hard_LC_COLLATE is nonzero.

25 years agoInclude hard-locale.h, memcoll.h.
Jim Meyering [Sun, 4 Jul 1999 10:23:19 +0000 (10:23 +0000)]
Include hard-locale.h, memcoll.h.
(hard_LC_COLLATE, hard_LC_CTYPE, hard_LC_TIME): New variables,
replacing `need_locale'.
(memcoll): Move to lib/memcoll.c.
(keycompare): No need to alloc (0), since our caller now does it.
(compare): alloca (0) before returning.
(my_setlocale): Remove; hard_locale now dows this.
(main): Invoke setlocale, bindtextdomain, and textdomain before
invoking anything that might print an error.
Use hard_locale to determine which locales are hard.

25 years agoInclude hard-locale.h, memcoll.h.
Jim Meyering [Sun, 4 Jul 1999 10:22:25 +0000 (10:22 +0000)]
Include hard-locale.h, memcoll.h.
(hard_LC_COLLATE): New variable.
(compare_files): Use memcoll to compare if hard_LC_COLLATE.
(main): Initialize hard_LC_COLLATE from locale.

25 years agoDocument locale-specific mode for comm.
Jim Meyering [Sun, 4 Jul 1999 10:21:39 +0000 (10:21 +0000)]
Document locale-specific mode for comm.

25 years ago*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 10:16:28 +0000 (10:16 +0000)]
*** empty log message ***

25 years ago(proc_text, check_section, main):
Jim Meyering [Sun, 4 Jul 1999 10:15:45 +0000 (10:15 +0000)]
(proc_text, check_section, main):
Use size_t, not int, for lengths.
Lines now contain trailing newline.
Adapt for readline changes.

25 years ago(find_field, different): Use size_t, not int, for lengths.
Jim Meyering [Sun, 4 Jul 1999 10:14:03 +0000 (10:14 +0000)]
(find_field, different): Use size_t, not int, for lengths.
(writeline): Lines now contain trailing newline.
(check_file): Use size_t, not int, for lengths.

25 years ago(writeline): Lines now contain trailing newline.
Jim Meyering [Sun, 4 Jul 1999 10:09:44 +0000 (10:09 +0000)]
(writeline): Lines now contain trailing newline.

25 years ago[struct linebuffer] (size): Declare to be of type size_t, not long.
Jim Meyering [Sun, 4 Jul 1999 10:08:56 +0000 (10:08 +0000)]
[struct linebuffer] (size): Declare to be of type size_t, not long.
[struct linebuffer] (length): Likewise.

25 years ago(readline): Append trailing newline to line.
Jim Meyering [Sun, 4 Jul 1999 10:06:42 +0000 (10:06 +0000)]
(readline): Append trailing newline to line.

25 years ago(memrchr): Ifdef out this unused function.
Jim Meyering [Sun, 4 Jul 1999 10:03:05 +0000 (10:03 +0000)]
(memrchr): Ifdef out this unused function.

25 years ago*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 09:51:09 +0000 (09:51 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 09:46:14 +0000 (09:46 +0000)]
*** empty log message ***

25 years agoNew test case for Paul's 1999-06-03 fix.
Jim Meyering [Sun, 4 Jul 1999 09:46:07 +0000 (09:46 +0000)]
New test case for Paul's 1999-06-03 fix.

25 years ago(xfields): Only <blank>s separate fields, not <space>s.
Jim Meyering [Sun, 4 Jul 1999 09:40:46 +0000 (09:40 +0000)]
(xfields): Only <blank>s separate fields, not <space>s.

25 years ago.
Jim Meyering [Sun, 4 Jul 1999 09:37:57 +0000 (09:37 +0000)]
.

25 years agoUse lower case characters in sc{} context.
Jim Meyering [Sun, 4 Jul 1999 09:05:08 +0000 (09:05 +0000)]
Use lower case characters in sc{} context.
Reported by Eli Zaretskii.

25 years ago*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 08:48:02 +0000 (08:48 +0000)]
*** empty log message ***

25 years ago(enum human_inexact_style): New enum.
Jim Meyering [Sun, 4 Jul 1999 08:47:49 +0000 (08:47 +0000)]
(enum human_inexact_style): New enum.
(human_readable_inexact): New decl.

25 years ago(human_readable): New function.
Jim Meyering [Sun, 4 Jul 1999 08:47:28 +0000 (08:47 +0000)]
(human_readable): New function.
(human_readable_inexact): Renamed from human_readable, with new arg
INEXACT_STYLE.  Add support for ceiling and floor.

25 years ago(print_header): Conform to POSIX if posix_format).
Jim Meyering [Sun, 4 Jul 1999 08:47:08 +0000 (08:47 +0000)]
(print_header): Conform to POSIX if posix_format).
(df_readable): Take ceiling if posix_format.
(ceil_percent): New function.
(show_dev): Take ceiling of percent if posix_format.
Align with POSIX-conforming header if posix_format.

25 years ago*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 08:35:05 +0000 (08:35 +0000)]
*** empty log message ***

25 years ago(__strtol): Remove decl; it doesn't work if __strtol
Jim Meyering [Sun, 4 Jul 1999 08:34:31 +0000 (08:34 +0000)]
(__strtol): Remove decl; it doesn't work if __strtol
expands to a macro, which occurs in HP-UX 10.20 with strtoumax.
(strtol, strtoul): New decls (for pre-ANSI hosts), to replace
the above decl.

25 years ago.
Jim Meyering [Thu, 27 May 1999 13:08:29 +0000 (13:08 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Thu, 27 May 1999 13:08:19 +0000 (13:08 +0000)]
*** empty log message ***

25 years agoFix non-portable use of `tr' that caused this test
Jim Meyering [Tue, 25 May 1999 16:43:57 +0000 (16:43 +0000)]
Fix non-portable use of `tr' that caused this test
to fail when run with a SysV-style tr.  Based on a patch from Kaveh Ghazi.

25 years ago(Squeezing): Remove misleading square brackets
Jim Meyering [Tue, 25 May 1999 16:38:19 +0000 (16:38 +0000)]
(Squeezing): Remove misleading square brackets
from SET1 in the one-word-per-line example.

25 years ago(copy_internal): Don't apply the umask in move_mode.
Jim Meyering [Sun, 23 May 1999 23:23:55 +0000 (23:23 +0000)]
(copy_internal): Don't apply the umask in move_mode.
Otherwise, `mv' would not preserve the permissions when copying
between partitions.  Reported by David Godfrey

25 years ago*** empty log message ***
Jim Meyering [Sun, 23 May 1999 23:07:26 +0000 (23:07 +0000)]
*** empty log message ***

25 years ago. FILEUTILS-4_0i
Jim Meyering [Sun, 23 May 1999 21:06:36 +0000 (21:06 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sun, 23 May 1999 20:46:23 +0000 (20:46 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sun, 23 May 1999 20:45:34 +0000 (20:45 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Sun, 23 May 1999 20:44:48 +0000 (20:44 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sun, 23 May 1999 20:43:11 +0000 (20:43 +0000)]
*** empty log message ***

25 years agoCorrect erroneous expected output from the `cp -f foo foo' tests.
Jim Meyering [Sun, 23 May 1999 20:42:25 +0000 (20:42 +0000)]
Correct erroneous expected output from the `cp -f foo foo' tests.

25 years ago(libfu_a_SOURCES): Add same.c.
Jim Meyering [Sun, 23 May 1999 20:40:59 +0000 (20:40 +0000)]
(libfu_a_SOURCES): Add same.c.
(noinst_HEADERS): Add same.h.

25 years agoRemove today's earlier misguided attempts.
Jim Meyering [Sun, 23 May 1999 20:37:16 +0000 (20:37 +0000)]
Remove today's earlier misguided attempts.
Add a single condition to the existing sameness test.

25 years agoInclude same.h.
Jim Meyering [Sun, 23 May 1999 19:45:33 +0000 (19:45 +0000)]
Include same.h.
(copy_internal): Qualify SAME_INODE test with (link-count == 1
|| same_name(...)).

25 years ago*** empty log message ***
Jim Meyering [Sun, 23 May 1999 19:43:10 +0000 (19:43 +0000)]
*** empty log message ***

25 years agoNew file (function extracted from ln.c).
Jim Meyering [Sun, 23 May 1999 19:42:59 +0000 (19:42 +0000)]
New file (function extracted from ln.c).

25 years ago(same_name): Remove function.
Jim Meyering [Sun, 23 May 1999 19:41:19 +0000 (19:41 +0000)]
(same_name): Remove function.
<same.h>: Include this instead.
<dirname.h>: No longer include this.

25 years ago*** empty log message ***
Jim Meyering [Sun, 23 May 1999 19:38:53 +0000 (19:38 +0000)]
*** empty log message ***

25 years agowhite-space tweak SH-UTILS-1_16k
Jim Meyering [Sun, 23 May 1999 19:27:36 +0000 (19:27 +0000)]
white-space tweak

25 years agowhite-space tweak
Jim Meyering [Sun, 23 May 1999 19:27:07 +0000 (19:27 +0000)]
white-space tweak

25 years ago(copy_internal): Make it so `mv -f FILE FILE' does not remove FILE.
Jim Meyering [Sun, 23 May 1999 14:52:32 +0000 (14:52 +0000)]
(copy_internal): Make it so `mv -f FILE FILE' does not remove FILE.
Based on a patch from Chris Yeo.

25 years ago*** empty log message ***
Jim Meyering [Sun, 23 May 1999 14:49:14 +0000 (14:49 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sun, 23 May 1999 13:36:37 +0000 (13:36 +0000)]
*** empty log message ***

25 years ago(TESTS): Add force.
Jim Meyering [Sun, 23 May 1999 13:36:14 +0000 (13:36 +0000)]
(TESTS): Add force.
(TESTS_ENVIRONMENT): Change PATH to be absolute.

25 years ago*** empty log message ***
Jim Meyering [Sun, 23 May 1999 04:19:10 +0000 (04:19 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sun, 23 May 1999 04:01:55 +0000 (04:01 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sun, 23 May 1999 03:59:08 +0000 (03:59 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 22 May 1999 22:10:34 +0000 (22:10 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 22 May 1999 22:02:54 +0000 (22:02 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 22 May 1999 22:02:00 +0000 (22:02 +0000)]
*** empty log message ***

25 years ago(AC_REPLACE_FUNCS): Add memchr.
Jim Meyering [Sat, 22 May 1999 22:00:42 +0000 (22:00 +0000)]
(AC_REPLACE_FUNCS): Add memchr.

25 years ago*** empty log message *** TEXTUTILS-1_22m
Jim Meyering [Sat, 22 May 1999 16:56:40 +0000 (16:56 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 22 May 1999 12:53:07 +0000 (12:53 +0000)]
*** empty log message ***

25 years agoDocument locale-specific changes to `sort',
Jim Meyering [Sat, 22 May 1999 12:52:41 +0000 (12:52 +0000)]
Document locale-specific changes to `sort',
as well as the new, POSIX-compliant definition of line comparison,
and -g's more careful treatment of NaNs, infinities and zeros.

25 years ago(general_numcompare): Put exceptional cases
Jim Meyering [Sat, 22 May 1999 12:52:14 +0000 (12:52 +0000)]
(general_numcompare): Put exceptional cases
first, not last, to be consistent with -M.

25 years ago*** empty log message ***
Jim Meyering [Sat, 22 May 1999 04:30:36 +0000 (04:30 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Sat, 22 May 1999 04:29:30 +0000 (04:29 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Sat, 22 May 1999 04:24:10 +0000 (04:24 +0000)]
.

25 years ago.
Jim Meyering [Sat, 22 May 1999 02:53:08 +0000 (02:53 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Sat, 22 May 1999 02:48:22 +0000 (02:48 +0000)]
*** empty log message ***

25 years ago(strtod): Declare if STDC_HEADERS is not defined.
Jim Meyering [Sat, 22 May 1999 02:47:45 +0000 (02:47 +0000)]
(strtod): Declare if STDC_HEADERS is not defined.
(general_numcompare): Use strtod, not xstrtod.
Do not consider partial conversions to be errors.
Put -infinity at the start, and +infinity at the end;
follow +infinity with NaNs (sorted by bit pattern),
and finally by conversion errors.

25 years ago(use-nl): New test from Paul Eggert.
Jim Meyering [Sat, 22 May 1999 02:41:39 +0000 (02:41 +0000)]
(use-nl): New test from Paul Eggert.

25 years agotweak comment
Jim Meyering [Sat, 22 May 1999 02:37:47 +0000 (02:37 +0000)]
tweak comment

25 years ago(11d): Reverse lines in expected output to reflect latest change.
Jim Meyering [Sat, 22 May 1999 02:37:10 +0000 (02:37 +0000)]
(11d): Reverse lines in expected output to reflect latest change.

25 years agoremove trailing newline
Jim Meyering [Fri, 21 May 1999 20:47:18 +0000 (20:47 +0000)]
remove trailing newline