cvs commit: src/sys/i386/include globaldata.h src/sys/net if_arp.h src/sys/sys errno.h file.h ipc.h mount.h msg.h proc.h sem.h shm.h src/sys/vfs/msdosfs msdosfsmount.h src/sys/vfs/ufs inode.h src/sys/vfs/union union.h

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Aug 26 19:03:44 PDT 2003


dillon      2003/08/26 19:03:23 PDT

  Modified files:
    sys/i386/include     globaldata.h 
    sys/net              if_arp.h 
    sys/sys              errno.h file.h ipc.h mount.h msg.h proc.h 
                         sem.h shm.h 
    sys/vfs/msdosfs      msdosfsmount.h 
    sys/vfs/ufs          inode.h 
    sys/vfs/union        union.h 
  Log:
  A significant number of applications need access to kernel data
  structures.  Traditionally they have done a #define _KERNEL and
  then #include'd the files.  Unfortunately this can create huge
  conflicts between libc declarations and kernel declarations.  Also,
  every time we create a new dependancy between kernel includes we might
  windup causing another unexpected header file to be included into such
  a user program, causing its build to fail due to a conflict.
  
  This commit introduces _KERNEL_STRUCTURES.  A user program which needs
  access to kernel data structures sets this instead of _KERNEL.  This
  define will cause the kernel data structure but not the inlines or
  extern's to be brought in.
  
  Only those header files which directly impact buildworld have been
  modified so far, but the intent is for all significant kernel header files
  to use this feature.
  
  Revision  Changes    Path
  1.20      +8 -1      src/sys/i386/include/globaldata.h
  1.3       +6 -2      src/sys/net/if_arp.h
  1.5       +1 -1      src/sys/sys/errno.h
  1.5       +8 -2      src/sys/sys/file.h
  1.4       +7 -1      src/sys/sys/ipc.h
  1.7       +22 -3     src/sys/sys/mount.h
  1.4       +4 -1      src/sys/sys/msg.h
  1.30      +2 -0      src/sys/sys/proc.h
  1.4       +8 -3      src/sys/sys/sem.h
  1.5       +7 -1      src/sys/sys/shm.h
  1.4       +8 -2      src/sys/vfs/msdosfs/msdosfsmount.h
  1.4       +3 -2      src/sys/vfs/ufs/inode.h
  1.5       +18 -10    src/sys/vfs/union/union.h






More information about the Commits mailing list