Changeset 0d923d9 in rtems


Ignore:
Timestamp:
Jul 1, 2010, 5:47:48 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
9787ee22
Parents:
1fe4042
Message:

2010-07-01 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/_rename_r.c, libcsupport/src/getdents.c, libcsupport/src/unlink.c, libcsupport/src/utime.c, libcsupport/src/writev.c: Remove remaining checks for missing handlers.
Location:
cpukit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r1fe4042 r0d923d9  
     12010-07-01      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libcsupport/src/_rename_r.c, libcsupport/src/getdents.c,
     4        libcsupport/src/unlink.c, libcsupport/src/utime.c,
     5        libcsupport/src/writev.c: Remove remaining checks for missing
     6        handlers.
     7
    182010-07-01      Vinu Rajashekhar <vinutheraj@gmail.com>
    29
  • cpukit/libcsupport/src/_rename_r.c

    r1fe4042 r0d923d9  
    8080  rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
    8181
    82   if ( !new_parent_loc.ops->evalformake_h ) {
    83     if ( free_old_parentloc )
    84       rtems_filesystem_freenode( &old_parent_loc );
    85     rtems_filesystem_freenode( &old_loc );
    86     rtems_set_errno_and_return_minus_one( ENOTSUP );
    87   }
    88 
    8982  result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
    9083  if ( result != 0 ) {
     
    109102  }
    110103
    111   if ( !new_parent_loc.ops->rename_h ) {
    112     rtems_filesystem_freenode( &new_parent_loc );
    113     if ( free_old_parentloc )
    114       rtems_filesystem_freenode( &old_parent_loc );
    115     rtems_filesystem_freenode( &old_loc );
    116     rtems_set_errno_and_return_minus_one( ENOTSUP );
    117   }
    118 
    119104  result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
    120105
     
    126111  return result;
    127112}
    128 
    129 #if 0
    130   struct stat sb;
    131   int s;
    132 
    133   s = stat( old, &sb);
    134   if ( s < 0 )
    135     return s;
    136   s = link( old, new );
    137   if ( s < 0 )
    138     return s;
    139   return S_ISDIR(sb.st_mode) ? rmdir( old ) : unlink( old );
    140113#endif
    141                                            
    142 #endif
  • cpukit/libcsupport/src/getdents.c

    r1fe4042 r0d923d9  
    3939   *  Get the file control block structure associated with the file descriptor
    4040   */
    41 
    4241  iop = rtems_libio_iop( dd_fd );
    4342
     
    4645   */
    4746  loc = iop->pathinfo;
    48   if ( !loc.ops->node_type_h )
    49     rtems_set_errno_and_return_minus_one( ENOTSUP );
    50 
    5147  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
    5248    rtems_set_errno_and_return_minus_one( ENOTDIR );
     
    5652   *  of the read attempt.
    5753   */
    58 
    59   if ( !iop->handlers->read_h )
    60     rtems_set_errno_and_return_minus_one( ENOTSUP );
    61 
    6254  return (*iop->handlers->read_h)( iop, dd_buf, dd_len  );
    6355}
  • cpukit/libcsupport/src/unlink.c

    r1fe4042 r0d923d9  
    7575  }
    7676
    77   if ( !loc.ops->unlink_h ) {
    78     rtems_filesystem_freenode( &loc );
    79     if ( free_parentloc )
    80       rtems_filesystem_freenode( &parentloc );
    81     rtems_set_errno_and_return_minus_one( ENOTSUP );
    82   }
    83 
    8477  result = (*loc.ops->unlink_h)( &parentloc, &loc );
    8578
  • cpukit/libcsupport/src/utime.c

    r1fe4042 r0d923d9  
    3535    return -1;
    3636
    37   if ( !temp_loc.ops->utime_h ){
    38     rtems_filesystem_freenode( &temp_loc );
    39     rtems_set_errno_and_return_minus_one( ENOTSUP );
    40   }
    41 
    4237  if ( times == NULL ) {
    4338    now.actime = now.modtime = time( NULL );
  • cpukit/libcsupport/src/writev.c

    r1fe4042 r0d923d9  
    5555  if ( iovcnt > IOV_MAX )
    5656    rtems_set_errno_and_return_minus_one( EINVAL );
    57 
    58   if ( !iop->handlers->write_h )
    59     rtems_set_errno_and_return_minus_one( ENOTSUP );
    6057
    6158  /*
Note: See TracChangeset for help on using the changeset viewer.