seek problem

Pattara Kiatisevi pkiatisevi at
Mon Apr 29 15:25:23 UTC 2002


after digging into RTEMS source code I found this:


 *  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,

Please avoid sending me Word or PowerPoint attachments.
Ott Pattara Kiatisevi 				   T L W G
M.Sc. INFOTECH Student, Stuttgart, Germany

More information about the users mailing list