Home
last modified time | relevance | path

Searched refs:xattr_list (Results 1 – 4 of 4) sorted by relevance

/external/squashfs-tools/squashfs-tools/
Dxattr.c76 static struct xattr_list *dupl_value[65536];
105 extern struct xattr_list *get_xattr(int, unsigned int *, int);
109 static int get_prefix(struct xattr_list *xattr, char *name) in get_prefix()
133 struct selabel_handle *sehnd, struct xattr_list **xattrs) in read_xattrs_from_context_file()
136 struct xattr_list *x = malloc(sizeof(*x)); in read_xattrs_from_context_file()
151 static int read_xattrs_from_system(char *filename, struct xattr_list **xattrs) in read_xattrs_from_system()
156 struct xattr_list *xattr_list = NULL; in read_xattrs_from_system() local
193 struct xattr_list *x = realloc(xattr_list, (i + 1) * in read_xattrs_from_system()
194 sizeof(struct xattr_list)); in read_xattrs_from_system()
197 xattr_list = x; in read_xattrs_from_system()
[all …]
Dunsquashfs_xattr.c38 struct xattr_list *xattr_list; in write_xattr() local
48 xattr_list = get_xattr(xattr, &count, 1); in write_xattr()
49 if(xattr_list == NULL) { in write_xattr()
55 int prefix = xattr_list[i].type & SQUASHFS_XATTR_PREFIX_MASK; in write_xattr()
61 int res = lsetxattr(pathname, xattr_list[i].full_name, in write_xattr()
62 xattr_list[i].value, xattr_list[i].vsize, 0); in write_xattr()
79 xattr_list[i].full_name, in write_xattr()
103 xattr_list[i].full_name, in write_xattr()
114 "%s\n", xattr_list[i].full_name, in write_xattr()
128 xattr_list[i].full_name, pathname); in write_xattr()
[all …]
Dread_xattrs.c117 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 …]
Dxattr.h42 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()