[Bug 196622] vm_map.h defines "min_offset" and "max_offset" which causes namespace pollution.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jan 12 17:48:56 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196622
Bug ID: 196622
Summary: vm_map.h defines "min_offset" and "max_offset" which
causes namespace pollution.
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: tjj5036 at gmail.com
In vm_map.h, there is a struct called vm_map that has two members named
min_offset and max_offset respectively. There are macros that define these two
to header.start and header.end respectively. Unfortunately, if you include
vm_map.h anywhere, it causes issues with anything also declared to be min_/max_
offset. ZFS actually undefines them. This fix would remove the defines, making
it so you can include the header safely without fear of unexpected bugs.
Environment:
FreeBSD 11.0-CURRENT
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list