This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi,
I have a question about ROM files
system.
[Question Description]
A fseek(,,SEEK_CUR) after fread() will
cause inconsistency between "(CYG_StdioStream)
real_stream.position"
and "fp->f_offset". See also
stream.inl and rom_fs.c.
Here is my test program. See
attchment: fseek_test.c .
[My modfication]
See attachment: stream_inl_patch.pat.
Instruction about how to apply it:
cd $(ECOS_REPOSITORY)/packages/language/c/libc/stdio/current/include patch -p0 < $(WHERE_THE_PATCH_IS)/stream_inl_patch.pat regards,
Jang-Jer
|
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |