From 6aeb05d7beb3dca9125aea23d23a4aee6f7edae2 Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Sat, 11 Nov 2006 16:26:58 +0000 Subject: [PATCH] Merge posix4/* into normal kernel hierarchy. Reviewed by: glanced at by jhb Approved by: silence on -arch@ and -standards@ --- include/Makefile | 4 ++-- sys/Makefile | 2 +- sys/compat/linux/linux_misc.c | 3 +-- sys/conf/files | 6 +++--- sys/i386/ibcs2/ibcs2_proto.h | 2 +- sys/i386/ibcs2/ibcs2_xenix.h | 2 +- sys/i386/linux/linux_proto.h | 2 +- sys/kern/Make.tags.inc | 2 -- sys/kern/kern_sig.c | 3 +-- sys/kern/kern_time.c | 3 +-- sys/kern/makesyscalls.sh | 2 +- sys/kern/uipc_mqueue.c | 2 +- sys/kern/uipc_sem.c | 9 ++++----- sys/kern/vfs_aio.c | 2 +- sys/security/mac/mac_posix_sem.c | 3 +-- sys/security/mac_biba/mac_biba.c | 3 +-- sys/security/mac_mls/mac_mls.c | 3 +-- sys/security/mac_stub/mac_stub.c | 3 +-- sys/security/mac_test/mac_test.c | 3 +-- sys/sys/sysproto.h | 2 +- sys/sys/thr.h | 2 +- 21 files changed, 26 insertions(+), 37 deletions(-) diff --git a/include/Makefile b/include/Makefile index 77a34f964353..652958941841 100644 --- a/include/Makefile +++ b/include/Makefile @@ -36,7 +36,7 @@ LHDRS= aio.h errno.h fcntl.h linker_set.h poll.h stdint.h syslog.h \ LDIRS= bsm cam geom net net80211 netatalk netatm netgraph netinet netinet6 \ netipsec ${_netipx} netkey netnatm ${_netncp} netsmb \ nfs nfsclient nfsserver \ - pccard posix4 sys vm + pccard sys vm LSUBDIRS= cam/scsi \ dev/acpica dev/an dev/bktr dev/firewire dev/hwpmc \ @@ -111,7 +111,7 @@ INCSLINKS+= sys/$i ${INCLUDEDIR}/$i INCSLINKS+= machine/$i ${INCLUDEDIR}/$i .endfor .for i in ${PHDRS} -INCSLINKS+= posix4/$i ${INCLUDEDIR}/$i +INCSLINKS+= sys/$i ${INCLUDEDIR}/$i .endfor .if ${MACHINE} != ${MACHINE_ARCH} diff --git a/sys/Makefile b/sys/Makefile index 8636e2521840..448b68868764 100644 --- a/sys/Makefile +++ b/sys/Makefile @@ -11,7 +11,7 @@ SUBDIR= boot CSCOPEDIRS= coda compat conf contrib crypto ddb dev fs geom gnu i4b isa \ isofs kern libkern modules net net80211 netatalk netatm \ netgraph netinet netinet6 netipx netkey netnatm netncp \ - netsmb nfs nfsclient nfs4client rpc pccard pci posix4 sys \ + netsmb nfs nfsclient nfs4client rpc pccard pci sys \ ufs vm ${ARCHDIR} ARCHDIR ?= ${MACHINE} diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index cab95c7470dd..178e357f7204 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -52,6 +52,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -73,8 +74,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include - #include #include #include diff --git a/sys/conf/files b/sys/conf/files index c4fb1c01285c..ff1388ffd795 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1315,6 +1315,7 @@ kern/imgact_shell.c standard kern/inflate.c optional gzip kern/init_main.c standard kern/init_sysent.c standard +kern/ksched.c optional _kposix_priority_scheduling kern/kern_acct.c standard kern/kern_acl.c standard kern/kern_alq.c optional alq @@ -1375,6 +1376,8 @@ kern/link_elf.c standard kern/linker_if.m standard kern/md4c.c optional netsmb kern/md5c.c standard +kern/p1003_1b.c standard +kern/posix4_mib.c standard kern/sched_4bsd.c optional sched_4bsd kern/sched_core.c optional sched_core kern/sched_ule.c optional sched_ule @@ -1919,9 +1922,6 @@ pci/ncr.c optional ncr pci pci/nfsmb.c optional nfsmb pci pci/viapm.c optional viapm pci pci/xrpu.c optional xrpu pci -posix4/ksched.c optional _kposix_priority_scheduling -posix4/p1003_1b.c standard -posix4/posix4_mib.c standard rpc/rpcclnt.c optional nfsclient security/audit/audit.c optional audit security/audit/audit_arg.c optional audit diff --git a/sys/i386/ibcs2/ibcs2_proto.h b/sys/i386/ibcs2/ibcs2_proto.h index 04b86d902c2c..f0140306293f 100644 --- a/sys/i386/ibcs2/ibcs2_proto.h +++ b/sys/i386/ibcs2/ibcs2_proto.h @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include diff --git a/sys/i386/ibcs2/ibcs2_xenix.h b/sys/i386/ibcs2/ibcs2_xenix.h index 5a3164f27f2f..3d35f66a9138 100644 --- a/sys/i386/ibcs2/ibcs2_xenix.h +++ b/sys/i386/ibcs2/ibcs2_xenix.h @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include diff --git a/sys/i386/linux/linux_proto.h b/sys/i386/linux/linux_proto.h index 09a4f9b251b7..e2484a982ccc 100644 --- a/sys/i386/linux/linux_proto.h +++ b/sys/i386/linux/linux_proto.h @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include diff --git a/sys/kern/Make.tags.inc b/sys/kern/Make.tags.inc index 421f73cf8c58..c782383bbb09 100644 --- a/sys/kern/Make.tags.inc +++ b/sys/kern/Make.tags.inc @@ -47,7 +47,6 @@ COMM= ${SYS}/dev/advansys/*.[ch] \ ${SYS}/netnatm/*.[ch] \ ${SYS}/nfs/*.[ch] \ ${SYS}/pci/*.[ch] \ - ${SYS}/posix4/*.[ch] \ ${SYS}/ufs/ffs/*.[ch] \ ${SYS}/ufs/ufs/*.[ch] \ ${SYS}/vm/*.[ch] \ @@ -64,7 +63,6 @@ COMMDIR1= ${SYS}/conf \ ${SYS}/netnatm \ ${SYS}/nfs \ ${SYS}/pci \ - ${SYS}/posix4 \ ${SYS}/vm \ ${SYS}/sys diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index a79039ce2432..01730951a58c 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -57,9 +57,9 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include -#include #include #include #include @@ -76,7 +76,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index 53ce9e455520..cae500fe4357 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -50,13 +50,12 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include #include -#include - #include #include diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh index 70cccb1638a9..631d214fee1d 100644 --- a/sys/kern/makesyscalls.sh +++ b/sys/kern/makesyscalls.sh @@ -125,7 +125,7 @@ s/\$//g printf "#define\t%s\n\n", sysproto_h > sysarg printf "#include \n" > sysarg printf "#include \n" > sysarg - printf "#include \n" > sysarg + printf "#include \n" > sysarg printf "#include \n\n" > sysarg printf "#include \n\n" > sysarg printf "struct proc;\n\n" > sysarg diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c index 9185c0ed9113..9e58c0509d5f 100644 --- a/sys/kern/uipc_mqueue.c +++ b/sys/kern/uipc_mqueue.c @@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -79,7 +80,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include /* * Limits and constants diff --git a/sys/kern/uipc_sem.c b/sys/kern/uipc_sem.c index 340c1a6831b0..0347a51ae23c 100644 --- a/sys/kern/uipc_sem.c +++ b/sys/kern/uipc_sem.c @@ -42,14 +42,17 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -57,11 +60,7 @@ __FBSDID("$FreeBSD$"); #include #include #include - -#include -#include -#include -#include +#include #include diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index a9b6b6effa87..763239931a09 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -57,7 +58,6 @@ __FBSDID("$FreeBSD$"); #include -#include #include #include #include diff --git a/sys/security/mac/mac_posix_sem.c b/sys/security/mac/mac_posix_sem.c index e852779aeed3..5e3941fdba6f 100644 --- a/sys/security/mac/mac_posix_sem.c +++ b/sys/security/mac/mac_posix_sem.c @@ -37,14 +37,13 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include #include #include -#include - #include #include diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c index 3f244ae37b8d..cfafc6cfc066 100644 --- a/sys/security/mac_biba/mac_biba.c +++ b/sys/security/mac_biba/mac_biba.c @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -66,8 +67,6 @@ #include #include -#include - #include #include diff --git a/sys/security/mac_mls/mac_mls.c b/sys/security/mac_mls/mac_mls.c index 2361abc2996a..d02f03455d2f 100644 --- a/sys/security/mac_mls/mac_mls.c +++ b/sys/security/mac_mls/mac_mls.c @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -66,8 +67,6 @@ #include #include -#include - #include #include diff --git a/sys/security/mac_stub/mac_stub.c b/sys/security/mac_stub/mac_stub.c index a9c3b853ebe0..dee29e324c4b 100644 --- a/sys/security/mac_stub/mac_stub.c +++ b/sys/security/mac_stub/mac_stub.c @@ -51,6 +51,7 @@ #include #include #include +#include #include #include #include @@ -68,8 +69,6 @@ #include #include -#include - #include #include diff --git a/sys/security/mac_test/mac_test.c b/sys/security/mac_test/mac_test.c index 921e641f7e91..d968ec93c7fc 100644 --- a/sys/security/mac_test/mac_test.c +++ b/sys/security/mac_test/mac_test.c @@ -46,6 +46,7 @@ #include #include #include +#include #include #include #include @@ -63,8 +64,6 @@ #include #include -#include - #include #include diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h index 00b58bfa54f5..c99ce417749e 100644 --- a/sys/sys/sysproto.h +++ b/sys/sys/sysproto.h @@ -11,8 +11,8 @@ #include #include -#include #include +#include #include diff --git a/sys/sys/thr.h b/sys/sys/thr.h index 216ef6fc210e..bcf1ef99816a 100644 --- a/sys/sys/thr.h +++ b/sys/sys/thr.h @@ -30,7 +30,7 @@ #ifndef _SYS_THR_H_ #define _SYS_THR_H_ -#include +#include /* Create the thread in the suspended state. */ #define THR_SUSPENDED 0x0001