]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include: add stream error checking facility
authorSami Kerola <kerolasa@iki.fi>
Wed, 4 Apr 2012 17:22:08 +0000 (19:22 +0200)
committerSami Kerola <kerolasa@iki.fi>
Wed, 4 Apr 2012 17:45:37 +0000 (19:45 +0200)
commit302e423dc1a6dd8f72e126ec3279a14938da625a
treec6b9ab5a62148a1d6b205e3b7c797e7868b9dc2e
parent8265242b22a672d592025ec66365d32d60429557
include: add 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>
include/Makefile.am
include/closestream.h [new file with mode: 0644]