-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stdio/file: fix numerous issues in the fread/fwrite functions
Fixed fread function issues: - non-blocking fread was not supported - unbuffered read was not setting F_ERROR on read errors - unbuffered read was not setting F_EOF at the end-of-file - unbuffered read was dropping bytes on EAGAIN - buffered read was not setting F_ERROR when refilling the buffer - buffered read was dropping bytes on EAGAIN - buffered read was incorrectly setting F_EOF on EAGAIN Fixed fwrite function issues: - interleaved fread/fwrite functions weren't working for Unix sockets (caused by an unnecessary seek trigerring an error) - fwrite was returning 0 when read buffer discarding failed due to seek errors JIRA: RTOS-892
- Loading branch information
1 parent
36da264
commit 7058c9c
Showing
1 changed file
with
60 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters