git: <sys/kinfo.h>: Fix legacy inclusion issues.

Rimvydas Jasinskas zrj at
Thu Nov 14 05:41:44 PST 2019

commit 5569e488716484c93e853d8f44cd2d9bd7b387ce
Author: zrj <rimvydas.jasinskas at>
Date:   Tue Nov 12 14:43:30 2019 +0200

    <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

Summary of changes:
 sys/sys/kinfo.h                                    | 37 ++++++++++++----------
 sys/sys/proc.h                                     | 15 +--------
 .../CRYPTO_malloc.c => sys/sys/proc_common.h       | 25 +++++++++------
 usr.bin/netstat/route.c                            |  3 +-
 4 files changed, 39 insertions(+), 41 deletions(-)
 copy lib/librecrypto/CRYPTO_malloc.c => sys/sys/proc_common.h (85%)

DragonFly BSD source repository

More information about the Commits mailing list