Lines Matching refs:g

55 #define GRP_ISLAST(g)    ((g)->gr_name == NULL && (g)->gr_gid == 0)  argument
188 print_group (struct group *g) in print_group() argument
192 printf (" group %u.%s (%s) :", g->gr_gid, g->gr_name, g->gr_passwd); in print_group()
193 if (g->gr_mem) in print_group()
194 for (j=0; g->gr_mem[j]; j++) in print_group()
195 printf ("%s%s", j==0 ? " " : ", ", g->gr_mem[j]); in print_group()
202 compare_groups (int i, struct group *g, struct group *e) in compare_groups() argument
208 if (g->gr_gid != e->gr_gid) in compare_groups()
212 g->gr_gid); in compare_groups()
217 if (g->gr_name == NULL) in compare_groups()
227 e->gr_gid, g->gr_name); in compare_groups()
231 else if (strcmp (g->gr_name, e->gr_name) != 0) in compare_groups()
235 g->gr_name); in compare_groups()
240 if (g->gr_passwd == NULL && e->gr_passwd != NULL) in compare_groups()
246 else if (g->gr_passwd != NULL && e->gr_passwd == NULL) in compare_groups()
253 else if (g->gr_passwd && strcmp (g->gr_passwd, e->gr_passwd) != 0) in compare_groups()
257 g->gr_passwd, e->gr_passwd); in compare_groups()
263 if (e->gr_mem != NULL && g->gr_mem == NULL) in compare_groups()
269 else if (e->gr_mem == NULL && g->gr_mem != NULL) in compare_groups()
275 else if (e->gr_mem == NULL && g->gr_mem == NULL) in compare_groups()
285 if (g->gr_mem[j] == NULL && e->gr_mem[j] == NULL) in compare_groups()
290 if (g->gr_mem[j] == NULL) in compare_groups()
304 if (strcmp (g->gr_mem[j], e->gr_mem[j]) != 0) in compare_groups()
308 e->gr_mem[j], g->gr_mem[j]); in compare_groups()
319 print_group (g); in compare_groups()