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

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Thu Nov 14 05:41:44 PST 2019


commit 5569e488716484c93e853d8f44cd2d9bd7b387ce
Author: zrj <rimvydas.jasinskas at gmail.com>
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
     5dfd06ac148512faf075c4e399e8485fd955578f

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%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5569e488716484c93e853d8f44cd2d9bd7b387ce


-- 
DragonFly BSD source repository



More information about the Commits mailing list