• Home
  • Raw
  • Download

Lines Matching full:which

37   // skip the first entry, which is out of order.  in toy_find()
73 toys.which = toy_list; in unknown()
78 static void toy_singleinit(struct toy_list *which, char *argv[]) in toy_singleinit() argument
80 toys.which = which; in toy_singleinit()
83 if (CFG_TOYBOX_I18N) setlocale(LC_ALL, "C"+!!(which->flags & TOYFLAG_LOCALE)); in toy_singleinit()
86 if (CFG_TOYBOX_HELP_DASHDASH && !(which->flags & TOYFLAG_NOHELP) && argv[1]) { in toy_singleinit()
88 if (CFG_TOYBOX && toys.which == toy_list && toys.argv[2]) in toy_singleinit()
89 if (!(toys.which = toy_find(toys.argv[2]))) unknown(toys.argv[2]); in toy_singleinit()
100 if (NEED_OPTIONS && which->options) get_optflags(); in toy_singleinit()
106 if (!(which->flags & TOYFLAG_UMASK)) umask(toys.old_umask); in toy_singleinit()
112 void toy_init(struct toy_list *which, char *argv[]) in toy_init() argument
114 void *oldwhich = toys.which; in toy_init()
119 if (!toys.which) toys.which = toy_list; in toy_init()
123 if (!(which->flags & TOYFLAG_STAYROOT)) { in toy_init()
129 } else if (CFG_TOYBOX_DEBUG && uid && which != toy_list) in toy_init()
132 if ((which->flags & TOYFLAG_NEEDROOT) && euid) help_exit("Not root"); in toy_init()
142 toy_singleinit(which, argv); in toy_init()
149 struct toy_list *which; in toy_exec() local
151 // Return if we can't find it (which includes no multiplexer case), in toy_exec()
152 if (!(which = toy_find(*argv))) return; in toy_exec()
159 if (toys.stacktop && labs((long)toys.stacktop-(long)&which)>6000) return; in toy_exec()
162 if (toys.which && (which->flags&TOYFLAG_ROOTONLY) && toys.wasroot) return; in toy_exec()
165 toy_init(which, argv); in toy_exec()
166 if (toys.which) toys.which->toy_main(); in toy_exec()
178 // (Leave toys.which null to disable suid return logic.) in toybox_main()
182 toys.which = toy_list; in toybox_main()