From f4814901aff38a749f5807b756315043d43611c8 Mon Sep 17 00:00:00 2001 From: Gianluca Guida Date: Thu, 3 Mar 2011 16:39:02 +0000 Subject: [PATCH] Move even more includes to common/include. This patch moves more includes (most of them, to tell the truth) to common/include directory. This completes the list of includes needed to compile current trunk with the new libc (but to do that you need more patches in queue). This patch also contains some modification (for compilation with new headers) to the common includes under __NBSD_LIBC, the define used in mk script to specialize compilation with new includes. --- common/include/Makefile.inc | 32 +++++++++++++------ {include => common/include}/curses.h | 0 {include => common/include}/ddekit/assert.h | 0 {include => common/include}/ddekit/attribs.h | 0 {include => common/include}/ddekit/condvar.h | 0 {include => common/include}/ddekit/ddekit.h | 0 {include => common/include}/ddekit/debug.h | 0 {include => common/include}/ddekit/initcall.h | 0 {include => common/include}/ddekit/inline.h | 0 .../include}/ddekit/interrupt.h | 0 {include => common/include}/ddekit/lock.h | 0 {include => common/include}/ddekit/memory.h | 0 .../include}/ddekit/minix/msg_queue.h | 0 .../include}/ddekit/minix/pci.h | 0 {include => common/include}/ddekit/panic.h | 0 {include => common/include}/ddekit/pci.h | 0 {include => common/include}/ddekit/pgtab.h | 0 {include => common/include}/ddekit/printf.h | 0 .../include}/ddekit/resources.h | 0 .../include}/ddekit/semaphore.h | 0 {include => common/include}/ddekit/thread.h | 0 {include => common/include}/ddekit/timer.h | 0 {include => common/include}/ddekit/types.h | 0 {include => common/include}/ddekit/usb.h | 0 {include => common/include}/env.h | 3 ++ {include => common/include}/fetch.h | 0 {include => common/include}/hgfs.h | 0 common/include/lib.h | 5 +++ {include => common/include}/libutil.h | 0 {include => common/include}/minix/acpi.h | 0 common/include/minix/ansi.h | 10 +++++- {include => common/include}/minix/audio_fw.h | 0 .../include}/minix/cpufeature.h | 0 {include => common/include}/minix/crtso.h | 0 {include => common/include}/minix/devman.h | 0 {include => common/include}/minix/dir.h | 7 ++++ {include => common/include}/minix/dmap.h | 0 {include => common/include}/minix/driver.h | 0 {include => common/include}/minix/drivers.h | 0 {include => common/include}/minix/drvlib.h | 0 {include => common/include}/minix/fslib.h | 0 {include => common/include}/minix/hash.h | 0 {include => common/include}/minix/input.h | 0 common/include/minix/ipc.h | 3 ++ common/include/minix/minlib.h | 4 ++- {include => common/include}/minix/mq.h | 0 {include => common/include}/minix/mthread.h | 5 +++ {include => common/include}/minix/netdriver.h | 0 {include => common/include}/minix/partition.h | 0 {include => common/include}/minix/procfs.h | 0 .../include}/minix/queryparam.h | 0 {include => common/include}/minix/sched.h | 0 {include => common/include}/minix/sound.h | 0 {include => common/include}/minix/tty.h | 0 {include => common/include}/minix/usb.h | 0 {include => common/include}/minix/usb_ch9.h | 0 {include => common/include}/minix/vfsif.h | 0 {include => common/include}/minix/vtreefs.h | 0 common/include/net/gen/dhcp.h | 4 +++ common/include/sys/Makefile.inc | 3 +- {include => common/include}/sys/kbdio.h | 0 {include => common/include}/sys/mtio.h | 0 {include => common/include}/sys/svrctl.h | 0 {include => common/include}/sys/video.h | 0 {include => common/include}/sys/vm.h | 0 {include => common/include}/timers.h | 0 include/Makefile | 26 ++------------- 67 files changed, 66 insertions(+), 36 deletions(-) rename {include => common/include}/curses.h (100%) rename {include => common/include}/ddekit/assert.h (100%) rename {include => common/include}/ddekit/attribs.h (100%) rename {include => common/include}/ddekit/condvar.h (100%) rename {include => common/include}/ddekit/ddekit.h (100%) rename {include => common/include}/ddekit/debug.h (100%) rename {include => common/include}/ddekit/initcall.h (100%) rename {include => common/include}/ddekit/inline.h (100%) rename {include => common/include}/ddekit/interrupt.h (100%) rename {include => common/include}/ddekit/lock.h (100%) rename {include => common/include}/ddekit/memory.h (100%) rename {include => common/include}/ddekit/minix/msg_queue.h (100%) rename {include => common/include}/ddekit/minix/pci.h (100%) rename {include => common/include}/ddekit/panic.h (100%) rename {include => common/include}/ddekit/pci.h (100%) rename {include => common/include}/ddekit/pgtab.h (100%) rename {include => common/include}/ddekit/printf.h (100%) rename {include => common/include}/ddekit/resources.h (100%) rename {include => common/include}/ddekit/semaphore.h (100%) rename {include => common/include}/ddekit/thread.h (100%) rename {include => common/include}/ddekit/timer.h (100%) rename {include => common/include}/ddekit/types.h (100%) rename {include => common/include}/ddekit/usb.h (100%) rename {include => common/include}/env.h (84%) rename {include => common/include}/fetch.h (100%) rename {include => common/include}/hgfs.h (100%) rename {include => common/include}/libutil.h (100%) rename {include => common/include}/minix/acpi.h (100%) rename {include => common/include}/minix/audio_fw.h (100%) rename {include => common/include}/minix/cpufeature.h (100%) rename {include => common/include}/minix/crtso.h (100%) rename {include => common/include}/minix/devman.h (100%) rename {include => common/include}/minix/dir.h (75%) rename {include => common/include}/minix/dmap.h (100%) rename {include => common/include}/minix/driver.h (100%) rename {include => common/include}/minix/drivers.h (100%) rename {include => common/include}/minix/drvlib.h (100%) rename {include => common/include}/minix/fslib.h (100%) rename {include => common/include}/minix/hash.h (100%) rename {include => common/include}/minix/input.h (100%) rename {include => common/include}/minix/mq.h (100%) rename {include => common/include}/minix/mthread.h (98%) rename {include => common/include}/minix/netdriver.h (100%) rename {include => common/include}/minix/partition.h (100%) rename {include => common/include}/minix/procfs.h (100%) rename {include => common/include}/minix/queryparam.h (100%) rename {include => common/include}/minix/sched.h (100%) rename {include => common/include}/minix/sound.h (100%) rename {include => common/include}/minix/tty.h (100%) rename {include => common/include}/minix/usb.h (100%) rename {include => common/include}/minix/usb_ch9.h (100%) rename {include => common/include}/minix/vfsif.h (100%) rename {include => common/include}/minix/vtreefs.h (100%) rename {include => common/include}/sys/kbdio.h (100%) rename {include => common/include}/sys/mtio.h (100%) rename {include => common/include}/sys/svrctl.h (100%) rename {include => common/include}/sys/video.h (100%) rename {include => common/include}/sys/vm.h (100%) rename {include => common/include}/timers.h (100%) diff --git a/common/include/Makefile.inc b/common/include/Makefile.inc index 62a4454a0..2d606d8d0 100644 --- a/common/include/Makefile.inc +++ b/common/include/Makefile.inc @@ -2,16 +2,23 @@ .PATH: ${MINIXSRCDIR}/common/include -INCS+= lib.h +INCS+= curses.h env.h fetch.h hgfs.h lib.h libutil.h timers.h -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/u64.h minix/vm.h +INCS+= minix/acpi.h minix/ansi.h minix/audio_fw.h minix/bitmap.h \ + minix/callnr.h minix/com.h minix/compiler.h minix/config.h \ + minix/const.h minix/cpufeature.h minix/crtso.h minix/debug.h \ + minix/devio.h minix/devman.h minix/dir.h minix/dmap.h \ + minix/driver.h minix/drivers.h minix/drvlib.h minix/ds.h \ + minix/endpoint.h minix/fslib.h minix/gcov.h minix/hash.h \ + minix/ioctl.h minix/input.h minix/ipc.h minix/ipcconst.h \ + minix/keymap.h minix/limits.h minix/mthread.h minix/minlib.h \ + minix/mq.h minix/netdriver.h minix/partition.h minix/portio.h \ + minix/priv.h minix/procfs.h minix/profile.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/type.h \ + minix/tty.h minix/u64.h minix/usb.h minix/usb_ch9.h minix/vm.h \ + minix/vfsif.h minix/vtreefs.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 \ @@ -23,3 +30,10 @@ INCS+= net/gen/arp_io.h net/gen/dhcp.h net/gen/ether.h \ net/gen/tcp.h net/gen/tcp_hdr.h net/gen/tcp_io.h \ net/gen/udp.h net/gen/udp_hdr.h net/gen/udp_io.h \ net/gen/vjhc.h + +INCS+= ddekit/assert.h ddekit/initcall.h ddekit/memory.h ddekit/pgtab.h \ + ddekit/thread.h ddekit/attribs.h ddekit/inline.h ddekit/printf.h \ + ddekit/timer.h ddekit/condvar.h ddekit/interrupt.h ddekit/panic.h \ + ddekit/resources.h ddekit/types.h ddekit/debug.h ddekit/lock.h \ + ddekit/pci.h ddekit/semaphore.h ddekit/usb.h ddekit/minix/pci.h \ + ddekit/minix/msg_queue.h ddekit/ddekit.h diff --git a/include/curses.h b/common/include/curses.h similarity index 100% rename from include/curses.h rename to common/include/curses.h diff --git a/include/ddekit/assert.h b/common/include/ddekit/assert.h similarity index 100% rename from include/ddekit/assert.h rename to common/include/ddekit/assert.h diff --git a/include/ddekit/attribs.h b/common/include/ddekit/attribs.h similarity index 100% rename from include/ddekit/attribs.h rename to common/include/ddekit/attribs.h diff --git a/include/ddekit/condvar.h b/common/include/ddekit/condvar.h similarity index 100% rename from include/ddekit/condvar.h rename to common/include/ddekit/condvar.h diff --git a/include/ddekit/ddekit.h b/common/include/ddekit/ddekit.h similarity index 100% rename from include/ddekit/ddekit.h rename to common/include/ddekit/ddekit.h diff --git a/include/ddekit/debug.h b/common/include/ddekit/debug.h similarity index 100% rename from include/ddekit/debug.h rename to common/include/ddekit/debug.h diff --git a/include/ddekit/initcall.h b/common/include/ddekit/initcall.h similarity index 100% rename from include/ddekit/initcall.h rename to common/include/ddekit/initcall.h diff --git a/include/ddekit/inline.h b/common/include/ddekit/inline.h similarity index 100% rename from include/ddekit/inline.h rename to common/include/ddekit/inline.h diff --git a/include/ddekit/interrupt.h b/common/include/ddekit/interrupt.h similarity index 100% rename from include/ddekit/interrupt.h rename to common/include/ddekit/interrupt.h diff --git a/include/ddekit/lock.h b/common/include/ddekit/lock.h similarity index 100% rename from include/ddekit/lock.h rename to common/include/ddekit/lock.h diff --git a/include/ddekit/memory.h b/common/include/ddekit/memory.h similarity index 100% rename from include/ddekit/memory.h rename to common/include/ddekit/memory.h diff --git a/include/ddekit/minix/msg_queue.h b/common/include/ddekit/minix/msg_queue.h similarity index 100% rename from include/ddekit/minix/msg_queue.h rename to common/include/ddekit/minix/msg_queue.h diff --git a/include/ddekit/minix/pci.h b/common/include/ddekit/minix/pci.h similarity index 100% rename from include/ddekit/minix/pci.h rename to common/include/ddekit/minix/pci.h diff --git a/include/ddekit/panic.h b/common/include/ddekit/panic.h similarity index 100% rename from include/ddekit/panic.h rename to common/include/ddekit/panic.h diff --git a/include/ddekit/pci.h b/common/include/ddekit/pci.h similarity index 100% rename from include/ddekit/pci.h rename to common/include/ddekit/pci.h diff --git a/include/ddekit/pgtab.h b/common/include/ddekit/pgtab.h similarity index 100% rename from include/ddekit/pgtab.h rename to common/include/ddekit/pgtab.h diff --git a/include/ddekit/printf.h b/common/include/ddekit/printf.h similarity index 100% rename from include/ddekit/printf.h rename to common/include/ddekit/printf.h diff --git a/include/ddekit/resources.h b/common/include/ddekit/resources.h similarity index 100% rename from include/ddekit/resources.h rename to common/include/ddekit/resources.h diff --git a/include/ddekit/semaphore.h b/common/include/ddekit/semaphore.h similarity index 100% rename from include/ddekit/semaphore.h rename to common/include/ddekit/semaphore.h diff --git a/include/ddekit/thread.h b/common/include/ddekit/thread.h similarity index 100% rename from include/ddekit/thread.h rename to common/include/ddekit/thread.h diff --git a/include/ddekit/timer.h b/common/include/ddekit/timer.h similarity index 100% rename from include/ddekit/timer.h rename to common/include/ddekit/timer.h diff --git a/include/ddekit/types.h b/common/include/ddekit/types.h similarity index 100% rename from include/ddekit/types.h rename to common/include/ddekit/types.h diff --git a/include/ddekit/usb.h b/common/include/ddekit/usb.h similarity index 100% rename from include/ddekit/usb.h rename to common/include/ddekit/usb.h diff --git a/include/env.h b/common/include/env.h similarity index 84% rename from include/env.h rename to common/include/env.h index 81011fc7c..d0352b509 100644 --- a/include/env.h +++ b/common/include/env.h @@ -1,3 +1,6 @@ +#ifdef __NBSD_LIBC +#include +#endif _PROTOTYPE( int env_parse, (char *env, char *fmt, int field, long *param, long min, long max) ); _PROTOTYPE( void env_panic, (char *env) ); diff --git a/include/fetch.h b/common/include/fetch.h similarity index 100% rename from include/fetch.h rename to common/include/fetch.h diff --git a/include/hgfs.h b/common/include/hgfs.h similarity index 100% rename from include/hgfs.h rename to common/include/hgfs.h diff --git a/common/include/lib.h b/common/include/lib.h index 4b2f44503..bbe911898 100644 --- a/common/include/lib.h +++ b/common/include/lib.h @@ -6,7 +6,12 @@ #define _LIB_H /* First come the defines. */ +#ifdef __NBSD_LIBC +#include /* tell headers to include NetBSD stuff. */ +#else /* !__NBSD_LIBC */ #define _POSIX_SOURCE 1 /* tell headers to include POSIX stuff */ +#endif + #define _MINIX 1 /* tell headers to include MINIX stuff */ /* The following are so basic, all the lib files get them automatically. */ diff --git a/include/libutil.h b/common/include/libutil.h similarity index 100% rename from include/libutil.h rename to common/include/libutil.h diff --git a/include/minix/acpi.h b/common/include/minix/acpi.h similarity index 100% rename from include/minix/acpi.h rename to common/include/minix/acpi.h diff --git a/common/include/minix/ansi.h b/common/include/minix/ansi.h index ede54fa33..316f4d027 100644 --- a/common/include/minix/ansi.h +++ b/common/include/minix/ansi.h @@ -61,6 +61,15 @@ /* This should be defined as restrict when a C99 compiler is used. */ #define _RESTRICT +#ifdef __NBSD_LIBC +/* Setting of _POSIX_SOURCE (or _NETBSD_SOURCE) in NBSD headers is + * done in */ +#include + +/* Also, do not redefine _BSD_VA_LIST */ + +#else /* !__NBSD_LIBC */ + /* Setting any of _MINIX, _POSIX_C_SOURCE or _POSIX2_SOURCE implies * _POSIX_SOURCE. (Seems wrong to put this here in ANSI space.) */ @@ -69,7 +78,6 @@ #define _POSIX_SOURCE 1 #endif -#ifndef __NBSD_LIBC /* What is a va_list? */ #include #define _BSD_VA_LIST_ va_list diff --git a/include/minix/audio_fw.h b/common/include/minix/audio_fw.h similarity index 100% rename from include/minix/audio_fw.h rename to common/include/minix/audio_fw.h diff --git a/include/minix/cpufeature.h b/common/include/minix/cpufeature.h similarity index 100% rename from include/minix/cpufeature.h rename to common/include/minix/cpufeature.h diff --git a/include/minix/crtso.h b/common/include/minix/crtso.h similarity index 100% rename from include/minix/crtso.h rename to common/include/minix/crtso.h diff --git a/include/minix/devman.h b/common/include/minix/devman.h similarity index 100% rename from include/minix/devman.h rename to common/include/minix/devman.h diff --git a/include/minix/dir.h b/common/include/minix/dir.h similarity index 75% rename from include/minix/dir.h rename to common/include/minix/dir.h index 9c0a7dd5a..ca9324061 100644 --- a/include/minix/dir.h +++ b/common/include/minix/dir.h @@ -3,6 +3,9 @@ #ifndef _DIR_H #define _DIR_H +#ifdef __NBSD_LIBC +#include +#endif #include #define DIRBLKSIZ 512 /* size of directory block */ @@ -14,6 +17,10 @@ struct direct { ino_t d_ino; char d_name[DIRSIZ]; +#ifdef __NBSD_LIBC +} __packed; +#else }; +#endif #endif /* _DIR_H */ diff --git a/include/minix/dmap.h b/common/include/minix/dmap.h similarity index 100% rename from include/minix/dmap.h rename to common/include/minix/dmap.h diff --git a/include/minix/driver.h b/common/include/minix/driver.h similarity index 100% rename from include/minix/driver.h rename to common/include/minix/driver.h diff --git a/include/minix/drivers.h b/common/include/minix/drivers.h similarity index 100% rename from include/minix/drivers.h rename to common/include/minix/drivers.h diff --git a/include/minix/drvlib.h b/common/include/minix/drvlib.h similarity index 100% rename from include/minix/drvlib.h rename to common/include/minix/drvlib.h diff --git a/include/minix/fslib.h b/common/include/minix/fslib.h similarity index 100% rename from include/minix/fslib.h rename to common/include/minix/fslib.h diff --git a/include/minix/hash.h b/common/include/minix/hash.h similarity index 100% rename from include/minix/hash.h rename to common/include/minix/hash.h diff --git a/include/minix/input.h b/common/include/minix/input.h similarity index 100% rename from include/minix/input.h rename to common/include/minix/input.h diff --git a/common/include/minix/ipc.h b/common/include/minix/ipc.h index c74425644..b53af790d 100644 --- a/common/include/minix/ipc.h +++ b/common/include/minix/ipc.h @@ -1,6 +1,9 @@ #ifndef _IPC_H #define _IPC_H +#ifdef __NBSD_LIBC +#include +#endif #include #include diff --git a/common/include/minix/minlib.h b/common/include/minix/minlib.h index aea58b96f..82f9cd998 100644 --- a/common/include/minix/minlib.h +++ b/common/include/minix/minlib.h @@ -6,9 +6,11 @@ #endif /* Miscellaneous BSD. */ -_PROTOTYPE(void swab, (char *_from, char *_to, int _count)); _PROTOTYPE(char *itoa, (int _n)); +#ifndef __NBSD_LIBC _PROTOTYPE(char *getpass, (const char *_prompt)); +_PROTOTYPE(void swab, (char *_from, char *_to, int _count)); +#endif /* !_NBSD_LIBC */ /* Miscellaneous MINIX. */ _PROTOTYPE(void std_err, (const char *_s)); diff --git a/include/minix/mq.h b/common/include/minix/mq.h similarity index 100% rename from include/minix/mq.h rename to common/include/minix/mq.h diff --git a/include/minix/mthread.h b/common/include/minix/mthread.h similarity index 98% rename from include/minix/mthread.h rename to common/include/minix/mthread.h index 9adcf59ab..8098db037 100644 --- a/include/minix/mthread.h +++ b/common/include/minix/mthread.h @@ -9,8 +9,13 @@ #include #include #include +#ifndef __NBSD_LIBC #include +#endif #include +#ifdef __NBSD_LIBC +#include +#endif typedef int mthread_thread_t; typedef int mthread_once_t; diff --git a/include/minix/netdriver.h b/common/include/minix/netdriver.h similarity index 100% rename from include/minix/netdriver.h rename to common/include/minix/netdriver.h diff --git a/include/minix/partition.h b/common/include/minix/partition.h similarity index 100% rename from include/minix/partition.h rename to common/include/minix/partition.h diff --git a/include/minix/procfs.h b/common/include/minix/procfs.h similarity index 100% rename from include/minix/procfs.h rename to common/include/minix/procfs.h diff --git a/include/minix/queryparam.h b/common/include/minix/queryparam.h similarity index 100% rename from include/minix/queryparam.h rename to common/include/minix/queryparam.h diff --git a/include/minix/sched.h b/common/include/minix/sched.h similarity index 100% rename from include/minix/sched.h rename to common/include/minix/sched.h diff --git a/include/minix/sound.h b/common/include/minix/sound.h similarity index 100% rename from include/minix/sound.h rename to common/include/minix/sound.h diff --git a/include/minix/tty.h b/common/include/minix/tty.h similarity index 100% rename from include/minix/tty.h rename to common/include/minix/tty.h diff --git a/include/minix/usb.h b/common/include/minix/usb.h similarity index 100% rename from include/minix/usb.h rename to common/include/minix/usb.h diff --git a/include/minix/usb_ch9.h b/common/include/minix/usb_ch9.h similarity index 100% rename from include/minix/usb_ch9.h rename to common/include/minix/usb_ch9.h diff --git a/include/minix/vfsif.h b/common/include/minix/vfsif.h similarity index 100% rename from include/minix/vfsif.h rename to common/include/minix/vfsif.h diff --git a/include/minix/vtreefs.h b/common/include/minix/vtreefs.h similarity index 100% rename from include/minix/vtreefs.h rename to common/include/minix/vtreefs.h diff --git a/common/include/net/gen/dhcp.h b/common/include/net/gen/dhcp.h index d782e341c..911d29380 100644 --- a/common/include/net/gen/dhcp.h +++ b/common/include/net/gen/dhcp.h @@ -32,7 +32,11 @@ typedef struct dhcp { #define DHCP_FLAGS_BCAST 0x8000U /* Reply must be broadcast to client. */ /* "Magic" first four option bytes. */ +#ifdef __NBSD_LIBC +#define DHCP_MAGIC htonl(0x63825363UL) +#else #define DHCP_MAGIC HTONL(0x63825363UL) +#endif /* DHCP common tags: */ #define DHCP_TAG_NETMASK 1 /* Netmask. */ diff --git a/common/include/sys/Makefile.inc b/common/include/sys/Makefile.inc index 780636f52..e5b9fbd15 100644 --- a/common/include/sys/Makefile.inc +++ b/common/include/sys/Makefile.inc @@ -3,5 +3,6 @@ .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 + ioc_disk.h ioc_memory.h ioc_sound.h ioc_tty.h \ + kbdio.h mtio.h svrctl.h video.h vm.h diff --git a/include/sys/kbdio.h b/common/include/sys/kbdio.h similarity index 100% rename from include/sys/kbdio.h rename to common/include/sys/kbdio.h diff --git a/include/sys/mtio.h b/common/include/sys/mtio.h similarity index 100% rename from include/sys/mtio.h rename to common/include/sys/mtio.h diff --git a/include/sys/svrctl.h b/common/include/sys/svrctl.h similarity index 100% rename from include/sys/svrctl.h rename to common/include/sys/svrctl.h diff --git a/include/sys/video.h b/common/include/sys/video.h similarity index 100% rename from include/sys/video.h rename to common/include/sys/video.h diff --git a/include/sys/vm.h b/common/include/sys/vm.h similarity index 100% rename from include/sys/vm.h rename to common/include/sys/vm.h diff --git a/include/timers.h b/common/include/timers.h similarity index 100% rename from include/timers.h rename to common/include/timers.h diff --git a/include/Makefile b/include/Makefile index c7fa23139..d8f9ffd24 100644 --- a/include/Makefile +++ b/include/Makefile @@ -12,34 +12,12 @@ INCS= alloca.h a.out.h ar.h assert.h configfile.h ctype.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/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/acpi.h \ - minix/drivers.h minix/drvlib.h \ - minix/fslib.h \ - minix/mq.h minix/mthread.h \ - minix/netdriver.h minix/partition.h \ - minix/procfs.h \ - minix/queryparam.h \ - minix/sched.h minix/sound.h \ - minix/tty.h minix/types.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 \ - minix/devman.h minix/usb.h minix/usb_ch9.h +INCS+= minix/a.out.h minix/cdrom.h minix/compiler-ack.h minix/dirent.h \ + minix/dl_eth.h minix/md5.h minix/sha1.h minix/sha2.h minix/types.h INCS+= net/hton.h net/if.h net/ioctl.h net/netlib.h INCS+= netinet/if_ether.h netinet/in.h netinet/tcp.h -INCS+= ddekit/assert.h ddekit/initcall.h ddekit/memory.h ddekit/pgtab.h \ - ddekit/thread.h ddekit/attribs.h ddekit/inline.h ddekit/printf.h \ - ddekit/timer.h ddekit/condvar.h ddekit/interrupt.h ddekit/panic.h \ - ddekit/resources.h ddekit/types.h ddekit/debug.h ddekit/lock.h \ - ddekit/pci.h ddekit/semaphore.h ddekit/usb.h ddekit/minix/pci.h \ - ddekit/minix/msg_queue.h ddekit/ddekit.h - - .include INCSDIR= /usr/include -- 2.44.0