Subject: CVS commit: src/usr.bin/split
To: None <source-changes@netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: source-changes
Date: 06/29/2003 22:57:23
Module Name:	src
Committed By:	bjh21
Date:		Sun Jun 29 22:57:23 UTC 2003

Modified Files:
	src/usr.bin/split: split.c

Log Message:
Clean up the mechanism used for opening output files.  Rather than freopening
stdout onto each file in turn, then writing through fileno(stdout), use
open() and close() like any sensible program.  This saves a lot of system
calls, removes a dependency on the particular behaviour of BSD freopen(),
and allows us to detect and report errors from close().


To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 src/usr.bin/split/split.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.