sys/zone.h exposes more than it should
User-level programs that include sys/zone.h (i.e. to get GLOBAL_ZONEID for comparing with the return from getzoneid()) also end up getting a bunch of headers that are neither necessary nor appropriate for a user-level program. This leads to things like the #undef lines added to usr/src/cmd/lp/include/printers.h in #11048
Let's try to clean up symbol exposure from sys/zone.h
This has the potential to break things, of course, so the work will require first attempting to move all the includes that are not appropriate for user-level code down into the ifdef KERNEL section, getting the whole gate to build, and then double-checking some external software (at least any that uses sys/zone.h).
Updated by Electric Monk 5 months ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit b3b3563308068a7fafd98cf3021c73aedc1caa6c Author: Gordon Ross <firstname.lastname@example.org> Date: 2019-05-29T22:15:45.000Z 11060 sys/zone.h exposes more than it should Reviewed by: Andrew Stormont <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Reviewed by: Jerry Jelinek <email@example.com> Reviewed by: Michal Nowak <firstname.lastname@example.org> Approved by: Richard Lowe <email@example.com>