diff options
author | Andreas Schwab | 2018-01-29 11:47:06 +0100 |
---|---|---|
committer | Laurent Vivier | 2018-02-18 18:52:32 +0100 |
commit | 2b74f621f1c78023177eab59bce4357867d772f2 (patch) | |
tree | bc49a815eee372e55f095545fdcf4b171903a7ba /linux-user/sh4/termbits.h | |
parent | cuda.h: Fix multiple typedef (diff) | |
download | qemu-2b74f621f1c78023177eab59bce4357867d772f2.tar.gz qemu-2b74f621f1c78023177eab59bce4357867d772f2.tar.xz qemu-2b74f621f1c78023177eab59bce4357867d772f2.zip |
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/sh4/termbits.h')
-rw-r--r-- | linux-user/sh4/termbits.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/sh4/termbits.h b/linux-user/sh4/termbits.h index 2ff774f6ba..5723ed7752 100644 --- a/linux-user/sh4/termbits.h +++ b/linux-user/sh4/termbits.h @@ -250,6 +250,7 @@ ID of FD */ #define TARGET_TIOCGPTN TARGET_IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-m ux device) */ #define TARGET_TIOCSPTLCK TARGET_IOW('T',0x31, int) /* Lock/unlock Pty */ +#define TARGET_TIOCGPTPEER TARGET_IO('T', 0x41) /* Safely open the slave */ #define TARGET_TIOCSERCONFIG TARGET_IO('T', 83) /* 0x5453 */ |