Date: Wed, 07 Feb 2001 15:03:15 -0800 (PST) From: John Baldwin <jhb@FreeBSD.ORG> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: arch@FreeBSD.ORG, "Brian F. Feldman" <green@FreeBSD.ORG> Subject: Re: xucred introduction Message-ID: <XFMail.010207150315.jhb@FreeBSD.org> In-Reply-To: <2711.981570785@critter>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <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 freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010207150315.jhb>