Searched refs:xattr_list (Results 1 – 4 of 4) sorted by relevance
/external/squashfs-tools/squashfs-tools/ |
D | xattr.c | 96 static struct xattr_list *dupl_value[65536]; 125 extern struct xattr_list *get_xattr(int, unsigned int *, int); 129 static int get_prefix(struct xattr_list *xattr, char *name) in get_prefix() 152 static struct xattr_list *next_xattr_list(int *xattr_count, struct xattr_list **xattrs) { in next_xattr_list() 153 struct xattr_list *x; in next_xattr_list() 154 x = realloc(*xattrs, ++*xattr_count * sizeof(struct xattr_list)); in next_xattr_list() 161 struct selabel_handle *sehnd, struct xattr_list *xattrs) in read_selinux_xattr_from_sehnd() 171 static void set_caps_xattr(uint64_t caps, struct xattr_list *xattrs) in set_caps_xattr() 186 static int read_xattrs_from_system(char *filename, struct xattr_list **xattrs) in read_xattrs_from_system() 191 struct xattr_list *xattr_list = NULL; in read_xattrs_from_system() local [all …]
|
D | unsquashfs_xattr.c | 43 struct xattr_list *xattr_list; in write_xattr() local 53 xattr_list = get_xattr(xattr, &count, 1); in write_xattr() 54 if(xattr_list == NULL) { in write_xattr() 60 int prefix = xattr_list[i].type & SQUASHFS_XATTR_PREFIX_MASK; in write_xattr() 66 int res = lsetxattr(pathname, xattr_list[i].full_name, in write_xattr() 67 xattr_list[i].value, xattr_list[i].vsize, 0); in write_xattr() 84 xattr_list[i].full_name, in write_xattr() 108 xattr_list[i].full_name, in write_xattr() 119 "%s\n", xattr_list[i].full_name, in write_xattr() 133 xattr_list[i].full_name, pathname); in write_xattr() [all …]
|
D | read_xattrs.c | 117 static int read_xattr_entry(struct xattr_list *xattr, in read_xattr_entry() 279 void free_xattr(struct xattr_list *xattr_list, int count) in free_xattr() argument 284 free(xattr_list[i].full_name); in free_xattr() 286 free(xattr_list); in free_xattr() 311 struct xattr_list *get_xattr(int i, unsigned int *count, int ignore) in get_xattr() 314 struct xattr_list *xattr_list = NULL; in get_xattr() local 334 xattr_list = realloc(xattr_list, (j + 1) * in get_xattr() 335 sizeof(struct xattr_list)); in get_xattr() 336 if(xattr_list == NULL) in get_xattr() 343 res = read_xattr_entry(&xattr_list[j], &entry, xptr); in get_xattr() [all …]
|
D | xattr.h | 42 struct xattr_list { struct 51 struct xattr_list *vnext; argument 55 struct xattr_list *xattr_list; member 66 extern int generate_xattrs(int, struct xattr_list *); 77 extern struct xattr_list *get_xattr(int, unsigned int *, int); 78 extern void free_xattr(struct xattr_list *, int); 129 static inline struct xattr_list *get_xattr(int i, unsigned int *count, int j) in get_xattr()
|