summaryrefslogtreecommitdiff
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-05-30 16:53:49 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-05-30 16:53:49 +0000
commit4e2f199e0c9ada1b226f685a848abb1420a1ff8f (patch)
treec7dba053fd70eed731104c273f0605d351ea65cd /sys/kern/tty_pty.c
parent7a1c7bc99f36d929470a570884dcdacb005fd08f (diff)
Notes
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r--sys/kern/tty_pty.c54
1 files changed, 41 insertions, 13 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 87f21f00de48..535df84a923c 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tty_pty.c 8.4 (Berkeley) 2/20/95
- * $Id: tty_pty.c,v 1.58 1999/05/14 20:44:20 luoqi Exp $
+ * $Id: tty_pty.c,v 1.59 1999/05/18 14:53:52 luoqi Exp $
*/
/*
@@ -80,21 +80,49 @@ static d_write_t ptcwrite;
static d_poll_t ptcpoll;
#define CDEV_MAJOR_S 5
-static struct cdevsw pts_cdevsw = {
- ptsopen, ptsclose, ptsread, ptswrite,
- ptyioctl, ptsstop, nullreset, ptydevtotty,
- ttpoll, nommap, NULL, "pts",
- NULL, -1, nodump, nopsize,
- D_TTY,
+static struct cdevsw pts_cdevsw = {
+ /* open */ ptsopen,
+ /* close */ ptsclose,
+ /* read */ ptsread,
+ /* write */ ptswrite,
+ /* ioctl */ ptyioctl,
+ /* stop */ ptsstop,
+ /* reset */ noreset,
+ /* devtotty */ ptydevtotty,
+ /* poll */ ttpoll,
+ /* mmap */ nommap,
+ /* strategy */ nostrategy,
+ /* name */ "pts",
+ /* parms */ noparms,
+ /* maj */ CDEV_MAJOR_S,
+ /* dump */ nodump,
+ /* psize */ nopsize,
+ /* flags */ D_TTY,
+ /* maxio */ 0,
+ /* bmaj */ -1
};
#define CDEV_MAJOR_C 6
-static struct cdevsw ptc_cdevsw = {
- ptcopen, ptcclose, ptcread, ptcwrite,
- ptyioctl, nullstop, nullreset, ptydevtotty,
- ptcpoll, nommap, NULL, "ptc",
- NULL, -1, nodump, nopsize,
- D_TTY,
+static struct cdevsw ptc_cdevsw = {
+ /* open */ ptcopen,
+ /* close */ ptcclose,
+ /* read */ ptcread,
+ /* write */ ptcwrite,
+ /* ioctl */ ptyioctl,
+ /* stop */ nostop,
+ /* reset */ noreset,
+ /* devtotty */ ptydevtotty,
+ /* poll */ ptcpoll,
+ /* mmap */ nommap,
+ /* strategy */ nostrategy,
+ /* name */ "ptc",
+ /* parms */ noparms,
+ /* maj */ CDEV_MAJOR_C,
+ /* dump */ nodump,
+ /* psize */ nopsize,
+ /* flags */ D_TTY,
+ /* maxio */ 0,
+ /* bmaj */ -1
};
#if NPTY == 1