Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2001 21:23:08 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        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.010220212308.jhb@FreeBSD.org>
In-Reply-To: <95465.982704647@critter>

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

On 20-Feb-01 Poul-Henning Kamp wrote:
> 
>>> 
>>> Hmm... I think you added this field without updating KINFO_PROC_SIZE --
>>> we now get warnings at boot time about the size of kinfo_proc differing
>>> from KINFO_PROC_SIZE.
>>
>>That needs to die.  I think a scheme like the following will work:
> 
> <humour>
> I'm starting to lean towards plan-9 again...
> </humour>
> 
> I think that a simple version number will be sufficient and that a sizeof
> will be convenient.  I don't think the sizeof should be a #define like
> now, but rather an actual sizeof().

Fair enough.  The min/max version stuff would just be a way of allowing older
utils to work with newer kernels when teh changes weren't incomapatible, but
it was just a suggestion.  I also favor axeing hte spare fields and using a
real sizeof() as well.

> The current #define SIZEOF is unlikely to work on Bruce's i386/64bit-long
> kernel for instance.

True.

> if we want to go _way out_ we define the structures with XDR.

Eek!

-- 

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.010220212308.jhb>