Lines Matching full:which
40 // skip the first entry, which is out of order. in toy_find()
76 toys.which = toy_list; in unknown()
81 static void toy_singleinit(struct toy_list *which, char *argv[]) in toy_singleinit() argument
83 toys.which = which; in toy_singleinit()
89 if (CFG_TOYBOX_HELP_DASHDASH && !(which->flags & TOYFLAG_NOHELP) && argv[1]) { in toy_singleinit()
91 if (CFG_TOYBOX && toys.which == toy_list && toys.argv[2]) in toy_singleinit()
92 if (!(toys.which = toy_find(toys.argv[2]))) unknown(toys.argv[2]); in toy_singleinit()
103 if (NEED_OPTIONS && which->options) get_optflags(); in toy_singleinit()
109 if (!(which->flags & TOYFLAG_UMASK)) umask(toys.old_umask); in toy_singleinit()
115 void toy_init(struct toy_list *which, char *argv[]) in toy_init() argument
117 void *oldwhich = toys.which; in toy_init()
122 if (!toys.which) toys.which = toy_list; in toy_init()
126 if (!(which->flags & TOYFLAG_STAYROOT)) { in toy_init()
132 } else if (CFG_TOYBOX_DEBUG && uid && which != toy_list) in toy_init()
135 if ((which->flags & TOYFLAG_NEEDROOT) && euid) help_exit("Not root"); in toy_init()
145 toy_singleinit(which, argv); in toy_init()
152 struct toy_list *which; in toy_exec() local
154 // Return if we can't find it (which includes no multiplexer case), in toy_exec()
155 if (!(which = toy_find(*argv))) return; in toy_exec()
162 if (toys.stacktop && labs((long)toys.stacktop-(long)&which)>6000) return; in toy_exec()
165 if (toys.which && (which->flags&TOYFLAG_ROOTONLY) && toys.wasroot) return; in toy_exec()
168 toy_init(which, argv); in toy_exec()
169 if (toys.which) toys.which->toy_main(); in toy_exec()
181 // (Leave toys.which null to disable suid return logic.) in toybox_main()
185 toys.which = toy_list; in toybox_main()