From 197f9ba11d4559cbd19350ca652da7881f4b273f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 27 Sep 2017 14:26:20 +0200 Subject: [PATCH] syscall: correct TCGETS/TCSETS values on ppc64/ppc64le Correcting values is allowed per the syscall package rules, so update these constants to their correct value on ppc64/ppc64le. The values now match the corresponding constants in x/sys/unix. Update #19560 Fixes #22000 Change-Id: I1d358de345766ec96e15dfcc8911fe2f39fb0ddb Reviewed-on: https://go-review.googlesource.com/66510 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Lynn Boger Reviewed-by: Ian Lance Taylor --- src/syscall/ztypes_linux_ppc64.go | 4 ++-- src/syscall/ztypes_linux_ppc64le.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/syscall/ztypes_linux_ppc64.go b/src/syscall/ztypes_linux_ppc64.go index de817f50afb..087a70d4436 100644 --- a/src/syscall/ztypes_linux_ppc64.go +++ b/src/syscall/ztypes_linux_ppc64.go @@ -600,7 +600,7 @@ type Termios struct { const ( IUCLC = 0x1000 OLCUC = 0x4 - TCGETS = 0x403c7413 - TCSETS = 0x803c7414 + TCGETS = 0x402c7413 + TCSETS = 0x802c7414 XCASE = 0x4000 ) diff --git a/src/syscall/ztypes_linux_ppc64le.go b/src/syscall/ztypes_linux_ppc64le.go index e75d8e3925e..8412bddbfab 100644 --- a/src/syscall/ztypes_linux_ppc64le.go +++ b/src/syscall/ztypes_linux_ppc64le.go @@ -600,7 +600,7 @@ type Termios struct { const ( IUCLC = 0x1000 OLCUC = 0x4 - TCGETS = 0x403c7413 - TCSETS = 0x803c7414 + TCGETS = 0x402c7413 + TCSETS = 0x802c7414 XCASE = 0x4000 )