]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: correct TCGETS/TCSETS values on ppc64/ppc64le
authorTobias Klauser <tklauser@distanz.ch>
Wed, 27 Sep 2017 12:26:20 +0000 (14:26 +0200)
committerIan Lance Taylor <iant@golang.org>
Wed, 27 Sep 2017 14:53:47 +0000 (14:53 +0000)
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 <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/ztypes_linux_ppc64.go
src/syscall/ztypes_linux_ppc64le.go

index de817f50afbbbe33fe514267a3a1c7ed95949937..087a70d4436f427efe08797583d5ae7cb7fe08c5 100644 (file)
@@ -600,7 +600,7 @@ type Termios struct {
 const (
        IUCLC  = 0x1000
        OLCUC  = 0x4
-       TCGETS = 0x403c7413
-       TCSETS = 0x803c7414
+       TCGETS = 0x402c7413
+       TCSETS = 0x802c7414
        XCASE  = 0x4000
 )
index e75d8e3925ed05446b65d7d9e12cb12135970818..8412bddbfab84fea8ddef6b40a101fc6c54d1196 100644 (file)
@@ -600,7 +600,7 @@ type Termios struct {
 const (
        IUCLC  = 0x1000
        OLCUC  = 0x4
-       TCGETS = 0x403c7413
-       TCSETS = 0x803c7414
+       TCGETS = 0x402c7413
+       TCSETS = 0x802c7414
        XCASE  = 0x4000
 )