<sys/kinfo.h>: Fix legacy inclusion issues.
commit5569e488716484c93e853d8f44cd2d9bd7b387ce
authorzrj <rimvydas.jasinskas@gmail.com>
Tue, 12 Nov 2019 12:43:30 +0000 (12 14:43 +0200)
committerzrj <rimvydas.jasinskas@gmail.com>
Thu, 14 Nov 2019 14:02:52 +0000 (14 16:02 +0200)
tree3dc748dce377816c7e1af514da6547870fa3f6f0
parent6db8e0304820c7b0801505ff937540a5dd105e47
<sys/kinfo.h>: Fix legacy inclusion issues.

 Sadly this header was not being included properly for a long time.
 Make it publicly accessible and put a big NOTE how to do it properly for
 future codes.  This makes the <sys/user.h> the only other header that
 defines _KERNEL_STRUCTURES to solve long term inclusion order issues.
 Previous variant was hiding implicit dependencies, adjust netstat(1).

 Any changes in this header breaks a lot of ports, try not to change any
 of the structs.  Also make sure KERN_SIGTRAMP has public visibility.

 While there remove two defines that were not used since introduced in
 5dfd06ac148512faf075c4e399e8485fd955578f
sys/sys/kinfo.h
sys/sys/proc.h
sys/sys/proc_common.h [new file with mode: 0644]
usr.bin/netstat/route.c