Changeset 43f69a2d in rtems


Ignore:
Timestamp:
Feb 3, 2003, 10:05:20 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
50381010
Parents:
d90b74e
Message:

2003-02-03 Steven Johnson <sjohnson@…>

PR 338/filesystem

  • src/imfs/ioman.c: Fix reentrancy problem with rtems_io_lookup_name() (API change).
Location:
cpukit/libfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/ChangeLog

    rd90b74e r43f69a2d  
     12003-02-03      Steven Johnson <sjohnson@neurizon.net>
     2
     3        PR 338/filesystem
     4        * src/imfs/ioman.c: Fix reentrancy problem with
     5        rtems_io_lookup_name() (API change).
     6
    172003-01-03      Eugeny S. Mints <Eugeny.Mints@oktet.ru>
    28
  • cpukit/libfs/src/imfs/ioman.c

    rd90b74e r43f69a2d  
    6464 *  rtems_io_lookup_name
    6565 *
    66  *  This version is not reentrant.
     66 *  This version is reentrant.
    6767 *
    6868 *  XXX - This is dependent upon IMFS and should not be. 
     
    7272rtems_status_code rtems_io_lookup_name(
    7373  const char           *name,
    74   rtems_driver_name_t **device_info
     74  rtems_driver_name_t  *device_info
    7575)
    7676{
     
    7878  IMFS_jnode_t                      *the_jnode;
    7979  rtems_filesystem_location_info_t   loc;
    80   static rtems_driver_name_t         device;
    8180  int                                result;
    8281  rtems_filesystem_node_types_t      node_type;
     
    9392
    9493  if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
    95     *device_info = 0;
    9694    rtems_filesystem_freenode( &loc );
    9795    return RTEMS_UNSATISFIED;
    9896  }
    9997
    100   device.device_name        = (char *) name;
    101   device.device_name_length = strlen( name );
    102   device.major              = the_jnode->info.device.major;
    103   device.minor              = the_jnode->info.device.minor;
    104   *device_info              = &device;
     98  device_info->device_name        = (char *) name;
     99  device_info->device_name_length = strlen( name );
     100  device_info->major              = the_jnode->info.device.major;
     101  device_info->minor              = the_jnode->info.device.minor;
    105102
    106103  rtems_filesystem_freenode( &loc );
Note: See TracChangeset for help on using the changeset viewer.