From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 31 11:22:21 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 70E6316A400 for ; Wed, 31 Jan 2007 11:22:21 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 470CB13C441 for ; Wed, 31 Jan 2007 11:22:21 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 549714D127; Wed, 31 Jan 2007 05:52:04 -0500 (EST) Date: Wed, 31 Jan 2007 10:52:02 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= In-Reply-To: <86odofjyua.fsf@dwp.des.no> Message-ID: <20070131105024.L91177@fledge.watson.org> References: <45C04593.2090704@gmail.com> <20070131085206.GW892@turion.vk2pj.dyndns.org> <45C06167.60401@gmail.com> <86odofjyua.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-728634878-1170240722=:91177" Cc: hackers@freebsd.org, Pascal Hofstee Subject: Re: a question regarding X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2007 11:22:21 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-728634878-1170240722=:91177 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 31 Jan 2007, Dag-Erling Sm=F8rgrav wrote: > Pascal Hofstee writes: >> Any additional sugestions/objections are always greatly appreciated. > > On 32-bit platforms (i386, powerpc), int is a 32-bit signed integer while= =20 > size_t is a 32-bit unsigned integer. > > On 64-bit platforms (amd64, sparc64 etc), int is a 32-bit signed integer= =20 > while size_t is a 64-bit unsigned integer. > > In both cases, changing this structure member from int to size_t will bre= ak=20 > the ABI. > > This doesn't mean you shouldn't do it, just that it should be done with= =20 > care. If we do decide to go ahead with the ABI change, there are a number of othe= r=20 things that should be done simultaneously, such as changing the uid and gid= =20 fields to uid_t and gid_t. I would very much like to see the ABI change=20 happen, and the first step (breaking out kernel from user structures) has b= een=20 done already as part of the MAC work. The next step is to add routines tha= t=20 translate internal/external formats, which isn't hard, but requires a moder= ate=20 pile of code to do (as well as great care :-). Robert N M Watson Computer Laboratory University of Cambridge --0-728634878-1170240722=:91177--