Lines Matching refs:acl1

484 	int (*acl_match)(void *acl1, void *acl2);  in acl_removeentries()
554 acl_modifyentries(acl_t *acl1, acl_t *newentries, int where) in acl_modifyentries() argument
562 if (acl1 == NULL || newentries == NULL) in acl_modifyentries()
565 if (where < 0 || where >= acl1->acl_cnt) in acl_modifyentries()
568 if (acl1->acl_type != newentries->acl_type) in acl_modifyentries()
573 slots_left = acl1->acl_cnt - slot + 1; in acl_modifyentries()
576 newsize = (acl1->acl_entry_size * acl1->acl_cnt) + in acl_modifyentries()
577 (acl1->acl_entry_size * slots_needed); in acl_modifyentries()
578 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize); in acl_modifyentries()
579 if (acl1->acl_aclp == NULL) in acl_modifyentries()
582 (void) memcpy((char *)acl1->acl_aclp + (acl1->acl_entry_size * slot), in acl_modifyentries()
590 if ((slot + newentries->acl_cnt) > acl1->acl_cnt) { in acl_modifyentries()
591 acl1->acl_cnt = slot + newentries->acl_cnt; in acl_modifyentries()
602 acl_addentries(acl_t *acl1, acl_t *acl2, int where) in acl_addentries() argument
610 if (acl1 == NULL || acl2 == NULL) in acl_addentries()
613 if (acl1->acl_type != acl2->acl_type) in acl_addentries()
620 if (where < 0 || where > acl1->acl_cnt) in acl_addentries()
624 (acl1->acl_entry_size * acl1->acl_cnt); in acl_addentries()
625 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize); in acl_addentries()
626 if (acl1->acl_aclp == NULL) in acl_addentries()
633 to = (void *)((char *)acl1->acl_aclp + in acl_addentries()
634 ((where + acl2->acl_cnt) * acl1->acl_entry_size)); in acl_addentries()
636 start = (void *)((char *)acl1->acl_aclp + in acl_addentries()
637 where * acl1->acl_entry_size); in acl_addentries()
639 if (where < acl1->acl_cnt) { in acl_addentries()
640 len = (acl1->acl_cnt - where) * acl1->acl_entry_size; in acl_addentries()
651 acl1->acl_cnt += acl2->acl_cnt; in acl_addentries()