@ -34,14 +34,12 @@ namespace fs
void *value,
const size_t size)
{
#ifndef WITHOUT_XATTR
#if __APPLE__
#if WITHOUT_XATTR
return (errno=ENOTSUP,-1);
#elif __APPLE__
return ::getxattr(path.c_str(),attrname,value,size,0,XATTR_NOFOLLOW);
#else
return ::lgetxattr(path.c_str(),attrname,value,size);
#endif /* __APPLE__ */
#endif
}
@ -33,14 +33,12 @@ namespace fs
char *list,
#ifdef WITHOUT_XATTR
return ::listxattr(path.c_str(),list,size,XATTR_NOFOLLOW);
return ::llistxattr(path.c_str(),list,size);
@ -32,14 +32,12 @@ namespace fs
lremovexattr(const std::string &path,
const char *attrname)
return ::removexattr(path.c_str(),attrname,XATTR_NOFOLLOW);
return ::lremovexattr(path.c_str(),attrname);
@ -35,14 +35,12 @@ namespace fs
const size_t size,
const int flags)
return ::setxattr(path.c_str(),name,value,size,0,flags);
return ::lsetxattr(path.c_str(),name,value,size,flags);