[smart] add FIONREAD ioctl support for tty (#8996)
Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
parent
de352aee62
commit
952f2c43f8
|
@ -539,15 +539,15 @@ int lwp_tty_ioctl_adapter(lwp_tty_t tp, int cmd, int oflags, void *args, rt_thre
|
||||||
args->cmd = TIOCMSET;
|
args->cmd = TIOCMSET;
|
||||||
error = (sys_ioctl(td, (struct ioctl_args *)args));
|
error = (sys_ioctl(td, (struct ioctl_args *)args));
|
||||||
break;
|
break;
|
||||||
|
#endif /* USING_BSD_IOCTL_EXT */
|
||||||
/* TIOCGSOFTCAR */
|
/* TIOCGSOFTCAR */
|
||||||
/* TIOCSSOFTCAR */
|
/* TIOCSSOFTCAR */
|
||||||
|
|
||||||
case FIONREAD: /* TIOCINQ */
|
case FIONREAD: /* TIOCINQ */
|
||||||
args->cmd = FIONREAD;
|
error = (IOCTL(FIONREAD, args, fflags, td));
|
||||||
error = (sys_ioctl(td, (struct ioctl_args *)args));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef USING_BSD_IOCTL_EXT
|
||||||
/* TIOCLINUX */
|
/* TIOCLINUX */
|
||||||
|
|
||||||
case TIOCCONS:
|
case TIOCCONS:
|
||||||
|
|
Loading…
Reference in New Issue