Lines Matching refs:ndx
52 static struct group *grcopy(const struct group *gr, char *mem, const char *, int ndx);
433 int ndx; in gr_make() local
439 for (ndx = 0; gr->gr_mem[ndx] != NULL; ndx++) in gr_make()
440 line_size += strlen(gr->gr_mem[ndx]) + 1; in gr_make()
441 if (ndx > 0) in gr_make()
452 for (ndx = 0; gr->gr_mem[ndx] != NULL; ndx++) { in gr_make()
454 p = stpcpy(p, gr->gr_mem[ndx]); in gr_make()
514 grcopy(const struct group *gr, char *dst, const char *name, int ndx) in grcopy() argument
521 if (ndx != 0) { in grcopy()
523 dst += (ndx + 1) * sizeof(*newgr->gr_mem); in grcopy()
600 int ndx; in __gr_scan() local
623 ndx = 0; in __gr_scan()
626 (ndx + 1)); in __gr_scan()
632 gr->gr_mem[ndx] = strsep(&line, ","); in __gr_scan()
633 } while (gr->gr_mem[ndx] != NULL && *gr->gr_mem[ndx] == '\0'); in __gr_scan()
634 } while (gr->gr_mem[ndx++] != NULL); in __gr_scan()