public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] fatfs lseek EOF bug
@ 2005-05-09 11:25 Gratian Crisan
  2005-05-10 10:51 ` Savin Zlobec
  0 siblings, 1 reply; 6+ messages in thread
From: Gratian Crisan @ 2005-05-09 11:25 UTC (permalink / raw)
  To: ecos-discuss

Hi all,

I think I've found a bug in the ecos FAT implementation for lseek function. 
(fatfs_fo_lseek).
When calling the function like this 'lseek(fd, 0,  SEEK_CUR)' to get the 
current file position and the postion is right at the end of the file the fat 
lseek function returns end of file error EEOF. I've looked at the other 
filesystems from ecos and did a test in linux and the correct behavior seems 
to be to return the current position of the end of file if the read/write 
pointer is at the end of file (equal with the file size).
This bug occurs for example when creating a new file, writing some data in it 
and calling lseek(fd, 0, SEEK_CUR) to get the current file position.

Suggestions?

Thanks,
	Nelu

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-05-11  7:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-09 11:25 [ECOS] fatfs lseek EOF bug Gratian Crisan
2005-05-10 10:51 ` Savin Zlobec
2005-05-10 12:05   ` Gratian Crisan
2005-05-10 12:30     ` Savin Zlobec
2005-05-10 13:00       ` Gratian Crisan
2005-05-11  9:32         ` Savin Zlobec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).