[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