Kevin Pilch-Bisson <[EMAIL PROTECTED]> writes:

> On Wed, Dec 04, 2002 at 05:56:38PM +0000, Thom May wrote:
> > * David Reid ([EMAIL PROTECTED]) wrote :
> > > If we don't have such a declare maybe we  should add one? I say this as
> > > htpasswd.c (in httpd) uses P_tmpdir that isn't portable and breaks the 
> > > beos
> > > build. Also Thom found a note in his stdio.h file saying that it wasn't 
> > > the
> > > right way to do things, and I agree it's not.
> > > 
> > > I propose that it would simply take the form of a define
> > > 
> > > #define APR_TMP_DIRECTORY "/var/tmp"
> > > 
> > This sounds good. definable via configure, yes?
> 
> I'm not sure I like this, as windows temp directories depend on where certain
> system folders live.

I'd suggest doing what Python's tempdir module does, which is to use
runtime checks to find a writable temporary directory, given a list of
default places to check and some OS-specific usual suspects.  I posted
to this list not too long ago a proposal for just such an APR
function.  Subversion needs something like an apr_tmp_dir() -- it's
ridiculous to place that burden on every program in the world.

Reply via email to