Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 91119 invoked from network); 1 Aug 2006 18:49:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 18:49:14 -0000 Received: (qmail 38308 invoked by uid 500); 1 Aug 2006 18:49:14 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 37966 invoked by uid 500); 1 Aug 2006 18:49:13 -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 37955 invoked by uid 99); 1 Aug 2006 18:49:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 11:49:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [207.155.252.12] (HELO sheffield.cnchost.com) (207.155.252.12) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 11:49:12 -0700 Received: from [192.168.0.21] (c-24-15-193-17.hsd1.il.comcast.net [24.15.193.17]) (as wrowe@rowe-clan.net) by sheffield.cnchost.com (ConcentricHost(2.54) Relay) with ESMTP id BB4D23058; Tue, 1 Aug 2006 14:48:43 -0400 (EDT) Message-ID: <44CFA1D7.60907@rowe-clan.net> Date: Tue, 01 Aug 2006 13:47:51 -0500 From: "William A. Rowe, Jr." User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 To: E Holyat CC: dev@apr.apache.org Subject: Re: What is the default size of apr_size_t on a 64 bit platform, 64 or 32? References: <20060801181819.37748.qmail@web51714.mail.yahoo.com> In-Reply-To: <20060801181819.37748.qmail@web51714.mail.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N E Holyat wrote: > It is unclear to me what the default sizeof apr_size_t is on a 64 bit > platform. Is it 32 or 64? It should match the scope of memory; size_t and off_t respectively are used to determine the size of a pointer for pointer math. E.g., the size of an allocation, the relative position of one item or element in relation to another, etc. Almost any int arithmetic game one would play on a pointer needs to be representable in an apr_size_t / apr_off_t (with the appropriate non-signed or signedness games, respectively.)