| Summary: | vm_map.h defines a macro called "min_offset" that creates problems with similarly-named variables | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Jim Zelenka <jimz> |
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.1.1-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Jim Zelenka
2001-03-19 16:10:00 UTC
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 State Changed
From-To: open->feedback
Is Bruce's suggestion ("Don't include vm_map.h in a file using a
local variable named min_offset") acceptible to you?
State Changed From-To: feedback->closed Feedback timeout. |