diff options
author | Elliott Hughes <enh@google.com> | 2014-06-24 16:32:01 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-06-24 19:03:31 -0700 |
commit | 3f525d41c2acde2ae3309cf839d83d7f41ab2fe6 (patch) | |
tree | 572f2b5a63ffbbec084c9f048f396856c228b9b0 /libc/include/fcntl.h | |
parent | 52f9b051c8bcb3d723b023a74d7d89ee45cf754c (diff) | |
download | android_bionic-3f525d41c2acde2ae3309cf839d83d7f41ab2fe6.tar.gz android_bionic-3f525d41c2acde2ae3309cf839d83d7f41ab2fe6.tar.bz2 android_bionic-3f525d41c2acde2ae3309cf839d83d7f41ab2fe6.zip |
Add splice, tee, and vmsplice.
Change-Id: I5f43380b88d776a8bb607b47dbbc5db5a2fe6163
Diffstat (limited to 'libc/include/fcntl.h')
-rw-r--r-- | libc/include/fcntl.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h index cd68154f7..4450bb65f 100644 --- a/libc/include/fcntl.h +++ b/libc/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) |