search for: testxattr

Displaying 1 result from an estimated 1 matches for "testxattr".

Did you mean: test_xattr
2012 Nov 23
14
extended attributes wiredness
...s and have for some folders a wired behaviour: #include <stdio.h> #include <string.h> #include <attr/xattr.h> char attrs[1024]; ssize_t attrslen; int i; char value[1024]; ssize_t valuelen; int main(int argc, char *argv[]) { if (argc != 2) { fprintf(stderr, "Syntax: testxattr <filename>\n"); return 1; } printf("processing file %s\n", argv[1]); attrslen = llistxattr(argv[1], attrs, 1024); if (attrslen < 0) { perror("listxattr failed"); return 1; } for (i = 0; i < attrslen; i+= strlen(&attrs[i]) + 1)...