platform/upstream/coreutils.git
23 years agoDocument pr changes.
Jim Meyering [Sat, 17 Mar 2001 08:57:49 +0000 (08:57 +0000)]
Document pr changes.

23 years agoDocument pr changes.
Jim Meyering [Sat, 17 Mar 2001 08:54:37 +0000 (08:54 +0000)]
Document pr changes.

23 years ago*** empty log message ***
Jim Meyering [Sat, 17 Mar 2001 08:54:21 +0000 (08:54 +0000)]
*** empty log message ***

23 years ago(install-data-yes): Install LC_TIME locale
Jim Meyering [Sat, 17 Mar 2001 08:53:58 +0000 (08:53 +0000)]
(install-data-yes): Install LC_TIME locale
for all packages, not just for fileutils.
(uninstall): Remove LC_TIME locale too.

23 years ago(INT_STRLEN_BOUND): New macro.
Jim Meyering [Sat, 17 Mar 2001 08:50:51 +0000 (08:50 +0000)]
(INT_STRLEN_BOUND): New macro.

23 years agoAdjust to minor spacing changes in pr headers.
Jim Meyering [Sat, 17 Mar 2001 08:49:25 +0000 (08:49 +0000)]
Adjust to minor spacing changes in pr headers.

23 years agoInclude mbswidth.h.
Jim Meyering [Sat, 17 Mar 2001 08:48:23 +0000 (08:48 +0000)]
Include mbswidth.h.
(standard_header, header, test_suite): Remove.
(date_format, date_text, file_text, header_width_available): New vars.
(long_options, main, init_header, usage):
Add new -D or --date-format option.
(CHARS_FOR_DATE_AND_PAGE, T_BUF_FMT, T_BUF_SIZE, NO_DATE): Remove.
(init_header): Allow arbitrary width for date format.  Change
"Page %5d" to "Page %d", since the code no longer assumes fixed width.
Do not assume that localtime succeeds.
(init_header, print_header, usage): Do not truncate headers.
(init_header, print_header): Defer width calculations until
page is printed, since "Page 100000" is wider than "Page 1".
Count columns, not bytes, in page headers.
Custom headers take up only the center, not the whole header.
(print_header): Use printf rather than fprintf(stdout).

