Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2001 02:48:11 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Poul-Henning Kamp <phk@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, "Pierre Y. Dampure" <pierre.dampure@westmarsh.com>
Subject:   Re: cvs commit: src/sys/sys user.h
Message-ID:  <XFMail.010220024811.jhb@FreeBSD.org>
In-Reply-To: <Pine.BSF.4.21.0102202029580.19282-100000@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 20-Feb-01 Bruce Evans wrote:
> On Mon, 19 Feb 2001, John Baldwin wrote:
> 
>> about if needed.  The current kinfo_proc is now actually worse than before,
>> because if something changes in teh middle, then all the programs such as
>> ps(1), top(1) etc. just misparse the information instead of telling you that
>> proc chagned as they did in the past.  Of course, a better way of doing this
> 
> Things in the middle must not change.  They must be initialized with whatever
> the used to be, or with dummy values if that is harmless.  There would have
> been no problems if this rule were followed for the priority fields.  struct
> priority can't be used in struct rusage anyway, since it is a kernel struct.

Well, it gets more tricky.  I've been playing with bumping MAXCOMLEN to 19 (so
it uses a total of 20 rather than 17 chars, which is 32-bit aligned) which
results in expanding teh size of a structure in the middle of kinfo_proc, which
the current kinfo_proc scheme cannot handle.

> Bruce

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010220024811.jhb>