Date: Thu, 8 Jan 2004 14:24:02 -0800 From: Marcel Moolenaar <marcel@xcllnt.net> To: Dag-Erling Sm?rgrav <des@des.no> Cc: alpha@freebsd.org Subject: Re: structure padding Message-ID: <20040108222402.GA71100@ns1.xcllnt.net> In-Reply-To: <xzpoete42r1.fsf@dwp.des.no> References: <xzpoete42r1.fsf@dwp.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040108222402.GA71100>