newlib: don't report EOF as error from OS layer, higher layer detects EOF as zero-length read

git-svn-id: svn://kolibrios.org@5204 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse
2014-12-01 11:19:01 +00:00
parent ba2b0659ac
commit 8d57a1a87d
2 changed files with 3 additions and 3 deletions

View File

@@ -26,6 +26,6 @@ int read_file(const char *path, void *buff,
"addl $28, %%esp \n\t"
:"=a" (retval)
:"a"(path),"b"(buff),"c"(offset),"d"(count),"S"(reads));
return retval;
return retval == 6 ? 0 : retval;
};