
21 Jul
2004
21 Jul
'04
3:13 p.m.
"Robert Ramey" <ramey@rrsd.com> wrote in message news:20040720041528.C8A1C319C9@acme.west.net...
[1] As does the manpage say: "Never use this function".
Depending on the version, you may even see a more helpful message in the manpage.
BUGS Never use this function. Use mkstemp(3) instead.
Well, not helpful enough. Making a stream from a file descriptor is code I don't have.
Nicolai Josuttis has written iostreams based on file descriptors: http://www.josuttis.com/cppcode/fdstream.html. Jonathan