genericopenlibs/openenvcore/backend/src/corebackend/posixfs.cpp
branchRCL_3
changeset 15 18da5738c9b6
parent 0 e4d67989cc36
child 45 4b03adbd26ca
equal deleted inserted replaced
10:3a3c1a7fa1e8 15:18da5738c9b6
   266 			}
   266 			}
   267 			
   267 			
   268 		return MapError(err,anErrno);
   268 		return MapError(err,anErrno);
   269 			}
   269 			}
   270 
   270 
   271 int PosixFilesystem::stat (RFs& aFs, const wchar_t* name, struct stat *st, int& anErrno)
   271 int PosixFilesystem::statbackend (RFs& aFs, const wchar_t* name, struct stat *st, int& anErrno)
   272 	{
   272 	{
   273 	TFullName fullName;
   273 	TFullName fullName;
   274 	TInt err=0;
   274 	TInt err=0;
   275 	if(!name || *name == L'\0') //st is NULL check can also be added
   275 	if(!name || *name == L'\0') //st is NULL check can also be added
   276 		{
   276 		{
   321 #else
   321 #else
   322 			st->st_size = entry.iSize;
   322 			st->st_size = entry.iSize;
   323 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
   323 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
   324 			
   324 			
   325 			st->st_dev = st->st_rdev = (dev_t)TDriveUnit(fullName);
   325 			st->st_dev = st->st_rdev = (dev_t)TDriveUnit(fullName);
   326             if( !(entry.iAtt & (KEntryAttHidden | KEntryAttSystem)) || (entry.iAtt & KEntryAttDir))
   326 			if( ( (entry.iAtt & (KEntryAttHidden | KEntryAttSystem)) != (KEntryAttHidden | KEntryAttSystem) )
   327                 {
   327 			        || (entry.iAtt & KEntryAttDir))
       
   328 			    {
   328 			    CFileDesc::MapStat(*st, entry.iModified, entry.iAtt);
   329 			    CFileDesc::MapStat(*st, entry.iModified, entry.iAtt);
   329                 }
   330                 }
   330             else
   331             else
   331                 {
   332                 {
   332                 mode_t fileMode = S_IFREG;
   333                 mode_t fileMode = S_IFREG;