seek problem
Pattara Kiatisevi
pkiatisevi at student.ei.uni-stuttgart.de
Mon Apr 29 15:25:23 UTC 2002
Hi,
after digging into RTEMS source code I found this:
<rtems>/c/src/lib/libc/deviceio.c
/*
* device_lseek
*
* This handler eats all lseek() operations.
*/
int device_lseek(
rtems_libio_t *iop,
off_t offset,
int whence
)
{
return 0;
}
hmm, why it returned just zero? I changed it to "return iop->offset"
(because I see this iop->offset has been manipulated already in lseek.c)
and my device driver seems to be happy with this lseek function now.
Thank you very much for all the help,
Pattara
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
----------------------------------------------------------------------
Ott Pattara Kiatisevi T L W G
M.Sc. INFOTECH Student, Stuttgart, Germany http://linux.thai.net/
----------------------------------------------------------------------
More information about the users
mailing list