From 2b74f621f1c78023177eab59bce4357867d772f2 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 29 Jan 2018 11:47:06 +0100 Subject: linux-user: Implement ioctl cmd TIOCGPTPEER With glibc 2.27 the openpty function prefers the TIOCGPTPEER ioctl. Signed-off-by: Andreas Schwab Reviewed-by: Laurent Vivier Message-Id: Signed-off-by: Laurent Vivier --- linux-user/mips/termbits.h | 1 + 1 file changed, 1 insertion(+) (limited to 'linux-user/mips') diff --git a/linux-user/mips/termbits.h b/linux-user/mips/termbits.h index a0bcad0..49a72c5 100644 --- a/linux-user/mips/termbits.h +++ b/linux-user/mips/termbits.h @@ -233,6 +233,7 @@ struct target_termios { #define TARGET_TIOCGPKT TARGET_IOR('T', 0x38, int) #define TARGET_TIOCGPTLCK TARGET_IOR('T', 0x39, int) #define TARGET_TIOCGEXCL TARGET_IOR('T', 0x40, int) +#define TARGET_TIOCGPTPEER TARGET_IO('T', 0x41) /* I hope the range from 0x5480 on is free ... */ #define TARGET_TIOCSCTTY 0x5480 /* become controlling tty */ -- cgit v1.1