diff options
Diffstat (limited to 'sys/miscfs/devfs')
-rw-r--r-- | sys/miscfs/devfs/devfs_back.c | 28 | ||||
-rw-r--r-- | sys/miscfs/devfs/devfs_front.c | 14 | ||||
-rw-r--r-- | sys/miscfs/devfs/devfs_vfsops.c | 4 | ||||
-rw-r--r-- | sys/miscfs/devfs/devfs_vnops.c | 16 | ||||
-rw-r--r-- | sys/miscfs/devfs/devfsdefs.h | 4 |
5 files changed, 33 insertions, 33 deletions
diff --git a/sys/miscfs/devfs/devfs_back.c b/sys/miscfs/devfs/devfs_back.c index a12990a..5e615cb 100644 --- a/sys/miscfs/devfs/devfs_back.c +++ b/sys/miscfs/devfs/devfs_back.c @@ -2,7 +2,7 @@ /* * Written by Julian Elischer (julian@DIALix.oz.au) * - * $Header: /sys/miscfs/devfs/RCS/devfs_back.c,v 1.3 1995/01/07 04:20:25 root Exp root $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_back.c,v 1.2 1995/04/20 07:34:51 julian Exp $ */ #include "param.h" @@ -25,7 +25,7 @@ int devfs_set_up = 0; /* note tha we HAVE set up the backing tree */ /* * Set up the root directory node in the backing plane - * This is happenning before the vfs system has been + * This is happenning before the vfs system has been * set up yet, so be careful about what we reference.. * Notice that the ops are by indirection.. as they haven't * been set up yet! @@ -35,7 +35,7 @@ void devfs_back_init() /*proto*/ devnm_p devbp; dn_p dnp; - /* + /* * This may be called several times.. only do it if it needs * to be done. */ @@ -61,7 +61,7 @@ void devfs_back_init() /*proto*/ } bzero(dnp,sizeof(devnode_t)); /* - * Link the two together + * Link the two together */ devbp->dnp = dnp; dnp->links = 1; @@ -81,7 +81,7 @@ void devfs_back_init() /*proto*/ dnp->by.Dir.dirlast = &dnp->by.Dir.dirlist; dnp->by.Dir.myname = devbp; - /* + /* * set up a pointer to directory type ops */ dnp->ops = &devfs_vnodeop_p; @@ -92,7 +92,7 @@ void devfs_back_init() /*proto*/ TIMEVAL_TO_TIMESPEC(&time,&(dnp->ctime)) dnp->mtime = dnp->ctime; dnp->atime = dnp->ctime; - + /* * and the list of layers */ @@ -132,8 +132,8 @@ int dev_finddir(char *orig_path, dn_p dirnode, int create, dn_p *dn_pp) /*proto* char *name; register char *cp; int retval; - - + + DBPRINT(("dev_finddir\n")); devfs_back_init(); /* in case we are the first */ if(!dirnode) dirnode = dev_root->dnp; @@ -242,7 +242,7 @@ int dev_add_node(char *name, dn_p dirnode, int entrytype, union typeinfo *by, de dnp->links = 1; /* implicit from our own name-node */ /* - * note the node type we are adding + * note the node type we are adding * and set the creation times to NOW * put in it's name * include the implicit link in the count of links to the devnode.. @@ -294,7 +294,7 @@ int dev_add_node(char *name, dn_p dirnode, int entrytype, union typeinfo *by, de * Make sure it has DEVICE type ops * and device specific fields are correct */ - dnp->ops = &dev_spec_vnodeop_p; + dnp->ops = &dev_spec_vnodeop_p; dnp->by.Bdev.bdevsw = by->Bdev.bdevsw; dnp->by.Bdev.dev = by->Bdev.dev; break; @@ -308,7 +308,7 @@ int dev_add_node(char *name, dn_p dirnode, int entrytype, union typeinfo *by, de dnp->by.Cdev.dev = by->Cdev.dev; break; case DEV_DDEV: - /* + /* * store the address of (the address of) the ops * and the magic cookie to use with them */ @@ -389,7 +389,7 @@ int dev_remove(devnm_p devbp) /*proto*/ */ devfs_dn_free(devbp->dnp); free (devbp, M_DEVFSBACK); - return 0; + return 0; } int dev_touch(devnm_p key) /* update the node for this dev */ /*proto*/ @@ -421,7 +421,7 @@ void devfs_dn_free(dn_p dnp) /*proto*/ int get_cdev_major_num(caddr_t addr) /*proto*/ { int index = 0; - + DBPRINT(("get_cdev_major_num\n")); while (index < nchrdev) { @@ -439,7 +439,7 @@ int get_cdev_major_num(caddr_t addr) /*proto*/ int get_bdev_major_num(caddr_t addr) /*proto*/ { int index = 0; - + DBPRINT(("get_bdev_major_num\n")); while (index < nblkdev) { diff --git a/sys/miscfs/devfs/devfs_front.c b/sys/miscfs/devfs/devfs_front.c index 14bf104..a3d0255 100644 --- a/sys/miscfs/devfs/devfs_front.c +++ b/sys/miscfs/devfs/devfs_front.c @@ -1,7 +1,7 @@ /* * Written by Julian Elischer (julian@DIALix.oz.au) * - * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_front.c,v 1.2 1995/04/20 07:34:52 julian Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_front.c,v 1.3 1995/04/20 07:42:41 julian Exp $ * */ @@ -52,7 +52,7 @@ int devfs_add_fronts(devnm_p parent,devnm_p child) /*proto*/ child->name); continue; } - + } return(0); /* for now always succeed */ } @@ -201,14 +201,14 @@ int dev_mk_front(dn_p parent,devnm_p back,devnm_p *devnm_pp , struct devfsmount /* * not accounted for in the link counts.. * only used to get from the front name entries - * to the total length of the names + * to the total length of the names * which is stored in the parent's devnode */ newfp->parent = parent; /* is NULL for root */ /*******************************************************\ * Put it in the appropriate back/front list too. * \*******************************************************/ - newfp->next_front = *back->prev_frontp; + newfp->next_front = *back->prev_frontp; newfp->prev_frontp = back->prev_frontp; *back->prev_frontp = newfp; back->prev_frontp = &(newfp->next_front); @@ -237,7 +237,7 @@ int dev_mk_front(dn_p parent,devnm_p back,devnm_p *devnm_pp , struct devfsmount /* * duplicate the backing tree into a tree of nodes hung off the - * mount point given as the argument. Do this by + * mount point given as the argument. Do this by * calling dev_mk_front() which recurses all the way * up the tree.. */ @@ -293,7 +293,7 @@ void dev_free_front(devnm_p devfp) /*proto*/ { dev_free_front(devfp->dnp->by.Dir.dirlist); } - /* + /* * drop the reference counts on our and our parent's * nodes for "." and ".." (root has ".." -> "." ) */ @@ -319,7 +319,7 @@ void dev_free_front(devnm_p devfp) /*proto*/ } /* * If the node has a backing pointer we need to free ourselves - * from that.. + * from that.. * Remember that we may not HAVE a backing node. */ if (back = devfp->as.front.realthing) /* yes an assign */ diff --git a/sys/miscfs/devfs/devfs_vfsops.c b/sys/miscfs/devfs/devfs_vfsops.c index 96c34f44..5781df7 100644 --- a/sys/miscfs/devfs/devfs_vfsops.c +++ b/sys/miscfs/devfs/devfs_vfsops.c @@ -1,7 +1,7 @@ /* * Written by Julian Elischer (julian@DIALix.oz.au) * - * $Header: /sys/miscfs/devfs/RCS/devfs_vfsops.c,v 1.4 1995/01/07 04:20:25 root Exp root $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vfsops.c,v 1.2 1995/04/20 07:34:53 julian Exp $ * * */ @@ -26,7 +26,7 @@ int devfs_init(void) /*proto*/ devfs_back_init(); /* devfs_front_init();*/ /* nothing to do at the moment */ return 0; /*XXX*/ -} +} /* * mp - pointer to 'mount' structure diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c index 079ebd5..5deda3e 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.3 1995/04/20 22:00:05 julian Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v 1.4 1995/05/03 23:04:26 julian Exp $ * * symlinks can wait 'til later. */ @@ -187,7 +187,7 @@ DBPRINT(("errr, maybe not cached ")); /* notfound: */ /*XXX*/ /* possibly release some resources here */ /* - * If creating, and at end of pathname + * If creating, and at end of pathname * then can consider * allowing file to be created. * XXX original code (ufs_lookup) checked for . being deleted @@ -222,7 +222,7 @@ DBPRINT(("MKACCESS ")); if (!lockparent) VOP_UNLOCK(dir_vnode); /* DON't make a cache entry... status changing */ - return (EJUSTRETURN); + return (EJUSTRETURN); } /* * Insert name into cache (as non-existent) if appropriate. @@ -345,7 +345,7 @@ found: /* * Insert name into cache if appropriate. */ - if (cnp->cn_flags & MAKEENTRY) + if (cnp->cn_flags & MAKEENTRY) cache_enter(dir_vnode, *result_vnode, cnp); DBPRINT(("GOT\n")); return (0); @@ -640,7 +640,7 @@ DBPRINT(("setattr\n")); file_node->mode |= vap->va_mode & 07777; } - if (vap->va_uid != (uid_t)VNOVAL) + if (vap->va_uid != (uid_t)VNOVAL) { file_node->uid = vap->va_uid; } @@ -1038,7 +1038,7 @@ DBPRINT(("islocked\n")); return 0; } -int devfs_bmap(ap) +int devfs_bmap(ap) struct vop_bmap_args /* { struct vnode *a_vp; daddr_t a_bn; @@ -1080,7 +1080,7 @@ DBPRINT(("advlock\n")); } int devfs_reclaim(ap) - struct vop_reclaim_args /* { + struct vop_reclaim_args /* { struct vnode *a_vp; } */ *ap; { @@ -1094,7 +1094,7 @@ DBPRINT(("reclaim\n")); return error; } - file_node->vn = 0; + file_node->vn = 0; file_node->vn_id = 0; return(0); } diff --git a/sys/miscfs/devfs/devfsdefs.h b/sys/miscfs/devfs/devfsdefs.h index a2f6d40..c6216e2 100644 --- a/sys/miscfs/devfs/devfsdefs.h +++ b/sys/miscfs/devfs/devfsdefs.h @@ -7,7 +7,7 @@ /* * Written by Julian Elischer (julian@DIALIX.oz.au) * - * $Header: /home/ncvs/src/sys/miscfs/devfs/devfsdefs.h,v 1.2 1995/04/20 07:34:55 julian Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfsdefs.h,v 1.3 1995/05/03 23:06:31 julian Exp $ */ /* first a couple of defines for compatibility with inodes */ @@ -107,7 +107,7 @@ struct devnode /* the equivalent of an INODE */ dn_p parent; devnm_p myname; int entrycount; - }Dir; + }Dir; struct { char *name; /* must be allocated separatly */ int namelen; |