From owner-freebsd-arch Mon Nov 11 0:16:47 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5673037B401 for ; Mon, 11 Nov 2002 00:16:46 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7857D43E7B for ; Mon, 11 Nov 2002 00:16:45 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id gAB8GJOr050081; Mon, 11 Nov 2002 09:16:19 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Kirk McKusick Cc: arch@FreeBSD.ORG, bostic@sleepycat.com (Keith Bostic) Subject: Re: Shared-memory version of macros In-Reply-To: Your message of "Sun, 10 Nov 2002 09:32:35 PST." <200211101732.gAAHWZ59035339@beastie.mckusick.com> Date: Mon, 11 Nov 2002 09:16:19 +0100 Message-ID: <50080.1037002579@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200211101732.gAAHWZ59035339@beastie.mckusick.com>, Kirk McKusick wr ites: >I am proposing to add a new version of the macros that >are designed to work in shared memory. Sounds useful. There is one thing about sys/queue I don't like: #define SLIST_HEAD(name, type) \ struct name { \ struct type *slh_first; /* first element */ \ } In fact I positively hate this because a grep for "struct[ \t]*foobar" fails to trigger on SLIST_HEAD(foobarhead, foobar); I would really like to see that fixed. As for various standards groups standarizing this or not, I would say that it doesn't surprise me that they don't: It would be useful if they did. By not standardizing it, they make sure that we have a mix of autoconf crap and incompatible rotting versions all over the place, something which is sure to generate more need for standardization work. :-( -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message