equal
deleted
inserted
replaced
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; |