Lines Matching defs:acl1
477 int (*acl_match)(void *acl1, void *acl2);
539 * Replace entires entries in acl1 with the corresponding entries
542 * number of acl entries in acl1 then they are appended. If the
547 acl_modifyentries(acl_t *acl1, acl_t *newentries, int where)
555 if (acl1 == NULL || newentries == NULL)
558 if (where < 0 || where >= acl1->acl_cnt)
561 if (acl1->acl_type != newentries->acl_type)
566 slots_left = acl1->acl_cnt - slot + 1;
569 newsize = (acl1->acl_entry_size * acl1->acl_cnt) +
570 (acl1->acl_entry_size * slots_needed);
571 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize);
572 if (acl1->acl_aclp == NULL)
575 (void) memcpy((char *)acl1->acl_aclp + (acl1->acl_entry_size * slot),
583 if ((slot + newentries->acl_cnt) > acl1->acl_cnt) {
584 acl1->acl_cnt = slot + newentries->acl_cnt;
591 * Add acl2 entries into acl1. The where argument specifies where
595 acl_addentries(acl_t *acl1, acl_t *acl2, int where)
603 if (acl1 == NULL || acl2 == NULL)
606 if (acl1->acl_type != acl2->acl_type)
613 if (where < 0 || where > acl1->acl_cnt)
617 (acl1->acl_entry_size * acl1->acl_cnt);
618 acl1->acl_aclp = realloc(acl1->acl_aclp, newsize);
619 if (acl1->acl_aclp == NULL)
626 to = (void *)((char *)acl1->acl_aclp +
627 ((where + acl2->acl_cnt) * acl1->acl_entry_size));
629 start = (void *)((char *)acl1->acl_aclp +
630 where * acl1->acl_entry_size);
632 if (where < acl1->acl_cnt) {
633 len = (acl1->acl_cnt - where) * acl1->acl_entry_size;
644 acl1->acl_cnt += acl2->acl_cnt;