summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-03 14:25:27 +0000
committerbde <bde@FreeBSD.org>1996-09-03 14:25:27 +0000
commit51ff523803ffa72907ef0cb5d9f95e36ac2b1b73 (patch)
treeba9e41138a27f4565955ba86fe3a5a131647e3fc /sys/miscfs
parentad9b91037fe27c080ad2621696ce946fffdee225 (diff)
downloadFreeBSD-src-51ff523803ffa72907ef0cb5d9f95e36ac2b1b73.zip
FreeBSD-src-51ff523803ffa72907ef0cb5d9f95e36ac2b1b73.tar.gz
Eliminated nested include of <sys/unistd.h> in <sys/file.h> in the kernel.
Include it directly in the few places where it is used. Reduced some #includes of <sys/file.h> to #includes of <sys/fcntl.h> or nothing.
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/devfs/devfs_vnops.c4
-rw-r--r--sys/miscfs/fdesc/fdesc_vnops.c3
-rw-r--r--sys/miscfs/fifofs/fifo_vnops.c3
-rw-r--r--sys/miscfs/kernfs/kernfs_vnops.c5
-rw-r--r--sys/miscfs/portal/portal_vnops.c3
-rw-r--r--sys/miscfs/procfs/procfs_vnops.c5
-rw-r--r--sys/miscfs/specfs/spec_vnops.c5
7 files changed, 17 insertions, 11 deletions
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c
index 0f7d340..8f457ac 100644
--- a/sys/miscfs/devfs/devfs_vnops.c
+++ b/sys/miscfs/devfs/devfs_vnops.c
@@ -1,7 +1,7 @@
/*
* Written by Julian Elischer (julian@DIALix.oz.au)
*
- * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.22 1996/08/13 07:21:45 julian Exp $
+ * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.23 1996/08/13 19:48:41 julian Exp $
*
* symlinks can wait 'til later.
*/
@@ -11,11 +11,11 @@
#include <sys/namei.h>
#include <sys/resourcevar.h> /* defines plimit structure in proc struct */
#include <sys/kernel.h>
-#include <sys/file.h> /* define FWRITE ... */
#include <sys/stat.h>
#include <sys/buf.h>
#include <sys/proc.h>
#include <sys/mount.h>
+#include <sys/unistd.h>
#include <sys/vnode.h>
#include <miscfs/specfs/specdev.h>/* definitions of spec functions we use */
#include <sys/malloc.h>
diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c
index 27adb43..8b08090 100644
--- a/sys/miscfs/fdesc/fdesc_vnops.c
+++ b/sys/miscfs/fdesc/fdesc_vnops.c
@@ -35,7 +35,7 @@
*
* @(#)fdesc_vnops.c 8.9 (Berkeley) 1/21/94
*
- * $Id: fdesc_vnops.c,v 1.16 1996/06/12 03:37:02 davidg Exp $
+ * $Id: fdesc_vnops.c,v 1.17 1996/06/12 05:09:52 gpalmer Exp $
*/
/*
@@ -48,6 +48,7 @@
#include <sys/kernel.h> /* boottime */
#include <sys/resourcevar.h>
#include <sys/filedesc.h>
+#include <sys/unistd.h>
#include <sys/vnode.h>
#include <sys/malloc.h>
#include <sys/file.h>
diff --git a/sys/miscfs/fifofs/fifo_vnops.c b/sys/miscfs/fifofs/fifo_vnops.c
index e6f1fee..ded0d5f 100644
--- a/sys/miscfs/fifofs/fifo_vnops.c
+++ b/sys/miscfs/fifofs/fifo_vnops.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)fifo_vnops.c 8.2 (Berkeley) 1/4/94
- * $Id: fifo_vnops.c,v 1.15 1995/12/14 09:53:03 phk Exp $
+ * $Id: fifo_vnops.c,v 1.16 1996/02/13 18:16:23 wollman Exp $
*/
#include <sys/param.h>
@@ -39,6 +39,7 @@
#include <sys/proc.h>
#include <sys/time.h>
#include <sys/namei.h>
+#include <sys/unistd.h>
#include <sys/vnode.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
diff --git a/sys/miscfs/kernfs/kernfs_vnops.c b/sys/miscfs/kernfs/kernfs_vnops.c
index c01ee09..5841ed1 100644
--- a/sys/miscfs/kernfs/kernfs_vnops.c
+++ b/sys/miscfs/kernfs/kernfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)kernfs_vnops.c 8.6 (Berkeley) 2/10/94
- * $Id: kernfs_vnops.c,v 1.14 1995/12/03 14:54:16 bde Exp $
+ * $Id: kernfs_vnops.c,v 1.15 1996/07/03 03:48:46 phk Exp $
*/
/*
@@ -48,9 +48,10 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/proc.h>
+#include <sys/unistd.h>
#include <sys/vnode.h>
#include <sys/malloc.h>
-#include <sys/file.h>
+#include <sys/fcntl.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <sys/namei.h>
diff --git a/sys/miscfs/portal/portal_vnops.c b/sys/miscfs/portal/portal_vnops.c
index e1ae904..a9d7328 100644
--- a/sys/miscfs/portal/portal_vnops.c
+++ b/sys/miscfs/portal/portal_vnops.c
@@ -35,7 +35,7 @@
*
* @(#)portal_vnops.c 8.8 (Berkeley) 1/21/94
*
- * $Id: portal_vnops.c,v 1.12 1996/06/12 03:37:29 davidg Exp $
+ * $Id: portal_vnops.c,v 1.13 1996/06/12 05:09:59 gpalmer Exp $
*/
/*
@@ -50,6 +50,7 @@
#include <sys/time.h>
#include <sys/proc.h>
#include <sys/filedesc.h>
+#include <sys/unistd.h>
#include <sys/vnode.h>
#include <sys/file.h>
#include <sys/stat.h>
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c
index 6325969..cd1a550 100644
--- a/sys/miscfs/procfs/procfs_vnops.c
+++ b/sys/miscfs/procfs/procfs_vnops.c
@@ -36,7 +36,7 @@
*
* @(#)procfs_vnops.c 8.6 (Berkeley) 2/7/94
*
- * $Id: procfs_vnops.c,v 1.22 1996/06/17 22:43:36 dyson Exp $
+ * $Id: procfs_vnops.c,v 1.23 1996/06/18 05:16:00 dyson Exp $
*/
/*
@@ -47,8 +47,9 @@
#include <sys/systm.h>
#include <sys/time.h>
#include <sys/kernel.h>
-#include <sys/file.h>
+#include <sys/fcntl.h>
#include <sys/proc.h>
+#include <sys/unistd.h>
#include <sys/vnode.h>
#include <sys/namei.h>
#include <sys/malloc.h>
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c
index 58241c2..6df8bad 100644
--- a/sys/miscfs/specfs/spec_vnops.c
+++ b/sys/miscfs/specfs/spec_vnops.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)spec_vnops.c 8.6 (Berkeley) 4/9/94
- * $Id: spec_vnops.c,v 1.30 1996/07/27 03:50:31 dyson Exp $
+ * $Id: spec_vnops.c,v 1.31 1996/08/21 21:55:33 dyson Exp $
*/
#include <sys/param.h>
@@ -42,11 +42,12 @@
#include <sys/buf.h>
#include <sys/mount.h>
#include <sys/namei.h>
+#include <sys/unistd.h>
#include <sys/vnode.h>
#include <sys/stat.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
-#include <sys/file.h>
+#include <sys/fcntl.h>
#include <sys/disklabel.h>
#include <sys/vmmeter.h>
OpenPOWER on IntegriCloud