--- src/sys/vfs/specfs/spec_vnops.c 2006/07/19 06:08:14 1.46 +++ src/sys/vfs/specfs/spec_vnops.c 2006/07/28 02:17:41 1.47 @@ -131,7 +131,7 @@ static void spec_getpages_iodone (struct * Open a special file. * * spec_open(struct vnode *a_vp, int a_mode, struct ucred *a_cred, - * struct file *a_fp, struct thread *a_td) + * struct file *a_fp) */ /* ARGSUSED */ static int @@ -240,7 +240,7 @@ spec_open(struct vop_open_args *ap) * only called for the last close unless D_TRACKCLOSE is set. */ VOP_UNLOCK(vp, 0); - error = dev_dopen(dev, ap->a_mode, S_IFCHR, curthread); + error = dev_dopen(dev, ap->a_mode, S_IFCHR, ap->a_cred); vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); if (error) @@ -361,7 +361,7 @@ spec_write(struct vop_write_args *ap) * Device ioctl operation. * * spec_ioctl(struct vnode *a_vp, int a_command, caddr_t a_data, - * int a_fflag, struct ucred *a_cred, struct thread *a_td) + * int a_fflag, struct ucred *a_cred) */ /* ARGSUSED */ static int @@ -373,12 +373,11 @@ spec_ioctl(struct vop_ioctl_args *ap) return (EBADF); /* device was revoked */ return (dev_dioctl(dev, ap->a_command, ap->a_data, - ap->a_fflag,curthread)); + ap->a_fflag, ap->a_cred)); } /* - * spec_poll(struct vnode *a_vp, int a_events, struct ucred *a_cred, - * struct thread *a_td) + * spec_poll(struct vnode *a_vp, int a_events, struct ucred *a_cred) */ /* ARGSUSED */ static int @@ -388,7 +387,7 @@ spec_poll(struct vop_poll_args *ap) if ((dev = ap->a_vp->v_rdev) == NULL) return (EBADF); /* device was revoked */ - return (dev_dpoll(dev, ap->a_events, curthread)); + return (dev_dpoll(dev, ap->a_events)); } /* @@ -584,7 +583,7 @@ spec_close(struct vop_close_args *ap) needrelock = 1; VOP_UNLOCK(vp, 0); } - error = dev_dclose(dev, ap->a_fflag, S_IFCHR, curthread); + error = dev_dclose(dev, ap->a_fflag, S_IFCHR); if (needrelock) vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); } else {