/system/core/sh/ |
H A D | expand.h | 14 * 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 D | var.c | 14 * 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 D | expand.c | 14 * 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 D | parser.c | 14 * 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 D | getprop.c | 11 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 D | id.c | 32 gid_t list[64]; local 36 max = getgroups(64, list); 45 print_gid(list[0]); 48 print_gid(list[n]);
|
H A D | dynarray.c | 64 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/libcutils/ |
H A D | dir_hash.c | 117 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/core/adb/ |
H A D | adb_auth_client.c | 20 #include <cutils/list.h> 51 static void read_keys(const char *file, struct listnode *list) argument 90 list_add_tail(list, &key->node); 96 static void free_keys(struct listnode *list) argument 100 while (!list_empty(list)) { 101 item = list_head(list); 107 static void load_keys(struct listnode *list) argument 113 list_init(list); 118 read_keys(path, list);
|
H A D | adb_auth_host.c | 40 #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 D | fdevent.c | 476 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 D | sockets.c | 53 /* 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 D | commandline.c | 100 " devices [-l] - list all connected devices\n" 101 " ('-l' will also list device qualifiers)\n" 113 " (-l means list but don't copy)\n" 119 " adb forward --list - list all forward socket connections.\n" 120 " the format is a list of lines with the following format:\n" 135 " adb jdwp - list PIDs of processes hosting a JDWP transport\n" 161 " (<packages...> is the list of applications to be backed up. If\n" 163 " list is optional. Applications explicitly given on the\n" 202 " ADB_TRACE - Print debug information. A comma separated list o 1280 char list = 0; local [all...] |
H A D | sysdeps_win32.c | 1463 * 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/extras/latencytop/ |
H A D | latencytop.c | 43 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 D | showslab.c | 58 * 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 D | devices.c | 42 #include <cutils/list.h> 88 struct listnode list; member in struct:platform_node 131 /* upaths omit the "/sys" that paths in this list 161 /* search the perms list in reverse so that ueventd.$hardware can 233 bus = node_to_item(node, struct platform_node, list); 247 list_add_tail(&platform_names, &bus->list); 262 bus = node_to_item(node, struct platform_node, list); 278 bus = node_to_item(node, struct platform_node, list);
|
H A D | init_parser.c | 34 #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 D | allocate.c | 34 struct region_list list; member in struct:block_allocation 72 alloc->list.first = NULL; 73 alloc->list.last = NULL; 76 alloc->list.iter = NULL; 77 alloc->list.partial_iter = 0; 102 static void region_list_remove(struct region_list *list, struct region *reg) argument 110 if (list->first == reg) 111 list->first = reg->next; 113 if (list->last == reg) 114 list 120 region_list_append(struct region_list *list, struct region *reg) argument 642 advance_list_ptr(struct region_list *list, int blocks) argument [all...] |
/system/core/charger/ |
H A D | charger.c | 40 #include <cutils/list.h> 83 struct listnode list; member in struct:power_supply 322 supply = node_to_item(node, struct power_supply, list); 344 list_add_tail(&charger->supplies, &supply->list); 354 list_remove(&supply->list); 486 /* allow battery to be managed in the supply list but make it not
|