diff options
Diffstat (limited to 'sys/kern/vfs_export.c')
-rw-r--r-- | sys/kern/vfs_export.c | 22 |
1 files changed, 21 insertions, 1 deletions
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 <sys/stat.h> #include <sys/buf.h> #include <sys/malloc.h> +#include <sys/poll.h> #include <sys/domain.h> #include <sys/dirent.h> @@ -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[] = |