]> Zhao Yanbai Git Server - minix.git/commitdiff
Move shared headers in common/include
authorGianluca Guida <gianluca@minix3.org>
Sun, 6 Feb 2011 22:59:02 +0000 (22:59 +0000)
committerGianluca Guida <gianluca@minix3.org>
Sun, 6 Feb 2011 22:59:02 +0000 (22:59 +0000)
Headers that will be shared between old includes and NetBSD-like includes
are moved into common/include tree. They are still copied in /usr/include
in 'make includes', so compilation and programs aren't be affected.

71 files changed:
common/include/Makefile.inc [new file with mode: 0644]
common/include/Makefile.termios.inc [new file with mode: 0644]
common/include/arch/i386/Makefile.inc [new file with mode: 0644]
common/include/arch/i386/archtypes.h [moved from include/arch/i386/archtypes.h with 100% similarity]
common/include/arch/i386/bios.h [moved from include/arch/i386/bios.h with 100% similarity]
common/include/arch/i386/cmos.h [moved from include/arch/i386/cmos.h with 100% similarity]
common/include/arch/i386/cpu.h [moved from include/arch/i386/cpu.h with 100% similarity]
common/include/arch/i386/diskparm.h [moved from include/arch/i386/diskparm.h with 100% similarity]
common/include/arch/i386/elf.h [moved from include/arch/i386/elf.h with 100% similarity]
common/include/arch/i386/fpu.h [moved from include/arch/i386/fpu.h with 100% similarity]
common/include/arch/i386/int86.h [moved from include/arch/i386/int86.h with 100% similarity]
common/include/arch/i386/interrupt.h [moved from include/arch/i386/interrupt.h with 100% similarity]
common/include/arch/i386/memory.h [moved from include/arch/i386/memory.h with 100% similarity]
common/include/arch/i386/partition.h [moved from include/arch/i386/partition.h with 100% similarity]
common/include/arch/i386/pci.h [moved from include/arch/i386/pci.h with 100% similarity]
common/include/arch/i386/pci_amd.h [moved from include/arch/i386/pci_amd.h with 100% similarity]
common/include/arch/i386/pci_intel.h [moved from include/arch/i386/pci_intel.h with 100% similarity]
common/include/arch/i386/pci_sis.h [moved from include/arch/i386/pci_sis.h with 100% similarity]
common/include/arch/i386/pci_via.h [moved from include/arch/i386/pci_via.h with 100% similarity]
common/include/arch/i386/ports.h [moved from include/arch/i386/ports.h with 100% similarity]
common/include/arch/i386/stackframe.h [moved from include/arch/i386/stackframe.h with 100% similarity]
common/include/arch/i386/vm.h [moved from include/arch/i386/vm.h with 100% similarity]
common/include/minix/ansi.h [moved from include/minix/ansi.h with 100% similarity]
common/include/minix/bitmap.h [moved from include/minix/bitmap.h with 100% similarity]
common/include/minix/callnr.h [moved from include/minix/callnr.h with 100% similarity]
common/include/minix/com.h [moved from include/minix/com.h with 100% similarity]
common/include/minix/compiler.h [moved from include/minix/compiler.h with 100% similarity]
common/include/minix/config.h [moved from include/minix/config.h with 100% similarity]
common/include/minix/const.h [moved from include/minix/const.h with 100% similarity]
common/include/minix/debug.h [moved from include/minix/debug.h with 100% similarity]
common/include/minix/devio.h [moved from include/minix/devio.h with 100% similarity]
common/include/minix/ds.h [moved from include/minix/ds.h with 100% similarity]
common/include/minix/endpoint.h [moved from include/minix/endpoint.h with 100% similarity]
common/include/minix/gcov.h [moved from include/minix/gcov.h with 100% similarity]
common/include/minix/ioctl.h [moved from include/minix/ioctl.h with 100% similarity]
common/include/minix/ipc.h [moved from include/minix/ipc.h with 100% similarity]
common/include/minix/ipcconst.h [moved from include/minix/ipcconst.h with 100% similarity]
common/include/minix/keymap.h [moved from include/minix/keymap.h with 100% similarity]
common/include/minix/limits.h [moved from include/minix/limits.h with 100% similarity]
common/include/minix/minlib.h [moved from include/minix/minlib.h with 100% similarity]
common/include/minix/portio.h [moved from include/minix/portio.h with 100% similarity]
common/include/minix/priv.h [moved from include/minix/priv.h with 100% similarity]
common/include/minix/profile.h [moved from include/minix/profile.h with 100% similarity]
common/include/minix/rs.h [moved from include/minix/rs.h with 100% similarity]
common/include/minix/safecopies.h [moved from include/minix/safecopies.h with 100% similarity]
common/include/minix/sef.h [moved from include/minix/sef.h with 100% similarity]
common/include/minix/spin.h [moved from include/minix/spin.h with 100% similarity]
common/include/minix/sys_config.h [moved from include/minix/sys_config.h with 100% similarity]
common/include/minix/sysinfo.h [moved from include/minix/sysinfo.h with 100% similarity]
common/include/minix/syslib.h [moved from include/minix/syslib.h with 100% similarity]
common/include/minix/sysutil.h [moved from include/minix/sysutil.h with 100% similarity]
common/include/minix/timers.h [moved from include/minix/timers.h with 100% similarity]
common/include/minix/type.h [moved from include/minix/type.h with 100% similarity]
common/include/minix/vm.h [moved from include/minix/vm.h with 100% similarity]
common/include/sys/Makefile.inc [new file with mode: 0644]
common/include/sys/Makefile.mount.inc [new file with mode: 0644]
common/include/sys/ioc_cmos.h [moved from include/sys/ioc_cmos.h with 100% similarity]
common/include/sys/ioc_disk.h [moved from include/sys/ioc_disk.h with 100% similarity]
common/include/sys/ioc_file.h [moved from include/sys/ioc_file.h with 100% similarity]
common/include/sys/ioc_memory.h [moved from include/sys/ioc_memory.h with 100% similarity]
common/include/sys/ioc_scsi.h [moved from include/sys/ioc_scsi.h with 100% similarity]
common/include/sys/ioc_sound.h [moved from include/sys/ioc_sound.h with 100% similarity]
common/include/sys/ioc_tape.h [moved from include/sys/ioc_tape.h with 100% similarity]
common/include/sys/ioc_tty.h [moved from include/sys/ioc_tty.h with 100% similarity]
common/include/sys/mount.h [moved from include/sys/mount.h with 100% similarity]
common/include/termios.h [moved from include/termios.h with 100% similarity]
include/Makefile
include/arch/i386/Makefile
include/sys/Makefile
kernel/Makefile
kernel/extract-mtype.sh

