Lines Matching refs:pe
142 struct pathentry *pe, *pskip; in addpath() local
161 TAILQ_FOREACH(pe, pathq, next) in addpath()
162 if (!strcmp(pe->path, pathbuf)) in addpath()
164 if (pe != NULL) { in addpath()
171 if (((pe = malloc(sizeof(*pe))) == NULL) || in addpath()
172 ((pe->path = strdup(pathbuf)) == NULL)) { in addpath()
177 TAILQ_INSERT_TAIL(pathq, pe, next); in addpath()
182 TAILQ_INSERT_BEFORE(pskip, pe, next); in addpath()
184 TAILQ_INSERT_TAIL(pathq, pe, next); in addpath()
195 struct pathentry *pe; in rempath() local
208 TAILQ_FOREACH(pe, pathq, next) in rempath()
209 if (!strcmp(pe->path, pathbuf)) in rempath()
211 if (pe == NULL) { in rempath()
218 TAILQ_REMOVE(pathq, pe, next); in rempath()
241 struct pathentry *pe; in parsepath() local
245 if (((pe = malloc(sizeof(*pe))) == NULL) || in parsepath()
246 ((pe->path = strdup(p)) == NULL)) { in parsepath()
250 TAILQ_INSERT_TAIL(pathq, pe, next); in parsepath()
261 struct pathentry *pe; in qstring() local
264 TAILQ_FOREACH(pe, pathq, next) { in qstring()
266 s, pe->path, (TAILQ_NEXT(pe, next) != NULL? ";": "")); in qstring()