From owner-cvs-all Mon Apr 1 14: 2:36 2002 Delivered-To: cvs-all@freebsd.org Received: from mail12.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 2529D37B41A for ; Mon, 1 Apr 2002 14:02:21 -0800 (PST) Received: (qmail 18561 invoked from network); 1 Apr 2002 22:02:20 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 1 Apr 2002 22:02:20 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g31M37v15957; Mon, 1 Apr 2002 17:03:07 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200204012155.g31Lt0M60308@freefall.freebsd.org> Date: Mon, 01 Apr 2002 17:02:22 -0500 (EST) From: John Baldwin To: Jake Burkholder Subject: RE: cvs commit: src/sys/sys systm.h src/sys/sparc64/include para Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 <>< 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