From owner-freebsd-bugs Mon Mar 19 17:50:22 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CB7BC37B722 for ; Mon, 19 Mar 2001 17:50:13 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2K1o2845934; Mon, 19 Mar 2001 17:50:02 -0800 (PST) (envelope-from gnats) Date: Mon, 19 Mar 2001 17:50:02 -0800 (PST) Message-Id: <200103200150.f2K1o2845934@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: kern/25923: vm_map.h defines a macro called "min_offset" that creates problems with similarly-named variables Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/25923; it has been noted by GNATS. From: Bruce Evans To: jimz@panasas.com Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: kern/25923: vm_map.h defines a macro called "min_offset" that creates problems with similarly-named variables Date: Tue, 20 Mar 2001 12:47:44 +1100 (EST) On Mon, 19 Mar 2001 jimz@panasas.com wrote: > >How-To-Repeat: > Include vm_map.h in a file using a local variable named min_offset > > >Fix: > "A whole lot of query-replace" :-) I think the fix is "Don't include vm_map.h in a file using a local variable named min_offset". There are are thousands of other instances of undocumented namespace pollution in FreeBSD headers. min_offset is one of the least important since it is in a "kernel-only" header. (vm_map.h is not quite kernel-only, but probably should be. It is needed only in programs like top and fstat that know too much about kernel internals.) Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message