Re: [Nmh-workers] tempfile creation

2005-05-06 Thread Mike O'Dell
a flag in OPEN() for disappear on close is the equivalent of the NFS hack but done much more explicitly. and it solves most of the problems, but not all. -mo ___ Nmh-workers mailing list Nmh-workers@nongnu.org

Re: [Nmh-workers] tempfile creation -- Plan 9 man page....

2005-05-06 Thread Mike O'Dell
more importantly, note the e added to creat() Ken said that was the one thing he'd fix if he ever got the chance -mo ___ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers

Re: [Nmh-workers] tempfile creation

2005-04-28 Thread Ralph Corderoy
Hi mo, the reference-count semantics are immensely useful, but not without cost. it complicates the design of NFS no small amount and is why hard links cannot cross demountable volumes. however, doing without those semantics is very difficult to imagine. What you say is true, but it may

[Nmh-workers] tempfile creation

2005-04-27 Thread Paul Fox
it seems that the usual paradigm in the nmh code (i'm looking at 1.1 source) for creating a temp file is to do something like this, from mhbuild.c: /* copy standard input to temporary file */ strncpy (infile, m_scratch (, invo_name), sizeof(infile)); if ((fp = fopen

Re: [Nmh-workers] tempfile creation

2005-04-27 Thread Mike O'Dell
if i were to hazzard a guess, the reason the code doesn't use mkstemp() is that [1] the code cited is likely well more than twice age of mkstemp() [2]and nobody has gone looking for things to fix that were still (apparently) working. (big grin) the question about /tmp is probably related the

Re: [Nmh-workers] tempfile creation

2005-04-27 Thread Josh Bressers
Mike O'Dell wrote: if i were to hazzard a guess, the reason the code doesn't use mkstemp() is that [1] the code cited is likely well more than twice age of mkstemp() [2]and nobody has gone looking for things to fix that were still (apparently) working. (big grin) While it does work, mkstemp

Re: [Nmh-workers] tempfile creation

2005-04-27 Thread Valdis . Kletnieks
On Wed, 27 Apr 2005 11:01:45 EDT, Mike O'Dell said: if i were to hazzard a guess, the reason the code doesn't use mkstemp() is that [1] the code cited is likely well more than twice age of mkstemp() [2]and nobody has gone looking for things to fix that were still (apparently) working. (big

Re: [Nmh-workers] tempfile creation

2005-04-27 Thread Mike O'Dell
oy! such features you get in this code!! -mo ___ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers

Re: [Nmh-workers] tempfile creation

2005-04-27 Thread Neil W Rickert
[EMAIL PROTECTED] wrote on Apr 27, 2005: On Wed, 27 Apr 2005 11:01:45 EDT, Mike O'Dell said: if i were to hazzard a guess, the reason the code doesn't use mkstemp() is that [1] the code cited is likely well more than twice age of mkstemp() [2]and nobody has gone looking for things to fix that

Re: [Nmh-workers] tempfile creation

2005-04-27 Thread Chad Walstrom
On Wed, Apr 27, 2005 at 11:01:45AM -0400, Mike O'Dell wrote: if i were to hazzard a guess, the reason the code doesn't use mkstemp() is that [1] the code cited is likely well more than twice age of mkstemp() [2]and nobody has gone looking for things to fix that were still (apparently) working.