diff --git a/common/include/Makefile.inc b/common/include/Makefile.inc
new file mode 100644 (file)
index 0000000..d610585
--- /dev/null
@@ -0,0 +1,14 @@
+.include <bsd.own.mk>
+
+.PATH: ${MINIXSRCDIR}/common/include
+
+INCS+=         minix/ansi.h minix/bitmap.h minix/callnr.h minix/com.h \
+       minix/compiler.h minix/config.h minix/const.h minix/debug.h \
+       minix/devio.h minix/ds.h minix/endpoint.h minix/gcov.h \
+       minix/ioctl.h minix/ipc.h minix/ipcconst.h minix/keymap.h \
+       minix/limits.h minix/minlib.h minix/portio.h minix/priv.h \
+       minix/profile.h minix/rs.h minix/safecopies.h minix/sef.h \
+       minix/spin.h minix/sys_config.h minix/sysinfo.h minix/syslib.h \
+       minix/sysutil.h minix/timers.h minix/type.h minix/vm.h
+
+
diff --git a/common/include/Makefile.termios.inc b/common/include/Makefile.termios.inc
new file mode 100644 (file)
index 0000000..6346869
--- /dev/null
@@ -0,0 +1,6 @@
+.include <bsd.own.mk>
+
+.PATH: ${MINIXSRCDIR}/common/include
+
+INCS+= termios.h       
+
diff --git a/common/include/arch/i386/Makefile.inc b/common/include/arch/i386/Makefile.inc
new file mode 100644 (file)
index 0000000..0f20ddb
--- /dev/null
@@ -0,0 +1,8 @@
+.include <bsd.own.mk>
+.PATH: ${MINIXSRCDIR}/common/include/arch/i386
+
+INCS+= archtypes.h bios.h cmos.h cpu.h diskparm.h fpu.h int86.h \
+       interrupt.h memory.h partition.h \
+       pci.h pci_amd.h pci_intel.h pci_sis.h pci_via.h \
+       ports.h stackframe.h vm.h elf.h
+
similarity index 100%
rename from include/minix/ds.h
rename to common/include/minix/ds.h
similarity index 100%
rename from include/minix/rs.h
rename to common/include/minix/rs.h
similarity index 100%
rename from include/minix/vm.h
rename to common/include/minix/vm.h
diff --git a/common/include/sys/Makefile.inc b/common/include/sys/Makefile.inc
new file mode 100644 (file)
index 0000000..780636f
--- /dev/null
@@ -0,0 +1,7 @@
+.include <bsd.own.mk>
+
+.PATH: ${MINIXSRCDIR}/common/include/sys
+
+INCS+=         ioc_cmos.h ioc_file.h ioc_scsi.h ioc_tape.h \
+       ioc_disk.h ioc_memory.h ioc_sound.h ioc_tty.h
+
diff --git a/common/include/sys/Makefile.mount.inc b/common/include/sys/Makefile.mount.inc
new file mode 100644 (file)
index 0000000..5d7e34c
--- /dev/null
@@ -0,0 +1,5 @@
+.include <bsd.own.mk>
+
+.PATH: ${MINIXSRCDIR}/common/include/sys
+
+INCS+= mount.h
similarity index 100%
rename from include/termios.h
rename to common/include/termios.h
index f38e4e8e6440948b99620a7765d40bcf8e673156..1a808df3da348abb7eb6f0b033fbd73af5bc0612 100644 (file)
@@ -7,29 +7,26 @@ INCS= alloca.h a.out.h ar.h assert.h configfile.h ctype.h \
        mathconst.h math.h midiparser.h netdb.h pwd.h regex.h \
        regexp.h setjmp.h sgtty.h signal.h stdarg.h stddef.h \
        stdint.h stdbool.h stdio.h stdlib.h string.h strings.h sysexits.h \
-       syslog.h tar.h termcap.h termios.h time.h timers.h tools.h \
+       syslog.h tar.h termcap.h time.h timers.h tools.h \
        ttyent.h ucontext.h unistd.h utime.h utmp.h wchar.h wctype.h \
        hgfs.h tzfile.h util.h fetch.h mpool.h ndbm.h db.h poll.h resolv.h \
        memory.h paths.h libexec.h complex.h
 INCS+= arpa/inet.h arpa/nameser.h
-INCS+= minix/a.out.h minix/bitmap.h minix/callnr.h minix/cdrom.h \
-       minix/com.h minix/config.h minix/const.h minix/cpufeature.h \
-       minix/crtso.h minix/debug.h minix/devio.h minix/dirent.h \
+INCS+= minix/a.out.h minix/cdrom.h minix/cpufeature.h \
+       minix/crtso.h minix/dirent.h \
        minix/dir.h minix/dl_eth.h minix/dmap.h minix/driver.h \
-       minix/limits.h \
        minix/acpi.h \
-       minix/drivers.h minix/drvlib.h minix/ds.h minix/endpoint.h \
-       minix/fslib.h minix/ioctl.h minix/ipc.h minix/ipcconst.h \
-       minix/keymap.h minix/minlib.h minix/mq.h minix/mthread.h \
+       minix/drivers.h minix/drvlib.h \
+       minix/fslib.h \
+       minix/mq.h minix/mthread.h \
        minix/netdriver.h minix/partition.h \
-       minix/portio.h minix/priv.h minix/procfs.h minix/profile.h \
+       minix/procfs.h \
        minix/queryparam.h \
-       minix/rs.h minix/safecopies.h minix/sched.h minix/sef.h minix/sound.h \
-       minix/spin.h minix/sys_config.h minix/sysinfo.h minix/syslib.h \
-       minix/sysutil.h minix/timers.h minix/tty.h minix/type.h minix/types.h \
-       minix/u64.h minix/vfsif.h minix/vm.h minix/vtreefs.h minix/gcov.h  \
-       minix/compiler.h minix/compiler-ack.h minix/sha2.h minix/sha1.h minix/md5.h \
-       minix/audio_fw.h minix/hash.h minix/input.h minix/ansi.h
+       minix/sched.h minix/sound.h \
+       minix/tty.h minix/types.h \
+       minix/u64.h minix/vfsif.h minix/vtreefs.h \
+       minix/compiler-ack.h minix/sha2.h minix/sha1.h minix/md5.h \
+       minix/audio_fw.h minix/hash.h minix/input.h 
 INCS+= net/hton.h net/if.h net/ioctl.h net/netlib.h
 INCS+= net/gen/arp_io.h net/gen/dhcp.h net/gen/ether.h \
        net/gen/eth_hdr.h net/gen/eth_io.h net/gen/icmp.h \
@@ -47,6 +44,9 @@ INCS+=        netinet/if_ether.h netinet/in.h netinet/tcp.h
 
 INCSDIR=        /usr/include
 
+.include "../common/include/Makefile.inc"
+.include "../common/include/Makefile.termios.inc"
+
 SUBDIR=                sys arch
 
 .include <bsd.prog.mk>
index 53a487c1196ca156f1ab551fcc2fe557ad89f037..a5d660cfef5bd2547ca77ef633e8a1a10011a456 100644 (file)
@@ -1,8 +1,7 @@
 INCSDIR= /usr/include/i386
 
-INCS=  archtypes.h bios.h cmos.h cpu.h diskparm.h fpu.h int86.h \
-       interrupt.h mcontext.h memory.h partition.h \
-       pci.h pci_amd.h pci_intel.h pci_sis.h pci_via.h \
-       ports.h stackframe.h vm.h asm.h _align.h param.h elf.h
+INCS+= _align.h asm.h mcontext.h param.h
+
+.include "../../../common/include/arch/i386/Makefile.inc"
 
 .include <bsd.kinc.mk>
index 365dea16c54565abc6aa853f2e5a7474a4320cbc..57d69588e395f61a4be007c333fa5d440227f851 100644 (file)
@@ -2,9 +2,8 @@
 
 INCSDIR=        /usr/include/sys
 
-INCS=  asynchio.h dir.h file.h ioc_cmos.h ioc_disk.h \
-       ioc_file.h ioc_memory.h ioc_scsi.h ioc_sound.h ioc_tape.h \
-       ioctl.h ioc_tty.h ipc.h jmp_buf.h kbdio.h mman.h \
+INCS=  asynchio.h dir.h file.h  \
+       ioctl.h ipc.h jmp_buf.h kbdio.h mman.h \
        mount.h mtio.h param.h ptrace.h queue.h resource.h \
        select.h sem.h shm.h sigcontext.h signal.h socket.h \
        soundcard.h statfs.h statvfs.h stat.h svrctl.h timeb.h \
@@ -12,4 +11,7 @@ INCS= asynchio.h dir.h file.h ioc_cmos.h ioc_disk.h \
        utsname.h video.h vm.h wait.h cdefs.h null.h poll.h \
        elf32.h elf64.h elf_common.h elf_generic.h
 
+.include "../../common/include/sys/Makefile.inc"
+.include "../../common/include/sys/Makefile.mount.inc"
+
 .include <bsd.kinc.mk>
index d737ea937ef98c8463053916a9b065fa13ae9b9b..1df57137ef875f4efafaf8d941b271d98361ce2b 100644 (file)
@@ -56,7 +56,7 @@ extracted-mfield.h: extract-mfield.sh ../lib/libc/other/*.c ../lib/libc/posix/*.
        ${_MKTARGET_CREATE}
        cd ${.CURDIR} ; sh extract-mfield.sh > ${.OBJDIR}/extracted-mfield.h
 
-extracted-mtype.h: extract-mtype.sh ../include/minix/com.h
+extracted-mtype.h: extract-mtype.sh ../common/include/minix/com.h
        ${_MKTARGET_CREATE}
        cd ${.CURDIR} ; sh extract-mtype.sh > ${.OBJDIR}/extracted-mtype.h
 
index 3322ad83cce1213202b8b56642694ff6d86c2eb2..47507f6168b4ba142f50cdf5107938026a02fe7b 100644 (file)
@@ -4,12 +4,12 @@ set -e
 
 # grep message type constants and make them into a .h file
 (
-       cat ../include/minix/callnr.h | \
+       cat ../common/include/minix/callnr.h | \
        tr -s ' \t' ' ' | \
        sed 's/^# /#/' | \
        egrep '^#define [A-Z_][A-Z0-9_]* [0-9]+' | grep -v NCALLS 
        
-       cat ../include/minix/com.h | \
+       cat ../common/include/minix/com.h | \
        tr -s ' \t' ' ' | \
        sed 's/^# /#/' | \
        egrep '^#define [A-Z_][A-Z0-9_]* \( ?([A-Z0-9_]+_BASE|KERNEL_CALL) ?\+[A-Za-z0-9_ +]+\)'