forked from KolibriOS/kolibrios
kolibri-libc:
- Added ungetc, tollower and toupper to export - Fixed ungetc emu - Fixed file io functions - Update file_io test git-svn-id: svn://kolibrios.org@8730 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -11,12 +11,12 @@ int ungetc(int c, FILE* file)
|
||||
return EOF;
|
||||
}
|
||||
|
||||
if (file->mode != _STDIO_F_R){
|
||||
if (file->mode != _FILEMODE_R){
|
||||
errno = EACCES;
|
||||
return EOF;
|
||||
}
|
||||
|
||||
if (file->position > file->start_size || file->position == 0 || c == EOF || file->__ungetc_emu_buff != EOF)
|
||||
if (file->position == 0 || c == EOF)
|
||||
{
|
||||
errno = EOF;
|
||||
return EOF;
|
||||
|
Reference in New Issue
Block a user