RTEMS Logo

RTEMS 4.6.0pre5 On-Line Library


memfile_lseek() for Regular Files

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

6.4.2.6: memfile_lseek() for Regular Files

Corresponding Structure Element:

Memfile_lseek()

Arguments:

rtems_libio_t     *iop,
off_t              offset,
int                whence

File:

memfile.c

Description:

This routine make sure that the memory based file is sufficiently large to allow for the new file position index.

The IMFS_memfile_extend() function is used to evaluate the current size of the memory file and allocate additional memory blocks if required by the new file position index. A success code is always returned from this routine.


PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

Copyright © 1988-2003 OAR Corporation