[ECOS] [eCos] a question about ROMFS

jjtsai jjtsai@itri.org.tw
Mon Jul 16 00:47:00 GMT 2001


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
fseek_test.c
stream_inl_patch.pat

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fseek_test.c
Type: text/x-c
Size: 1464 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20010716/32557fe6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream_inl_patch.pat
Type: text/x-diff
Size: 566 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20010716/32557fe6/attachment-0001.bin>


More information about the Ecos-discuss mailing list