summaryrefslogtreecommitdiffstats
path: root/linux-user/sparc
diff options
context:
space:
mode:
authorAndreas Schwab2018-01-29 11:47:06 +0100
committerLaurent Vivier2018-02-18 18:52:32 +0100
commit2b74f621f1c78023177eab59bce4357867d772f2 (patch)
treebc49a815eee372e55f095545fdcf4b171903a7ba /linux-user/sparc
parentcuda.h: Fix multiple typedef (diff)
downloadqemu-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/sparc')
-rw-r--r--linux-user/sparc/termbits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/sparc/termbits.h b/linux-user/sparc/termbits.h
index 691600d27a..113d6dfbdb 100644
--- a/linux-user/sparc/termbits.h
+++ b/linux-user/sparc/termbits.h
@@ -245,6 +245,7 @@ struct target_termios {
/* Get minor device of a pty master's FD -- Solaris equiv is ISPTM */
#define TARGET_TIOCGPTN TARGET_IOR('t', 134, unsigned int) /* Get Pty Number */
#define TARGET_TIOCSPTLCK TARGET_IOW('t', 135, int) /* Lock/unlock PTY */
+#define TARGET_TIOCGPTPEER TARGET_IO('t', 137) /* Safely open the slave */
/* Little f */
#define TARGET_FIOCLEX TARGET_IO('f', 1)