Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Apr 2002 17:02:22 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Jake Burkholder <jake@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   RE: cvs commit: src/sys/sys systm.h src/sys/sparc64/include para
Message-ID:  <XFMail.20020401170222.jhb@FreeBSD.org>
In-Reply-To: <200204012155.g31Lt0M60308@freefall.freebsd.org>

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

On 01-Apr-2002 Jake Burkholder wrote:
> jake        2002/04/01 13:55:00 PST
> 
>   Modified files:
>     sys/sys              systm.h 
>     sys/sparc64/include  param.h 
>   Log:
>   Move the CTASSERT macro from MD code to systm.h alongside KASSERT so other
>   code can use it.  This takes a single constant argument and fails to
> compile
>   if it is 0 (false).  The main application of this is to make assertions
> about
>   structure sizes at compile time, in order to validate assumptions made in
>   other code.  Examples:
>   
>   CTASSERT(sizeof(struct foo) == FOO_SIZEOF);
>   CTASSERT(sizeof(struct foo) == (1 << FOO_SHIFT));
>   
>   Requested by:   jhb, phk

Can you use this to fix the kinfo_proc thing instead of the 20 seconds of
messages during bootup? ;)  Thanks, btw.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"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.20020401170222.jhb>