aboutsummaryrefslogtreecommitdiff
path: root/linux-user/tilegx
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2018-01-29 11:47:06 +0100
committerLaurent Vivier <laurent@vivier.eu>2018-02-18 18:52:32 +0100
commit2b74f621f1c78023177eab59bce4357867d772f2 (patch)
treebc49a815eee372e55f095545fdcf4b171903a7ba /linux-user/tilegx
parentf0fa81767555fe2c4b5f8c9e0725a80eac1d7f56 (diff)
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/tilegx')
-rw-r--r--linux-user/tilegx/termbits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/tilegx/termbits.h b/linux-user/tilegx/termbits.h
index 91ec23654e..966daec088 100644
--- a/linux-user/tilegx/termbits.h
+++ b/linux-user/tilegx/termbits.h
@@ -242,6 +242,7 @@ struct target_termios2 {
#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)
#define TARGET_FIONCLEX 0x5450
#define TARGET_FIOCLEX 0x5451