alloc_groups
rval = alloc_groups(&ngroups, &groups, &ngroupsmax);
if (alloc_groups(&ngroups, &groups, &ngroupsmax) == ADDGRP_NOERROR) {