X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fsystem%2Fcommon%2Ffile-closer.h;h=78f6e5adb80711b32ea29af478c96667004b640a;hb=0e16b26dbe317545978954a6269a8139dcf8a0b6;hp=8a8a37dbea45372288040590f307e27c777439a9;hpb=c9005a2772e417ea2fd2f8ded6e0ad03265164b9;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/system/common/file-closer.h b/dali/internal/system/common/file-closer.h old mode 100755 new mode 100644 index 8a8a37d..78f6e5a --- a/dali/internal/system/common/file-closer.h +++ b/dali/internal/system/common/file-closer.h @@ -28,23 +28,7 @@ namespace Internal { namespace Platform { -namespace InternalFile -{ - FILE *fmemopen( void *__s, size_t __len, const char *__modes ); - - size_t fread( void* _Buffer, size_t _ElementSize, size_t _ElementCount, FILE* _Stream ); - int fclose( FILE *__stream ); - - size_t fread( void* buf, size_t eleSize, size_t count, const FILE *fp ); - - void fwrite( void *buf, int size, int count, FILE *fp ); - int fseek( FILE *fp, int offset, int origin ); - - int ftell( FILE *fp ); - - bool feof( FILE *fp ); -}; /** * Opens files and closes them later even if an exception is thrown. */ @@ -71,7 +55,7 @@ protected: // prevent this class being directly instantiated * @brief Construct a FileCloser guarding a FILE* for reading out of the memory buffer passed in. */ FileCloser( uint8_t* buffer, size_t dataSize, const char * const mode ) - : mFile( InternalFile::fmemopen( buffer, dataSize, mode) ) + : mFile( fmemopen( buffer, dataSize, mode) ) { } @@ -87,7 +71,7 @@ protected: // prevent this class being directly instantiated vector.Resize( bufferSize ); void * const buffer = &vector[0]; - mFile = InternalFile::fmemopen( buffer, bufferSize, mode ); + mFile = fmemopen( buffer, bufferSize, mode ); DALI_ASSERT_DEBUG( buffer != 0 && "Cant open file on null buffer." ); DALI_ASSERT_DEBUG( dataSize > 0 && "Pointless to open file on empty buffer." ); @@ -106,7 +90,7 @@ protected: // prevent this class being directly instantiated { if( mFile != 0 ) { - const int closeFailed = InternalFile::fclose( mFile ); + const int closeFailed = fclose( mFile ); if ( closeFailed ) {