Source-Changes-HG archive

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

[src/trunk]: src/sys/kern add the pty ioctls to pass through.



details:   https://anonhg.NetBSD.org/src/rev/55e33e0aadf5
branches:  trunk
changeset: 341110:55e33e0aadf5
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 18 15:58:23 2015 +0000

description:
add the pty ioctls to pass through.

diffstat:

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

diffs (37 lines):

diff -r 4dc477ba0642 -r 55e33e0aadf5 sys/kern/tty.c
--- a/sys/kern/tty.c    Sun Oct 18 15:41:59 2015 +0000
+++ b/sys/kern/tty.c    Sun Oct 18 15:58:23 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty.c,v 1.268 2015/10/18 15:14:50 christos Exp $       */
+/*     $NetBSD: tty.c,v 1.269 2015/10/18 15:58:23 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.268 2015/10/18 15:14:50 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.269 2015/10/18 15:58:23 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -1384,8 +1384,17 @@
                /* Handled by the driver layer */
                return EPASSTHROUGH;
 
+       case TIOCEXT:
+       case TIOCPTSNAME:
+       case TIOCGRANTPT:
+       case TIOCPKT:
+       case TIOCUCNTL:
+       case TIOCREMOTE:
+       case TIOCSIG:
+               /* for ptys */
+               return EPASSTHROUGH;
+
        default:
-               printf("BARF 0x%lx\n", cmd);
 #ifdef COMPAT_60
                error = compat_60_ttioctl(tp, cmd, data, flag, l);
                if (error != EPASSTHROUGH)



Home | Main Index | Thread Index | Old Index