From owner-freebsd-alpha@FreeBSD.ORG Thu Jan 8 14:24:05 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E197516A4CE for ; Thu, 8 Jan 2004 14:24:05 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id C40C443D31 for ; Thu, 8 Jan 2004 14:24:04 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (localhost [127.0.0.1]) by ns1.xcllnt.net (8.12.10/8.12.10) with ESMTP id i08MO2OE071127; Thu, 8 Jan 2004 14:24:02 -0800 (PST) (envelope-from marcel@ns1.xcllnt.net) Received: (from marcel@localhost) by ns1.xcllnt.net (8.12.10/8.12.10/Submit) id i08MO2DO071126; Thu, 8 Jan 2004 14:24:02 -0800 (PST) (envelope-from marcel) Date: Thu, 8 Jan 2004 14:24:02 -0800 From: Marcel Moolenaar To: Dag-Erling Sm?rgrav Message-ID: <20040108222402.GA71100@ns1.xcllnt.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1i cc: alpha@freebsd.org Subject: Re: structure padding X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 22:24:06 -0000 On Thu, Jan 08, 2004 at 09:14:10PM +0100, Dag-Erling Sm?rgrav wrote: > > However, a pid_t is an int, and sizeof int != sizeof long on Alpha. > I'm not sure what will happen: will alignment rules cause gcc to add > four bytes of padding before e_spare, conserving the size of struct > kinfo_proc, or will struct kinfo_proc shrink by four bytes? Padding will happen. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net