Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common Add easy parts (TCOOFF/TCOON) of the...
details: https://anonhg.NetBSD.org/src/rev/02cc0e6af0cf
branches: trunk
changeset: 325501:02cc0e6af0cf
user: njoly <njoly%NetBSD.org@localhost>
date: Fri Dec 27 16:58:50 2013 +0000
description:
Add easy parts (TCOOFF/TCOON) of the TCXONC linux termios ioctl.
diffstat:
sys/compat/linux/common/linux_termios.c | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r c639de544993 -r 02cc0e6af0cf sys/compat/linux/common/linux_termios.c
--- a/sys/compat/linux/common/linux_termios.c Fri Dec 27 15:10:53 2013 +0000
+++ b/sys/compat/linux/common/linux_termios.c Fri Dec 27 16:58:50 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_termios.c,v 1.36 2008/07/04 10:13:52 matthias Exp $ */
+/* $NetBSD: linux_termios.c,v 1.37 2013/12/27 16:58:50 njoly Exp $ */
/*-
* Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_termios.c,v 1.36 2008/07/04 10:13:52 matthias Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_termios.c,v 1.37 2013/12/27 16:58:50 njoly Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ptm.h"
@@ -348,6 +348,22 @@
DPRINTF(("TIOCSPTLCK %d\n", idat));
return 0;
#endif
+ case LINUX_TCXONC:
+ idat = (u_long)SCARG(uap, data);
+ switch (idat) {
+ case LINUX_TCOOFF:
+ SCARG(&ia, com) = TIOCSTOP;
+ break;
+ case LINUX_TCOON:
+ SCARG(&ia, com) = TIOCSTART;
+ break;
+ case LINUX_TCIOFF:
+ case LINUX_TCION:
+ default:
+ error = EINVAL;
+ goto out;
+ }
+ break;
default:
error = EINVAL;
goto out;
Home |
Main Index |
Thread Index |
Old Index