Searched defs:list (Results 1 - 19 of 19) sorted by relevance

/system/core/sh/
H A Dexpand.h14 * notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in the
44 struct strlist *list; member in struct:arglist
H A Dvar.c14 * notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in the
316 * Process a linked list of variable assignments.
320 listsetvar(struct strlist *list, int flags) argument
325 for (lp = list ; lp ; lp = lp->next) {
332 listmklocal(struct strlist *list, int flags) argument
336 for (lp = list ; lp ; lp = lp->next)
385 * Generate a list of exported variables. This routine is used to construct
458 * Command to list all variables which are set. Currently this command
513 static struct var **list; /* stati local
[all...]
H A Dexpand.c14 * notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in the
81 struct ifsregion *next; /* next region in list */
89 struct nodelist *argbackq; /* list of back quote expressions */
90 struct ifsregion ifsfirst; /* first struct in list of ifs regions */
91 struct ifsregion *ifslastp; /* last struct in list */
92 struct arglist exparg; /* holds expanded arg list */
128 * placing the resulting list of arguments in arglist. If EXP_FULL is true,
149 exparg.lastp = &exparg.list;
156 exparg.lastp = &exparg.list;
1285 msort(struct strlist *list, int len) argument
[all...]
H A Dparser.c14 * notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in the
80 struct heredoc *next; /* next here document in list */
89 struct heredoc *heredoclist; /* list of here documents to read */
104 STATIC union node *list(int);
145 return list(1);
150 list(int nlflag) function
319 n1->nif.test = list(0);
322 n1->nif.ifpart = list(0);
328 n2->nif.test = list(
[all...]
/system/core/toolbox/
H A Dgetprop.c11 strlist_t* list = opaque; local
14 strlist_append_dup(list, temp);
19 strlist_t list[1] = { STRLIST_INITIALIZER }; local
21 /* Record properties in the string list */
22 (void)property_list(record_prop, list);
25 strlist_sort(list);
28 STRLIST_FOREACH(list, str, printf("%s\n", str));
31 strlist_done(list);
H A Did.c35 gid_t list[64]; local
41 max = getgroups(64, list);
50 print_gid(list[0]);
53 print_gid(list[n]);
H A Ddynarray.c64 void strlist_init( strlist_t *list )
66 dynarray_init(list);
69 void strlist_append_b( strlist_t *list, const void* str, size_t slen ) argument
74 dynarray_append(list, copy);
77 void strlist_append_dup( strlist_t *list, const char *str) argument
79 strlist_append_b(list, str, strlen(str));
82 void strlist_done( strlist_t *list )
84 STRLIST_FOREACH(list, string, free(string));
85 dynarray_done(list);
95 void strlist_sort( strlist_t *list )
[all...]
/system/core/adb/
H A Dadb_auth_client.c20 #include <cutils/list.h>
49 static void read_keys(const char *file, struct listnode *list) argument
88 list_add_tail(list, &key->node);
94 static void free_keys(struct listnode *list) argument
98 while (!list_empty(list)) {
99 item = list_head(list);
H A Dadb_auth_host.c40 #include <cutils/list.h>
226 static int read_key(const char *file, struct listnode *list) argument
256 list_add_tail(list, &key->node);
296 static int get_user_key(struct listnode *list) argument
317 return read_key(path, list);
320 static void get_vendor_keys(struct listnode *list) argument
339 else if (!read_key(path, list))
H A Dfdevent.c476 fdevent *list = &list_pending; local
478 node->next = list;
479 node->prev = list->prev;
481 list->prev = node;
494 fdevent *list = &list_pending; local
495 fdevent *node = list->next;
497 if(node == list) return 0;
499 list->next = node->next;
500 list->next->prev = list;
[all...]
H A Dsockets.c53 /* the the list of currently closing local sockets.
80 insert_local_socket(asocket* s, asocket* list) argument
82 s->next = list;
117 ** the list out from under you, your options are limited.
198 // be sure to hold the socket list lock when calling this
253 /* otherwise, put on the closing list
359 ** socket will be placed on the closing socket list.
H A Dsysdeps_win32.c1463 * about the whole list of handles that were signaled. */
1798 fdevent *list = &list_pending; local
1800 node->next = list;
1801 node->prev = list->prev;
1803 list->prev = node;
1816 fdevent *list = &list_pending; local
1817 fdevent *node = list->next;
1819 if(node == list) return 0;
1821 list->next = node->next;
1822 list
[all...]
/system/core/libcutils/
H A Ddir_hash.c117 struct list { struct
119 struct list *next;
123 struct list *const *ra = a;
124 struct list *const *rb = b;
130 struct list **out) {
131 struct list *list = NULL; local
132 struct list *f;
150 struct list *node = malloc(sizeof(struct list));
269 struct list **list; local
[all...]
/system/extras/latencytop/
H A Dlatencytop.c43 static struct latency_entry *read_global_stats(struct latency_entry *list, int erase);
44 static struct latency_entry *read_process_stats(struct latency_entry *list, int erase, int pid);
45 static struct latency_entry *read_thread_stats(struct latency_entry *list, int erase, int pid, int tid, int fatal);
51 static struct latency_entry *read_latency_file(FILE *f, struct latency_entry *list);
174 static struct latency_entry *read_global_stats(struct latency_entry *list, int erase) { argument
194 e = read_latency_file(f, list);
201 static struct latency_entry *read_process_stats(struct latency_entry *list, int erase, int pid) { argument
216 e = list;
231 static struct latency_entry *read_thread_stats(struct latency_entry *list, int erase, int pid, int tid, int fatal) { argument
246 return list;
325 read_latency_file(FILE *f, struct latency_entry *list) argument
[all...]
/system/extras/showslab/
H A Dshowslab.c58 * Returns the head of the new list of slab_info structures, or NULL on error.
158 * provided slab_info linked list
160 static void free_slablist(struct slab_info *list) argument
162 while (list) {
163 struct slab_info *temp = list->next;
164 free(list);
165 list = temp;
171 struct slab_info list; local
172 struct slab_info *p = &list;
187 return list
193 slabsort(struct slab_info *list) argument
272 struct slab_info *list, *p; local
[all...]
/system/core/init/
H A Ddevices.c44 #include <cutils/list.h>
91 struct listnode list; member in struct:platform_node
134 /* upaths omit the "/sys" that paths in this list
164 /* search the perms list in reverse so that ueventd.$hardware can
232 bus = node_to_item(node, struct platform_node, list);
245 list_add_tail(&platform_names, &bus->list);
260 bus = node_to_item(node, struct platform_node, list);
276 bus = node_to_item(node, struct platform_node, list);
H A Dinit_parser.c34 #include <cutils/list.h>
44 struct listnode list; member in struct:import
312 list_add_tail(import_list, &import->list);
313 INFO("found import '%s', adding to import list", import->filename);
389 struct import *import = node_to_item(node, struct import, list);
/system/extras/ext4_utils/
H A Dallocate.c34 struct region_list list; member in struct:block_allocation
65 alloc->list.first = NULL;
66 alloc->list.last = NULL;
69 alloc->list.iter = NULL;
70 alloc->list.partial_iter = 0;
76 static void region_list_remove(struct region_list *list, struct region *reg) argument
84 if (list->first == reg)
85 list->first = reg->next;
87 if (list->last == reg)
88 list
94 region_list_append(struct region_list *list, struct region *reg) argument
631 advance_list_ptr(struct region_list *list, int blocks) argument
[all...]
/system/core/charger/
H A Dcharger.c40 #include <cutils/list.h>
79 struct listnode list; member in struct:power_supply
318 supply = node_to_item(node, struct power_supply, list);
340 list_add_tail(&charger->supplies, &supply->list);
350 list_remove(&supply->list);
467 /* allow battery to be managed in the supply list but make it not

Completed in 1750 milliseconds