git » libfiu » commit 76c4fd2

preload/posix: correct errnos in some posix.io functions

author Pavel Borzenkov
2014-01-22 09:20:57 UTC
committer Alberto Bertogli
2014-01-22 21:03:01 UTC
parent 3857105b4d9b8c71d7df70959734f6dabd45493d

preload/posix: correct errnos in some posix.io functions

 - read()/readv() can't set EOVERFLOW, drop it.
 - pread()/pwrite() can return ENXIO (from lseek(2)), add it.
 - all write functions can return EDQUOT which is quite an important
   error code, add it.

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

preload/posix/modules/posix.io.mod +7 -7

diff --git a/preload/posix/modules/posix.io.mod b/preload/posix/modules/posix.io.mod
index 0f4d4a5..c114943 100644
--- a/preload/posix/modules/posix.io.mod
+++ b/preload/posix/modules/posix.io.mod
@@ -36,34 +36,34 @@ fiu name base: posix/io/rw/
 
 ssize_t read(int fd, void *buf, size_t count);
 	on error: -1
-	valid errnos: EBADFD EFAULT EINTR EINVAL EIO EISDIR EOVERFLOW
+	valid errnos: EBADFD EFAULT EINTR EINVAL EIO EISDIR
 	reduce: count
 
 ssize_t pread(int fd, void *buf, size_t count, off_t offset);
 	on error: -1
-	valid errnos: EBADFD EFAULT EINTR EINVAL EIO EISDIR EOVERFLOW
+	valid errnos: EBADFD EFAULT EINTR EINVAL EIO EISDIR EOVERFLOW ENXIO
 	reduce: count
 
 ssize_t readv(int fd, const struct iovec *iov, int iovcnt);
 	on error: -1
-	valid errnos: EBADFD EFAULT EINTR EINVAL EIO EISDIR EOVERFLOW
+	valid errnos: EBADFD EFAULT EINTR EINVAL EIO EISDIR
 	reduce: iovcnt
 
 
 ssize_t write(int fd, const void *buf, size_t count);
 	on error: -1
-	valid errnos: EBADFD EFAULT EFBIG EINTR EINVAL EIO ENOSPC
+	valid errnos: EBADFD EDQUOT EFAULT EFBIG EINTR EINVAL EIO ENOSPC
 	reduce: count
 
 ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset);
 	on error: -1
-	valid errnos: EBADFD EFAULT EFBIG EINTR EINVAL EIO ENOSPC \
-		EOVERFLOW
+	valid errnos: EBADFD EDQUOT EFAULT EFBIG EINTR EINVAL EIO ENOSPC \
+		EOVERFLOW ENXIO
 	reduce: count
 
 ssize_t writev(int fd, const struct iovec *iov, int iovcnt);
 	on error: -1
-	valid errnos: EBADFD EFAULT EFBIG EINTR EINVAL EIO ENOSPC
+	valid errnos: EBADFD EDQUOT EFAULT EFBIG EINTR EINVAL EIO ENOSPC
 	reduce: iovcnt