Lines Matching refs:tag

52 		    int type, int permset, int tag);
54 int type, int permset, int tag, int id);
56 int type, int permset, int tag, int id, const char *name,
71 int tag, int flags, const wchar_t *wname, int perm, int id);
82 int tag, int flags, const char *name, int perm, int id);
160 ap->type, ap->permset, ap->tag, ap->id); in archive_acl_copy()
169 int type, int permset, int tag, int id, const char *name) in archive_acl_add_entry() argument
173 if (acl_special(acl, type, permset, tag) == 0) in archive_acl_add_entry()
175 ap = acl_new_entry(acl, type, permset, tag, id); in archive_acl_add_entry()
189 int type, int permset, int tag, int id, const wchar_t *name, size_t len) in archive_acl_add_entry_w_len() argument
193 if (acl_special(acl, type, permset, tag) == 0) in archive_acl_add_entry_w_len()
195 ap = acl_new_entry(acl, type, permset, tag, id); in archive_acl_add_entry_w_len()
209 int type, int permset, int tag, int id, const char *name, size_t len, in archive_acl_add_entry_len_l() argument
215 if (acl_special(acl, type, permset, tag) == 0) in archive_acl_add_entry_len_l()
217 ap = acl_new_entry(acl, type, permset, tag, id); in archive_acl_add_entry_len_l()
241 acl_special(struct archive_acl *acl, int type, int permset, int tag) in acl_special() argument
245 switch (tag) { in acl_special()
269 int type, int permset, int tag, int id) in acl_new_entry() argument
297 switch (tag) { in acl_new_entry()
337 ap->type == type && ap->tag == tag && ap->id == id) { in acl_new_entry()
338 if (id != -1 || (tag != ARCHIVE_ENTRY_ACL_USER && in acl_new_entry()
339 tag != ARCHIVE_ENTRY_ACL_GROUP)) { in acl_new_entry()
357 ap->tag = tag; in acl_new_entry()
432 int *type, int *permset, int *tag, int *id, const char **name) in archive_acl_next() argument
451 *tag = ARCHIVE_ENTRY_ACL_USER_OBJ; in archive_acl_next()
457 *tag = ARCHIVE_ENTRY_ACL_GROUP_OBJ; in archive_acl_next()
463 *tag = ARCHIVE_ENTRY_ACL_OTHER; in archive_acl_next()
478 *tag = 0; in archive_acl_next()
485 *tag = acl->acl_p->tag; in archive_acl_next()
551 && (ap->tag == ARCHIVE_ENTRY_ACL_USER_OBJ in archive_acl_text_len()
552 || ap->tag == ARCHIVE_ENTRY_ACL_GROUP_OBJ in archive_acl_text_len()
553 || ap->tag == ARCHIVE_ENTRY_ACL_OTHER)) in archive_acl_text_len()
559 switch (ap->tag) { in archive_acl_text_len()
585 if (ap->tag == ARCHIVE_ENTRY_ACL_USER || in archive_acl_text_len()
586 ap->tag == ARCHIVE_ENTRY_ACL_GROUP) { in archive_acl_text_len()
612 && (ap->tag == ARCHIVE_ENTRY_ACL_OTHER in archive_acl_text_len()
613 || ap->tag == ARCHIVE_ENTRY_ACL_MASK)) { in archive_acl_text_len()
626 if ((ap->tag == ARCHIVE_ENTRY_ACL_USER || in archive_acl_text_len()
627 ap->tag == ARCHIVE_ENTRY_ACL_GROUP) && in archive_acl_text_len()
727 && (ap->tag == ARCHIVE_ENTRY_ACL_USER_OBJ in archive_acl_to_text_w()
728 || ap->tag == ARCHIVE_ENTRY_ACL_GROUP_OBJ in archive_acl_to_text_w()
729 || ap->tag == ARCHIVE_ENTRY_ACL_OTHER)) in archive_acl_to_text_w()
744 append_entry_w(&wp, prefix, ap->type, ap->tag, flags, in archive_acl_to_text_w()
779 int tag, int flags, const wchar_t *wname, int perm, int id) in append_entry_w() argument
787 switch (tag) { in append_entry_w()
829 tag == ARCHIVE_ENTRY_ACL_USER || in append_entry_w()
830 tag == ARCHIVE_ENTRY_ACL_GROUP) { in append_entry_w()
834 } else if (tag == ARCHIVE_ENTRY_ACL_USER in append_entry_w()
835 || tag == ARCHIVE_ENTRY_ACL_GROUP) { in append_entry_w()
842 || (tag != ARCHIVE_ENTRY_ACL_OTHER in append_entry_w()
843 && tag != ARCHIVE_ENTRY_ACL_MASK)) in append_entry_w()
960 && (ap->tag == ARCHIVE_ENTRY_ACL_USER_OBJ in archive_acl_to_text_l()
961 || ap->tag == ARCHIVE_ENTRY_ACL_GROUP_OBJ in archive_acl_to_text_l()
962 || ap->tag == ARCHIVE_ENTRY_ACL_OTHER)) in archive_acl_to_text_l()
983 append_entry(&p, prefix, ap->type, ap->tag, flags, name, in archive_acl_to_text_l()
1014 int tag, int flags, const char *name, int perm, int id) in append_entry() argument
1022 switch (tag) { in append_entry()
1064 tag == ARCHIVE_ENTRY_ACL_USER || in append_entry()
1065 tag == ARCHIVE_ENTRY_ACL_GROUP) { in append_entry()
1069 } else if (tag == ARCHIVE_ENTRY_ACL_USER in append_entry()
1070 || tag == ARCHIVE_ENTRY_ACL_GROUP) { in append_entry()
1077 || (tag != ARCHIVE_ENTRY_ACL_OTHER in append_entry()
1078 && tag != ARCHIVE_ENTRY_ACL_MASK)) in append_entry()
1147 int type, types, tag, permset, id; in archive_acl_from_text_w() local
1229 tag = 0; in archive_acl_from_text_w()
1238 tag = ARCHIVE_ENTRY_ACL_USER_OBJ; in archive_acl_from_text_w()
1243 tag = ARCHIVE_ENTRY_ACL_GROUP_OBJ; in archive_acl_from_text_w()
1248 tag = ARCHIVE_ENTRY_ACL_OTHER; in archive_acl_from_text_w()
1253 tag = ARCHIVE_ENTRY_ACL_MASK; in archive_acl_from_text_w()
1259 switch (tag) { in archive_acl_from_text_w()
1280 if (tag == ARCHIVE_ENTRY_ACL_USER_OBJ) in archive_acl_from_text_w()
1281 tag = ARCHIVE_ENTRY_ACL_USER; in archive_acl_from_text_w()
1283 tag = ARCHIVE_ENTRY_ACL_GROUP; in archive_acl_from_text_w()
1306 tag = 0; in archive_acl_from_text_w()
1311 tag = ARCHIVE_ENTRY_ACL_USER; in archive_acl_from_text_w()
1315 tag = ARCHIVE_ENTRY_ACL_GROUP; in archive_acl_from_text_w()
1319 tag = ARCHIVE_ENTRY_ACL_USER_OBJ; in archive_acl_from_text_w()
1321 tag = ARCHIVE_ENTRY_ACL_GROUP_OBJ; in archive_acl_from_text_w()
1325 tag = ARCHIVE_ENTRY_ACL_EVERYONE; in archive_acl_from_text_w()
1330 if (tag == 0) { in archive_acl_from_text_w()
1334 } else if (tag == ARCHIVE_ENTRY_ACL_USER || in archive_acl_from_text_w()
1335 tag == ARCHIVE_ENTRY_ACL_GROUP) { in archive_acl_from_text_w()
1378 tag, id, name.start, name.end - name.start); in archive_acl_from_text_w()
1630 int type, types, tag, permset, id; in archive_acl_from_text_l() local
1712 tag = 0; in archive_acl_from_text_l()
1726 tag = ARCHIVE_ENTRY_ACL_USER_OBJ; in archive_acl_from_text_l()
1731 tag = ARCHIVE_ENTRY_ACL_GROUP_OBJ; in archive_acl_from_text_l()
1736 tag = ARCHIVE_ENTRY_ACL_OTHER; in archive_acl_from_text_l()
1741 tag = ARCHIVE_ENTRY_ACL_MASK; in archive_acl_from_text_l()
1747 switch (tag) { in archive_acl_from_text_l()
1768 if (tag == ARCHIVE_ENTRY_ACL_USER_OBJ) in archive_acl_from_text_l()
1769 tag = ARCHIVE_ENTRY_ACL_USER; in archive_acl_from_text_l()
1771 tag = ARCHIVE_ENTRY_ACL_GROUP; in archive_acl_from_text_l()
1794 tag = 0; in archive_acl_from_text_l()
1799 tag = ARCHIVE_ENTRY_ACL_USER; in archive_acl_from_text_l()
1803 tag = ARCHIVE_ENTRY_ACL_GROUP; in archive_acl_from_text_l()
1807 tag = ARCHIVE_ENTRY_ACL_USER_OBJ; in archive_acl_from_text_l()
1809 tag = ARCHIVE_ENTRY_ACL_GROUP_OBJ; in archive_acl_from_text_l()
1813 tag = ARCHIVE_ENTRY_ACL_EVERYONE; in archive_acl_from_text_l()
1819 if (tag == 0) { in archive_acl_from_text_l()
1823 } else if (tag == ARCHIVE_ENTRY_ACL_USER || in archive_acl_from_text_l()
1824 tag == ARCHIVE_ENTRY_ACL_GROUP) { in archive_acl_from_text_l()
1868 tag, id, name.start, name.end - name.start, sc); in archive_acl_from_text_l()