Lines Matching defs:applet
30 /* Declare <applet>_main() */
131 const struct bb_applet *applet;
229 /* First get the key (an applet name in our case). */
238 /* Ok, we have an applet name. Process the rhs if this
239 * applet is currently built in and ignore it otherwise.
242 applet = find_applet_by_name(s);
243 if (applet) {
245 * The last config line for each applet will be the
249 sct->m_applet = applet;
340 static void check_suid(const struct bb_applet *applet)
355 if (sct->m_applet == applet)
372 bb_error_msg_and_die("you have no permission to run this applet!");
406 if (applet->need_suid == _BB_SUID_ALWAYS) {
410 bb_error_msg_and_die("applet requires root privileges!");
411 } else if (applet->need_suid == _BB_SUID_NEVER) {
484 const struct bb_applet *applet = vapplet;
486 return strcmp(name, applet->name);
491 /* Do a binary search to find the applet entry given the name. */
498 /* create (sym)links for each applet */
591 /* "busybox --help [<applet>]" */
594 /* convert to "<applet> --help" */
598 /* "busybox <applet> arg1 arg2 ..." */
601 /* we want "<argv[0]>: applet not found", not "busybox: ..." */
604 bb_error_msg_and_die("applet not found");
666 bb_error_msg_and_die("applet not found");