From owner-freebsd-arch Wed Feb 7 15: 4: 7 2001 Delivered-To: freebsd-arch@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id A8A4237B6C4; Wed, 7 Feb 2001 15:03:46 -0800 (PST) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f17N3cx18927; Wed, 7 Feb 2001 15:03:38 -0800 (PST) (envelope-from jhb@foo.osd.bsdi.com) Received: (from jhb@localhost) by foo.osd.bsdi.com (8.11.1/8.11.1) id f17N3FU14366; Wed, 7 Feb 2001 15:03:15 -0800 (PST) (envelope-from jhb) 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: <2711.981570785@critter> Date: Wed, 07 Feb 2001 15:03:15 -0800 (PST) Organization: BSD, Inc. From: John Baldwin To: Poul-Henning Kamp Subject: Re: xucred introduction Cc: arch@FreeBSD.ORG, "Brian F. Feldman" Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 07-Feb-01 Poul-Henning Kamp wrote: > In message <200102071828.f17ISLr17637@green.dyndns.org>, "Brian F. Feldman" > wri > tes: > >>The only question is whether or not to add some spare fields to >>xucred now in case we /do/ want to expand it in the future, and also whether >>it's appropriate to make some of the field type changes (for example, >>sockaddr length type -> u_char, since that _IS_ what is defined by the >>sockaddr interface). > > Have you already put a version number in it ? Otherwise please > do so. That is the best way to ensure that we don't get too many > problems in the future. > > I think in general all structures shared between the kernel and userland > should be equipped with a version number as the first element. As a sidebar, for anyone looking for something to do: kinfo_proc needs a version number as well. If you change the size of something in the middle of the structure, things like ps(1) and top(1) won't notice a problem but will just misparse the structure. :( -- 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 freebsd-arch" in the body of the message