mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Add some debug code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25970 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
17f36f5be7
commit
583315661b
1 changed files with 7 additions and 0 deletions
|
@ -1757,17 +1757,23 @@ static NSStringEncoding defaultEncoding;
|
|||
|
||||
if (_STAT(lpath, &statbuf) != 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSFileManager", @"stat failed for '%s' ... %@",
|
||||
lpath, [NSError _last]);
|
||||
return nil;
|
||||
}
|
||||
#ifdef HAVE_STATVFS
|
||||
if (statvfs(lpath, &statfsbuf) != 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSFileManager", @"statvfs failed for '%s' ... %@",
|
||||
lpath, [NSError _last]);
|
||||
return nil;
|
||||
}
|
||||
blocksize = statfsbuf.f_frsize;
|
||||
#else
|
||||
if (statfs(lpath, &statfsbuf) != 0)
|
||||
{
|
||||
NSDebugMLLog(@"NSFileManager", @"statfs failed for '%s' ... %@",
|
||||
lpath, [NSError _last]);
|
||||
return nil;
|
||||
}
|
||||
blocksize = statfsbuf.f_bsize;
|
||||
|
@ -1786,6 +1792,7 @@ static NSStringEncoding defaultEncoding;
|
|||
|
||||
return [NSDictionary dictionaryWithObjects: values forKeys: keys count: 5];
|
||||
#else
|
||||
NSDebugMLLog(@"NSFileManager", @"no support for filesystem attributes");
|
||||
return nil;
|
||||
#endif
|
||||
#endif /* MINGW */
|
||||
|
|
Loading…
Reference in a new issue