merge of bill's code plus lint (plus, of course, cleanup of bill's bugs)
[unix-history] / usr / src / sys / kern / vfs_vnops.c
index 39e00a7..dd8c07d 100644 (file)
@@ -1,4 +1,4 @@
-/*     vfs_vnops.c     4.34    83/03/31        */
+/*     vfs_vnops.c     4.35    83/05/27        */
 
 #include "../machine/reg.h"
 
 
 #include "../machine/reg.h"
 
 #include "../h/proc.h"
 #include "../h/nami.h"
 
 #include "../h/proc.h"
 #include "../h/nami.h"
 
-/*
- * Openi called to allow handler
- * of special files to initialize and
- * validate before actual IO.
- */
-openi(ip, mode)
-       register struct inode *ip;
-{
-       dev_t dev = (dev_t)ip->i_rdev;
-       register u_int maj = major(dev);
-
-       switch (ip->i_mode&IFMT) {
-
-       case IFCHR:
-               if (maj >= nchrdev)
-                       return (ENXIO);
-               return ((*cdevsw[maj].d_open)(dev, mode));
-
-       case IFBLK:
-               if (maj >= nblkdev)
-                       return (ENXIO);
-               return ((*bdevsw[maj].d_open)(dev, mode));
-       }
-       return (0);
-}
-
 /*
  * Check mode permission on inode pointer.
  * Mode is READ, WRITE or EXEC.
 /*
  * Check mode permission on inode pointer.
  * Mode is READ, WRITE or EXEC.