Lines Matching defs:list
217 // Split a path into linked list of components, tracking head and tail of list.
219 struct string_list **splitpath(char *path, struct string_list **list)
223 *list = 0;
230 *list = xmalloc(sizeof(struct string_list) + len + 1);
231 (*list)->next = 0;
232 memcpy((*list)->str, new, len);
233 (*list)->str[len] = 0;
234 list = &(*list)->next;
239 return list;
243 // X_OK or R_OK). Returns a list of absolute paths to each file found, in
695 // flags is O_RDONLY, stdout otherwise. An empty argument list calls
905 // adds the handlers to a list, to be called in order.
1084 // Execute a callback for each PID that matches a process name from a list.
1261 } *list = 0;
1267 for (list = pwuidbuf; list; list = list->next)
1268 if (list->pw.pw_uid == uid) return &(list->pw);
1271 list = xrealloc(list, size *= 2);
1272 errno = getpwuid_r(uid, &list->pw, sizeof(*list)+(char *)list,
1273 size-sizeof(*list), &temp);
1278 free(list);
1282 list->next = pwuidbuf;
1283 pwuidbuf = list;
1285 return &list->pw;
1294 } *list = 0;
1299 for (list = grgidbuf; list; list = list->next)
1300 if (list->gr.gr_gid == gid) return &(list->gr);
1303 list = xrealloc(list, size *= 2);
1304 errno = getgrgid_r(gid, &list->gr, sizeof(*list)+(char *)list,
1305 size-sizeof(*list), &temp);
1309 free(list);
1313 list->next = grgidbuf;
1314 grgidbuf = list;
1316 return &list->gr;