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:
parent
0203ea37bf
commit
fa59fc6eb4
71 changed files with 66 additions and 25 deletions
14
common/include/Makefile.inc
Normal file
14
common/include/Makefile.inc
Normal 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
|
||||||
|
|
||||||
|
|
6
common/include/Makefile.termios.inc
Normal file
6
common/include/Makefile.termios.inc
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
.PATH: ${MINIXSRCDIR}/common/include
|
||||||
|
|
||||||
|
INCS+= termios.h
|
||||||
|
|
8
common/include/arch/i386/Makefile.inc
Normal file
8
common/include/arch/i386/Makefile.inc
Normal 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
|
||||||
|
|
7
common/include/sys/Makefile.inc
Normal file
7
common/include/sys/Makefile.inc
Normal 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
|
||||||
|
|
5
common/include/sys/Makefile.mount.inc
Normal file
5
common/include/sys/Makefile.mount.inc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
|
.PATH: ${MINIXSRCDIR}/common/include/sys
|
||||||
|
|
||||||
|
INCS+= mount.h
|
|
@ -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 \
|
mathconst.h math.h midiparser.h netdb.h pwd.h regex.h \
|
||||||
regexp.h setjmp.h sgtty.h signal.h stdarg.h stddef.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 \
|
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 \
|
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 \
|
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
|
memory.h paths.h libexec.h complex.h
|
||||||
INCS+= arpa/inet.h arpa/nameser.h
|
INCS+= arpa/inet.h arpa/nameser.h
|
||||||
INCS+= minix/a.out.h minix/bitmap.h minix/callnr.h minix/cdrom.h \
|
INCS+= minix/a.out.h minix/cdrom.h minix/cpufeature.h \
|
||||||
minix/com.h minix/config.h minix/const.h minix/cpufeature.h \
|
minix/crtso.h minix/dirent.h \
|
||||||
minix/crtso.h minix/debug.h minix/devio.h minix/dirent.h \
|
|
||||||
minix/dir.h minix/dl_eth.h minix/dmap.h minix/driver.h \
|
minix/dir.h minix/dl_eth.h minix/dmap.h minix/driver.h \
|
||||||
minix/limits.h \
|
|
||||||
minix/acpi.h \
|
minix/acpi.h \
|
||||||
minix/drivers.h minix/drvlib.h minix/ds.h minix/endpoint.h \
|
minix/drivers.h minix/drvlib.h \
|
||||||
minix/fslib.h minix/ioctl.h minix/ipc.h minix/ipcconst.h \
|
minix/fslib.h \
|
||||||
minix/keymap.h minix/minlib.h minix/mq.h minix/mthread.h \
|
minix/mq.h minix/mthread.h \
|
||||||
minix/netdriver.h minix/partition.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/queryparam.h \
|
||||||
minix/rs.h minix/safecopies.h minix/sched.h minix/sef.h minix/sound.h \
|
minix/sched.h minix/sound.h \
|
||||||
minix/spin.h minix/sys_config.h minix/sysinfo.h minix/syslib.h \
|
minix/tty.h minix/types.h \
|
||||||
minix/sysutil.h minix/timers.h minix/tty.h minix/type.h minix/types.h \
|
minix/u64.h minix/vfsif.h minix/vtreefs.h \
|
||||||
minix/u64.h minix/vfsif.h minix/vm.h minix/vtreefs.h minix/gcov.h \
|
minix/compiler-ack.h minix/sha2.h minix/sha1.h minix/md5.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/audio_fw.h minix/hash.h minix/input.h minix/ansi.h
|
|
||||||
INCS+= net/hton.h net/if.h net/ioctl.h net/netlib.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 \
|
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 \
|
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
|
INCSDIR= /usr/include
|
||||||
|
|
||||||
|
.include "../common/include/Makefile.inc"
|
||||||
|
.include "../common/include/Makefile.termios.inc"
|
||||||
|
|
||||||
SUBDIR= sys arch
|
SUBDIR= sys arch
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
INCSDIR= /usr/include/i386
|
INCSDIR= /usr/include/i386
|
||||||
|
|
||||||
INCS= archtypes.h bios.h cmos.h cpu.h diskparm.h fpu.h int86.h \
|
INCS+= _align.h asm.h mcontext.h param.h
|
||||||
interrupt.h mcontext.h memory.h partition.h \
|
|
||||||
pci.h pci_amd.h pci_intel.h pci_sis.h pci_via.h \
|
.include "../../../common/include/arch/i386/Makefile.inc"
|
||||||
ports.h stackframe.h vm.h asm.h _align.h param.h elf.h
|
|
||||||
|
|
||||||
.include <bsd.kinc.mk>
|
.include <bsd.kinc.mk>
|
||||||
|
|
|
@ -2,9 +2,8 @@
|
||||||
|
|
||||||
INCSDIR= /usr/include/sys
|
INCSDIR= /usr/include/sys
|
||||||
|
|
||||||
INCS= asynchio.h dir.h file.h ioc_cmos.h ioc_disk.h \
|
INCS= asynchio.h dir.h file.h \
|
||||||
ioc_file.h ioc_memory.h ioc_scsi.h ioc_sound.h ioc_tape.h \
|
ioctl.h ipc.h jmp_buf.h kbdio.h mman.h \
|
||||||
ioctl.h ioc_tty.h ipc.h jmp_buf.h kbdio.h mman.h \
|
|
||||||
mount.h mtio.h param.h ptrace.h queue.h resource.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 \
|
select.h sem.h shm.h sigcontext.h signal.h socket.h \
|
||||||
soundcard.h statfs.h statvfs.h stat.h svrctl.h timeb.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 \
|
utsname.h video.h vm.h wait.h cdefs.h null.h poll.h \
|
||||||
elf32.h elf64.h elf_common.h elf_generic.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>
|
.include <bsd.kinc.mk>
|
||||||
|
|
|
@ -56,7 +56,7 @@ extracted-mfield.h: extract-mfield.sh ../lib/libc/other/*.c ../lib/libc/posix/*.
|
||||||
${_MKTARGET_CREATE}
|
${_MKTARGET_CREATE}
|
||||||
cd ${.CURDIR} ; sh extract-mfield.sh > ${.OBJDIR}/extracted-mfield.h
|
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}
|
${_MKTARGET_CREATE}
|
||||||
cd ${.CURDIR} ; sh extract-mtype.sh > ${.OBJDIR}/extracted-mtype.h
|
cd ${.CURDIR} ; sh extract-mtype.sh > ${.OBJDIR}/extracted-mtype.h
|
||||||
|
|
||||||
|
|
|
@ -4,12 +4,12 @@ set -e
|
||||||
|
|
||||||
# grep message type constants and make them into a .h file
|
# 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' ' ' | \
|
tr -s ' \t' ' ' | \
|
||||||
sed 's/^# /#/' | \
|
sed 's/^# /#/' | \
|
||||||
egrep '^#define [A-Z_][A-Z0-9_]* [0-9]+' | grep -v NCALLS
|
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' ' ' | \
|
tr -s ' \t' ' ' | \
|
||||||
sed 's/^# /#/' | \
|
sed 's/^# /#/' | \
|
||||||
egrep '^#define [A-Z_][A-Z0-9_]* \( ?([A-Z0-9_]+_BASE|KERNEL_CALL) ?\+[A-Za-z0-9_ +]+\)'
|
egrep '^#define [A-Z_][A-Z0-9_]* \( ?([A-Z0-9_]+_BASE|KERNEL_CALL) ?\+[A-Za-z0-9_ +]+\)'
|
||||||
|
|
Loading…
Reference in a new issue