• Home
  • Raw
  • Download

Lines Matching refs:which

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()
150 void toy_exec_which(struct toy_list *which, char *argv[]) in toy_exec_which() argument
153 if (!which) return; in toy_exec_which()
162 if (labs((long)toys.stacktop-(long)&which)>6000) return; in toy_exec_which()
165 if (toys.which && (which->flags&TOYFLAG_ROOTONLY) && toys.wasroot) return; in toy_exec_which()
168 toy_init(which, argv); in toy_exec_which()
169 if (toys.which) toys.which->toy_main(); in toy_exec_which()
196 toys.which = toy_list; in toybox_main()