From owner-freebsd-alpha@FreeBSD.ORG Thu Jan 8 13:28:22 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 999DF16A4CE; Thu, 8 Jan 2004 13:28:22 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 361C443D60; Thu, 8 Jan 2004 13:28:20 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 71C9B530C; Thu, 8 Jan 2004 22:28:19 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 9168F5308; Thu, 8 Jan 2004 22:28:12 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 20B8F33C9A; Thu, 8 Jan 2004 22:28:12 +0100 (CET) To: John Baldwin References: <200401081542.49500.jhb@FreeBSD.org> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Thu, 08 Jan 2004 22:28:12 +0100 In-Reply-To: <200401081542.49500.jhb@FreeBSD.org> (John Baldwin's message of "Thu, 8 Jan 2004 15:42:49 -0500") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.1 required=5.0 tests=RCVD_IN_SORBS autolearn=no version=2.60 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 21:28:22 -0000 John Baldwin writes: > Maybe: > > struct eproc { > union { > pid_t e_sid; > long e_oldspare; > } > long e_spare[1]; > > (I think gcc supports anonymous unions like that.) I thought about that, but it's butt-ugly... Does anyone have an Alpha running 4.x that I could test this on? > In 6.0 you could remove the union hack and change the ABI, assuming that = you=20 > want to put this in 5.x as well. 5.x has a completely different struct kinfo_proc which already contains the session id. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no