Subject: kern/14414: Missing ioctls in linux emulation
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tommy@gatespace.com>
List: netbsd-bugs
Date: 10/31/2001 23:35:21
>Number:         14414
>Category:       kern
>Synopsis:       Linux emulation lacks ioctls TCSBRK, TIOCMGET, TIOCMSET
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 31 15:38:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tommy Bohlin
>Release:        NetBSD 1.5.1
>Organization:
Tommy Bohlin                           office +46 31 7439815
tommy@gatespace.com                    mobile +46 707 786400
Gatespace AB, Göteborg, Sweden            fax +46 31 7116416
>Environment:
i386, cvs current 2001-10-31
>Description:
The ioctls are not functional
>How-To-Repeat:
>Fix:
Add this to compat/linux/common/linux_termios.c:

       case LINUX_TCSBRK:
               SCARG(&ia, com) = SCARG(uap, data) ? TIOCDRAIN : TIOCSBRK;
               break;
       case LINUX_TIOCMGET:
               SCARG(&ia, com) = TIOCMGET;
               break;
       case LINUX_TIOCMSET:
               SCARG(&ia, com) = TIOCMSET;
               break;
>Release-Note:
>Audit-Trail:
>Unformatted: