]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: fix F_SETLK{,W} on linux/ppc64
authorShenghou Ma <minux@golang.org>
Thu, 14 May 2015 07:26:31 +0000 (03:26 -0400)
committerMinux Ma <minux@golang.org>
Fri, 15 May 2015 00:28:49 +0000 (00:28 +0000)
Change-Id: Ia81675b0f01ceafada32bdd2bc59088016a7421e
Reviewed-on: https://go-review.googlesource.com/10043
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/zerrors_linux_ppc64.go
src/syscall/ztypes_linux_ppc64.go

index 15e0770c18bea89a94d3becb50ecf28c37355690..fbaf0dc9af16fdd0629f37d38eef7696f0201b08 100644 (file)
@@ -366,9 +366,9 @@ const (
        F_SETFD                          = 0x2
        F_SETFL                          = 0x4
        F_SETLEASE                       = 0x400
-       F_SETLK                          = 0xd
+       F_SETLK                          = 0x6
        F_SETLK64                        = 0xd
-       F_SETLKW                         = 0xe
+       F_SETLKW                         = 0x7
        F_SETLKW64                       = 0xe
        F_SETOWN                         = 0x8
        F_SETOWN_EX                      = 0xf
index fe438364d447e92fbf534b42f46176f2728b6b22..bce0350b862459d298ab77c3e4d93cdf7df702a8 100644 (file)
@@ -549,7 +549,7 @@ type Sysinfo_t struct {
        Totalhigh uint64
        Freehigh  uint64
        Unit      uint32
-       X_f       [0]byte
+       X_f       [0]uint8
        Pad_cgo_1 [4]byte
 }