Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/compat/linux/common Pull up revision 1.8 (requested...
details: https://anonhg.NetBSD.org/src/rev/2138d3351e0f
branches: netbsd-1-5
changeset: 491000:2138d3351e0f
user: he <he%NetBSD.org@localhost>
date: Fri Mar 30 21:44:46 2001 +0000
description:
Pull up revision 1.8 (requested by fvdl):
Add some required Linux emulation bits to support the Linux
version of VMware.
diffstat:
sys/compat/linux/common/linux_termios.c | 26 +++++++++++++++++++++++++-
1 files changed, 25 insertions(+), 1 deletions(-)
diffs (47 lines):
diff -r 1becad36fa51 -r 2138d3351e0f sys/compat/linux/common/linux_termios.c
--- a/sys/compat/linux/common/linux_termios.c Fri Mar 30 21:44:22 2001 +0000
+++ b/sys/compat/linux/common/linux_termios.c Fri Mar 30 21:44:46 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_termios.c,v 1.7 2000/03/30 11:27:18 augustss Exp $ */
+/* $NetBSD: linux_termios.c,v 1.7.4.1 2001/03/30 21:44:46 he Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -462,6 +462,7 @@
int idat;
struct sys_ioctl_args ia;
int error;
+ char tioclinux;
fdp = p->p_fd;
if ((u_int)SCARG(uap, fd) >= fdp->fd_nfiles ||
@@ -611,6 +612,29 @@
if (error)
return error;
return 0;
+ case LINUX_TIOCLINUX:
+ error = copyin(SCARG(uap, data), &tioclinux, sizeof tioclinux);
+ if (error != 0)
+ return error;
+ switch (tioclinux) {
+ case LINUX_TIOCLINUX_KERNMSG:
+ /*
+ * XXX needed to not fail for some things. Could
+ * try to use TIOCCONS, but the char argument
+ * specifies the VT #, not an fd.
+ */
+ return 0;
+ case LINUX_TIOCLINUX_COPY:
+ case LINUX_TIOCLINUX_PASTE:
+ case LINUX_TIOCLINUX_UNBLANK:
+ case LINUX_TIOCLINUX_LOADLUT:
+ case LINUX_TIOCLINUX_READSHIFT:
+ case LINUX_TIOCLINUX_READMOUSE:
+ case LINUX_TIOCLINUX_VESABLANK:
+ case LINUX_TIOCLINUX_CURCONS: /* could use VT_GETACTIVE */
+ return EINVAL;
+ }
+ break;
case LINUX_TIOCGWINSZ:
SCARG(&ia, com) = TIOCGWINSZ;
break;
Home |
Main Index |
Thread Index |
Old Index