Changeset 9811

Show
Ignore:
Timestamp:
01/15/10 22:24:39 (3 years ago)
Author:
shereef
Message:

I wash my hands of this madness --Jack Sparrow

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/trunk/platform/GPP/GPP.cpp

    r9810 r9811  
    3535void GPP_i::load( CF::FileSystem_ptr fs, const char* filename, CF::LoadableDevice::LoadType loadkind ) throw (CORBA::SystemException, CF::Device::InvalidState, CF::LoadableDevice::InvalidLoadKind, CF::InvalidFileName, CF::LoadableDevice::LoadFail) 
    3636{ 
    37  DEBUG( 6, GPP, "Entering load " << filename ); 
     37    DEBUG( 6, GPP, "Entering load " << filename ); 
    3838 
    39  /* add the file name to the loaded files using the default load implementation */ 
    40  LoadableDevice_impl::load( fs, filename, loadkind ); 
     39    /* add the file name to the loaded files using the default load implementation */ 
     40    LoadableDevice_impl::load( fs, filename, loadkind ); 
    4141 
    42  /* check if you can open the file locally */ 
    43  int fd = open(filename, O_RDONLY); 
     42    /* check if you can open the file locally */ 
     43    int fd = open(filename, O_RDONLY); 
    4444 
    45  if( fd == -1 ) throw CF::InvalidFileName(); 
     45    if ( fd == -1 ) throw CF::InvalidFileName(); 
    4646 
    47  // NOTE: this resolves the lack of changing execute permissions within the framework;  
    48  // however, we do not make local copy of the binary because the teardown features 
    49  // of OSSIE are not very good; therefore, if we made a local copy of the executable, 
    50  // we currently do not have a way of deleting it when we are done with it; well, we do, 
    51  // but it doesn't really work very well 
    52  /* chmod 755 filename */ 
    53  int ch = fchmod( fd, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH ); 
     47// NOTE: this resolves the lack of changing execute permissions within the framework; 
     48// however, we do not make local copy of the binary because the teardown features 
     49// of OSSIE are not very good; therefore, if we made a local copy of the executable, 
     50// we currently do not have a way of deleting it when we are done with it; well, we do, 
     51// but it doesn't really work very well 
     52    /* chmod 755 filename */ 
     53    int ch = fchmod( fd, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH ); 
    5454 
    55  if( ch == -1 ) throw CF::LoadableDevice::LoadFail(); 
     55    if ( ch == -1 ) throw CF::LoadableDevice::LoadFail(); 
    5656 
    57  close(fd); 
     57    close(fd); 
    5858 
    59  DEBUG( 6, GPP, "Leaving load " << filename ); 
     59    DEBUG( 6, GPP, "Leaving load " << filename ); 
    6060} 
    6161