From owner-cvs-all Tue Feb 20 2:48:31 2001 Delivered-To: cvs-all@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id F3D0E37B4EC; Tue, 20 Feb 2001 02:48:26 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f1KAkll04956; Tue, 20 Feb 2001 02:46:48 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 20 Feb 2001 02:48:11 -0800 (PST) From: John Baldwin To: Bruce Evans Subject: Re: cvs commit: src/sys/sys user.h Cc: Poul-Henning Kamp , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, "Pierre Y. Dampure" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 -- 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