From dev-return-8601-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Thu Dec 05 21:10:16 2002 Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 61583 invoked by uid 500); 5 Dec 2002 21:10:14 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 61572 invoked from network); 5 Dec 2002 21:10:14 -0000 Date: Thu, 5 Dec 2002 13:09:30 -0800 Subject: Re: APR_TMP_DIRECTORY Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v548) From: Aaron Bannert To: dev@apr.apache.org Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.548) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thursday, December 5, 2002, at 01:07 PM, wrote: > What exactly is the argument against using the proposed API? That we > shouldn't use environment variables? The environment variables are a > mechanism that some platforms use for locating the temp directory. To > ignore them would be stupid and it would make it harder to APR app > developers to write their code. Unix does not use environment variables for locating a temp directory. That's fine if Windows does that, and that's fine if some Unix apps decide they want to do it that way, but it is not standard and it not defensive system programming. Can anyone think of a case where temp files on Unix do not belong in either 1) /tmp or 2) a user-defined location? -aaron