Displaying 1 result from an estimated 1 matches for "attrslen".
Did you mean:
attr_len
2012 Nov 23
14
extended attributes wiredness
Hi,
I am using kernel 3.7-rc6.
I have written a test application for extended attributes 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...