-/* $OpenBSD: tty_tty.c,v 1.14 2015/03/14 03:38:51 jsg Exp $ */
+/* $OpenBSD: tty_tty.c,v 1.15 2015/05/01 01:30:58 millert Exp $ */
/* $NetBSD: tty_tty.c,v 1.13 1996/03/30 22:24:46 christos Exp $ */
/*-
if (ttyvp == NULL) /* try operation to get EOF/failure */
return (seltrue(dev, events, p));
- return (VOP_POLL(ttyvp, events, p));
+ return (VOP_POLL(ttyvp, FREAD|FWRITE, events, p));
}
/*ARGSUSED*/
-/* $OpenBSD: vfs_vnops.c,v 1.81 2015/03/14 03:38:51 jsg Exp $ */
+/* $OpenBSD: vfs_vnops.c,v 1.82 2015/05/01 01:30:58 millert Exp $ */
/* $NetBSD: vfs_vnops.c,v 1.20 1996/02/04 02:18:41 christos Exp $ */
/*
int
vn_poll(struct file *fp, int events, struct proc *p)
{
- return (VOP_POLL(((struct vnode *)fp->f_data), events, p));
+ return (VOP_POLL(((struct vnode *)fp->f_data), fp->f_flag, events, p));
}
/*
-/* $OpenBSD: vfs_vops.c,v 1.12 2015/03/14 03:38:51 jsg Exp $ */
+/* $OpenBSD: vfs_vops.c,v 1.13 2015/05/01 01:30:58 millert Exp $ */
/*
* Copyright (c) 2010 Thordur I. Bjornsson <thib@openbsd.org>
*
}
int
-VOP_POLL(struct vnode *vp, int events, struct proc *p)
+VOP_POLL(struct vnode *vp, int fflag, int events, struct proc *p)
{
struct vop_poll_args a;
a.a_vp = vp;
+ a.a_fflag = fflag;
a.a_events = events;
a.a_p = p;
-/* $OpenBSD: vnode.h,v 1.130 2015/04/17 04:43:20 guenther Exp $ */
+/* $OpenBSD: vnode.h,v 1.131 2015/05/01 01:30:58 millert Exp $ */
/* $NetBSD: vnode.h,v 1.38 1996/02/29 20:59:05 cgd Exp $ */
/*
struct vop_poll_args {
struct vnode *a_vp;
+ int a_fflag;
int a_events;
struct proc *a_p;
};
-int VOP_POLL(struct vnode *, int, struct proc *);
+int VOP_POLL(struct vnode *, int, int, struct proc *);
struct vop_kqfilter_args {
struct vnode *a_vp;