From 1ffbda9a9e6adece3a5f47779636f5813e74b51f Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 14 Sep 1997 02:49:06 +0000 Subject: Provide a 'return true' poll vnode op rather than duplicating the 'do nothing' case all over the various filesystems. --- sys/kern/vfs_export.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'sys/kern/vfs_export.c') diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index bed6d76..8a2d1b5 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 - * $Id: vfs_subr.c,v 1.101 1997/09/07 16:20:46 bde Exp $ + * $Id: vfs_subr.c,v 1.102 1997/09/13 15:02:28 peter Exp $ */ /* @@ -54,6 +54,7 @@ #include #include #include +#include #include #include @@ -1627,6 +1628,25 @@ loop: } /* + * Return true for select/poll. + */ +int +vop_nopoll(ap) + struct vop_poll_args /* { + struct vnode *a_vp; + int a_events; + struct ucred *a_cred; + struct proc *a_p; + } */ *ap; +{ + + /* + * Just return what we were asked for. + */ + return (ap->a_events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM)); +} + +/* * Print out a description of a vnode. */ static char *typename[] = -- cgit v1.1