The branch main has been updated by trasz:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=31eec6fe1aea614e89060af0554abe1a98d8d8ed

commit 31eec6fe1aea614e89060af0554abe1a98d8d8ed
Author:     Edward Tomasz Napierala <tr...@freebsd.org>
AuthorDate: 2024-10-09 14:45:13 +0000
Commit:     Edward Tomasz Napierala <tr...@freebsd.org>
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

Reply via email to