apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Bloom" <...@covalent.net>
Subject RE: [PATCH] apr_file_mktemp should APR_CREATE the tmp file
Date Fri, 18 Jan 2002 22:00:09 GMT
> > Yeah, I agree that it is different, but I'm not entirely sure that
> > it is the wrong thing to do.  I think if you have a temp-file, you
> > want to delete it by *default*.  Since a user can override those
> > flags, I think it's NBD as well.  -- justin
> 
> IIRC... you can add the DELONCLOSE flag, but you cannot _UNDO_ flags
> you didn't want.  We need to remove the DELONCLOSE flag and let the
> user pass it, if they want to always blast the file on close.

If you pass any flags, you are taking ownership of all flags, which
means that if you decide to pass in a set of flags, you will overwrite
the defaults, you will not augment them.

> Temp files aren't always the lifetime of a single open command.  And
> the mktemp file is often used to create permanant, unique files.

I am fine with either deleting by default or not deleting by default.

Ryan



Mime
View raw message