Lines Matching refs:toy_list
23 struct toy_list toy_list[] = { variable
33 struct toy_list *toy_find(char *name) in toy_find()
42 if (!strncmp(name,"toybox",6)) return toy_list; in toy_find()
47 top = ARRAY_LEN(toy_list)-1; in toy_find()
53 result = strcmp(name,toy_list[middle].name); in toy_find()
54 if (!result) return toy_list+middle; in toy_find()
76 toys.which = toy_list; in unknown()
81 static void toy_singleinit(struct toy_list *which, char *argv[]) in toy_singleinit()
91 if (CFG_TOYBOX && toys.which == toy_list && toys.argv[2]) in toy_singleinit()
111 toys.toycount = ARRAY_LEN(toy_list); in toy_singleinit()
115 void toy_init(struct toy_list *which, char *argv[]) in toy_init()
122 if (!toys.which) toys.which = toy_list; in toy_init()
132 } else if (CFG_TOYBOX_DEBUG && uid && which != toy_list) in toy_init()
150 void toy_exec_which(struct toy_list *which, char *argv[]) in toy_exec_which()
196 toys.which = toy_list; in toybox_main()
201 for (i=1; i<ARRAY_LEN(toy_list); i++) { in toybox_main()
202 int fl = toy_list[i].flags; in toybox_main()
209 len += printf("%s",toy_list[i].name); in toybox_main()
253 toy_singleinit(toy_list, argv); in main()
254 toy_list->toy_main(); in main()