
20 Jul
2004
20 Jul
'04
6:06 a.m.
Robert Ramey wrote:
[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.
Maybe, you should take a look at the code I've posted... you don't need to create fstream from file descriptor. You can open the file using the name mkstemp returns via the in/out parameter. - Volodya