]> Cypherpunks repositories - gostls13.git/commit
syscall: mkerrors.sh: don't define _FILE_OFFSET_BITS if __LP64__
authorIan Lance Taylor <iant@golang.org>
Tue, 12 May 2015 03:49:32 +0000 (20:49 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 13 May 2015 00:40:49 +0000 (00:40 +0000)
commit08ba7dbdfdf0a2824ee122a6214e0263431a6ff0
treebeda4ad800e14b347de10d234b9a2e8648658f83
parenta4f4a46c28fdf6a2b0724bd779c9cf1bad32b066
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>
src/syscall/mkerrors.sh
src/syscall/zerrors_linux_ppc64le.go
src/syscall/ztypes_linux_ppc64le.go