stdcpp/tsrc/Stdcpp_test/stdcxx/testengine/src/file.cpp
changeset 22 ddc455616bd6
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
equal deleted inserted replaced
18:47c74d1534e1 22:ddc455616bd6
    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 extern "C" int mkstemp (char*);
    64 IMPORT_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
   294     if (-1 == stat (fname, &sb))
   297     if (-1 == stat (fname, &sb))
   295         return _RWSTD_SIZE_MAX;
   298         return _RWSTD_SIZE_MAX;
       
   299        
   296 
   300 
   297     return sb.st_size;
   301     return sb.st_size;
   298 #elif defined (_WIN32) || defined (_WIN64)
   302 #elif defined (_WIN32) || defined (_WIN64)
   299 
   303 
   300     // note: both method of obtaining the size of a file
   304     // note: both method of obtaining the size of a file