• Home
  • Raw
  • Download

Lines Matching refs:toys

29 struct toy_context toys;  variable
75 toys.exitval = 127; in unknown()
76 toys.which = toy_list; in unknown()
83 toys.which = which; in toy_singleinit()
84 toys.argv = argv; 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()
105 toys.optargs = argv+1; in toy_singleinit()
106 for (toys.optc = 0; toys.optargs[toys.optc]; toys.optc++); in toy_singleinit()
108 toys.old_umask = umask(0); in toy_singleinit()
109 if (!(which->flags & TOYFLAG_UMASK)) umask(toys.old_umask); in toy_singleinit()
110 toys.signalfd--; in toy_singleinit()
111 toys.toycount = ARRAY_LEN(toy_list); in toy_singleinit()
117 void *oldwhich = toys.which; in toy_init()
122 if (!toys.which) toys.which = toy_list; in toy_init()
130 toys.wasroot++; in toy_init()
140 if (argv<toys.optargs || argv>toys.optargs+toys.optc) free(toys.optargs); in toy_init()
141 memset(&toys, 0, offsetof(struct toy_context, rebound)); in toy_init()
161 if (!CFG_TOYBOX_NORECURSE && toys.stacktop) 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()
169 if (toys.which) toys.which->toy_main(); in toy_exec_which()
189 if (toys.argv[1]) { in toybox_main()
190 toy_exec(toys.argv+1); in toybox_main()
191 if (0<readlink(toys.argv[1], libbuf, sizeof(libbuf))) in toybox_main()
192 toy_exec_which(toy_find(basename(libbuf)), toys.argv); in toybox_main()
196 toys.which = toy_list; in toybox_main()
198 if (toys.argv[1] && toys.argv[1][0] != '-') unknown(toys.argv[1]); in toybox_main()
204 if (toys.argv[1]) { in toybox_main()
226 toys.stacktop = &stack; in main()
242 toys.stacktop = 0; in main()
249 toys.argv = argv-1; in main()