]> Zhao Yanbai Git Server - minix.git/commitdiff
common upgrades 45/145/4
authorLionel Sambuc <lionel@minix3.org>
Thu, 22 Nov 2012 15:50:23 +0000 (16:50 +0100)
committerLionel Sambuc <lionel@minix3.org>
Mon, 14 Jan 2013 10:36:25 +0000 (11:36 +0100)
Change-Id: I567fc15845b601019d346569ecfcef4f89687fd2

50 files changed:
common/Makefile [deleted file]
common/include/Makefile [deleted file]
common/include/prop/Makefile [moved from include/prop/Makefile with 100% similarity]
common/include/prop/plistref.h [moved from include/prop/plistref.h with 100% similarity]
common/include/prop/prop_array.h [moved from include/prop/prop_array.h with 100% similarity]
common/include/prop/prop_bool.h [moved from include/prop/prop_bool.h with 100% similarity]
common/include/prop/prop_data.h [moved from include/prop/prop_data.h with 100% similarity]
common/include/prop/prop_dictionary.h [moved from include/prop/prop_dictionary.h with 100% similarity]
common/include/prop/prop_ingest.h [moved from include/prop/prop_ingest.h with 100% similarity]
common/include/prop/prop_number.h [moved from include/prop/prop_number.h with 100% similarity]
common/include/prop/prop_object.h [moved from include/prop/prop_object.h with 100% similarity]
common/include/prop/prop_string.h [moved from include/prop/prop_string.h with 100% similarity]
common/include/prop/proplib.h [moved from include/prop/proplib.h with 100% similarity]
common/include/sys/Makefile [deleted file]
common/include/sys/Makefile.mount.inc [deleted file]
common/lib/libprop/prop_object.c
common/lib/libutil/Makefile.inc
include/Makefile
include/minix/Makefile
include/minix/mount.h [moved from common/include/sys/mount.h with 97% similarity]
include/minix/termios.h [moved from common/include/termios.h with 100% similarity]
include/sys/Makefile
include/sys/bootblock.h [moved from common/include/sys/bootblock.h with 100% similarity]
include/sys/disk.h [moved from common/include/sys/disk.h with 100% similarity]
include/sys/disklabel.h [moved from common/include/sys/disklabel.h with 100% similarity]
include/sys/disklabel_gpt.h [moved from common/include/sys/disklabel_gpt.h with 100% similarity]
include/sys/dkbad.h [moved from common/include/sys/dkbad.h with 100% similarity]
include/sys/dkio.h [moved from common/include/sys/dkio.h with 100% similarity]
include/sys/elf64.h [moved from common/include/sys/elf64.h with 100% similarity]
include/sys/elf_common.h [moved from common/include/sys/elf_common.h with 100% similarity]
include/sys/elf_core.h [moved from common/include/sys/elf_core.h with 100% similarity]
include/sys/elf_generic.h [moved from common/include/sys/elf_generic.h with 100% similarity]
include/sys/exec_elf.h [moved from common/include/sys/exec_elf.h with 100% similarity]
include/sys/ioc_block.h [moved from common/include/sys/ioc_block.h with 100% similarity]
include/sys/ioc_disk.h [moved from common/include/sys/ioc_disk.h with 100% similarity]
include/sys/ioc_fbd.h [moved from common/include/sys/ioc_fbd.h with 100% similarity]
include/sys/ioc_file.h [moved from common/include/sys/ioc_file.h with 100% similarity]
include/sys/ioc_memory.h [moved from common/include/sys/ioc_memory.h with 100% similarity]
include/sys/ioc_sound.h [moved from common/include/sys/ioc_sound.h with 100% similarity]
include/sys/ioc_tape.h [moved from common/include/sys/ioc_tape.h with 100% similarity]
include/sys/ioc_tty.h [moved from common/include/sys/ioc_tty.h with 100% similarity]
include/sys/ioccom.h [moved from common/include/sys/ioccom.h with 100% similarity]
include/sys/iostat.h [moved from common/include/sys/iostat.h with 100% similarity]
include/sys/kbdio.h [moved from common/include/sys/kbdio.h with 100% similarity]
include/sys/mtio.h [moved from common/include/sys/mtio.h with 100% similarity]
include/sys/mutex.h [moved from common/include/sys/mutex.h with 100% similarity]
include/sys/procfs.h [moved from common/include/sys/procfs.h with 100% similarity]
include/sys/svrctl.h [moved from common/include/sys/svrctl.h with 100% similarity]
include/sys/video.h [moved from common/include/sys/video.h with 100% similarity]
include/sys/vm.h [moved from common/include/sys/vm.h with 100% similarity]

