git: 1866c766d2c5 - main - linux: Improve debugging by recognizing TIOCGPTPEER
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Jan 2022 15:36:25 UTC
The branch main has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=1866c766d2c520faaedbfe98d2e34a95f54053a5 commit 1866c766d2c520faaedbfe98d2e34a95f54053a5 Author: Edward Tomasz Napierala <trasz@FreeBSD.org> AuthorDate: 2021-04-29 20:26:46 +0000 Commit: Edward Tomasz Napierala <trasz@FreeBSD.org> CommitDate: 2022-01-10 15:36:11 +0000 linux: Improve debugging by recognizing TIOCGPTPEER Sponsored By: EPSRC --- sys/compat/linux/linux_ioctl.c | 4 ++++ sys/compat/linux/linux_ioctl.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 2b93349ce650..12568b1666a3 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -1020,6 +1020,10 @@ linux_ioctl_termio(struct thread *td, struct linux_ioctl_args *args) sizeof(int)); break; } + case LINUX_TIOCGPTPEER: + linux_msg(td, "unsupported ioctl TIOCGPTPEER"); + error = ENOIOCTL; + break; case LINUX_TIOCSPTLCK: /* Our unlockpt() does nothing. */ error = 0; diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h index 4aaf1114ff39..3e2078780d39 100644 --- a/sys/compat/linux/linux_ioctl.h +++ b/sys/compat/linux/linux_ioctl.h @@ -386,6 +386,8 @@ #define LINUX_TIOCGPTN 0x5430 #define LINUX_TIOCSPTLCK 0x5431 +#define LINUX_TIOCGPTPEER 0x5441 + #define LINUX_FIONCLEX 0x5450 #define LINUX_FIOCLEX 0x5451 #define LINUX_FIOASYNC 0x5452