[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Diffs for replacing mktemp() usage

From: Earl Hood
Subject: Re: [Nmh-workers] Diffs for replacing mktemp() usage
Date: Tue, 02 Feb 2010 21:51:23 -0600

On February 2, 2010 at 15:45, "Lyndon Nerenberg (VE6BBM/VE7TFX)" wrote:

> Having an MH-private namespace for scratch files is certainly the way
> to go here.  These aren't 'temp files' in the traditional sense, and
> none of the usual APIs suit the task at hand.

Actually, we have complete control of where temporary files go.
mkstemp() does not impose any location of where temp files go.

Now tmpfile() probably utilizes the system temporary directory
since there is no ability to provide a template for it.

tempnam() will use the system temp dir if its first argument
is NULL.

Wrt nmh, there are some operations where the temporary file
must go in the operating location.  For example, when
the temporary file gets renamed.

I can modify the new functions I implemented to use m_maildir("")
as the default location instead of "/tmp" when no template
is provided.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]