I'm growing tired of having to add #include lines for header files that
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 20 May 2006 02:42:15 +0000 (02:42 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 20 May 2006 02:42:15 +0000 (02:42 +0000)
commit1bd40720808d2f178f59c2f4916f3cbc730a967c
tree185eed3a1bb85dcaad33920e235553f57e5dbad2
parentdd55d70747a2fb8e8781f200d63adc1f31c8af4a
I'm growing tired of having to add #include lines for header files that
the include file(s) I really want depend on.

Go through nearly all major system include files and add appropriately
#ifndef'd #include lines to include all dependant header files.  Kernel
source files now only need to #include the header files they directly
depend on.

So, for example, if I wanted to add a SYSCTL to a kernel source file,
I would only have to #include <sys/sysctl.h> to bring in the support for
it, rather then four or five header files in addition to <sys/sysctl.h>.
311 files changed:
sys/cpu/i386/include/asmacros.h
sys/cpu/i386/include/atomic.h
sys/cpu/i386/include/bus_dma.h
sys/cpu/i386/include/cpu.h
sys/cpu/i386/include/cpufunc.h
sys/cpu/i386/include/npx.h
sys/cpu/i386/include/perfmon.h
sys/cpu/i386/include/pmap.h
sys/cpu/i386/include/profile.h
sys/cpu/i386/include/reg.h
sys/cpu/i386/include/segments.h
sys/cpu/i386/include/sigframe.h
sys/cpu/i386/include/signal.h
sys/cpu/i386/include/specialreg.h
sys/cpu/i386/include/tls.h
sys/cpu/i386/include/tss.h
sys/cpu/i386/include/types.h
sys/cpu/i386/include/vm86.h
sys/ddb/db_access.h
sys/ddb/db_break.h
sys/ddb/db_command.h
sys/ddb/db_lex.h
sys/ddb/db_sym.h
sys/ddb/db_variables.h
sys/ddb/db_watch.h
sys/ddb/ddb.h
sys/dev/disk/ncv/dvcfg.h
sys/emulation/svr4/svr4_ioctl.c
sys/i386/include/acpica_machdep.h
sys/i386/include/apm_bios.h
sys/i386/include/asmacros.h
sys/i386/include/atomic.h
sys/i386/include/bootinfo.h
sys/i386/include/bus_dma.h
sys/i386/include/clock.h
sys/i386/include/cpu.h
sys/i386/include/cpufunc.h
sys/i386/include/dvcfg.h
sys/i386/include/iic.h
sys/i386/include/ioctl_fd.h
sys/i386/include/md_var.h
sys/i386/include/nexusvar.h
sys/i386/include/npx.h
sys/i386/include/pcb_ext.h
sys/i386/include/pci_cfgreg.h
sys/i386/include/perfmon.h
sys/i386/include/pmap.h
sys/i386/include/pmap_inval.h
sys/i386/include/profile.h
sys/i386/include/ptrace.h
sys/i386/include/reg.h
sys/i386/include/segments.h
sys/i386/include/sigframe.h
sys/i386/include/signal.h
sys/i386/include/smb.h
sys/i386/include/specialreg.h
sys/i386/include/thread.h
sys/i386/include/tls.h
sys/i386/include/tss.h
sys/i386/include/types.h
sys/i386/include/uc_device.h
sys/i386/include/vm86.h
sys/i386/include/vmparam.h
sys/net/altq/if_altq.h
sys/net/bpf.h
sys/net/ethernet.h
sys/net/hostcache.h
sys/net/if.h
sys/net/if_arc.h
sys/net/if_arp.h
sys/net/if_atm.h
sys/net/if_dl.h
sys/net/if_llc.h
sys/net/if_media.h
sys/net/if_mib.h
sys/net/if_var.h
sys/net/ifq_var.h
sys/net/intrq.h
sys/net/iso88025.h
sys/net/net_osdep.h
sys/net/netmsg.h
sys/net/pfil.h
sys/net/pfkeyv2.h
sys/net/radix.h
sys/net/raw_cb.h
sys/net/route.h
sys/net/slcompress.h
sys/net/zlib.h
sys/netgraph/netgraph.h
sys/netgraph/ng_message.h
sys/netgraph/ng_parse.h
sys/netgraph/ng_sample.h
sys/netinet/icmp6.h
sys/netinet/icmp_var.h
sys/netinet/if_atm.h
sys/netinet/if_ether.h
sys/netinet/if_fddi.h
sys/netinet/igmp.h
sys/netinet/igmp_var.h
sys/netinet/in_gif.h
sys/netinet/in_hostcache.h
sys/netinet/in_pcb.h
sys/netinet/in_systm.h
sys/netinet/in_var.h
sys/netinet/ip.h
sys/netinet/ip6.h
sys/netinet/ip_ecn.h
sys/netinet/ip_encap.h
sys/netinet/ip_flow.h
sys/netinet/ip_gre.h
sys/netinet/ip_icmp.h
sys/netinet/ip_var.h
sys/netinet/pim.h
sys/netinet/pim_var.h
sys/netinet/sctp.h
sys/netinet/sctp_asconf.h
sys/netinet/sctp_callout.h
sys/netinet/sctp_constants.h
sys/netinet/sctp_crc32.h
sys/netinet/sctp_hashdriver.h
sys/netinet/sctp_header.h
sys/netinet/sctp_indata.h
sys/netinet/sctp_input.h
sys/netinet/sctp_output.h
sys/netinet/sctp_pcb.h
sys/netinet/sctp_peeloff.h
sys/netinet/sctp_sha1.h
sys/netinet/sctp_structs.h
sys/netinet/sctp_timer.h
sys/netinet/sctp_uio.h
sys/netinet/sctputil.h
sys/netinet/tcp.h
sys/netinet/tcp_debug.h
sys/netinet/tcp_seq.h
sys/netinet/tcp_var.h
sys/netinet/tcpip.h
sys/netinet/udp.h
sys/netinet/udp_var.h
sys/netinet6/ah.h
sys/netinet6/ah6.h
sys/netinet6/esp.h
sys/netinet6/esp6.h
sys/netinet6/esp_rijndael.h
sys/netinet6/in6.h
sys/netinet6/in6_gif.h
sys/netinet6/in6_ifattach.h
sys/netinet6/in6_pcb.h
sys/netinet6/in6_prefix.h
sys/netinet6/in6_var.h
sys/netinet6/ip6_ecn.h
sys/netinet6/ip6_mroute.h
sys/netinet6/ip6_var.h
sys/netinet6/ip6protosw.h
sys/netinet6/ipcomp.h
sys/netinet6/ipcomp6.h
sys/netinet6/ipsec6.h
sys/netinet6/mld6_var.h
sys/netinet6/nd6.h
sys/netinet6/pim6.h
sys/netinet6/pim6_var.h
sys/netinet6/raw_ip6.h
sys/netinet6/scope6_var.h
sys/netinet6/sctp6_var.h
sys/netinet6/tcp6_var.h
sys/netinet6/udp6_var.h
sys/netproto/key/keydb.h
sys/platform/pc32/include/acpica_machdep.h
sys/platform/pc32/include/apm_bios.h
sys/platform/pc32/include/bootinfo.h
sys/platform/pc32/include/clock.h
sys/platform/pc32/include/dvcfg.h
sys/platform/pc32/include/iic.h
sys/platform/pc32/include/ioctl_fd.h
sys/platform/pc32/include/md_var.h
sys/platform/pc32/include/nexusvar.h
sys/platform/pc32/include/pcb_ext.h
sys/platform/pc32/include/pci_cfgreg.h
sys/platform/pc32/include/pmap_inval.h
sys/platform/pc32/include/ptrace.h
sys/platform/pc32/include/smb.h
sys/platform/pc32/include/thread.h
sys/platform/pc32/include/uc_device.h
sys/platform/pc32/include/vmparam.h
sys/sys/acct.h
sys/sys/acl.h
sys/sys/agpio.h
sys/sys/aio.h
sys/sys/ata.h
sys/sys/bio.h
sys/sys/blist.h
sys/sys/buf2.h
sys/sys/bus.h
sys/sys/camlib.h
sys/sys/caps.h
sys/sys/ccdvar.h
sys/sys/cdio.h
sys/sys/cdrio.h
sys/sys/checkpoint.h
sys/sys/chio.h
sys/sys/ckpt.h
sys/sys/clist.h
sys/sys/cons.h
sys/sys/consio.h
sys/sys/device.h
sys/sys/disklabel.h
sys/sys/disklabel32.h
sys/sys/diskmbr.h
sys/sys/diskslice.h
sys/sys/dkstat.h
sys/sys/dmap.h
sys/sys/dvdio.h
sys/sys/elf32.h
sys/sys/elf64.h
sys/sys/elf_common.h
sys/sys/elf_generic.h
sys/sys/endian.h
sys/sys/eui64.h
sys/sys/event.h
sys/sys/eventvar.h
sys/sys/fbio.h
sys/sys/fcntl.h
sys/sys/file.h
sys/sys/file2.h
sys/sys/filedesc.h
sys/sys/firmware.h
sys/sys/fnv_hash.h
sys/sys/iconv.h
sys/sys/ieee754.h
sys/sys/imgact_aout.h
sys/sys/in_cksum.h
sys/sys/inflate.h
sys/sys/ipc.h
sys/sys/jail.h
sys/sys/journal.h
sys/sys/kbio.h
sys/sys/kcore.h
sys/sys/kernel.h
sys/sys/kinfo.h
sys/sys/kobj.h
sys/sys/kthread.h
sys/sys/ktr.h
sys/sys/ktrace.h
sys/sys/linker.h
sys/sys/lockf.h
sys/sys/mapped_ioctl.h
sys/sys/mbuf.h
sys/sys/mchain.h
sys/sys/md4.h
sys/sys/md5.h
sys/sys/memrange.h
sys/sys/module.h
sys/sys/mountctl.h
sys/sys/msgbuf.h
sys/sys/mtio.h
sys/sys/namecache.h
sys/sys/objcache.h
sys/sys/odisklabel.h
sys/sys/pciio.h
sys/sys/pioctl.h
sys/sys/pipe.h
sys/sys/power.h
sys/sys/protosw.h
sys/sys/ptrace.h
sys/sys/random.h
sys/sys/resident.h
sys/sys/resource.h
sys/sys/resourcevar.h
sys/sys/rman.h
sys/sys/rtprio.h
sys/sys/sbuf.h
sys/sys/sfbuf.h
sys/sys/soundcard.h
sys/sys/stat.h
sys/sys/sysctl.h
sys/sys/sysent.h
sys/sys/sysmsg.h
sys/sys/systimer.h
sys/sys/thread.h
sys/sys/timeb.h
sys/sys/timepps.h
sys/sys/timex.h
sys/sys/tprintf.h
sys/sys/ucontext.h
sys/sys/ucred.h
sys/sys/uio.h
sys/sys/un.h
sys/sys/upcall.h
sys/sys/usched.h
sys/sys/user.h
sys/sys/utsname.h
sys/sys/vfscache.h
sys/sys/vmmeter.h
sys/sys/wait.h
sys/sys/wormio.h
sys/sys/xio.h
sys/sys/xrpuio.h
sys/sys/xwait.h
sys/vm/pmap.h
sys/vm/swap_pager.h
sys/vm/vm.h
sys/vm/vm_extern.h
sys/vm/vm_kern.h
sys/vm/vm_map.h
sys/vm/vm_object.h
sys/vm/vm_page.h
sys/vm/vm_page2.h
sys/vm/vm_pageout.h
sys/vm/vm_pager.h
sys/vm/vm_param.h
sys/vm/vm_zone.h
sys/vm/vnode_pager.h