On Mon, 2005-06-20 at 15:27 +0100, Philip Armstrong wrote: > The mkstemp manpage on Debian linux suggests that you should use > tmpfile() instead btw -- You get a FILE * back rather than a file > descriptor.
Near as I can tell, tmpfile() won't work at all for this case, because we need to know the filename of the temporary file. Unless there's a way to get the filename from a FILE structure? I'm also not sure why a FILE ptr is necessarily better than a file descriptor. Is the f* series of functions a more portable interface? Perhaps so, at the expense of features, since there seems to be no way to specify O_EXCL with fopen(). Cheers, Jason.
signature.asc
Description: This is a digitally signed message part
