Lines Matching refs:ndx
55 static struct group *grcopy(const struct group *gr, char *mem, const char *, int ndx);
436 int ndx; in gr_make() local
442 for (ndx = 0; gr->gr_mem[ndx] != NULL; ndx++) in gr_make()
443 line_size += strlen(gr->gr_mem[ndx]) + 1; in gr_make()
444 if (ndx > 0) in gr_make()
455 for (ndx = 0; gr->gr_mem[ndx] != NULL; ndx++) { in gr_make()
457 p = stpcpy(p, gr->gr_mem[ndx]); in gr_make()
517 grcopy(const struct group *gr, char *dst, const char *name, int ndx) in grcopy() argument
524 if (ndx != 0) { in grcopy()
526 dst += (ndx + 1) * sizeof(*newgr->gr_mem); in grcopy()
603 int ndx; in __gr_scan() local
626 ndx = 0; in __gr_scan()
629 (ndx + 1)); in __gr_scan()
635 gr->gr_mem[ndx] = strsep(&line, ","); in __gr_scan()
636 } while (gr->gr_mem[ndx] != NULL && *gr->gr_mem[ndx] == '\0'); in __gr_scan()
637 } while (gr->gr_mem[ndx++] != NULL); in __gr_scan()