Date: Thu, 17 Feb 2022 12:54:32 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: 1f86d04d02a6 - stable/13 - linux: Partially implement TCSBRK Message-ID: <202202171254.21HCsWAi080300@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=1f86d04d02a6eb0447ed72b6597438db0cb9e4d8 commit 1f86d04d02a6eb0447ed72b6597438db0cb9e4d8 Author: Edward Tomasz Napierala <trasz@FreeBSD.org> AuthorDate: 2021-10-17 10:19:51 +0000 Commit: Edward Tomasz Napierala <trasz@FreeBSD.org> CommitDate: 2022-02-13 22:24:49 +0000 linux: Partially implement TCSBRK This fixes tcflush(3), unbreaking cheribuild.py under arm64 Focal. Reviewed By: imp Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32291 (cherry picked from commit 7e7859e7c2b900fd1b1af6e90ed31d51b9b5514d) --- sys/compat/linux/linux_ioctl.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 62cb958aa42f..e3ce41ed38f8 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -755,7 +755,15 @@ linux_ioctl_termio(struct thread *td, struct linux_ioctl_args *args) td)); break; - /* LINUX_TCSBRK */ + case LINUX_TCSBRK: + if (args->arg != 0) { + error = (fo_ioctl(fp, TIOCDRAIN, (caddr_t)&bios, td->td_ucred, + td)); + } else { + linux_msg(td, "ioctl TCSBRK arg 0 not implemented"); + error = ENOIOCTL; + } + break; case LINUX_TCXONC: { switch (args->arg) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202171254.21HCsWAi080300>