summaryrefslogtreecommitdiff
path: root/modules/freopen-safer-tests
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-11-05 15:13:00 -0700
committerEric Blake <ebb9@byu.net>2009-11-05 20:41:20 -0700
commit004f708a5eaa7610a3eba7f4c74e279bf63fb9ce (patch)
treedcc2e47bad63b4b779147375a8ea8ec838e01131 /modules/freopen-safer-tests
parent46b36899e091f58a96df1d64c145d6ccf392718d (diff)
downloadgnulib-004f708a5eaa7610a3eba7f4c74e279bf63fb9ce.tar.gz
freopen-safer: new module
* modules/freopen-safer: New module. * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro. * lib/freopen-safer.c (freopen_safer): New file. * lib/stdio-safer.h (freopen_safer): New declaration. * lib/stdio--.h (freopen): New override. * MODULES.html.sh (File stream based Input/Output): Mention it. * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and freopen-safer module. * doc/posix-functions/stderr.texi (stderr): Likewise. * doc/posix-functions/stdin.texi (stdin): Likewise. * doc/posix-functions/stdout.texi (stdout): Likewise. * modules/freopen-safer-tests: New test. * tests/test-reopen-safer.c: New file. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/freopen-safer-tests')
-rw-r--r--modules/freopen-safer-tests10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/freopen-safer-tests b/modules/freopen-safer-tests
new file mode 100644
index 0000000000..9511880a29
--- /dev/null
+++ b/modules/freopen-safer-tests
@@ -0,0 +1,10 @@
+Files:
+tests/test-freopen-safer.c
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-freopen-safer
+check_PROGRAMS += test-freopen-safer