From 004f708a5eaa7610a3eba7f4c74e279bf63fb9ce Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 5 Nov 2009 15:13:00 -0700 Subject: 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 --- modules/freopen-safer-tests | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/freopen-safer-tests (limited to 'modules/freopen-safer-tests') 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 -- cgit v1.2.1