mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 10:11:09 -04:00
Add support for LINUX_TCSETAW and LINUX_TCSETAF, which Linux-pine uses.
Submitted by: Robert Sanders <rsanders@mindspring.com>
This commit is contained in:
parent
1d537e96a3
commit
daf818451b
2 changed files with 18 additions and 2 deletions
|
|
@ -25,7 +25,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: linux_ioctl.c,v 1.6 1996/03/02 19:37:55 peter Exp $
|
||||
* $Id: linux_ioctl.c,v 1.7 1996/03/03 19:07:50 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
@ -452,6 +452,14 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args, int *retval)
|
|||
linux_to_bsd_termio((struct linux_termio *)args->arg, &bsd_termios);
|
||||
return (*func)(fp, TIOCSETA, (caddr_t)&bsd_termios, p);
|
||||
|
||||
case LINUX_TCSETAW:
|
||||
linux_to_bsd_termio((struct linux_termio *)args->arg, &bsd_termios);
|
||||
return (*func)(fp, TIOCSETAW, (caddr_t)&bsd_termios, p);
|
||||
|
||||
case LINUX_TCSETAF:
|
||||
linux_to_bsd_termio((struct linux_termio *)args->arg, &bsd_termios);
|
||||
return (*func)(fp, TIOCSETAF, (caddr_t)&bsd_termios, p);
|
||||
|
||||
case LINUX_TCGETS:
|
||||
if ((error = (*func)(fp, TIOCGETA, (caddr_t)&bsd_termios, p)) != 0)
|
||||
return error;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: linux_ioctl.c,v 1.6 1996/03/02 19:37:55 peter Exp $
|
||||
* $Id: linux_ioctl.c,v 1.7 1996/03/03 19:07:50 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
@ -452,6 +452,14 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args, int *retval)
|
|||
linux_to_bsd_termio((struct linux_termio *)args->arg, &bsd_termios);
|
||||
return (*func)(fp, TIOCSETA, (caddr_t)&bsd_termios, p);
|
||||
|
||||
case LINUX_TCSETAW:
|
||||
linux_to_bsd_termio((struct linux_termio *)args->arg, &bsd_termios);
|
||||
return (*func)(fp, TIOCSETAW, (caddr_t)&bsd_termios, p);
|
||||
|
||||
case LINUX_TCSETAF:
|
||||
linux_to_bsd_termio((struct linux_termio *)args->arg, &bsd_termios);
|
||||
return (*func)(fp, TIOCSETAF, (caddr_t)&bsd_termios, p);
|
||||
|
||||
case LINUX_TCGETS:
|
||||
if ((error = (*func)(fp, TIOCGETA, (caddr_t)&bsd_termios, p)) != 0)
|
||||
return error;
|
||||
|
|
|
|||
Loading…
Reference in a new issue