Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Mar 2001 01:40:25 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        igorr@crosswinds.net
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: Correct size of kinfo_proc
Message-ID:  <Pine.BSF.4.21.0103010138280.3670-100000@besplex.bde.org>
In-Reply-To: <20010228161009.B14235@linux.rainbow>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103010138280.3670-100000>