Home | History | Annotate | Download | only in config

Lines Matching refs:hp

149 	struct hashent *hp;
151 hp = ecalloc(1, sizeof(*hp));
153 hp->h_name1 = name1;
154 hp->h_name2 = name2;
155 hp->h_hash = h;
156 return (hp);
210 struct hashent *hp;
218 TAILQ_FOREACH(hp, hpp, h_next) {
219 if (hp->h_hash == h && strcmp(hp->h_name, s) == 0)
220 return (hp->h_name);
223 hp = newhashent(p, h);
224 TAILQ_INSERT_TAIL(hpp, hp, h_next);
244 struct hashent *hp;
249 while ((hp = TAILQ_FIRST(hpp)) != NULL) {
250 TAILQ_REMOVE(hpp, hp, h_next);
251 free(hp);
267 struct hashent *hp;
273 TAILQ_FOREACH(hp, hpp, h_next) {
274 if (hp->h_name1 == nam1 &&
275 hp->h_name2 == nam2) {
277 hp->h_value = val;
281 hp = newhashent2(nam1, nam2, h);
282 TAILQ_INSERT_TAIL(hpp, hp, h_next);
283 hp->h_value = val;
301 struct hashent *hp;
308 TAILQ_FOREACH(hp, hpp, h_next) {
309 if (hp->h_name1 != name1 || hp->h_name2 != name2)
311 TAILQ_REMOVE(hpp, hp, h_next);
313 free(hp);
329 struct hashent *hp;
335 TAILQ_FOREACH(hp, hpp, h_next)
336 if (hp->h_name == nam1)
337 return (hp->h_value);
356 struct hashent *hp;
363 TAILQ_FOREACH(hp, hpp, h_next)
364 rval += (*cbfunc2)(hp->h_name1, hp->h_name2, hp->h_value, arg);
372 struct hashent *hp;
379 TAILQ_FOREACH(hp, hpp, h_next)
380 rval += (*cbfunc)(hp->h_name, hp->h_value, arg);