diff options
author | root <root> | 2008-10-24 22:38:03 +0000 |
---|---|---|
committer | root <root> | 2008-10-24 22:38:03 +0000 |
commit | 44c5e91d7894677422bcfe27f68147d8a3353154 (patch) | |
tree | 6fad3efd56eeb012181b6b181d1488fcdc884d16 | |
parent | 76c7228dfabca043f8685b4c21185d6506107658 (diff) |
*** empty log message ***rel-3_19
-rw-r--r-- | eio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |