diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1998-08-23 08:26:42 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1998-08-23 08:26:42 +0000 |
| commit | cf8c7b09630c27796b1970818e7b3ba431be55aa (patch) | |
| tree | 15c99bee0ff7d2b99753c675b319fc30f4de5452 /sys/kern/tty_tty.c | |
| parent | 87c95fa5dc145c2f393c8baf6ec1ec82ab5cbaa6 (diff) | |
Notes
Diffstat (limited to 'sys/kern/tty_tty.c')
| -rw-r--r-- | sys/kern/tty_tty.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/kern/tty_tty.c b/sys/kern/tty_tty.c index 409be70034b0..889c93503359 100644 --- a/sys/kern/tty_tty.c +++ b/sys/kern/tty_tty.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tty_tty.c 8.2 (Berkeley) 9/23/93 - * $Id: tty_tty.c,v 1.23 1998/02/20 13:46:56 bde Exp $ + * $Id: tty_tty.c,v 1.24 1998/06/07 17:11:44 dfr Exp $ */ /* @@ -58,13 +58,15 @@ static d_write_t cttywrite; static d_ioctl_t cttyioctl; static d_poll_t cttypoll; -#define CDEV_MAJOR 1 -/* Don't make static, fdesc_vnops uses this. */ -struct cdevsw ctty_cdevsw = - { cttyopen, nullclose, cttyread, cttywrite, /*1*/ - cttyioctl, nullstop, nullreset, nodevtotty,/* tty */ - cttypoll, nommap, NULL, "ctty", NULL, -1 }; - +#define CDEV_MAJOR 1 +/* Don't make this static, since fdesc_vnops uses it. */ +struct cdevsw ctty_cdevsw = { + cttyopen, nullclose, cttyread, cttywrite, + cttyioctl, nullstop, nullreset, nodevtotty, + cttypoll, nommap, NULL, "ctty", + NULL, -1, nodump, nopsize, + D_TTY, +}; #define cttyvp(p) ((p)->p_flag & P_CONTROLT ? (p)->p_session->s_ttyvp : NULL) |
