lib/stdio--.h


Log

Author Commit Date CI Message
Eric Blake ccb9c679 2009-08-19T10:02:19 popen-safer: prevent popen from clobbering std descriptors * modules/popen-safer: New file. * lib/popen-safer.c: Likewise. * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro. * lib/stdio--.h (popen): Provide override. * lib/stdio-safer.h (popen_safer): Provide declaration. * tests/test-popen.c (includes): Partially test this. * modules/popen-safer-tests: New file, for more tests. * tests/test-popen-safer.c: Likewise. * MODULES.html.sh (file stream based Input/Output): Mention it. Signed-off-by: Eric Blake <ebb9@byu.net>
Eric Blake fb8c836a 2009-08-19T09:54:54 tests: test some of the *-safer modules * modules/fopen-safer (Depends-on): Add fopen. * modules/fcntl-safer (Depends-on): Add fcntl. * modules/stdlib-safer (Depends-on): Add stdlib. (configure.ac): Set indicator. * modules/unistd-safer (configure.ac): Likewise. * modules/tmpfile-safer (configure.ac): Likewise. (Depends-on): Add tmpfile. * lib/stdio--.h (fopen, tmpfile): Don't override unless module is active. * tests/test-fopen.c (includes): Test safer versions when they are in use. * tests/test-open.c (includes): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
Bruno Haible 57fdfd3f 2007-10-07T19:14:58 Change copyright notice from GPLv2+ to GPLv3+.
Eric Blake b3dc221c 2006-07-23T18:50:12 * stdio--.h (tmpfile): Make safer.
Eric Blake 111cf856 2006-07-23T12:58:15 * tmpfile-safer.c: New file. * stdio-safer.h (fopen_safer): Add prototype. * stdio--.h (tmpfile): Make safer.
Jim Meyering f4972c1a 2005-08-27T20:12:02 Merge from coreutils: New file.