stdcpp/tsrc/Stdcpp_test/stdcxx/testengine/src/file.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
    59 #  define P_tmpdir "/tmp/"
    59 #  define P_tmpdir "/tmp/"
    60 #endif
    60 #endif
    61 
    61 
    62 #ifndef _RWSTD_NO_PURE_C_HEADERS
    62 #ifndef _RWSTD_NO_PURE_C_HEADERS
    63 
    63 
    64 IMPORT_C int mkstemp (char*);
    64 extern "C" int mkstemp (char*);
    65 
    65 
    66 #endif   // _RWSTD_NO_PURE_C_HEADERS
    66 #endif   // _RWSTD_NO_PURE_C_HEADERS
    67 
    67 
    68 // write `str' using symbolic names from the Portable Character Set (PCS)
    68 // write `str' using symbolic names from the Portable Character Set (PCS)
    69 // or using the <U00XX> notations for narrow characters outside that set
    69 // or using the <U00XX> notations for narrow characters outside that set
   288 size_t rw_fsize (const char *fname)
   288 size_t rw_fsize (const char *fname)
   289 {
   289 {
   290 #ifdef __SYMBIAN32__
   290 #ifdef __SYMBIAN32__
   291 
   291 
   292     struct stat sb;
   292     struct stat sb;
   293     
   293 
   294     #ifdef __ARMCC__
       
   295     #pragma diag_suppress 63
       
   296     #endif
       
   297     if (-1 == stat (fname, &sb))
   294     if (-1 == stat (fname, &sb))
   298         return _RWSTD_SIZE_MAX;
   295         return _RWSTD_SIZE_MAX;
   299        
       
   300 
   296 
   301     return sb.st_size;
   297     return sb.st_size;
   302 #elif defined (_WIN32) || defined (_WIN64)
   298 #elif defined (_WIN32) || defined (_WIN64)
   303 
   299 
   304     // note: both method of obtaining the size of a file
   300     // note: both method of obtaining the size of a file