httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: source in cvs
Date Mon, 18 Dec 2000 20:11:30 GMT (David N. Welton) writes:

> Joe Schaefer <> writes:
> > I'm not sure where this comes from- neither my man pages nor my
> > glibc2 info documentation say this.  Quite frankly, I'd ignore it
> > since it's utter BS. On linux, "mkstemp" is just as good as
> > "tmpfile" since it's coded as "tmpfile" + "remove" - thus the file
> > is gone once the stream to it is closed.  IME, mkstemp works just
> > fine on linux.
> Hrmm, I don't think it's removed.

Sorry about that- the gobbledygook I  wrote should have read

tmpfile = mkstemp + remove

mkstemp doesn't remove the temp file, but tmpfile _does_.

> I don't know... I like the idea of giving someone a filename and
> letting them do what they want with it, which may or may not include
> opening the file.

But if they do nothing with it, it should vanish- not stick
around in the /tmp directory.  (The temp file should go away by itself).

Joe Schaefer

View raw message