Changeset 1e4d4f85 in rtems


Ignore:
Timestamp:
Jul 24, 2003, 7:54:55 PM (17 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ff393f2
Parents:
129b4a79
Message:

2003-07-24 jennifer averett <jennifer.averett@…>

PR 434/filesystem

  • src/imfs/imfs_init.c: Modified to return error code
  • src/imfs/miniimfs_init.c: Modified to return error code
  • src/imfs/imfs_initsup.c: Modified to set error upon memory failure.
Location:
cpukit/libfs/src/imfs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/imfs/imfs_init.c

    r129b4a79 r1e4d4f85  
    6161)
    6262{
    63    IMFS_initialize_support(
     63   return IMFS_initialize_support(
    6464     temp_mt_entry,
    6565     &IMFS_ops,
     
    6868     &IMFS_directory_handlers
    6969   );
    70    return 0;
    7170}
  • cpukit/libfs/src/imfs/imfs_initsupp.c

    r129b4a79 r1e4d4f85  
    2525#include "imfs.h"
    2626#include <rtems/libio_.h>
     27#include <rtems/seterr.h>
    2728
    2829#if defined(IMFS_DEBUG)
     
    6970  if ( !fs_info ){
    7071    free(temp_mt_entry->mt_fs_root.node_access);
    71     return 1;
     72    rtems_set_errno_and_return_minus_one(ENOMEM);
    7273  }
    7374  temp_mt_entry->fs_info = fs_info;
  • cpukit/libfs/src/imfs/miniimfs_init.c

    r129b4a79 r1e4d4f85  
    6161)
    6262{
    63    IMFS_initialize_support(
     63    return IMFS_initialize_support(
    6464      temp_mt_entry,
    6565      &miniIMFS_ops,
     
    6868      &rtems_filesystem_null_handlers   /* for directories */
    6969   );
    70    return 0;
    7170}
    7271
Note: See TracChangeset for help on using the changeset viewer.