23 years ago*** empty log message ***
Jim Meyering [Fri, 16 Mar 2001 23:42:21 +0000 (23:42 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Fri, 16 Mar 2001 23:41:08 +0000 (23:41 +0000)]
*** empty log message ***

23 years agoRemove my copy of AC_FUNC_MEMCMP, now that
Jim Meyering [Fri, 16 Mar 2001 23:40:10 +0000 (23:40 +0000)]
Remove my copy of AC_FUNC_MEMCMP, now that
the version in autoconf has been updated.
(jm_FUNC_MEMCMP): Adjust.

23 years ago*** empty log message ***
Jim Meyering [Fri, 16 Mar 2001 17:01:17 +0000 (17:01 +0000)]
*** empty log message ***

23 years ago(jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
Jim Meyering [Fri, 16 Mar 2001 17:01:11 +0000 (17:01 +0000)]
(jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.

23 years ago(jm_PREREQ): Add jm_PREREQ_TEMPNAME.
Jim Meyering [Fri, 16 Mar 2001 16:38:52 +0000 (16:38 +0000)]
(jm_PREREQ): Add jm_PREREQ_TEMPNAME.
(jm_PREREQ_TEMPNAME): New function.

23 years ago*** empty log message ***
Jim Meyering [Fri, 16 Mar 2001 12:02:29 +0000 (12:02 +0000)]
*** empty log message ***

23 years ago(uint64_t): Define to uintmax_t if
Jim Meyering [Fri, 16 Mar 2001 12:02:22 +0000 (12:02 +0000)]
(uint64_t): Define to uintmax_t if
not defined, and if UINT64_MAX is not defined.
Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
Reported by John David Anglin.

23 years ago*** empty log message ***
Jim Meyering [Fri, 16 Mar 2001 08:40:42 +0000 (08:40 +0000)]
*** empty log message ***

23 years ago(wget-update): Also get `missing'.
Jim Meyering [Fri, 16 Mar 2001 08:40:38 +0000 (08:40 +0000)]
(wget-update): Also get `missing'.
Use for-loops.

23 years ago*** empty log message ***
Jim Meyering [Fri, 16 Mar 2001 08:37:07 +0000 (08:37 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Thu, 15 Mar 2001 14:50:26 +0000 (14:50 +0000)]
*** empty log message ***

23 years ago(BeOS): Use wildcard syntax.
Jim Meyering [Thu, 15 Mar 2001 14:50:16 +0000 (14:50 +0000)]
(BeOS): Use wildcard syntax.

23 years ago(locale_charset): Allow wildcard syntax. Also resolve
Jim Meyering [Thu, 15 Mar 2001 14:49:56 +0000 (14:49 +0000)]
(locale_charset): Allow wildcard syntax. Also resolve
alias if codeset is empty.

23 years ago*** empty log message ***
Jim Meyering [Tue, 13 Mar 2001 15:57:21 +0000 (15:57 +0000)]
*** empty log message ***

23 years ago(path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]:
Jim Meyering [Tue, 13 Mar 2001 15:57:15 +0000 (15:57 +0000)]
(path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]:
Don't insert a backslash when concatenating e.g., `C:' and `foo'.
From Bruno Haible.

23 years ago*** empty log message ***
Jim Meyering [Tue, 13 Mar 2001 09:05:26 +0000 (09:05 +0000)]
*** empty log message ***

23 years ago(die): New message arg, to describe failures
Jim Meyering [Tue, 13 Mar 2001 09:05:21 +0000 (09:05 +0000)]
(die): New message arg, to describe failures
better.  All callers changed.

23 years ago*** empty log message ***
Jim Meyering [Tue, 13 Mar 2001 09:02:37 +0000 (09:02 +0000)]
*** empty log message ***

23 years agoDecrease buffer size when only merging or checking.
Jim Meyering [Tue, 13 Mar 2001 09:02:27 +0000 (09:02 +0000)]
Decrease buffer size when only merging or checking.
(sort_size): Now the user-specified sort size.
(MIN_MERGE_BUFFER_SIZE): New macro.
(MIN_SORT_SIZE): Use it.
(merge_buffer_size): New variable.
(fillbuf): Increase merge_buffer_size if a longer line is encountered.
(checkfp, mergefps): Do not allocate a buffer smaller than
merge_buffer_size.
(sort): Use the default_sort_size if sort_size is zero.
(main): Do not set sort_size to default_sort_size.

23 years ago*** empty log message ***
Jim Meyering [Tue, 13 Mar 2001 08:50:32 +0000 (08:50 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Tue, 13 Mar 2001 08:50:18 +0000 (08:50 +0000)]
.

23 years ago(create-empty): New test.
Jim Meyering [Tue, 13 Mar 2001 08:49:48 +0000 (08:49 +0000)]
(create-empty): New test.

23 years ago(sort): If all the input files are empty, create an empty output file.
Jim Meyering [Tue, 13 Mar 2001 08:48:57 +0000 (08:48 +0000)]
(sort): If all the input files are empty, create an empty output file.

23 years ago(merge): Move declarations of local variables into
Jim Meyering [Tue, 13 Mar 2001 08:34:38 +0000 (08:34 +0000)]
(merge): Move declarations of local variables into
the inner scope where they're used.
(sort): Likewise.

23 years ago'sort F -o F' no longer needs to copy F.
Jim Meyering [Tue, 13 Mar 2001 08:29:01 +0000 (08:29 +0000)]
'sort F -o F' no longer needs to copy F.

23 years agoDo not include closeout.h.
Jim Meyering [Tue, 13 Mar 2001 08:28:09 +0000 (08:28 +0000)]
Do not include closeout.h.
(xfopen): Use stdout if *how != 'r'.
(mergefps): Remove FPS arg.
Open all input files, and close all files when done.
If OFP is null, open the output file (but after opening input files).
All callers changed.
(first_same_file): New function.
(sort, merge): Remove arg OFP; we now open the output file as needed.
All callers changed.
(merge): New arg MAX_MERGE.  All callers changed.
(sort): For "sort F -o F", close the input before opening the output.
(main): Do not use close_stdout; 'sort' and 'merge' now close stdout.
(This also fixes a close-stdout-twice bug.)
Remove test for overlapping input and output files, as 'sort' no longer
needs to worry about overlap, and 'merge' checks for overlap itself.
Use first_same_file to inform 'merge' about how much to merge at
the top level, to avoid overlap.

23 years ago.
Jim Meyering [Tue, 13 Mar 2001 04:17:57 +0000 (04:17 +0000)]
.

23 years ago.
Jim Meyering [Tue, 13 Mar 2001 04:17:42 +0000 (04:17 +0000)]
.

23 years ago.
Jim Meyering [Tue, 13 Mar 2001 04:17:07 +0000 (04:17 +0000)]
.

23 years ago.
Jim Meyering [Mon, 12 Mar 2001 21:23:29 +0000 (21:23 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Mon, 12 Mar 2001 21:19:16 +0000 (21:19 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Mon, 12 Mar 2001 21:17:39 +0000 (21:17 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Mon, 12 Mar 2001 21:16:09 +0000 (21:16 +0000)]
*** empty log message ***

23 years ago`fmt --prefix=S' would not work properly for any string S containing
Jim Meyering [Mon, 12 Mar 2001 21:16:05 +0000 (21:16 +0000)]
`fmt --prefix=S' would not work properly for any string S containing
a byte with the high bit set.
(prefix): Declare to be of type unsigned char, not `char'.
(get_prefix): Likewise for local, `p'.

23 years ago*** empty log message ***
Jim Meyering [Mon, 12 Mar 2001 21:11:31 +0000 (21:11 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Mon, 12 Mar 2001 17:49:00 +0000 (17:49 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Mon, 12 Mar 2001 10:52:26 +0000 (10:52 +0000)]
*** empty log message ***

23 years ago(save_stdin): Use mkstemp to create temporary file.
Jim Meyering [Mon, 12 Mar 2001 10:52:20 +0000 (10:52 +0000)]
(save_stdin): Use mkstemp to create temporary file.

23 years ago.
Jim Meyering [Mon, 12 Mar 2001 10:15:08 +0000 (10:15 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sun, 11 Mar 2001 15:24:38 +0000 (15:24 +0000)]
*** empty log message ***

23 years agoDisable this test for now.
Jim Meyering [Sun, 11 Mar 2001 15:24:28 +0000 (15:24 +0000)]
Disable this test for now.
It would block when run in the background.

23 years agoclean up wording in last change
Jim Meyering [Sat, 10 Mar 2001 07:56:07 +0000 (07:56 +0000)]
clean up wording in last change

23 years ago*** empty log message ***
Jim Meyering [Sat, 10 Mar 2001 07:53:47 +0000 (07:53 +0000)]
*** empty log message ***

23 years ago (date invocation): Correct the description of how
Jim Meyering [Sat, 10 Mar 2001 07:53:35 +0000 (07:53 +0000)]
  (date invocation): Correct the description of how
  date works when given no format.  Reported by Ole Laursen.

23 years ago*** empty log message ***
Jim Meyering [Sat, 10 Mar 2001 07:52:40 +0000 (07:52 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Fri, 9 Mar 2001 18:45:59 +0000 (18:45 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Fri, 9 Mar 2001 18:42:11 +0000 (18:42 +0000)]
*** empty log message ***

23 years ago(my_distdir): Define new variable, and use this
Jim Meyering [Fri, 9 Mar 2001 18:41:03 +0000 (18:41 +0000)]
(my_distdir): Define new variable, and use this
in place of most old uses of $(distdir).

23 years ago.
Jim Meyering [Fri, 9 Mar 2001 18:37:57 +0000 (18:37 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Fri, 9 Mar 2001 18:35:13 +0000 (18:35 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Fri, 9 Mar 2001 18:34:28 +0000 (18:34 +0000)]
*** empty log message ***

23 years ago(usage): Describe %C.
Jim Meyering [Fri, 9 Mar 2001 18:28:33 +0000 (18:28 +0000)]
(usage): Describe %C.

23 years ago(Date directives): Likewise.
Jim Meyering [Fri, 9 Mar 2001 18:28:11 +0000 (18:28 +0000)]
(Date directives): Likewise.

23 years ago.
Jim Meyering [Fri, 9 Mar 2001 18:24:22 +0000 (18:24 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Fri, 9 Mar 2001 18:23:45 +0000 (18:23 +0000)]
*** empty log message ***

23 years agoReflect change in location of input-tty.
Jim Meyering [Fri, 9 Mar 2001 18:23:29 +0000 (18:23 +0000)]
Reflect change in location of input-tty.

23 years agomoved from stty/~
Jim Meyering [Fri, 9 Mar 2001 18:21:56 +0000 (18:21 +0000)]
moved from stty/~

23 years agomoved from stty/~
Jim Meyering [Fri, 9 Mar 2001 18:21:29 +0000 (18:21 +0000)]
moved from stty/~

23 years ago(EXTRA_DIST): Remove input-tty.
Jim Meyering [Fri, 9 Mar 2001 18:20:28 +0000 (18:20 +0000)]
(EXTRA_DIST): Remove input-tty.

23 years agoEnsure that /dev/full is a character device
Jim Meyering [Fri, 9 Mar 2001 18:03:22 +0000 (18:03 +0000)]
Ensure that /dev/full is a character device
(using test -c) as well as being writable, before trying to write to it.
Otherwise, the test could mistakenly append a newline to an existing,
regular, writable, /dev/full file.
Suggested by Ulrich Drepper.

23 years ago*** empty log message ***
Jim Meyering [Thu, 8 Mar 2001 07:48:19 +0000 (07:48 +0000)]
*** empty log message ***

23 years agoInsert the `--text' argument for each test.
Jim Meyering [Thu, 8 Mar 2001 07:48:14 +0000 (07:48 +0000)]
Insert the `--text' argument for each test.

23 years ago(locale_charset): Don't use setlocale(LC_CTYPE,NULL).
Jim Meyering [Tue, 6 Mar 2001 18:11:20 +0000 (18:11 +0000)]
(locale_charset): Don't use setlocale(LC_CTYPE,NULL).
Don't return NULL.

23 years ago(print_unicode_char): Simplify accordingly.
Jim Meyering [Tue, 6 Mar 2001 18:11:01 +0000 (18:11 +0000)]
(print_unicode_char): Simplify accordingly.

23 years ago*** empty log message ***
Jim Meyering [Tue, 6 Mar 2001 18:01:26 +0000 (18:01 +0000)]
*** empty log message ***

23 years agoUpdate for FreeBSD 4.2 and OSF/1 5.1. Add support for DOS/DJGPP.
Jim Meyering [Tue, 6 Mar 2001 18:00:47 +0000 (18:00 +0000)]
Update for FreeBSD 4.2 and OSF/1 5.1. Add support for DOS/DJGPP.

23 years ago(S_TYPEISSHM): Rename parameter to reflect its type.
Jim Meyering [Tue, 6 Mar 2001 05:50:10 +0000 (05:50 +0000)]
(S_TYPEISSHM): Rename parameter to reflect its type.
(main): Pass a `struct stat *', not stat.st_mode to S_TYPEISSHM.

23 years ago*** empty log message *** TEXTUTILS-2_0_12
Jim Meyering [Sun, 4 Mar 2001 21:12:06 +0000 (21:12 +0000)]
*** empty log message ***

23 years ago(alpha): Use $(PACKAGE)-$(VERSION), not $(distdir),
Jim Meyering [Sun, 4 Mar 2001 21:11:50 +0000 (21:11 +0000)]
(alpha): Use $(PACKAGE)-$(VERSION), not $(distdir),
since the latter now has a `$(top_distdir)/' prefix.

23 years ago*** empty log message ***
Jim Meyering [Sun, 4 Mar 2001 20:53:38 +0000 (20:53 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 4 Mar 2001 20:53:01 +0000 (20:53 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Sun, 4 Mar 2001 04:04:13 +0000 (04:04 +0000)]
.

23 years ago(output_char): Reformat so each statement is on a separate line.
Jim Meyering [Sun, 4 Mar 2001 03:14:40 +0000 (03:14 +0000)]
(output_char): Reformat so each statement is on a separate line.

23 years ago.
Jim Meyering [Sun, 4 Mar 2001 03:05:32 +0000 (03:05 +0000)]
.

23 years ago.
Jim Meyering [Sun, 4 Mar 2001 01:48:17 +0000 (01:48 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sat, 3 Mar 2001 19:31:47 +0000 (19:31 +0000)]
*** empty log message ***

23 years ago(die): New function.
Jim Meyering [Sat, 3 Mar 2001 19:31:37 +0000 (19:31 +0000)]
(die): New function.
(create_temp_file, xfopen, xfclose, write_bytes, sort_buffer_size,
fillbuf, main): Use it to regularize error messages.  The only change
in behavior is that write_bytes and the final close used to say "write
error" but now give just the output file name, which should be enough.

23 years ago*** empty log message ***
Jim Meyering [Sat, 3 Mar 2001 19:21:49 +0000 (19:21 +0000)]
*** empty log message ***

23 years ago(xfclose): Add FILE arg, and report the file name
Jim Meyering [Sat, 3 Mar 2001 19:21:41 +0000 (19:21 +0000)]
(xfclose): Add FILE arg, and report the file name
on error.  All callers changed.

23 years ago*** empty log message ***
Jim Meyering [Sat, 3 Mar 2001 19:19:12 +0000 (19:19 +0000)]
*** empty log message ***

23 years ago(main): When fclose (stdin) fails, do not mention
Jim Meyering [Sat, 3 Mar 2001 19:19:06 +0000 (19:19 +0000)]
(main): When fclose (stdin) fails, do not mention
the output file in the error message; mention "-" instead.

23 years ago*** empty log message ***
Jim Meyering [Sat, 3 Mar 2001 19:12:29 +0000 (19:12 +0000)]
*** empty log message ***

23 years ago(xfopen): Set have_read_stdin to 1 only if file is "-".
Jim Meyering [Sat, 3 Mar 2001 19:12:23 +0000 (19:12 +0000)]
(xfopen): Set have_read_stdin to 1 only if file is "-".
Use fopen_safer, not fopen, to avoid subtle bugs when fopen returns
stdin, stdout, or stderr.
(xfclose): stdout is no longer a special case.
(main): Close output file, don't just flush it; there might be
an error on the close.

23 years ago(libfetish_a_SOURCES): Add dup-safer.c, fopen-safer.c.
Jim Meyering [Sat, 3 Mar 2001 19:06:54 +0000 (19:06 +0000)]
(libfetish_a_SOURCES): Add dup-safer.c, fopen-safer.c.
(noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.

23 years ago*** empty log message ***
Jim Meyering [Sat, 3 Mar 2001 19:06:28 +0000 (19:06 +0000)]
*** empty log message ***

23 years agofrom Paul Eggert
Jim Meyering [Sat, 3 Mar 2001 19:05:36 +0000 (19:05 +0000)]
from Paul Eggert

23 years ago*** empty log message ***
Jim Meyering [Sat, 3 Mar 2001 18:53:53 +0000 (18:53 +0000)]
*** empty log message ***

23 years ago(initbuf): If the desired size cannot be
Jim Meyering [Sat, 3 Mar 2001 18:53:44 +0000 (18:53 +0000)]
(initbuf): If the desired size cannot be
allocated, repeatedly halve it until allocation succeeds.

23 years ago(parse_field_count): Comment fix.
Jim Meyering [Sat, 3 Mar 2001 18:40:44 +0000 (18:40 +0000)]
(parse_field_count): Comment fix.

23 years ago.
Jim Meyering [Sat, 3 Mar 2001 18:38:22 +0000 (18:38 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sat, 3 Mar 2001 18:23:37 +0000 (18:23 +0000)]
*** empty log message ***

23 years agoTune allocation and comparison of nodes
Jim Meyering [Sat, 3 Mar 2001 18:23:29 +0000 (18:23 +0000)]
Tune allocation and comparison of nodes
representing temp files.  This improved CPU performance of
'sort -S 1 *.[ch]' by 17% on my host.

(struct tempnode): name member now uses struct hack.
(temphead): Now a pointer, not a structure.  All uses changed.
(create_temp_file): Allocate node using struct hack.
(zaptemp): Free node using struct hack.  Use pointer comparison, not
string comparison.