search for: xattr_create_test

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

2007 Nov 15
1
program I used to test xattrs
...t[temp]->d_reclen; (*filelist)[i] = malloc(size * sizeof(char)); memset((*filelist)[i], 0, size * sizeof(char)); snprintf((*filelist)[i], size * sizeof(char), "%s/%s", dir, namelist[temp]->d_name); i++; free(namelist[temp]); } free(namelist); return n; } static int xattr_create_test(int files, char **filelist) { int i = 0, value_size = 8, ret; char name[80], *value = "myvalue\0"; while (files--) { for (i = 0; i < 100; i++) { snprintf(name, 80, "security.josef%d\0", i); ret = setxattr(filelist[files], name, value, value_size, 0);...