Changeset 6661435f in rtems


Ignore:
Timestamp:
Feb 24, 2012, 8:21:04 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
70927458
Parents:
1bdff036
git-author:
Sebastian Huber <sebastian.huber@…> (02/24/12 08:21:04)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/13/12 11:24:16)
Message:

IMFS: Removed superfluous imfs_dir_open()

Location:
cpukit/libfs/src/imfs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/imfs/imfs.h

    r1bdff036 r6661435f  
    353353);
    354354
    355 extern int imfs_dir_open(
    356   rtems_libio_t *iop,             /* IN  */
    357   const char    *pathname,        /* IN  */
    358   int            oflag,           /* IN  */
    359   mode_t         mode             /* IN  */
    360 );
    361 
    362355extern ssize_t imfs_dir_read(
    363356  rtems_libio_t *iop,              /* IN  */
  • cpukit/libfs/src/imfs/imfs_directory.c

    r1bdff036 r6661435f  
    2020#include <string.h>
    2121#include <dirent.h>
    22 
    23 /*
    24  *  imfs_dir_open
    25  *
    26  *  This rountine will verify that the node being opened as a directory is
    27  *  in fact a directory node. If it is then the offset into the directory
    28  *  will be set to 0 to position to the first directory entry.
    29  */
    30 
    31 int imfs_dir_open(
    32   rtems_libio_t  *iop,
    33   const char *pathname,
    34   int oflag,
    35   mode_t mode
    36 )
    37 {
    38   IMFS_jnode_t      *the_jnode;
    39 
    40   /* Is the node a directory ? */
    41   the_jnode = (IMFS_jnode_t *) iop->pathinfo.node_access;
    42 
    43   if ( the_jnode->type != IMFS_DIRECTORY )
    44      return -1;      /* It wasn't a directory --> return error */
    45 
    46   iop->offset = 0;
    47   return 0;
    48 }
    4922
    5023/*
  • cpukit/libfs/src/imfs/imfs_handlers_directory.c

    r1bdff036 r6661435f  
    2323
    2424const rtems_filesystem_file_handlers_r IMFS_directory_handlers = {
    25   imfs_dir_open,
     25  rtems_filesystem_default_open,
    2626  rtems_filesystem_default_close,
    2727  imfs_dir_read,
Note: See TracChangeset for help on using the changeset viewer.