Lines Matching defs:acl1
484 int (*acl_match)(void *acl1, void *acl2);
546 * Replace entires entries in acl1 with the corresponding entries
549 * number of acl entries in acl1 then they are appended. If the
554 acl_modifyentries(acl_t *acl1, acl_t *newentries, int where)
562 if (acl1 == NULL || newentries == NULL)
565 if (where < 0 || where >= acl1->acl_cnt)
568 if (acl1->acl_type != newentries->acl_type)
573 slots_left = acl1->acl_cnt - slot + 1;
576 newsize = (acl1->acl_entry_size * acl1->acl_cnt) +
577 (acl1->acl_entry_size * slots_needed);
578 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize);
579 if (acl1->acl_aclp == NULL)
582 (void) memcpy((char *)acl1->acl_aclp + (acl1->acl_entry_size * slot),
590 if ((slot + newentries->acl_cnt) > acl1->acl_cnt) {
591 acl1->acl_cnt = slot + newentries->acl_cnt;
598 * Add acl2 entries into acl1. The where argument specifies where
602 acl_addentries(acl_t *acl1, acl_t *acl2, int where)
610 if (acl1 == NULL || acl2 == NULL)
613 if (acl1->acl_type != acl2->acl_type)
620 if (where < 0 || where > acl1->acl_cnt)
624 (acl1->acl_entry_size * acl1->acl_cnt);
625 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize);
626 if (acl1->acl_aclp == NULL)
633 to = (void *)((char *)acl1->acl_aclp +
634 ((where + acl2->acl_cnt) * acl1->acl_entry_size));
636 start = (void *)((char *)acl1->acl_aclp +
637 where * acl1->acl_entry_size);
639 if (where < acl1->acl_cnt) {
640 len = (acl1->acl_cnt - where) * acl1->acl_entry_size;
651 acl1->acl_cnt += acl2->acl_cnt;