Deleted Added
full compact
34c34
< * $Id: tty_tty.c,v 1.16 1997/03/24 11:24:38 bde Exp $
---
> * $Id: tty_tty.c,v 1.17 1997/09/02 20:05:56 bde Exp $
40a41
> #include <sys/systm.h>
55c56
< static d_select_t cttyselect;
---
> static d_poll_t cttypoll;
62c63
< cttyselect, nommap, NULL, "ctty", NULL, -1 };
---
> cttypoll, nommap, NULL, "ctty", NULL, -1 };
163c164
< cttyselect(dev, flag, p)
---
> cttypoll(dev, events, p)
165c166
< int flag;
---
> int events;
171,172c172,174
< return (1); /* try operation to get EOF/failure */
< return (VOP_SELECT(ttyvp, flag, FREAD|FWRITE, NOCRED, p));
---
> /* try operation to get EOF/failure */
> return (seltrue(dev, events, p));
> return (VOP_POLL(ttyvp, events, p->p_ucred, p));