diff options
author | peter <peter@FreeBSD.org> | 1997-09-14 03:19:42 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-09-14 03:19:42 +0000 |
commit | 796eb5ce0afbb92f7c829367cc09ec04472e0166 (patch) | |
tree | 0720cfdb6d407dea01c6b7bc049ac3afa3cc5020 /sys/i386/isa/cx.c | |
parent | e762286917ce1de5d1fc3744a413be43a74c656b (diff) | |
download | FreeBSD-src-796eb5ce0afbb92f7c829367cc09ec04472e0166.zip FreeBSD-src-796eb5ce0afbb92f7c829367cc09ec04472e0166.tar.gz |
Update select -> poll in drivers.
Diffstat (limited to 'sys/i386/isa/cx.c')
-rw-r--r-- | sys/i386/isa/cx.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c index 3766ef3..b655c26 100644 --- a/sys/i386/isa/cx.c +++ b/sys/i386/isa/cx.c @@ -87,7 +87,7 @@ static d_write_t cxwrite; static d_ioctl_t cxioctl; static d_stop_t cxstop; static d_devtotty_t cxdevtotty; -static d_select_t cxselect; +static d_poll_t cxpoll; # define CDEV_MAJOR 42 @@ -95,7 +95,7 @@ static d_select_t cxselect; struct cdevsw cx_cdevsw = { cxopen, cxclose, cxread, cxwrite, /*42*/ cxioctl, cxstop, nullreset, cxdevtotty,/* cronyx */ - cxselect, nommap, NULL, "cx", NULL, -1 }; + cxpoll, nommap, NULL, "cx", NULL, -1 }; #else struct tty *cx_tty [NCX*NCHAN]; /* tty data */ #endif @@ -736,17 +736,13 @@ struct tty *cxdevtotty (dev_t dev) return (cxchan[unit]->ttyp); } -int cxselect (dev_t dev, int flag, struct proc *p) +int cxpoll (dev_t dev, int events, struct proc *p) { int unit = UNIT (dev); if (unit == UNIT_CTL || unit >= NCX*NCHAN) return (0); -#if defined (__FreeBSD__) && __FreeBSD__ < 2 - return (ttselect (dev, flag, p)); -#else /* FreeBSD 2.x and BSDI */ - return (ttyselect (cxchan[unit]->ttyp, flag, p)); -#endif + return (ttypoll (cxchan[unit]->ttyp, events, p)); } /* |