Lines Matching refs:newgr
494 struct group *newgr; in grcopy() local
496 newgr = (struct group *)(void *)dst; /* avoid alignment warning */ in grcopy()
497 dst += sizeof(*newgr); in grcopy()
499 newgr->gr_mem = (char **)(void *)(dst); /* avoid alignment warning */ in grcopy()
500 dst += (ndx + 1) * sizeof(*newgr->gr_mem); in grcopy()
502 newgr->gr_mem = NULL; in grcopy()
504 newgr->gr_name = dst; in grcopy()
507 newgr->gr_name = NULL; in grcopy()
509 newgr->gr_passwd = dst; in grcopy()
512 newgr->gr_passwd = NULL; in grcopy()
513 newgr->gr_gid = gr->gr_gid; in grcopy()
518 newgr->gr_mem[i] = dst; in grcopy()
524 newgr->gr_mem[i++] = dst; in grcopy()
528 if (newgr->gr_mem != NULL) in grcopy()
529 newgr->gr_mem[i] = NULL; in grcopy()
531 return (newgr); in grcopy()