Lines Matching refs:newgr
520 struct group *newgr; in grcopy() local
522 newgr = (struct group *)(void *)dst; /* avoid alignment warning */ in grcopy()
523 dst += sizeof(*newgr); in grcopy()
525 newgr->gr_mem = (char **)(void *)(dst); /* avoid alignment warning */ in grcopy()
526 dst += (ndx + 1) * sizeof(*newgr->gr_mem); in grcopy()
528 newgr->gr_mem = NULL; in grcopy()
530 newgr->gr_name = dst; in grcopy()
533 newgr->gr_name = NULL; in grcopy()
535 newgr->gr_passwd = dst; in grcopy()
538 newgr->gr_passwd = NULL; in grcopy()
539 newgr->gr_gid = gr->gr_gid; in grcopy()
544 newgr->gr_mem[i] = dst; in grcopy()
550 newgr->gr_mem[i++] = dst; in grcopy()
554 if (newgr->gr_mem != NULL) in grcopy()
555 newgr->gr_mem[i] = NULL; in grcopy()
557 return (newgr); in grcopy()