Home
last modified time | relevance | path

Searched refs:gh (Results 1 – 3 of 3) sorted by relevance

/original-bsd/usr.bin/mail/
H A Dvars.c119 register struct grouphead *gh; local
121 for (gh = groups[hash(name)]; gh != NOGRP; gh = gh->g_link)
122 if (*gh->g_name == *name && equal(gh->g_name, name))
123 return(gh);
134 register struct grouphead *gh; local
137 if ((gh = findgroup(name)) == NOGRP) {
141 printf("%s\t", gh->g_name);
142 for (gp = gh->g_list; gp != NOGE; gp = gp->ge_link)
H A Dcmd3.c422 register struct grouphead *gh; local
430 for (gh = groups[h]; gh != NOGRP; gh = gh->g_link)
434 for (gh = groups[h]; gh != NOGRP; gh = gh->g_link)
435 *p++ = gh->g_name;
449 gh = (struct grouphead *) calloc(sizeof *gh, 1);
450 gh->g_name = vcopy(gname);
451 gh->g_list = NOGE;
452 gh->g_link = groups[h];
453 groups[h] = gh;
465 gp->ge_link = gh->g_list;
[all …]
H A Dnames.c352 struct grouphead *gh; local
365 gh = findgroup(np->n_name);
367 if (gh != NOGRP)
368 new = gexpand(new, gh, metoo, np->n_type);
383 gexpand(nlist, gh, metoo, ntype) in gexpand() argument
385 struct grouphead *gh;
399 for (gp = gh->g_list; gp != NOGE; gp = gp->ge_link) {
403 if (strcmp(cp, gh->g_name) == 0)
415 if (gp == gh->g_list && gp->ge_link == NOGE)