From dev-return-14186-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Thu May 12 02:57:55 2005 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 67422 invoked from network); 12 May 2005 02:57:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2005 02:57:54 -0000 Received: (qmail 1612 invoked by uid 500); 12 May 2005 03:01:45 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 1583 invoked by uid 500); 12 May 2005 03:01:45 -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 1568 invoked by uid 99); 12 May 2005 03:01:45 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from tonnant.concentric.net (HELO tonnant.cnchost.com) (207.155.248.72) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 11 May 2005 20:01:45 -0700 Received: from rcsv650.rowe-clan.net (c-24-13-128-132.hsd1.il.comcast.net [24.13.128.132]) by tonnant.cnchost.com id WAA23192; Wed, 11 May 2005 22:57:39 -0400 (EDT) [ConcentricHost SMTP Relay 1.17] Errors-To: Message-Id: <6.2.1.2.2.20050511214920.04f10100@pop3.rowe-clan.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Wed, 11 May 2005 21:51:26 -0500 To: wes@page.ca From: "William A. Rowe, Jr." Subject: Re: advice on use of APR_STATUS_IS_* Cc: Randy Kobes , dev@apr.apache.org In-Reply-To: References: <6.2.1.2.2.20050511205411.042b45b0@pop3.rowe-clan.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N At 09:20 PM 5/11/2005, Wesley W. Garland wrote: >If I had my fantasy implementation, though, codes like EAGAIN and >EWOULDBLOCK would be merged into one result... but that would >require... well, all factors considered, a time travel machine and way >to encourage cooperation between the USL and BSD guys prior to 4.3 >Reno or so. Exactly. Where some libraries have some normalize_err() function which folds these together, the cost of executing *that* switch, then to go through the users' expected cases, is much much to high for performant apps. The advantage of STATUS_IS macros is that only those flags your app is prepared to handle are evaluated. Bill