Date: Thu, 08 Jan 2004 23:03:14 +0100 From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) To: John Baldwin <jhb@FreeBSD.org> Cc: alpha@freebsd.org Subject: Re: structure padding Message-ID: <xzpk7422j4t.fsf@dwp.des.no> In-Reply-To: <200401081645.24241.jhb@FreeBSD.org> (John Baldwin's message of "Thu, 8 Jan 2004 16:45:23 -0500") References: <xzpoete42r1.fsf@dwp.des.no> <200401081542.49500.jhb@FreeBSD.org> <xzpoete2kr7.fsf@dwp.des.no> <200401081645.24241.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin <jhb@FreeBSD.org> writes: > Actually, why not just use a long for the e_sid instead of pid_t? I got off my fat lazy butt and wrote the following: #include <stdio.h> struct foo { int a; long b; }; struct bar { long a[2]; }; int main(void) { printf("%lu, %lu\n", sizeof(struct foo), sizeof(struct bar)); return (0); } On Alpha (-CURRENT, though, not -STABLE) it prints 16 for both structures, so it looks like I don't need any hack at all. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpk7422j4t.fsf>