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:
parent
ba2b0659ac
commit
8d57a1a87d
@ -42,7 +42,7 @@ CORE_SRCS = {
|
|||||||
"reent/impure.c", "reent/init_reent.c", "reent/getreent.c", "reent/mutex.c",
|
"reent/impure.c", "reent/init_reent.c", "reent/getreent.c", "reent/mutex.c",
|
||||||
"reent/gettimeofdayr.c", "reent/isattyr.c", "reent/openr.c", "reent/closer.c",
|
"reent/gettimeofdayr.c", "reent/isattyr.c", "reent/openr.c", "reent/closer.c",
|
||||||
"reent/linkr.c", "reent/readr.c", "reent/lseekr.c", "reent/fstatr.c",
|
"reent/linkr.c", "reent/readr.c", "reent/lseekr.c", "reent/fstatr.c",
|
||||||
"reent/writer.c", "reent/timesr.c", "reent/unlinkr.c",
|
"reent/writer.c", "reent/timesr.c", "reent/unlinkr.c", "reent/renamer.c",
|
||||||
"search/qsort.c", "search/bsearch.c",
|
"search/qsort.c", "search/bsearch.c",
|
||||||
"signal/signal.c",
|
"signal/signal.c",
|
||||||
"sys/close.c", "sys/create.c", "sys/delete.c", "sys/errno.c", "sys/finfo.c",
|
"sys/close.c", "sys/create.c", "sys/delete.c", "sys/errno.c", "sys/finfo.c",
|
||||||
@ -84,7 +84,7 @@ STDIO_SRCS = {
|
|||||||
"tmpfile.c", "tmpnam.c", "ungetc.c", "vasniprintf.c", "vasnprintf.c",
|
"tmpfile.c", "tmpnam.c", "ungetc.c", "vasniprintf.c", "vasnprintf.c",
|
||||||
"vdprintf.c", "vdiprintf.c", "vscanf.c", "vsprintf.c", "vsnprintf.c",
|
"vdprintf.c", "vdiprintf.c", "vscanf.c", "vsprintf.c", "vsnprintf.c",
|
||||||
"vsscanf.c", "makebuf.c", "wsetup.c", "wbuf.c", "sccl.c", "siprintf.c",
|
"vsscanf.c", "makebuf.c", "wsetup.c", "wbuf.c", "sccl.c", "siprintf.c",
|
||||||
"sniprintf.c", "snprintf.c", "sprintf.c", "sscanf.c"
|
"sniprintf.c", "snprintf.c", "sprintf.c", "sscanf.c", "rename.c"
|
||||||
}
|
}
|
||||||
|
|
||||||
MATH_SRCS = {
|
MATH_SRCS = {
|
||||||
|
@ -26,6 +26,6 @@ int read_file(const char *path, void *buff,
|
|||||||
"addl $28, %%esp \n\t"
|
"addl $28, %%esp \n\t"
|
||||||
:"=a" (retval)
|
:"=a" (retval)
|
||||||
:"a"(path),"b"(buff),"c"(offset),"d"(count),"S"(reads));
|
:"a"(path),"b"(buff),"c"(offset),"d"(count),"S"(reads));
|
||||||
return retval;
|
return retval == 6 ? 0 : retval;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user