From owner-freebsd-arch@FreeBSD.ORG Thu Aug 12 19:20:58 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2C081065679 for ; Thu, 12 Aug 2010 19:20:58 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 471D18FC0A for ; Thu, 12 Aug 2010 19:20:57 +0000 (UTC) Received: by ewy26 with SMTP id 26so1074876ewy.13 for ; Thu, 12 Aug 2010 12:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=vEB23y5D0F4MN72nO+otGINAmQgtMHZSwd3kIcl1Kuc=; b=sTJ6Q2MXl9q065PKJrd2Q88PUmvL0mrmP29SVlfot1hibsr5o+leIfXlfUssCNGV/6 W9kHbta3ZX45xqAZnTSO6jKbAj3naPXrWVyeoPxZdCGg+fUKrarf6jiOUCLlDvprTyjh NqdFX/j+LM2DmL8QD0kDKneBQuARqhmba4LR0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=elEHBrSBXsF2kFa0c2FXAaXkzeJ8bI2UjRQlNyfSVsMe9qC5J1HxFdUnbQF4Vm3X+v zOEt2ghtzpECf8O7yefvy0U6zyXrOHwluAE+jK0ue0h8VPqCy5HFH2tBlbfUaJEBOHJw 5ojMqTPa/Giv0y9YGAiiX7gyc/COZB8nNtkjM= MIME-Version: 1.0 Received: by 10.213.22.9 with SMTP id l9mr588251ebb.78.1281640857146; Thu, 12 Aug 2010 12:20:57 -0700 (PDT) Sender: mdf356@gmail.com Received: by 10.213.10.196 with HTTP; Thu, 12 Aug 2010 12:20:57 -0700 (PDT) Date: Thu, 12 Aug 2010 12:20:57 -0700 X-Google-Sender-Auth: tKbFa55vfjHRPTFhrgui4sC8zcY Message-ID: From: mdf@FreeBSD.org To: freebsd-arch@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: RFC: replace vm_offset_t with uintptr_t and vm_size_t with size_t X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2010 19:20:58 -0000 Looking over the arch-specific definitions, using uintptr_t and size_t would not affect the actual width of these sizes. However, it would simplify e.g. conformant printf(9) statements, since there is an approved specifier for size_t and, while there isn't one for uintptr_t, ptrdiff_t is pretty close (Bruce, is there a better specifier)? Admittedly, this isn't the simplest of undertakings, as there are 590 instances of vm_size_t in the FreeBSD source code and 3887 of vm_offset_t. Has this proposal made the rounds before and been shot down for some reason? Thanks, matthew