lib: add fileutils file with stream error checking facility

The close_stream() is copied from GNU lib. Inspiration to do this
is talk by Jim Meyering - Goodbye World! The perils of relying on
output streams in C.

Reference: http://www.irill.org/events/ghm-gnu-hackers-meeting/videos/jim-meyering-goodbye-world-the-perils-of-relying-on-output-streams-in-c
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola
2012-03-23 11:10:04 +01:00
parent 1462c4e581
commit c7cf98b0e0
8 changed files with 81 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ EXTRA_DIST = \
global-conf.exp \
free.test/free.exp \
kill.test/kill.exp \
lib.test/fileutils.exp \
lib.test/strutils.exp \
pgrep.test/pgrep.exp \
pkill.test/pkill.exp \