commit | 5704c423c81790195161c1757ae79da188590c51 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <[email protected]> | Mon Jan 25 18:06:24 2016 -0800 |
committer | Elliott Hughes <[email protected]> | Tue Jan 26 11:09:44 2016 -0800 |
tree | 66ebd378fb496400d35ad38a8c4eb25931ad30f2 | |
parent | ac67b4eb7c70ea668abb32298b0cb16920a32a66 [diff] [blame] |
Implement POSIX lockf. This has been requested a few times over the years. This is basically a very late rebase of https://android-review.googlesource.com/45470 which was abandoned years ago. One addition is that this version has _FILE_OFFSET_BITS=64 support. POSIX puts this in <unistd.h>. glibc also has it in <fcntl.h>. Bug: http://b/13077650 Change-Id: I5862b1dc326e326c01ad92438ecc1578d19ba739
diff --git a/libc/include/stdint.h b/libc/include/stdint.h index a6f8505..a66e21e 100644 --- a/libc/include/stdint.h +++ b/libc/include/stdint.h
@@ -29,8 +29,8 @@ #ifndef _STDINT_H #define _STDINT_H +#include <bits/wchar_limits.h> #include <stddef.h> -#include <machine/wchar_limits.h> typedef __signed char __int8_t; typedef unsigned char __uint8_t;