From nobody Mon Jan 10 15:36:25 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EEAAE1957E1A; Mon, 10 Jan 2022 15:36:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JXdGK5CGbz3sP3; Mon, 10 Jan 2022 15:36:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 938F12766A; Mon, 10 Jan 2022 15:36:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20AFaPx1062487; Mon, 10 Jan 2022 15:36:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20AFaPt6062486; Mon, 10 Jan 2022 15:36:25 GMT (envelope-from git) Date: Mon, 10 Jan 2022 15:36:25 GMT Message-Id: <202201101536.20AFaPt6062486@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Edward Tomasz Napierala Subject: git: 1866c766d2c5 - main - linux: Improve debugging by recognizing TIOCGPTPEER List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: trasz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1866c766d2c520faaedbfe98d2e34a95f54053a5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641828985; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Urq1bDE4rFWxzit3qPU+2XoFzZW60eM9hJFM2ZUmOw0=; b=yLuyuJqy59YYvDM4WR1bDOtPvaxJjS5t0xq67Q6uuuRzejK4vQTbYxHhshqg92ZA3YDWT1 GYp7Tcxd+VbHV2tDL6xPWOdyGXFtNLVbVWaNAbKW+TmC3sN+jiYMaEJXtqcclKB2ip18S5 5St9lbLKSY4BAwXMSvvGr/Wy29B8ad9Y665qP0uxuEwjn8+f4s/cKySGJdV1wF890F/d7w mlPjZ0yEOmRSoI52L+43hIqWH+OGJlA3n57DjrJ7/k+W+CVAEHhp78jS1tvSyxnzVBu7/p d/jmGMegk/BJN5n6OsfvvM++mKKFBdgbgQepVRfOWofRuFn2Gp62u1bv96yziw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641828985; a=rsa-sha256; cv=none; b=JwE5a6Pjlt1iQfE40ra0nvfAd1watoWpj9CFetReAE+AeXHk3q8vjVDyE2yHTnF+TXQOKz C34dZ7QLeF7oDDmMmsqYgl4sTWZFz0EuVWOYwtrJplMjTdMpZUp+FV+szeABjlKWake+Xg Q+0hTZThaJQtDESLitFsdm9sAZzxdNVsqebO5WTzzVJDYnw73eLzSqGIKOKdPx5y4lub9o 4s1h4R8/TD3kxbpd6ASLGZZdeBpLFDD8OLBsQpyu3Lwd1lpfJtnW8NReV5Bh5rZN37fiUm vEPHeFwjZ7s2Fn3WRO/hxUgnPpcw9N4ek6w/Al9wA0KHTZJlNehr89YogFmvCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=1866c766d2c520faaedbfe98d2e34a95f54053a5 commit 1866c766d2c520faaedbfe98d2e34a95f54053a5 Author: Edward Tomasz Napierala AuthorDate: 2021-04-29 20:26:46 +0000 Commit: Edward Tomasz Napierala 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