summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e6829cf)
SCCS-vsn: sys/kern/vfs_vnops.c 4.26
-/* fio.c 4.25 82/07/17 */
+/* vfs_vnops.c 4.26 82/08/03 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/socket.h"
#include "../h/socketvar.h"
#include "../h/proc.h"
#include "../h/socket.h"
#include "../h/socketvar.h"
#include "../h/proc.h"
-#ifdef EFS
-#include "../net/in.h"
-#include "../h/efs.h"
-#endif
/*
* Openi called to allow handler
* of special files to initialize and
* validate before actual IO.
*/
/*
* Openi called to allow handler
* of special files to initialize and
* validate before actual IO.
*/
-#ifdef EFS
-openi(ip, rw, trf)
-#else
-openi(ip, rw)
-#endif
register struct inode *ip;
{
dev_t dev;
register struct inode *ip;
{
dev_t dev;
case IFCHR:
if (maj >= nchrdev)
goto bad;
case IFCHR:
if (maj >= nchrdev)
goto bad;
-#ifdef EFS
- (*cdevsw[maj].d_open)(dev, rw, trf);
-#else
- (*cdevsw[maj].d_open)(dev, rw);
-#endif
+ (*cdevsw[maj].d_open)(dev, mode);
break;
case IFBLK:
if (maj >= nblkdev)
goto bad;
break;
case IFBLK:
if (maj >= nblkdev)
goto bad;
- (*bdevsw[maj].d_open)(dev, rw);
+ (*bdevsw[maj].d_open)(dev, mode);
ip = namei(uchar, 0, follow);
if (ip == NULL)
return (NULL);
ip = namei(uchar, 0, follow);
if (ip == NULL)
return (NULL);
-#ifdef EFS
- /*
- * References to extended file system are
- * returned to the caller.
- */
- if (efsinode(ip))
- return (ip);
-#endif
if (u.u_uid == ip->i_uid)
return (ip);
if (suser())
if (u.u_uid == ip->i_uid)
return (ip);
if (suser())