Lines Matching refs:acl1

486 	int (*acl_match)(void *acl1, void *acl2);  in acl_removeentries()
556 acl_modifyentries(acl_t *acl1, acl_t *newentries, int where) in acl_modifyentries() argument
564 if (acl1 == NULL || newentries == NULL) in acl_modifyentries()
567 if (where < 0 || where >= acl1->acl_cnt) in acl_modifyentries()
570 if (acl1->acl_type != newentries->acl_type) in acl_modifyentries()
575 slots_left = acl1->acl_cnt - slot + 1; in acl_modifyentries()
578 newsize = (acl1->acl_entry_size * acl1->acl_cnt) + in acl_modifyentries()
579 (acl1->acl_entry_size * slots_needed); in acl_modifyentries()
580 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize); in acl_modifyentries()
581 if (acl1->acl_aclp == NULL) in acl_modifyentries()
584 (void) memcpy((char *)acl1->acl_aclp + (acl1->acl_entry_size * slot), in acl_modifyentries()
592 if ((slot + newentries->acl_cnt) > acl1->acl_cnt) { in acl_modifyentries()
593 acl1->acl_cnt = slot + newentries->acl_cnt; in acl_modifyentries()
604 acl_addentries(acl_t *acl1, acl_t *acl2, int where) in acl_addentries() argument
612 if (acl1 == NULL || acl2 == NULL) in acl_addentries()
615 if (acl1->acl_type != acl2->acl_type) in acl_addentries()
622 if (where < 0 || where > acl1->acl_cnt) in acl_addentries()
626 (acl1->acl_entry_size * acl1->acl_cnt); in acl_addentries()
627 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize); in acl_addentries()
628 if (acl1->acl_aclp == NULL) in acl_addentries()
635 to = (void *)((char *)acl1->acl_aclp + in acl_addentries()
636 ((where + acl2->acl_cnt) * acl1->acl_entry_size)); in acl_addentries()
638 start = (void *)((char *)acl1->acl_aclp + in acl_addentries()
639 where * acl1->acl_entry_size); in acl_addentries()
641 if (where < acl1->acl_cnt) { in acl_addentries()
642 len = (acl1->acl_cnt - where) * acl1->acl_entry_size; in acl_addentries()
653 acl1->acl_cnt += acl2->acl_cnt; in acl_addentries()