Jim Meyering [Mon, 12 Jul 1999 20:07:37 +0000 (20:07 +0000)]
*** empty log message ***
Jim Meyering [Mon, 12 Jul 1999 08:37:31 +0000 (08:37 +0000)]
(mempcpy): Define only if not already defined.
Reported by Collin Rogowski.
Jim Meyering [Mon, 12 Jul 1999 08:37:21 +0000 (08:37 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 10 Jul 1999 16:40:33 +0000 (16:40 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 16:40:16 +0000 (16:40 +0000)]
cpp indent and split a long line
Jim Meyering [Sat, 10 Jul 1999 16:36:56 +0000 (16:36 +0000)]
use a space, not TAB after #define
Jim Meyering [Sat, 10 Jul 1999 16:36:11 +0000 (16:36 +0000)]
cpp indent
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.
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.
Jim Meyering [Sat, 10 Jul 1999 08:44:58 +0000 (08:44 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 08:44:49 +0000 (08:44 +0000)]
Import version 1.012.
Jim Meyering [Sat, 10 Jul 1999 07:37:39 +0000 (07:37 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 07:34:52 +0000 (07:34 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Jul 1999 07:28:05 +0000 (07:28 +0000)]
Import version 1.011.
Jim Meyering [Sat, 10 Jul 1999 07:17:02 +0000 (07:17 +0000)]
.
Jim Meyering [Fri, 9 Jul 1999 12:51:18 +0000 (12:51 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 10:41:26 +0000 (10:41 +0000)]
reinclude memcoll.h (mistakenly removed by me)
Jim Meyering [Sun, 4 Jul 1999 10:40:15 +0000 (10:40 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 10:40:04 +0000 (10:40 +0000)]
[!defined strtoumax]: Declare strtoumax.
Jim Meyering [Sun, 4 Jul 1999 10:38:37 +0000 (10:38 +0000)]
.
Jim Meyering [Sun, 4 Jul 1999 10:33:50 +0000 (10:33 +0000)]
*** empty log message ***
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.
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.
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.
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.
Jim Meyering [Sun, 4 Jul 1999 10:21:39 +0000 (10:21 +0000)]
Document locale-specific mode for comm.
Jim Meyering [Sun, 4 Jul 1999 10:16:28 +0000 (10:16 +0000)]
*** empty log message ***
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.
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.
Jim Meyering [Sun, 4 Jul 1999 10:09:44 +0000 (10:09 +0000)]
(writeline): Lines now contain trailing newline.
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.
Jim Meyering [Sun, 4 Jul 1999 10:06:42 +0000 (10:06 +0000)]
(readline): Append trailing newline to line.
Jim Meyering [Sun, 4 Jul 1999 10:03:05 +0000 (10:03 +0000)]
(memrchr): Ifdef out this unused function.
Jim Meyering [Sun, 4 Jul 1999 09:51:09 +0000 (09:51 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 09:46:14 +0000 (09:46 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 09:46:07 +0000 (09:46 +0000)]
New test case for Paul's 1999-06-03 fix.
Jim Meyering [Sun, 4 Jul 1999 09:40:46 +0000 (09:40 +0000)]
(xfields): Only <blank>s separate fields, not <space>s.
Jim Meyering [Sun, 4 Jul 1999 09:37:57 +0000 (09:37 +0000)]
.
Jim Meyering [Sun, 4 Jul 1999 09:05:08 +0000 (09:05 +0000)]
Use lower case characters in sc{} context.
Reported by Eli Zaretskii.
Jim Meyering [Sun, 4 Jul 1999 08:48:02 +0000 (08:48 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Jul 1999 08:47:49 +0000 (08:47 +0000)]
(enum human_inexact_style): New enum.
(human_readable_inexact): New decl.
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.
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.
Jim Meyering [Sun, 4 Jul 1999 08:35:05 +0000 (08:35 +0000)]
*** empty log message ***
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.
Jim Meyering [Thu, 27 May 1999 13:08:29 +0000 (13:08 +0000)]
.
Jim Meyering [Thu, 27 May 1999 13:08:19 +0000 (13:08 +0000)]
*** empty log message ***
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.
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.
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
Jim Meyering [Sun, 23 May 1999 23:07:26 +0000 (23:07 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 May 1999 21:06:36 +0000 (21:06 +0000)]
.
Jim Meyering [Sun, 23 May 1999 20:46:23 +0000 (20:46 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 May 1999 20:45:34 +0000 (20:45 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 May 1999 20:44:48 +0000 (20:44 +0000)]
.
Jim Meyering [Sun, 23 May 1999 20:43:11 +0000 (20:43 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 May 1999 20:42:25 +0000 (20:42 +0000)]
Correct erroneous expected output from the `cp -f foo foo' tests.
Jim Meyering [Sun, 23 May 1999 20:40:59 +0000 (20:40 +0000)]
(libfu_a_SOURCES): Add same.c.
(noinst_HEADERS): Add same.h.
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.
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(...)).
Jim Meyering [Sun, 23 May 1999 19:43:10 +0000 (19:43 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 May 1999 19:42:59 +0000 (19:42 +0000)]
New file (function extracted from ln.c).
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.
Jim Meyering [Sun, 23 May 1999 19:38:53 +0000 (19:38 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 May 1999 19:27:36 +0000 (19:27 +0000)]
white-space tweak
Jim Meyering [Sun, 23 May 1999 19:27:07 +0000 (19:27 +0000)]
white-space tweak
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.
Jim Meyering [Sun, 23 May 1999 14:49:14 +0000 (14:49 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 May 1999 13:36:37 +0000 (13:36 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 May 1999 13:36:14 +0000 (13:36 +0000)]
(TESTS): Add force.
(TESTS_ENVIRONMENT): Change PATH to be absolute.
Jim Meyering [Sun, 23 May 1999 04:19:10 +0000 (04:19 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 May 1999 04:01:55 +0000 (04:01 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 May 1999 03:59:08 +0000 (03:59 +0000)]
*** empty log message ***
Jim Meyering [Sat, 22 May 1999 22:10:34 +0000 (22:10 +0000)]
*** empty log message ***
Jim Meyering [Sat, 22 May 1999 22:02:54 +0000 (22:02 +0000)]
*** empty log message ***
Jim Meyering [Sat, 22 May 1999 22:02:00 +0000 (22:02 +0000)]
*** empty log message ***
Jim Meyering [Sat, 22 May 1999 22:00:42 +0000 (22:00 +0000)]
(AC_REPLACE_FUNCS): Add memchr.
Jim Meyering [Sat, 22 May 1999 16:56:40 +0000 (16:56 +0000)]
*** empty log message ***
Jim Meyering [Sat, 22 May 1999 12:53:07 +0000 (12:53 +0000)]
*** empty log message ***
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.
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.
Jim Meyering [Sat, 22 May 1999 04:30:36 +0000 (04:30 +0000)]
*** empty log message ***
Jim Meyering [Sat, 22 May 1999 04:29:30 +0000 (04:29 +0000)]
*** empty log message ***
Jim Meyering [Sat, 22 May 1999 04:24:10 +0000 (04:24 +0000)]
.
Jim Meyering [Sat, 22 May 1999 02:53:08 +0000 (02:53 +0000)]
.
Jim Meyering [Sat, 22 May 1999 02:48:22 +0000 (02:48 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 22 May 1999 02:41:39 +0000 (02:41 +0000)]
(use-nl): New test from Paul Eggert.
Jim Meyering [Sat, 22 May 1999 02:37:47 +0000 (02:37 +0000)]
tweak comment
Jim Meyering [Sat, 22 May 1999 02:37:10 +0000 (02:37 +0000)]
(11d): Reverse lines in expected output to reflect latest change.
Jim Meyering [Fri, 21 May 1999 20:47:18 +0000 (20:47 +0000)]
remove trailing newline
Jim Meyering [Fri, 21 May 1999 20:24:39 +0000 (20:24 +0000)]
*** empty log message ***
Jim Meyering [Fri, 21 May 1999 20:24:19 +0000 (20:24 +0000)]
Treat the trailing newline as part of the line, as required by POSIX.2.
(struct line, findlines, compare, checkfp, mergefps, sort):
A line now includes its trailing newline.
(findlines): Do not replace newline with NUL.
(memcoll, keycompare): Work even if the data to be compared are
adjacent strings; this is possible now that lines contain the
trailing newline.
(fillbuf): Always have an unused byte at the end of the buffer,
since memcoll and keycompare want to modify a byte after the last line.
(sortalloc, mergealloc): Increase by 1, for trailing byte.
Jim Meyering [Fri, 21 May 1999 19:53:05 +0000 (19:53 +0000)]
*** empty log message ***
Jim Meyering [Thu, 20 May 1999 20:12:17 +0000 (20:12 +0000)]
.
Jim Meyering [Thu, 20 May 1999 20:12:12 +0000 (20:12 +0000)]
[AC_SEARCH_LIBS]: Quote name in undefine.
Add a colon after each `then' in case $4 is empty.
Jim Meyering [Thu, 20 May 1999 20:10:17 +0000 (20:10 +0000)]
.
Jim Meyering [Thu, 20 May 1999 16:51:40 +0000 (16:51 +0000)]
.
Jim Meyering [Thu, 20 May 1999 16:51:29 +0000 (16:51 +0000)]
*** empty log message ***