summaryrefslogtreecommitdiff
path: root/src/hostname.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-03-13 08:28:09 +0000
committerJim Meyering <jim@meyering.net>2001-03-13 08:28:09 +0000
commit86c5a50e8664a0fb69f63620964c7d1a2a166ef5 (patch)
treec8ced5873a86eabf875a2e6df5aaf5f5c74588dc /src/hostname.c
parentabb5c4e845d96f90befdaefbde9272f437ed87bc (diff)
downloadcoreutils-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/hostname.c')
0 files changed, 0 insertions, 0 deletions