1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
|
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
|
-
+
|
void *pool = objc_autoreleasePoolPush();
OFString *path = IRI.fileSystemRepresentation;
OFStringEncoding encoding = [OFLocale encoding];
const char *cPath = [path cStringWithEncoding: encoding];
const char *cName = [name cStringWithEncoding: encoding];
size_t size = data.count * data.itemSize;
# if defined(OF_LINUX) || defined(OFMACOS)
# if defined(OF_LINUX) || defined(OF_MACOS)
# if defined(OF_LINUX)
if (lsetxattr(cPath, cName, data.items, size, 0) != 0) {
# elif defined(OF_MACOS)
if (setxattr(cPath, cName, data.items, size, 0, XATTR_NOFOLLOW) != 0) {
# endif
int errNo = errno;
|