diff options
author | Andreas Schwab <schwab@suse.de> | 2018-01-29 11:47:06 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-02-18 18:52:32 +0100 |
commit | 2b74f621f1c78023177eab59bce4357867d772f2 (patch) | |
tree | bc49a815eee372e55f095545fdcf4b171903a7ba /linux-user/openrisc | |
parent | f0fa81767555fe2c4b5f8c9e0725a80eac1d7f56 (diff) | |
download | qemu-2b74f621f1c78023177eab59bce4357867d772f2.zip qemu-2b74f621f1c78023177eab59bce4357867d772f2.tar.gz qemu-2b74f621f1c78023177eab59bce4357867d772f2.tar.bz2 |
linux-user: Implement ioctl cmd TIOCGPTPEER
With glibc 2.27 the openpty function prefers the TIOCGPTPEER ioctl.
Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <mvmbmhdosb9.fsf_-_@suse.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/openrisc')
-rw-r--r-- | linux-user/openrisc/termbits.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/openrisc/termbits.h b/linux-user/openrisc/termbits.h index 373af77..231a498 100644 --- a/linux-user/openrisc/termbits.h +++ b/linux-user/openrisc/termbits.h @@ -245,6 +245,8 @@ struct target_termios3 { #define TARGET_TIOCGPTN TARGET_IOR('T', 0x30, unsigned int) /* Lock/unlock Pty */ #define TARGET_TIOCSPTLCK TARGET_IOW('T', 0x31, int) +/* Safely open the slave */ +#define TARGET_TIOCGPTPEER TARGET_IO('T', 0x41) /* Get primary device node of /dev/console */ #define TARGET_TIOCGDEV TARGET_IOR('T', 0x32, unsigned int) #define TARGET_TCGETX 0x5432 /* SYS5 TCGETX compatibility */ |