diff --git a/common/Makefile b/common/Makefile
deleted file mode 100644 (file)
index b3f5270..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-
-SUBDIR+= include
-
-.include <bsd.subdir.mk>
diff --git a/common/include/Makefile b/common/include/Makefile
deleted file mode 100644 (file)
index 8335742..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-
-INCSDIR= /usr/include/minix
-
-INCS+= termios.h
-
-SUBDIR+= sys
-
-.include <bsd.kinc.mk>
diff --git a/common/include/sys/Makefile b/common/include/sys/Makefile
deleted file mode 100644 (file)
index b895df8..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-
-INCSDIR= /usr/include/sys
-
-INCS+= elf64.h elf_common.h elf_generic.h \
-       ioc_block.h ioc_fbd.h ioc_file.h ioc_tape.h ioc_disk.h \
-       ioc_memory.h ioc_sound.h ioc_tty.h \
-       kbdio.h mtio.h svrctl.h video.h vm.h procfs.h elf_core.h exec_elf.h \
-       disk.h dkio.h ioccom.h mutex.h iostat.h disklabel.h disklabel_gpt.h \
-       bootblock.h dkbad.h
-
-.include <bsd.kinc.mk>
diff --git a/common/include/sys/Makefile.mount.inc b/common/include/sys/Makefile.mount.inc
deleted file mode 100644 (file)
index 9d59529..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-.include <bsd.own.mk>
-
-.PATH: ${NETBSDSRCDIR}/common/include/sys
-
-INCS+= mount.h
index fd0f14de9400482fce9eccf856f07226a965f941..9f85c3e764050c65cc3006e9663045e02174933d 100644 (file)
@@ -39,7 +39,9 @@
 #include <fcntl.h>
 #include <limits.h>
 #include <unistd.h>
+#if defined(__minix)
 #include <assert.h>
+#endif /* defined(__minix) */
 #endif
 #include <sys/atomic.h>
 
index 2cb2184d99d245f20164f7bcad34f41cceccdc2d..4ce9e03aecae0dd7ff01da58a49bfb96a5b99474 100644 (file)
@@ -4,5 +4,5 @@
 SRCS+= snprintb.c
 .else
 SRCS+= snprintb.c proc_compare.c getfstypename.c
-COPTS.snprintb.c = -Wno-format-nonliteral
 .endif
+COPTS.snprintb.c = -Wno-format-nonliteral
index e6ea0024e80a718be4ce507ffdfc9edd43591427..129400901f39098a289c89d29d81e391d73031fb 100644 (file)
@@ -7,8 +7,6 @@ NOOBJ=          # defined
 
 # Missing: mp.h
 
-.if defined(__MINIX)
-# Avoid installing: kvm.h lwp.h sa.h (latter not installed anyway)
 INCS=  a.out.h aio.h ar.h assert.h atomic.h \
        bitstring.h bm.h cdbr.h cdbw.h complex.h cpio.h ctype.h \
        db.h dirent.h disktab.h dlfcn.h err.h errno.h fenv.h fmtmsg.h fnmatch.h \
@@ -20,31 +18,10 @@ INCS=       a.out.h aio.h ar.h assert.h atomic.h \
        ndbm.h netconfig.h netdb.h netgroup.h nlist.h nl_types.h nsswitch.h \
        paths.h pwd.h randomid.h ranlib.h re_comp.h regex.h regexp.h \
        resolv.h res_update.h rmt.h sched.h search.h semaphore.h setjmp.h \
-       sgtty.h signal.h stab.h stdbool.h stddef.h stdio.h stdlib.h string.h \
-       strings.h stringlist.h struct.h sysexits.h tar.h time.h \
-       ttyent.h tzfile.h ucontext.h ulimit.h unistd.h util.h utime.h utmp.h \
-       utmpx.h uuid.h varargs.h vis.h wchar.h wctype.h wordexp.h
-
-# MINIX Specific headers.
-INCS+=  env.h fetch.h lib.h libutil.h timers.h
-
-.else
-INCS=  a.out.h aio.h ar.h assert.h atomic.h \
-       bitstring.h bm.h cdbr.h cdbw.h complex.h cpio.h ctype.h \
-       db.h dirent.h disktab.h dlfcn.h err.h errno.h fenv.h fmtmsg.h fnmatch.h \
-       fstab.h fts.h ftw.h getopt.h glob.h grp.h ifaddrs.h iconv.h \
-       inttypes.h iso646.h kvm.h langinfo.h libgen.h \
-       limits.h link.h link_aout.h link_elf.h locale.h \
-       login_cap.h lwp.h malloc.h math.h md2.h \
-       memory.h mntopts.h monetary.h mpool.h mqueue.h \
-       ndbm.h netconfig.h netdb.h netgroup.h nlist.h nl_types.h nsswitch.h \
-       paths.h pwd.h quota.h randomid.h ranlib.h re_comp.h regex.h regexp.h \
-       resolv.h res_update.h rmt.h sched.h search.h semaphore.h setjmp.h \
-       string.h sgtty.h signal.h spawn.h stab.h stdbool.h stddef.h stdio.h \
+       string.h sgtty.h signal.h stab.h stdbool.h stddef.h stdio.h \
        stdlib.h strings.h stringlist.h struct.h sysexits.h tar.h time.h \
        ttyent.h tzfile.h ucontext.h ulimit.h unistd.h util.h utime.h utmp.h \
        utmpx.h uuid.h vis.h wchar.h wctype.h wordexp.h
