Date: Mon, 19 Mar 2001 17:50:02 -0800 (PST) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/25923: vm_map.h defines a macro called "min_offset" that creates problems with similarly-named variables Message-ID: <200103200150.f2K1o2845934@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/25923; it has been noted by GNATS. From: Bruce Evans <bde@zeta.org.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103200150.f2K1o2845934>