forked from KolibriOS/kolibrios
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:
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user