summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
1999-07-31.Jim Meyering
1999-07-31(tail_forever): Don't call kill if pid is 0.Jim Meyering
Detect when `writer_is_dead' also when the writer is some other user. From Karl Heuer. (parse_options): Warn if --pid=PID is used without -f.
1999-07-30Include signal.h for kill prototype.Jim Meyering
1999-07-30New option: --pid=PID.Jim Meyering
(pid): New global. (long_options): Add `pid'. (usage): Describe it. (tail_forever): Implement it. (parse_options): Handle the new option and required arg. Suggestion and pseudo-code from Karl Heuer.
1999-07-30(PID_T_MAX): Define.Jim Meyering
1999-07-30(usage): Explain about default wrt --hide-control-chars andJim Meyering
--show-control-chars. Reported by Germano Leichsenring.
1999-07-27(dd_copy): Free the right obuf.Jim Meyering
1999-07-26more commentsJim Meyering
1999-07-26add commentJim Meyering
1999-07-26(struct File_spec) [n_stat_calls]: Remove unused member.Jim Meyering
1999-07-26(tee): Convert from open/fds to using fopen/streams forJim Meyering
output, in preparation for addition of new compression option.
1999-07-25(usage): Remove `NEWS'-style paragraph (sorry to have let that in, translators).Jim Meyering
1999-07-24add to commentJim Meyering
1999-07-24(PTR_ALIGN, ROUND_UP_OFFSET): New macros.Jim Meyering
(dd_copy): Use those to page-align both the input and output buffers.
1999-07-20(posixly_correct): Declare global.Jim Meyering
(write_counts): Use it to select printf formats. (main): Set posixly_correct from the POSIXLY_CORRECT envvar. From Peter Moulder.
1999-07-15Include getpagesize.h.Jim Meyering
(ROUND_UP_TO_MODULUS): Define. (dd_copy): Page-align the input buffer. Based on a patch from Scott Lurndal.
1999-07-12(mempcpy): Define only if not already defined.Jim Meyering
Reported by Collin Rogowski.
1999-07-11(recheck): Use assert instead of unnecessary close_fd.Jim Meyering
Remove a couple unnecessary FIXME comments.
1999-07-10(struct File_spec) [tailable]: Rename from `missing' andJim Meyering
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.
1999-07-10(struct File_spec): New member, errnum.Jim Meyering
(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.
1999-07-04reinclude memcoll.h (mistakenly removed by me)Jim Meyering
1999-07-04Add support for LC_COLLATE locale.Jim Meyering
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.
1999-07-04Include hard-locale.h, memcoll.h.Jim Meyering
(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.
1999-07-04Include hard-locale.h, memcoll.h.Jim Meyering
(hard_LC_COLLATE): New variable. (compare_files): Use memcoll to compare if hard_LC_COLLATE. (main): Initialize hard_LC_COLLATE from locale.
1999-07-04(proc_text, check_section, main):Jim Meyering
Use size_t, not int, for lengths. Lines now contain trailing newline. Adapt for readline changes.
1999-07-04(find_field, different): Use size_t, not int, for lengths.Jim Meyering
(writeline): Lines now contain trailing newline. (check_file): Use size_t, not int, for lengths.
1999-07-04(writeline): Lines now contain trailing newline.Jim Meyering
1999-07-04(memrchr): Ifdef out this unused function.Jim Meyering
1999-07-04(xfields): Only <blank>s separate fields, not <space>s.Jim Meyering
1999-07-04(print_header): Conform to POSIX if posix_format).Jim Meyering
(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.
1999-05-23(copy_internal): Don't apply the umask in move_mode.Jim Meyering
Otherwise, `mv' would not preserve the permissions when copying between partitions. Reported by David Godfrey
1999-05-23Remove today's earlier misguided attempts.Jim Meyering
Add a single condition to the existing sameness test.
1999-05-23Include same.h.Jim Meyering
(copy_internal): Qualify SAME_INODE test with (link-count == 1 || same_name(...)).
1999-05-23(same_name): Remove function.Jim Meyering
<same.h>: Include this instead. <dirname.h>: No longer include this.
1999-05-23white-space tweakJim Meyering
1999-05-23white-space tweakJim Meyering
1999-05-23(copy_internal): Make it so `mv -f FILE FILE' does not remove FILE.Jim Meyering
Based on a patch from Chris Yeo.
1999-05-22(general_numcompare): Put exceptional casesJim Meyering
first, not last, to be consistent with -M.
1999-05-22(strtod): Declare if STDC_HEADERS is not defined.Jim Meyering
(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.
1999-05-21Treat the trailing newline as part of the line, as required by POSIX.2.Jim Meyering
(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.
1999-05-20(keycompare): Ignore any length difference if theJim Meyering
localized comparison says the strings are equal.
1999-05-20(memcoll, keycompare, compare): Handle NULJim Meyering
characters properly when comparing with LC_COLLATE semantics. (NLS_MEMCMP): Remove. (memcoll): Renamed from strncoll. Take separate lengths for each string. This function is now invoked only when need_locale. (keycompare): Don't copy strings when ignore and translate are both NULL.
1999-05-20(MONTHTAB_CONST): Renamed from NLS_CONST; the useJim Meyering
is also changed. Define to const also if !HAVE_NL_LANGINFO. (usage): `,' -> `;' (English typo).
1999-05-18(main): When stdout is in binary mode, make sure allJim Meyering
input files are also read in binary mode.
1999-05-16Don't autodetect the locale of numbers andJim Meyering
months, as this conflicts with POSIX.2 and is tricky to boot. (FLOATING_COMMA, NLS_STRNCMP, NLS_MAX_GROUPS, NLS_ONE_CHARACTER_STRING): Remove macros no longer used. (nls_grouping, nls_fraction_found, nls_month_found, nos_monthtab, nls_months_collide, nls_keyhead, us_monthtab): Remove variables no longer used. (struct nls_keyfield): Remove types no longer used. (strncoll_s2_readonly, nls_set_fraction, look_for_fraction, nls_month_is_either_locale, nls_numeric_format): Remove functions no longer used. (monthtab): Now has the role that us_monthtab had, but it's const only if ENABLE_NLS is not defined. (C_DECIMAL_POINT): Renamed from FLOATING_POINT. All uses changed. (MONTHS_PER_YEAR): Renamed from NLS_NUM_MONTHS. All uses changed. (struct_month_cmp): Renamed from nls_sort_month_comp. All uses changed. Use strcmp, not strcoll, since the user doesn't care about collating here. (inittables): Read locale data into monthtab, rather than modifying a separate month table and futzing with indirection. Do not worry about colliding months, since we no longer autodetect month locale. (fraccompare): Don't set no-longer-used variable nls_fraction_found. (getmonth): Use strncmp to compare months, since user doesn't care about collating here. Fix bug where code incorrectly assumed that strlen (monthtab[lo].name) == strlen (monthtab[ix].name). (keycompare, main): Don't autodetect month locale. (compare): Don't use NLS_MEMCP in code that can't be executed if need_locale is false, as NLS_MEMCP is equivalent to memcmp in that case. (sort, insertkey, main): Don't autodetect numeric locale.
1999-05-15(usage): Whoops.Jim Meyering
1999-05-15(xfields): Don't interpret a trailing blank as aJim Meyering
delimiter when e.g. -t: was specified. From Tim Smithers.
1999-05-15(open_maybe_create): Handle Solaris' failure mode whenJim Meyering
FILE is a directory. Reported by Vin Shelton.
1999-05-15(main): When asking for info on an explicit file name,Jim Meyering
just warn rather than failing if the table of mounted filesystems cannot be read.
1999-05-13(pop_dir): Cast length to `int' to avoid a warning onJim Meyering
64-bit systems. From Ulrich Drepper.