From owner-freebsd-current Wed Feb 28 6:40:44 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 84DCB37B718 for ; Wed, 28 Feb 2001 06:40:42 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id BAA26462; Thu, 1 Mar 2001 01:40:32 +1100 Date: Thu, 1 Mar 2001 01:40:25 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: igorr@crosswinds.net Cc: freebsd-current@FreeBSD.ORG Subject: Re: Correct size of kinfo_proc In-Reply-To: <20010228161009.B14235@linux.rainbow> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 28 Feb 2001, Igor Robul wrote: > On Wed, Feb 28, 2001 at 03:00:48PM +0200, Maxim Sobolev wrote: > > Hi Poul, > > > > In revision 1.31 of src/sys/sys/user.h you have added new ki_layout field to > > kinfo_proc structure, but forgot to increase KINFO_PROC_SIZE from 644 to 648. > > Please correct. > Why don't use sizeof() insead of hardcoding numbers? because we don't want the size of the struct. We want the size that the should have. It must be a constant for binary compatibility. This is a small part of binary compatibility, but good enough to inhibit adding new fields in the middle. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message