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