summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-10-24 22:38:03 +0000
committerroot <root>2008-10-24 22:38:03 +0000
commit44c5e91d7894677422bcfe27f68147d8a3353154 (patch)
tree6fad3efd56eeb012181b6b181d1488fcdc884d16
parent76c7228dfabca043f8685b4c21185d6506107658 (diff)
*** empty log message ***rel-3_19
-rw-r--r--eio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eio.c b/eio.c
index 008fcb7..e0e172f 100644
--- a/eio.c
+++ b/eio.c
@@ -831,7 +831,7 @@ eio__sync_file_range (int fd, off_t offset, size_t nbytes, unsigned int flags)
res = sync_file_range (fd, offset, nbytes, flags);
- if (res != ENOSYS)
+ if (!res || errno != ENOSYS)
return res;
#endif
@@ -1018,7 +1018,7 @@ eio__scandir (eio_req *req, etp_worker *self)
#if !(_POSIX_MAPPED_FILES && _POSIX_SYNCHRONIZED_IO)
# undef msync
-# define msync(a,b,c) ENOSYS
+# define msync(a,b,c) ((errno = ENOSYS), -1)
#endif
int