summaryrefslogtreecommitdiff
path: root/sys/compat/svr4/svr4_termios.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-04-17 05:24:25 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-04-17 05:24:25 +0000
commit1417d9fd38968b85b80138ecf619d0cc8c197cc0 (patch)
treef533c3347d6ce030d053fe836a0e08fe5db5f80e /sys/compat/svr4/svr4_termios.c
parent61c97d6369b446092078e0e99a5541a8ee8b9417 (diff)
Good fixes and changes from latest Net.
Diffstat (limited to 'sys/compat/svr4/svr4_termios.c')
-rw-r--r--sys/compat/svr4/svr4_termios.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/sys/compat/svr4/svr4_termios.c b/sys/compat/svr4/svr4_termios.c
index b9c4a2f8b6e..e00a0d80ddc 100644
--- a/sys/compat/svr4/svr4_termios.c
+++ b/sys/compat/svr4/svr4_termios.c
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_termios.c,v 1.6 1995/10/14 20:24:58 christos Exp $ */
+/* $NetBSD: svr4_termios.c,v 1.8 1996/03/30 22:38:23 christos Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -541,8 +541,27 @@ svr4_termioctl(fp, cmd, data, p, retval)
return (*ctl)(fp, cmd, (caddr_t) &bt, p);
+ case SVR4_TIOCGWINSZ:
+ {
+ struct svr4_winsize ws;
+
+ error = (*ctl)(fp, TIOCGWINSZ, (caddr_t) &ws, p);
+ if (error)
+ return error;
+ return copyout(&st, data, sizeof(st));
+ }
+
+ case SVR4_TIOCSWINSZ:
+ {
+ struct svr4_winsize ws;
+
+ if ((error = copyin(data, &ws, sizeof(ws))) != 0)
+ return error;
+ return (*ctl)(fp, TIOCSWINSZ, (caddr_t) &ws, p);
+ }
+
default:
- DPRINTF(("Unknown svr4 termios %x\n", cmd));
+ DPRINTF(("Unknown svr4 termios %lx\n", cmd));
return ENOSYS;
}
}