Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 46875 invoked from network); 13 Dec 2007 04:56:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2007 04:56:33 -0000 Received: (qmail 57937 invoked by uid 500); 13 Dec 2007 04:56:21 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 57879 invoked by uid 500); 13 Dec 2007 04:56:21 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 57868 invoked by uid 99); 13 Dec 2007 04:56:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2007 20:56:21 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of iain.wade@gmail.com designates 64.233.178.241 as permitted sender) Received: from [64.233.178.241] (HELO hs-out-2122.google.com) (64.233.178.241) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2007 04:56:00 +0000 Received: by hs-out-2122.google.com with SMTP id j58so599292hsj.11 for ; Wed, 12 Dec 2007 20:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=0H+zvqGIyRrU/JAQFaj2HzZHqG6zwbilpweVOyyN1lY=; b=reA9qabFcp+5ZtaB3fX1KkOs19V6C2jdEyj6LHn14WnnpPfthXywFmOXgkrsn51CDkwwbidY23cuDIeZBjSCXWdqXkhzl3Ara/wcS4nBDsyAEPtFdQ6cFDiXraZBUEvdlvMk/8gp+nPg9PR7jFWm41OfCjpgieK7q9p2/X9714U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=PdsBDzyw3shei7nCsvhoqcbOe6s4Ol4ipuPjOAJZdALuAMzfx4OQrQL4/HNLH0yJ8Q4N9xKOWR5dMymY5NVNcBnNJJ+qxHAU5NhEOcTaq/dFMfAUaCwmeYCRvpzYe1IUpq8mak0F+kRn4mfOBzt0w5k61MuZxQKwRiJi2EnjRVs= Received: by 10.150.186.12 with SMTP id j12mr498347ybf.124.1197521762854; Wed, 12 Dec 2007 20:56:02 -0800 (PST) Received: by 10.150.218.6 with HTTP; Wed, 12 Dec 2007 20:56:02 -0800 (PST) Message-ID: Date: Thu, 13 Dec 2007 15:56:02 +1100 From: "Iain Wade" Sender: iain.wade@gmail.com To: "William A. Rowe, Jr." Subject: Re: apr_os_dir_put fixes Cc: "Lucian Adrian Grijincu" , "Michael Clark" , dev@apr.apache.org In-Reply-To: <4760B801.6030007@rowe-clan.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <475E944F.3030707@rowe-clan.net> <475EB4A8.8030409@metaparadigm.com> <475EB8A1.5090702@metaparadigm.com> <4760B801.6030007@rowe-clan.net> X-Google-Sender-Auth: bd32436ef5035ddc X-Virus-Checked: Checked by ClamAV on apache.org > > 2/ Create a new apr_os_file_put_ex function, which adds a register_cleanup flag. > > Why a bool? We already pass a flags arg, why not a toggle bit? I know what you mean, I was torn in adding the bool myself but chose to because: I note that apr_os_pipe_put_ex already exists with a register_cleanup bool. APR_FILE_NOCLEANUP is actually APR_FOPEN_NOCLEANUP which doesn't seem correctly named for a non-open case. If I depended on the existing flag, maintaining existing behavior of apr_os_file_put would be tough. The apr_*dir* functions don't accept flags yet, and if I add one then the dir function would take a different flag - confusing. > Interesting, I'll need to review this a bit. Perhaps that should be broken > out as a seperate patch, and 1 and 3 considered together, 2 considered on it's > own (in conjunction with 1). Sure, I'll get them over shortly. --Iain