[EMAIL PROTECTED] (David N. Welton) writes: > Joe Schaefer <[EMAIL PROTECTED]> 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
