From dev-return-10632-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Sun Nov 16 23:54:20 2003 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 12295 invoked from network); 16 Nov 2003 23:54:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Nov 2003 23:54:19 -0000 Received: (qmail 7053 invoked by uid 500); 16 Nov 2003 23:54:04 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 7001 invoked by uid 500); 16 Nov 2003 23:54:03 -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 6749 invoked from network); 16 Nov 2003 23:54:02 -0000 Message-Id: <5.2.0.9.2.20031116174942.01b77b68@pop3.rowe-clan.net> X-Sender: admin%rowe-clan.net@pop3.rowe-clan.net (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Sun, 16 Nov 2003 17:51:30 -0600 To: Stas Bekman From: "William A. Rowe, Jr." Subject: Re: how to test for a valid apr_file_info_t and valid apr_file_t filehandle? Cc: dev@apr.apache.org In-Reply-To: <3FB693FD.5060507@stason.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-OriginalArrivalTime: 16 Nov 2003 23:53:54.0890 (UTC) FILETIME=[E4BBE2A0:01C3AC9C] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N At 03:00 PM 11/15/2003, Stas Bekman wrote: >In apache 1.3 one could check whether a r->finfo is already opened by checking whether r->finfo.filehand is non-NULL. However with ap2/apr, r->finfo could be unitilialized and containing random garbage. However, we could null out r->finfo.valid and rest assured that if it remains zero, there is no available finfo data. apr_finfo_t::valid represents which elements of an apr_finfo_t were populated. With the platform discrepancies, this varies from OS to OS. Bill