<sys/types.h>: Reduce vm_* types pollution in userland.
commit034f8e5c233d21a5b7f8b8c37770532813d3d8ed
authorzrj <rimvydas.jasinskas@gmail.com>
Mon, 11 Nov 2019 17:40:49 +0000 (11 19:40 +0200)
committerzrj <rimvydas.jasinskas@gmail.com>
Thu, 14 Nov 2019 14:02:41 +0000 (14 16:02 +0200)
treea67e4f9b3a6d3d2a2a5c627593a4cdab750f33a4
parenta0d4296c38317c64c6fc672c5c7012058c025295
<sys/types.h>: Reduce vm_* types pollution in userland.

 Userland should not be using these types outside kernel structures or
 <vm/*.h> scope.  Adjust several userland and boot code sources to
 include <machine/types.h> where they use them (mainly for vm_offset_t).
 * sys/fbio.h: Used in several world utilities and libvgl.
 * sys/kinfo.h: Use size_t for kp_vm_map_size (header used in userland).
 * sys/emulation/ndis/pe_var.h: Used in ndiscvt(8).
 * bus/firewire/fwcrom.c: Compiled directly in fwcontrol(8).
 * mptable(1): include <machine/types.h>, should really not be using
   vm_offset_t and looks to be suspiciously broken.
 * sys/boot: For now include <machine/types.h> for vm_offset_t in
   several headers, should really not be using vm types.

 Rest of world utilities get vm types through <sys/user.h>.

 While there, move pthread type inclusion to the very end of the source,
 doing so improves readability of compiler intermediates a lot.

 Strictly visibility changes only.
sys/boot/common/bootstrap.h
sys/boot/efi/loader/loader_efi.h
sys/boot/pc32/btx/lib/btxv86.h
sys/boot/pc32/libi386/libi386.h
sys/bus/firewire/fwcrom.c
sys/emulation/ndis/pe_var.h
sys/sys/fbio.h
sys/sys/kinfo.h
sys/sys/types.h
usr.sbin/mptable/mptable.c