diff options
author | Olivier Houchard <cognet@FreeBSD.org> | 2006-01-26 01:32:46 +0000 |
---|---|---|
committer | Olivier Houchard <cognet@FreeBSD.org> | 2006-01-26 01:32:46 +0000 |
commit | e83d253beb74ae6c8149b34f65fb76f2e665f15f (patch) | |
tree | bfc9e20a70f6bb0baac20efbd33dc290aa7a6058 /sys/compat/linux/linux_ioctl.c | |
parent | 12af2a0f4fd51cb7c0e716229428432c804de575 (diff) |
Notes
Diffstat (limited to 'sys/compat/linux/linux_ioctl.c')
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 44b5fa57f560..14568e2e6160 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -1010,7 +1010,15 @@ linux_ioctl_termio(struct thread *td, struct linux_ioctl_args *args) args->cmd = TIOCCBRK; error = (ioctl(td, (struct ioctl_args *)args)); break; - + case LINUX_TIOCGPTN: { + int nb; + + error = fo_ioctl(fp, TIOCGPTN, (caddr_t)&nb, td->td_ucred, td); + if (!error) + error = copyout(&nb, (void *)args->arg, + sizeof(int)); + break; + } default: error = ENOIOCTL; break; |