diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-07-02 15:47:03 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-07-02 16:46:59 -0700 |
commit | 59daf05b75f1898ff435ff13983da8d20d4436aa (patch) | |
tree | efb34a7f55db18375a899df5ca7843920680bf54 /lib | |
parent | 44fbd3fd862e34d42006f8b74cb11c9c56346417 (diff) | |
download | coreutils-59daf05b75f1898ff435ff13983da8d20d4436aa.tar.xz |
sort: simplify -o handling to avoid fdopen, assert
* src/sort.c (outfd): Remove. All uses replaced by STDOUT_FILENO.
(stream_open): When writing, use stdout rather than fdopen.
(move_fd_or_die): Renamed from dup2_or_die, with the added functionality
of closing its first argument. All uses changed.
(avoid_trashing_input): Special case for !outfile no longer needed.
(check_output): Arrange for standard output to go to the file,
rather than storing the fd in outfd.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions