Move shared headers in common/include

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.
This commit is contained in:
Gianluca Guida 2011-02-06 22:59:02 +00:00
parent 0203ea37bf
commit fa59fc6eb4
71 changed files with 66 additions and 25 deletions

View file

@ -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

View file

@ -0,0 +1,6 @@
.include <bsd.own.mk>
.PATH: ${MINIXSRCDIR}/common/include
INCS+= termios.h

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,5 @@
.include <bsd.own.mk>
.PATH: ${MINIXSRCDIR}/common/include/sys
INCS+= mount.h

View 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>

View 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>

View 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>

View 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

View 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_ +]+\)'