RTEMS Logo

RTEMS 4.8.1 On-Line Library


IMFS_dir_lseek() for Directories

PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

6.4.3.6: IMFS_dir_lseek() for Directories

Corresponding Structure Element:

imfs_dir_lseek()

Arguments:

rtems_libio_t      *iop,
off_t               offset,
int                 whence

File:

imfs_directory.c

Description:

This routine alters the offset in the file control block.

No test is performed on the number of children under the current open directory. The imfs_dir_read() function protects against reads beyond the current size to the directory by returning a 0 bytes transfered to the calling programs whenever the file position index exceeds the last entry in the open directory.


PREV UP NEXT Bookshelf RTEMS Filesystem Design Guide

Copyright © 1988-2007OAR Corporation