diff options
author | Serban Constantinescu <serban.constantinescu@arm.com> | 2014-03-14 13:16:25 +0000 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-04-08 12:19:23 -0700 |
commit | 48501af98f3cdf0115a469ee8d773cf74c42958d (patch) | |
tree | b26893fa81d808c0f93bf8fdf966e3210948b8c2 /libc/include/fcntl.h | |
parent | 0b0387c965894e235b72fa965191bf346270135d (diff) | |
download | android_bionic-48501af98f3cdf0115a469ee8d773cf74c42958d.tar.gz android_bionic-48501af98f3cdf0115a469ee8d773cf74c42958d.tar.bz2 android_bionic-48501af98f3cdf0115a469ee8d773cf74c42958d.zip |
AArch64: Fix flock64 for LP64.
On LP64 systems F_GETLK64, F_SETLK64 and F_SETLKW64 definitions should
map onto the F_GETLK, F_SETLK and F_SETLKW definitions, respectively.
LP64 also doesn't have a struct flock64.
Change-Id: Ibdfed9645d9e946999acd6efa8b96ea6238ed5bf
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
Diffstat (limited to 'libc/include/fcntl.h')
-rw-r--r-- | libc/include/fcntl.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h index 779a089f0..cd68154f7 100644 --- a/libc/include/fcntl.h +++ b/libc/include/fcntl.h @@ -37,6 +37,20 @@ __BEGIN_DECLS +#ifdef __LP64__ +/* LP64 kernels don't have flock64 because their flock is 64-bit. */ +struct flock64 { + short l_type; + short l_whence; + off64_t l_start; + off64_t l_len; + pid_t l_pid; +}; +#define F_GETLK64 F_GETLK +#define F_SETLK64 F_SETLK +#define F_SETLKW64 F_SETLKW +#endif + #ifndef O_ASYNC #define O_ASYNC FASYNC #endif |