Return-Path: Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 92398 invoked from network); 18 Dec 2000 20:01:50 -0000 Received: from unknown (HELO prosa.it) (213.255.48.130) by locus.apache.org with SMTP; 18 Dec 2000 20:01:50 -0000 Received: by prosa.it (Postfix, from userid 1000) id DAD189B07C; Mon, 18 Dec 2000 21:01:09 +0100 (CET) Sender: davidw@eugene.prosa.it To: Joe Schaefer Cc: apreq-dev@httpd.apache.org Subject: Re: source in cvs References: <20001216164811.A28553@trainedmonkey.com> <87ae9teizu.fsf@eugene.prosa.it> From: davidw@prosa.it (David N. Welton) Date: 18 Dec 2000 21:01:09 +0100 In-Reply-To: Joe Schaefer's message of "18 Dec 2000 14:49:48 -0500" Message-ID: <87wvcxcxdm.fsf@eugene.prosa.it> Lines: 36 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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. #include int main() { int fd = 0; char storage[100] = "/tmp/testXXXXXX"; fd = mkstemp(storage); write(fd, "123456789\n", strlen("123456789\n")); printf("file is %s\n", storage); close (fd); } I still have the files sitting around, complete with contents. 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. -- David N. Welton Personal: http://www.efn.org/~davidw/ Free Software: http://people.debian.org/~davidw/ Apache Tcl: http://tcl.apache.org