From nobody Mon Oct 21 10:40:27 2024 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 4XXBfM6Khlz5Ypbw; Mon, 21 Oct 2024 10:40:27 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XXBfM5Yk3z40xQ; Mon, 21 Oct 2024 10:40:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729507227; 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=DkbtYVL7EgU3+rxQGTqDNHoqTH28jFpBdtRUlUOkRrU=; b=p4KYH1oKNMip17YiQ9cSO0xoueKFsyZZVipTWyIpwjlmLSPK7S01f/V5UpK0cN8iq6UC9f s9mQJlQR+xFLmtY1pIPgTzjVhy7Tgs9UrzCUD44fy74NqwDZsqoq9RrsysAn/ypdbeZied eNNc08vj056llOOF7G6zUWVlmxt2sP1pUsCOafxSFsCLxH6r2PVhF/otL1U84riH/LaHna ectpo68dVxBROaBMNhYDrwLkpw18QcCLLhC1GTLm+CMo7LdBIOtSOf3ls1c98kswrilnuK RUKVKdQjE774/g1f1UotT/Qq0vOgPluUbBwzk10Cpb9WOc25Et0CPxOxW6DefA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729507227; 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=DkbtYVL7EgU3+rxQGTqDNHoqTH28jFpBdtRUlUOkRrU=; b=TIPxQWh+iu19lTRE58soTcQAxX7qbdjKoL5Y627Q+sMkMzCtjuvSNc0aE2IcFGmge2PZFh ThM/xU95F2w/Ck3AZvtdbztsDAzX6lqkmaTjs7m/NpKPb9cD+rP6Oc6kN4AOemhApi8F+2 LXO+CMSREynLOtws/z/EdJwSnpB0ZYAcdye35tioNVaat2M/zDSVmjBE2XV+zham0IfK08 Y0bM1Ok7s4axIDvyQ4ty2ed0NOcMmX1PjCe7q5HNNAI94GZ2JPldeoCYhOBaBJc918FhMM +5WXQET/7VbvGAyFoFwbVpAqNj9QvosbTwpfp3TIv1R3sAx5EFJgYhvpxWNMWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729507227; a=rsa-sha256; cv=none; b=KLvvPs7mJQ7dFOPE3gsiVYaEpaQzAp4+LJ4+Kow9N/ArpvYO2EYHuFHIXeOdB37FXHG8yt Fx4HOh96vmvb9X0C4gAvF1KEEjc1+JkI2Ko1DsyeBj8naOO3WmQtMeuvt16520ZI8tG3SP wbhSLhLqw5iJ+4/+4SS3TRzO8Yd6igUJixrTPEbjxeYzL3coZlZb/WhgJiGeB66BeEWBfU 86CQhbCcY1UTrrrXrPjeqkx9I4z2rlI2HfYjrymcrKMHtMYK0sQ8Ow8y4QNFqzghIdYbTK z8FRW1qZHF3aHSY1zIoFDNrGBWbu0rcbt4MBmyFhc/oQGZ1HVRGABX5YvU5xkw== 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 4XXBfM52SWzRKh; Mon, 21 Oct 2024 10:40:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49LAeR2i054853; Mon, 21 Oct 2024 10:40:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49LAeRil054850; Mon, 21 Oct 2024 10:40:27 GMT (envelope-from git) Date: Mon, 21 Oct 2024 10:40:27 GMT Message-Id: <202410211040.49LAeRil054850@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: 31eec6fe1aea - main - linux: support IUTF8 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-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: 31eec6fe1aea614e89060af0554abe1a98d8d8ed Auto-Submitted: auto-generated The branch main has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=31eec6fe1aea614e89060af0554abe1a98d8d8ed commit 31eec6fe1aea614e89060af0554abe1a98d8d8ed Author: Edward Tomasz Napierala AuthorDate: 2024-10-09 14:45:13 +0000 Commit: Edward Tomasz Napierala CommitDate: 2024-10-21 08:22:50 +0000 linux: support IUTF8 Make Linuxulator support the recently added IUTF8 termios(4) flag. Reviewed By: dchagin, emaste, imp Differential Revision: https://reviews.freebsd.org/D44525 --- sys/compat/linux/linux_ioctl.c | 4 ++++ sys/compat/linux/linux_ioctl.h | 1 + 2 files changed, 5 insertions(+) diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index aa2c9ce7f273..ceb17bd040b5 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -421,6 +421,8 @@ bsd_to_linux_termios(struct termios *bios, struct linux_termios *lios) lios->c_iflag |= LINUX_IXOFF; if (bios->c_iflag & IMAXBEL) lios->c_iflag |= LINUX_IMAXBEL; + if (bios->c_iflag & IUTF8) + lios->c_iflag |= LINUX_IUTF8; lios->c_oflag = 0; if (bios->c_oflag & OPOST) @@ -538,6 +540,8 @@ linux_to_bsd_termios(struct linux_termios *lios, struct termios *bios) bios->c_iflag |= IXOFF; if (lios->c_iflag & LINUX_IMAXBEL) bios->c_iflag |= IMAXBEL; + if (lios->c_iflag & LINUX_IUTF8) + bios->c_iflag |= IUTF8; bios->c_oflag = 0; if (lios->c_oflag & LINUX_OPOST) diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h index 4ef6d4f40830..ccc25bc919ab 100644 --- a/sys/compat/linux/linux_ioctl.h +++ b/sys/compat/linux/linux_ioctl.h @@ -462,6 +462,7 @@ #define LINUX_IXOFF 0x0001000 #define LINUX_IMAXBEL 0x0002000 +#define LINUX_IUTF8 0x0004000 /* Linux c_oflag masks */ #define LINUX_OPOST 0x0000001