From owner-cvs-all Wed May 29 13:39: 5 2002 Delivered-To: cvs-all@freebsd.org Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by hub.freebsd.org (Postfix) with ESMTP id 9E41537B407; Wed, 29 May 2002 13:38:53 -0700 (PDT) Received: (from marcel@localhost) by kayak.xcllnt.net (8.11.6/8.11.4) id g4TKckY65304; Wed, 29 May 2002 13:38:46 -0700 (PDT) (envelope-from marcel) Date: Wed, 29 May 2002 13:38:46 -0700 From: Marcel Moolenaar To: Garrett Wollman Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys gpt.h Message-ID: <20020529133846.E64995@kayak.xcllnt.net> References: <200205290258.g4T2wgF83137@freefall.freebsd.org> <9551.1022648961@critter.freebsd.dk> <20020529053653.GA306@dhcp01.pn.xcllnt.net> <20020529173621.B11817@chiark.greenend.org.uk> <20020529131927.C64995@kayak.xcllnt.net> <200205292027.g4TKRfnv031668@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200205292027.g4TKRfnv031668@khavrinen.lcs.mit.edu> User-Agent: Mutt/1.3.22.1i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, May 29, 2002 at 04:27:41PM -0400, Garrett Wollman wrote: > < said: > > > what's the size of struct X { int64_t a; int32_t b; }; > > > There's no value in an answer that starts of with "It depends...". > > The size should always be 12 bytes, independent of any alignment > > requirements I may attach to it. > > The C programming language does not work that way, and has never > worked that way. I thought it was designed to be portable. It looks to me that not being able to depend on such fundamental properties annihilate the goal of portability. Even a char does not have to be 8 bits anymore then... I mean: sizeof(char x[20]) may then very well yield 21... *sigh* Ah, well... No point getting all "Don Quixote" about this... -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message