Do some fairly major include file cleanups to further separate kernelland
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 21 Nov 2003 22:46:15 +0000 (22:46 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 21 Nov 2003 22:46:15 +0000 (22:46 +0000)
commit052206136f5f7e5905f77007870975ddf8ab2572
tree198435a138e05cc284cd939510ef84016dacd71a
parent7a2b92371ae5858e97c740602beb699813a755a8
Do some fairly major include file cleanups to further separate kernelland
from userland.

    * Do not allow userland to include sys/proc.h directly, it must use
      sys/user.h instead.   This is because sys/proc.h has a huge number
      of kernel header file dependancies.

    * Do cleanups and work in lwkt_thread.c and lwkt_msgport.c to allow
      these files to be directly compiled in an upcoming userland thread
      support library.

    * sys/lock.h is inappropriately included by a number of third party
      programs so we can't disallow its inclusion, but do not include
      any kernel structures unless _KERNEL or _KERNEL_STRUCTURES are
      defined.

    * <ufs/ufs/inode.h> is often included by userland to get at the
      on-disk inode structure.  Only include the on-disk components and do
      not include kernel structural components unless _KERNEL or
      _KERNEL_STRUCTURES is defined

    * Various usr.bin programs include sys/proc.h unnecessarily.

    * The slab allocator has no concept of malloc buckets.  Remove malloc
      buckets structures and VMSTAT support from the system.

    * Make adjustments to sys/thread.h and sys/msgport.h such that the
      upcoming userland thread support library can include these files
      directly rather then copy them.

    * Use low level __int types in sys/globaldata.h, sys/msgport.h,
      sys/slaballoc.h, sys/thread.h, and sys/malloc.h, instead of
      high level sys/types.h types, reducing include dependancies.
34 files changed:
bin/ps/keyword.c
bin/ps/print.c
lib/libkvm/kvm_getloadavg.c
sbin/vinum/commands.c
sbin/vinum/list.c
sys/bus/cam/scsi/scsi_da.c
sys/bus/cam/scsi/scsi_sa.c
sys/dev/raid/vinum/vinumhdr.h
sys/kern/lwkt_msgport.c
sys/kern/lwkt_thread.c
sys/sys/globaldata.h
sys/sys/lock.h
sys/sys/malloc.h
sys/sys/msgport.h
sys/sys/proc.h
sys/sys/signalvar.h
sys/sys/slaballoc.h
sys/sys/thread.h
sys/sys/thread2.h
sys/sys/user.h
sys/vfs/ufs/inode.h
usr.bin/doscmd/doscmd.c
usr.bin/fstat/fstat.c
usr.bin/gcore/elfcore.c
usr.bin/gcore/gcore.c
usr.bin/gcore/md-sparc.c
usr.bin/ipcs/ipcs.c
usr.bin/ktrace/subr.c
usr.bin/systat/pigs.c
usr.bin/systat/vmstat.c
usr.bin/top/machine.c
usr.bin/vmstat/vmstat.c
usr.bin/w/proc_compare.c
usr.bin/w/w.c