diff options
author | Jim Meyering <jim@meyering.net> | 2001-03-13 08:28:09 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-03-13 08:28:09 +0000 |
commit | 86c5a50e8664a0fb69f63620964c7d1a2a166ef5 (patch) | |
tree | c8ced5873a86eabf875a2e6df5aaf5f5c74588dc /src/asa.c | |
parent | abb5c4e845d96f90befdaefbde9272f437ed87bc (diff) | |
download | coreutils-86c5a50e8664a0fb69f63620964c7d1a2a166ef5.tar.xz |
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.
Diffstat (limited to 'src/asa.c')
0 files changed, 0 insertions, 0 deletions