[darcs-devel] Temporary files issue

Dylan Thurston dthurston at barnard.edu
Wed Feb 7 12:29:06 PST 2007


On Wed, Feb 07, 2007 at 11:27:30AM -0800, David Roundy wrote:
> > I wonder if instead we should be using tmpfile().
> > ...
> 
> tmpfile() would be nice, but the file is deleted automatically when the
> handle is closed (perhaps deleted before the handle is returned?), so we
> can't use it when we want a filename that we can pass to emacs.

The standard solution is to use mkdtemp to create a dirctory (with mode
0700) and then create a file in that directory with your choice of
name.  mkdtemp is not in POSIX currently, but it seems like it will be
added soon.

Peace,
	Dylan Thurston
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20070207/8dbb154f/attachment.pgp


More information about the darcs-devel mailing list