14 #include <sys/xattr.h>
16 int main(int argc, char**argv)
21 mknod("test", 0600, 0);
23 cout << "setxattr " << setxattr("test", "asdf", &a, sizeof(a), 0) << endl;
24 cout << "errno " << errno << " " << strerror(errno) << endl;
25 cout << "getxattr " << getxattr("test", "asdf", &b, sizeof(b)) << endl;
26 cout << "errno " << errno << " " << strerror(errno) << endl;
27 cout << "a is " << a << " and b is " << b << endl;