add 'e' modifier (close-on-exec) to fopen and fdopen
authorRich Felker <dalias@aerifal.cx>
Sat, 29 Sep 2012 22:09:34 +0000 (18:09 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 29 Sep 2012 22:09:34 +0000 (18:09 -0400)
commit8582a6e9f25dd7b87d72961f58008052a4cac473
treee9ba3b3d490bc26d6d61040a77bd1c7dabfda74e
parentf2d08cf7558176af7ef36cf5b5213e676b02d7ac
add 'e' modifier (close-on-exec) to fopen and fdopen

this feature will be in the next version of POSIX, and can be used
internally immediately. there are many internal uses of fopen where
close-on-exec is needed to fix bugs.
src/stdio/__fdopen.c
src/stdio/fopen.c