summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2015-10-18 15:58:23 +0000
committerchristos <christos@NetBSD.org>2015-10-18 15:58:23 +0000
commitd867b44c859950d7d5c021109f7498eefda38313 (patch)
tree8e28384aaa1f5490a4c5046088614d03b6bbb34c /sys
parent07bbf1d2242914236bdf1742ef4618146177dc15 (diff)
add the pty ioctls to pass through.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 33fe1078151..73601c3cdea 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -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 @@ ttioctl(struct tty *tp, u_long cmd, void *data, int flag, struct lwp *l)
/* 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)