OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c7dbe
)
Ensure that <fcntl.h> has the SYNC_FILE_RANGE_* constants.
author
Elliott Hughes
<enh@google.com>
Wed, 26 Feb 2014 19:10:32 +0000
(11:10 -0800)
committer
Elliott Hughes
<enh@google.com>
Wed, 26 Feb 2014 23:51:01 +0000
(15:51 -0800)
Needed to build strace at their tip of tree.
Change-Id: I64db00a332088e08e25bc30357293a9308b8a226
libc/include/fcntl.h
patch
|
blob
|
history
diff --git
a/libc/include/fcntl.h
b/libc/include/fcntl.h
index
e37e0a7
..
779a089
100644
(file)
--- a/
libc/include/fcntl.h
+++ b/
libc/include/fcntl.h
@@
-41,6
+41,10
@@
__BEGIN_DECLS
#define O_ASYNC FASYNC
#endif
+#define SYNC_FILE_RANGE_WAIT_BEFORE 1
+#define SYNC_FILE_RANGE_WRITE 2
+#define SYNC_FILE_RANGE_WAIT_AFTER 4
+
extern int creat(const char*, mode_t);
extern int creat64(const char*, mode_t);
extern int fallocate64(int, int, off64_t, off64_t);