Mail Archives: djgpp-workers/1999/04/22/05:02:50
On Wed, 21 Apr 1999, Mark E. wrote:
> Wanting to have just one workaround, I created the _opentmp function.
> It accepts a path and mode as arguments and returns a file handle on
> success, a lot like open does. Except when close() is called, the file is
> closed and then automatically deleted.
Personally, I think that solving this problem is only worth the hassle
if it can be solved transparently. If a solution requires some
special code, like using O_TEMPORARY, then it will anyway require
DJGPP-specific code, and it isn't better than simply using `tmpfile'
(and taking the handle with `fileno', if it's required).
- Raw text -