summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-06 00:36:19 +0000
committerbde <bde@FreeBSD.org>1995-11-06 00:36:19 +0000
commit08b652fb6584a6e35dd3b2b51861b90f852b6d95 (patch)
tree91dcf848840fefc35bc4b406b8a5599bdac59cbb /sys/nfsclient
parentaa3705d78b7fc12ce3cf9e9a7437407154f241c8 (diff)
downloadFreeBSD-src-08b652fb6584a6e35dd3b2b51861b90f852b6d95.zip
FreeBSD-src-08b652fb6584a6e35dd3b2b51861b90f852b6d95.tar.gz
Replaced bogus macros for dummy devswitch entries by functions.
These functions went away: enosys (hasn't been used for some time) enxio enodev enoioctl (was used only once, actually for a vop) if_tun.c: Continued cleaning up... conf.h: Probably fixed the type of d_reset_t. It is hard to tell the correct type because there are no non-dummy device reset functions. Removed last vestige of ambiguous sleep message strings.
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_vnops.c27
-rw-r--r--sys/nfsclient/nfsnode.h4
2 files changed, 27 insertions, 4 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c
index 6d6a344..62a1478 100644
--- a/sys/nfsclient/nfs_vnops.c
+++ b/sys/nfsclient/nfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94
- * $Id: nfs_vnops.c,v 1.26 1995/10/22 09:37:45 davidg Exp $
+ * $Id: nfs_vnops.c,v 1.27 1995/10/29 15:33:15 phk Exp $
*/
/*
@@ -96,6 +96,8 @@ static int nfsfifo_read __P((struct vop_read_args *));
static int nfsfifo_write __P((struct vop_write_args *));
static int nfsspec_close __P((struct vop_close_args *));
static int nfsfifo_close __P((struct vop_close_args *));
+static int nfs_ioctl __P((struct vop_ioctl_args *));
+static int nfs_select __P((struct vop_select_args *));
static int nfs_flush __P((struct vnode *,struct ucred *,int,struct proc *,int));
static int nfs_setattrrpc __P((struct vnode *,struct vattr *,struct ucred *,struct proc *));
static int nfs_lookup __P((struct vop_lookup_args *));
@@ -3382,3 +3384,26 @@ nfsfifo_close(ap)
}
return (VOCALL(fifo_vnodeop_p, VOFFSET(vop_close), ap));
}
+
+static int
+nfs_ioctl(ap)
+ struct vop_ioctl_args *ap;
+{
+
+ /*
+ * XXX we were once bogusly enoictl() which returned this (ENOTTY).
+ * Probably we should return ENODEV.
+ */
+ return (ENOTTY);
+}
+
+static int
+nfs_select(ap)
+ struct vop_select_args *ap;
+{
+
+ /*
+ * We were once bogusly seltrue() which returns 1. Is this right?
+ */
+ return (1);
+}
diff --git a/sys/nfsclient/nfsnode.h b/sys/nfsclient/nfsnode.h
index c5e0534..8de6cdc 100644
--- a/sys/nfsclient/nfsnode.h
+++ b/sys/nfsclient/nfsnode.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfsnode.h 8.4 (Berkeley) 2/13/94
- * $Id: nfsnode.h,v 1.11 1995/07/29 11:42:23 bde Exp $
+ * $Id: nfsnode.h,v 1.12 1995/10/29 15:33:19 phk Exp $
*/
#ifndef _NFS_NFSNODE_H_
@@ -169,8 +169,6 @@ int nfs_write __P((struct vop_write_args *));
#define nqnfs_lease_check lease_check
#endif
#endif
-#define nfs_ioctl ((int (*) __P((struct vop_ioctl_args *)))enoioctl)
-#define nfs_select ((int (*) __P((struct vop_select_args *)))seltrue)
#ifdef HAS_VOPREVOKE
#define nfs_revoke vop_revoke
#endif
OpenPOWER on IntegriCloud