Add BSD compatibility tty ioctls LINUX_TIOCSBRK and LINUX_TIOCCBRK. This

addition appears to allow VMware 3 Workstation to operate with nmdm(4)
as a virtual COM device.

Tested by:	Guido van Rooij
This commit is contained in:
Bruce M Simpson 2004-02-19 12:38:12 +00:00
parent 1b2f42a9c7
commit a1166f2439
2 changed files with 13 additions and 0 deletions

View File

@ -886,6 +886,16 @@ linux_ioctl_termio(struct thread *td, struct linux_ioctl_args *args)
/* LINUX_TIOCGLCKTRMIOS */
/* LINUX_TIOCSLCKTRMIOS */
case LINUX_TIOCSBRK:
args->cmd = TIOCSBRK;
error = (ioctl(td, (struct ioctl_args *)args));
break;
case LINUX_TIOCCBRK:
args->cmd = TIOCCBRK;
error = (ioctl(td, (struct ioctl_args *)args));
break;
default:
error = ENOIOCTL;
break;

View File

@ -346,6 +346,9 @@
#define LINUX_TCSBRKP 0x5425
#define LINUX_TIOCTTYGSTRUCT 0x5426
#define LINUX_TIOCSBRK 0x5427
#define LINUX_TIOCCBRK 0x5428
#ifdef __alpha__
#define LINUX_FIOCLEX 0x6601
#define LINUX_FIONCLEX 0x6602