diff modules/closein @ 8674:72f80d715b09

Work around glibc's failure to reset seekable stdin on exit. * modules/closein: New module. * lib/closein.c: New file. * lib/closein.h: Likewise. * m4/closein.m4: Likewise. * MODULES.html.sh (File stream based Input/Output): Document it.
author Eric Blake <ebb9@byu.net>
date Thu, 12 Apr 2007 16:11:40 +0000
parents
children 3ba41f99309f
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/modules/closein
@@ -0,0 +1,26 @@
+Description:
+Close all standard streams, resetting seekable stdin if needed, and exiting with a diagnostic on error.
+
+Files:
+lib/closein.h
+lib/closein.c
+m4/closein.m4
+
+Depends-on:
+closeout
+fflush
+stdbool
+
+configure.ac:
+gl_CLOSEIN
+
+Makefile.am:
+
+Include:
+"closein.h"
+
+License:
+GPL
+
+Maintainer:
+Eric Blake