git » libfiu » commit 6a1cd97

preload/posix: add preadv()/pwritev() to posix.io

author Pavel Borzenkov
2014-01-22 09:20:58 UTC
committer Alberto Bertogli
2014-01-22 21:03:01 UTC
parent 76c4fd2c5f3fba5638befe26484863bec7001203

preload/posix: add preadv()/pwritev() to posix.io

Signed-off-by: Pavel Borzenkov <pavel@voidptr.ru>

preload/posix/modules/posix.io.mod +11 -0

diff --git a/preload/posix/modules/posix.io.mod b/preload/posix/modules/posix.io.mod
index c114943..bb36af3 100644
--- a/preload/posix/modules/posix.io.mod
+++ b/preload/posix/modules/posix.io.mod
@@ -49,6 +49,11 @@ ssize_t readv(int fd, const struct iovec *iov, int iovcnt);
 	valid errnos: EBADFD EFAULT EINTR EINVAL EIO EISDIR
 	reduce: iovcnt
 
+ssize_t preadv(int fd, const struct iovec *iov, int iovcnt, off64_t offset);
+	on error: -1
+	valid errnos: EBADFD EFAULT EINTR EINVAL EIO EISDIR EOVERFLOW ENXIO
+	reduce: iovcnt
+
 
 ssize_t write(int fd, const void *buf, size_t count);
 	on error: -1
@@ -66,6 +71,12 @@ ssize_t writev(int fd, const struct iovec *iov, int iovcnt);
 	valid errnos: EBADFD EDQUOT EFAULT EFBIG EINTR EINVAL EIO ENOSPC
 	reduce: iovcnt
 
+ssize_t pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset);
+	on error: -1
+	valid errnos: EBADFD EDQUOT EFAULT EFBIG EINTR EINVAL EIO ENOSPC \
+		EOVERFLOW ENXIO
+	reduce: iovcnt
+
 
 int truncate(const char *path, off_t length);
 	on error: -1