Changeset 23a0368 in mainline for uspace/lib/c/generic/io/io.c
- Timestamp:
- 2017-03-30T19:52:23Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ae7bfbbd
- Parents:
- b5b5d84
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/io.c
rb5b5d84 r23a0368 41 41 #include <stdbool.h> 42 42 #include <malloc.h> 43 #include <sys/stat.h>44 43 #include <async.h> 45 44 #include <io/kio.h> … … 765 764 int fseek(FILE *stream, off64_t offset, int whence) 766 765 { 766 int rc; 767 767 768 if (stream->error) 768 769 return -1; … … 785 786 break; 786 787 case SEEK_END: 787 if (fstat(stream->fd, &st) != EOK) { 788 /* errno was set by fstat() */ 788 rc = vfs_stat(stream->fd, &st); 789 if (rc != EOK) { 790 errno = rc; 789 791 stream->error = true; 790 792 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.