Lines Matching refs:entry
47 struct envlist_entry *entry;
52 entry = envlist->el_entries.lh_first;
53 QLIST_REMOVE(entry, ev_link);
55 free((char *)entry->ev_var);
56 free(entry);
92 * and calls given callback for each entry.
137 struct envlist_entry *entry = NULL;
152 * new entry.
154 for (entry = envlist->el_entries.lh_first; entry != NULL;
155 entry = entry->ev_link.le_next) {
156 if (strncmp(entry->ev_var, env, envname_len) == 0)
160 if (entry != NULL) {
161 QLIST_REMOVE(entry, ev_link);
162 free((char *)entry->ev_var);
163 free(entry);
168 if ((entry = malloc(sizeof (*entry))) == NULL)
170 if ((entry->ev_var = strdup(env)) == NULL) {
171 free(entry);
174 QLIST_INSERT_HEAD(&envlist->el_entries, entry, ev_link);
186 struct envlist_entry *entry;
197 * Find out the requested entry and remove
201 for (entry = envlist->el_entries.lh_first; entry != NULL;
202 entry = entry->ev_link.le_next) {
203 if (strncmp(entry->ev_var, env, envname_len) == 0)
206 if (entry != NULL) {
207 QLIST_REMOVE(entry, ev_link);
208 free((char *)entry->ev_var);
209 free(entry);
229 struct envlist_entry *entry;
236 for (entry = envlist->el_entries.lh_first; entry != NULL;
237 entry = entry->ev_link.le_next) {
238 *(penv++) = strdup(entry->ev_var);