[Bug 1245] device_lseek is noop but always returns success

rtems-bugs at rtems.org rtems-bugs at rtems.org
Tue Aug 14 18:41:20 UTC 2007


http://www.rtems.org/bugzilla/show_bug.cgi?id=1245





------- Comment #2 from strauman at slac.stanford.edu  2007-08-14 13:41 -------
For some devices (seekable ones that need no special action in the device
driver)
the current behavior is almost OK (the file pointer is adjusted in
libcsupport/src/lseek.c and the adjustment reverted if the
iop->handlers->lseek_h() 'method' returns -1). However, the value returned
by device_lseek() should not be zero but the current offset. IMO that is better
than what we have now and simple to implement although it doesn't provide a way
for non-seekable device drivers to return ESPIPE.


-- 
Configure bugmail: http://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the bugs mailing list