diff options
| author | Shell <[email protected]> | 2024-05-28 09:56:10 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-28 09:56:10 +0800 |
| commit | 952f2c43f8a10f815f34307c7d184af8f08011ba (patch) | |
| tree | 7f5227988543e08304a007c1488d4ee486235fc2 | |
| parent | de352aee62e55ec2bc0b142355c14f7895e4bd78 (diff) | |
[smart] add FIONREAD ioctl support for tty (#8996)
Signed-off-by: Shell <[email protected]>
| -rw-r--r-- | components/lwp/terminal/freebsd/tty_compat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/lwp/terminal/freebsd/tty_compat.c b/components/lwp/terminal/freebsd/tty_compat.c index cbb9069c07..08ff49f801 100644 --- a/components/lwp/terminal/freebsd/tty_compat.c +++ b/components/lwp/terminal/freebsd/tty_compat.c @@ -539,15 +539,15 @@ int lwp_tty_ioctl_adapter(lwp_tty_t tp, int cmd, int oflags, void *args, rt_thre args->cmd = TIOCMSET; error = (sys_ioctl(td, (struct ioctl_args *)args)); break; - +#endif /* USING_BSD_IOCTL_EXT */ /* TIOCGSOFTCAR */ /* TIOCSSOFTCAR */ case FIONREAD: /* TIOCINQ */ - args->cmd = FIONREAD; - error = (sys_ioctl(td, (struct ioctl_args *)args)); + error = (IOCTL(FIONREAD, args, fflags, td)); break; +#ifdef USING_BSD_IOCTL_EXT /* TIOCLINUX */ case TIOCCONS: |
