Robert Heller wrote: > I need to create a unique temporary file and use it with C++ streams. > With older C++ libraries under Linux (RH 7.3/G++ 2.96/libstdc++-2.96),
http://gcc.gnu.org/gcc-2.96.html > I could use mkstemp() to create and open file [...] Was never standard, newer GCCs now finally moved this feature to an extension namespace, see the docs (sorry, no, I do not have a link handy). > So, how do I deal with this? > Not use C++ iostreams? Write insecure code? Write my own fstream class > that is layered on top of file descriptors (yech!). You'd write a streambuffer, not a stream, both of which is trivial though (assuming you know how to). Get "C++ IOStreams and Locales" from Langer and Kreft if you want to know. Uli -- http://gcc.gnu.org/faq.html http://parashift.com/c++-faq-lite/ _______________________________________________ Help-gplusplus mailing list Help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus