summaryrefslogtreecommitdiff
path: root/src/syscall/zerrors_linux_ppc64le.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2015-05-11 20:49:32 -0700
committerIan Lance Taylor <iant@golang.org>2015-05-13 00:40:49 +0000
commit08ba7dbdfdf0a2824ee122a6214e0263431a6ff0 (patch)
treebeda4ad800e14b347de10d234b9a2e8648658f83 /src/syscall/zerrors_linux_ppc64le.go
parenta4f4a46c28fdf6a2b0724bd779c9cf1bad32b066 (diff)
downloadgo-git-08ba7dbdfdf0a2824ee122a6214e0263431a6ff0.tar.gz
syscall: mkerrors.sh: don't define _FILE_OFFSET_BITS if __LP64__
If __LP64__ is defined then the type "long" is 64-bits, and there is no need to explicitly request _FILE_OFFSET_BITS == 64. This changes the definitions of F_GETLK, F_SETLK, and F_SETLKW on PPC to the values that the kernel requires. The values used in C when _FILE_OFFSET_BITS == 64 are corrected by the glibc fcntl function before making the system call. With this change, regenerate ppc64le files on Ubuntu trusty. Change-Id: I8dddbd8a6bae877efff818f5c5dd06291ade3238 Reviewed-on: https://go-review.googlesource.com/9962 Reviewed-by: Minux Ma <minux@golang.org>
Diffstat (limited to 'src/syscall/zerrors_linux_ppc64le.go')
-rw-r--r--src/syscall/zerrors_linux_ppc64le.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syscall/zerrors_linux_ppc64le.go b/src/syscall/zerrors_linux_ppc64le.go
index fdecdf24dd..17c4c4cf3a 100644
--- a/src/syscall/zerrors_linux_ppc64le.go
+++ b/src/syscall/zerrors_linux_ppc64le.go
@@ -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