-.endif
 INCS+= arpa/ftp.h arpa/inet.h arpa/nameser.h arpa/nameser_compat.h \
        arpa/telnet.h arpa/tftp.h
 INCS+= protocols/dumprestore.h protocols/routed.h protocols/rwhod.h \
@@ -60,6 +37,12 @@ INCS+=  ssp/ssp.h ssp/stdio.h ssp/string.h ssp/strings.h ssp/unistd.h
 INCS+= ieeefp.h
 .endif
 
+.if defined(__MINIX)
+# MINIX Specific headers.
+INCS+=  env.h fetch.h lib.h libutil.h timers.h varargs.h 
+.endif
+
+
 .include <bsd.own.mk>
 
 
@@ -71,14 +54,9 @@ INCSDIR=     /usr/include
 .else
 SUBDIR=                rpc
 .endif
-.if defined(__MINIX)
-SUBDIR+=       prop
-.else
 SUBDIR+=       ../common/include/prop
-.endif
 
 .if defined(__MINIX)
-SUBDIR+=       arch/${MACHINE_ARCH}
 SUBDIR+=       arch sys minix
 SUBDIR+=       net netinet netinet6
 SUBDIR+=       ddekit
index d0627e35002e65cbc0ea1d91d4ab84effc77cd69..2c3cec201d630b843f79c493adff1b3c9fc16540 100644 (file)
@@ -14,18 +14,14 @@ INCS+=      acpi.h audio_fw.h bitmap.h \
        driver.h drivers.h drvlib.h ds.h \
        endpoint.h fslib.h gcov.h hash.h \
        hgfs.h ioctl.h input.h ipc.h ipcconst.h \
-       keymap.h limits.h mthread.h minlib.h \
+       keymap.h limits.h mount.h mthread.h minlib.h \
        netdriver.h optset.h partition.h portio.h \
        priv.h procfs.h profile.h queryparam.h \
        rs.h safecopies.h sched.h sef.h sffs.h \
        sound.h spin.h sys_config.h sysinfo.h \
-       syslib.h sysutil.h timers.h type.h \
+       syslib.h sysutil.h termios.h timers.h type.h \
        tty.h u64.h usb.h usb_ch9.h vbox.h \
        vboxfs.h vboxif.h vboxtype.h vm.h \
        vfsif.h vtreefs.h libminixfs.h netsock.h
 
-# Necessary as the build system does not support multiple inclusion 
-# of bsd.kinc.mk in a single Makefile with different INCSDIR
-.include "${NETBSDSRCDIR}/common/include/sys/Makefile.mount.inc"
-
 .include <bsd.kinc.mk>
similarity index 97%
rename from common/include/sys/mount.h
rename to include/minix/mount.h
index f4fbd7344e5ba7a68878dacf757ab7c41e6bf996..dddb4e6c87a6039727dfe0a540491443a689273c 100644 (file)
@@ -1,4 +1,4 @@
-/* <sys/mount.h>
+/* <minix/mount.h>
  * definitions for mount(2) 
  */
 
index f8278330152101cb2fd9c589fb1bd5c2d6cc2381..921ccbba6c8db2ee31b408a32e9fee5a0003ceef 100644 (file)
@@ -36,6 +36,15 @@ INCS+=       ansi.h atomic.h \
        extattr.h \
        wait.h exec.h
 
+# Present only in minix
+INCS+= ioc_net.h statfs.h
+INCS+= elf64.h elf_common.h elf_generic.h \
+       ioc_block.h ioc_fbd.h ioc_file.h ioc_tape.h ioc_disk.h \
+       ioc_memory.h ioc_sound.h ioc_tty.h \
+       kbdio.h mtio.h svrctl.h video.h vm.h procfs.h elf_core.h exec_elf.h \
+       disk.h dkio.h ioccom.h mutex.h iostat.h disklabel.h disklabel_gpt.h \
+       bootblock.h dkbad.h
+
 INCSYMLINKS=\
        sys/fcntl.h /usr/include/fcntl.h \
        sys/poll.h /usr/include/poll.h \
similarity index 100%
rename from common/include/sys/disk.h
rename to include/sys/disk.h
similarity index 100%
rename from common/include/sys/dkio.h
rename to include/sys/dkio.h
similarity index 100%
rename from common/include/sys/mtio.h
rename to include/sys/mtio.h
similarity index 100%
rename from common/include/sys/vm.h
rename to include/sys/vm.h