Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Feb 2022 12:54:36 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 89847f7e04a3 - stable/13 - linux: Improve debugging by recognizing TIOCGPTPEER
Message-ID:  <202202171254.21HCsacA080403@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by trasz:

URL: https://cgit.FreeBSD.org/src/commit/?id=89847f7e04a394300775b7e20df371f03a98c545

commit 89847f7e04a394300775b7e20df371f03a98c545
Author:     Edward Tomasz Napierala <trasz@FreeBSD.org>
AuthorDate: 2021-04-29 20:26:46 +0000
Commit:     Edward Tomasz Napierala <trasz@FreeBSD.org>
CommitDate: 2022-02-13 22:26:01 +0000

    linux: Improve debugging by recognizing TIOCGPTPEER
    
    Sponsored By:   EPSRC
    
    (cherry picked from commit 1866c766d2c520faaedbfe98d2e34a95f54053a5)
---
 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 e3ce41ed38f8..101a52698a0a 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202171254.21HCsacA080403>