summaryrefslogtreecommitdiffstats
path: root/9/platforms/android-19/arch-x86_64/usr/include/fcntl.h
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-07-07 20:08:17 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-07-07 20:08:17 +0800
commit7aed1359ac43bc36b0413bf6c0929a96fd3bacbd (patch)
tree972fd70026a94c7e99e4232b99480ed640900997 /9/platforms/android-19/arch-x86_64/usr/include/fcntl.h
parent50b27d2dd615b1efebed768d9786dc5fa3b3d370 (diff)
downloadprebuilts_ndk-7aed1359ac43bc36b0413bf6c0929a96fd3bacbd.zip
prebuilts_ndk-7aed1359ac43bc36b0413bf6c0929a96fd3bacbd.tar.gz
prebuilts_ndk-7aed1359ac43bc36b0413bf6c0929a96fd3bacbd.tar.bz2
Refresh 64-bit headers/libs (WW28)
Change-Id: I637bf943f48f46a1cbacbe303f87353841c4c8b0
Diffstat (limited to '9/platforms/android-19/arch-x86_64/usr/include/fcntl.h')
-rw-r--r--9/platforms/android-19/arch-x86_64/usr/include/fcntl.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/9/platforms/android-19/arch-x86_64/usr/include/fcntl.h b/9/platforms/android-19/arch-x86_64/usr/include/fcntl.h
index cd68154..4450bb6 100644
--- a/9/platforms/android-19/arch-x86_64/usr/include/fcntl.h
+++ b/9/platforms/android-19/arch-x86_64/usr/include/fcntl.h
@@ -33,6 +33,7 @@
#include <sys/types.h>
#include <linux/fadvise.h>
#include <linux/fcntl.h>
+#include <linux/uio.h>
#include <unistd.h> /* this is not required, but makes client code much happier */
__BEGIN_DECLS
@@ -51,9 +52,12 @@ struct flock64 {
#define F_SETLKW64 F_SETLKW
#endif
-#ifndef O_ASYNC
-#define O_ASYNC FASYNC
-#endif
+#define O_ASYNC FASYNC
+
+#define SPLICE_F_MOVE 1
+#define SPLICE_F_NONBLOCK 2
+#define SPLICE_F_MORE 4
+#define SPLICE_F_GIFT 8
#define SYNC_FILE_RANGE_WAIT_BEFORE 1
#define SYNC_FILE_RANGE_WRITE 2
@@ -70,7 +74,10 @@ extern int open(const char*, int, ...);
extern int open64(const char*, int, ...);
extern int posix_fallocate64(int, off64_t, off64_t);
extern int posix_fallocate(int, off_t, off_t);
+extern ssize_t splice(int, off64_t*, int, off64_t*, size_t, unsigned int);
+extern ssize_t tee(int, int, size_t, unsigned int);
extern int unlinkat(int, const char*, int);
+extern ssize_t vmsplice(int, const struct iovec*, size_t, unsigned int);
#if defined(__BIONIC_FORTIFY)