Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Add console-related ioctls.



details:   https://anonhg.NetBSD.org/src/rev/817b77655ae5
branches:  trunk
changeset: 341168:817b77655ae5
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 22 17:36:33 2015 +0000

description:
Add console-related ioctls.

diffstat:

 sys/kern/tty.c |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 7eb073a4a071 -r 817b77655ae5 sys/kern/tty.c
--- a/sys/kern/tty.c    Thu Oct 22 15:18:25 2015 +0000
+++ b/sys/kern/tty.c    Thu Oct 22 17:36:33 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty.c,v 1.269 2015/10/18 15:58:23 christos Exp $       */
+/*     $NetBSD: tty.c,v 1.270 2015/10/22 17:36:33 christos Exp $       */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.269 2015/10/18 15:58:23 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.270 2015/10/22 17:36:33 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -1395,6 +1395,17 @@
                return EPASSTHROUGH;
 
        default:
+               /* Pass through various console ioctls */
+               switch (IOCGROUP(cmd)) {
+               case 'c':       /* syscons console */
+               case 'v':       /* usl console, video - where one letter */
+               case 'K':       /* usl console, keyboard - aint enough */
+               case 'V':       /* pcvt compat */
+               case 'W':       /* wscons console */
+                       return EPASSTHROUGH;
+               default:
+                       break;
+               }
 #ifdef COMPAT_60
                error = compat_60_ttioctl(tp, cmd, data, flag, l);
                if (error != EPASSTHROUGH)



Home | Main Index | Thread Index | Old Index