Changeset 9811
- Timestamp:
- 01/15/10 22:24:39 (3 years ago)
- Files:
-
- 1 modified
-
ossiedev/trunk/platform/GPP/GPP.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/trunk/platform/GPP/GPP.cpp
r9810 r9811 35 35 void 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) 36 36 { 37 DEBUG( 6, GPP, "Entering load " << filename );37 DEBUG( 6, GPP, "Entering load " << filename ); 38 38 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 ); 41 41 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); 44 44 45 if( fd == -1 ) throw CF::InvalidFileName();45 if ( fd == -1 ) throw CF::InvalidFileName(); 46 46 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 features49 // 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 well52 /* 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 ); 54 54 55 if( ch == -1 ) throw CF::LoadableDevice::LoadFail();55 if ( ch == -1 ) throw CF::LoadableDevice::LoadFail(); 56 56 57 close(fd);57 close(fd); 58 58 59 DEBUG( 6, GPP, "Leaving load " << filename );59 DEBUG( 6, GPP, "Leaving load " << filename ); 60 60 } 61 61