bb_applet_name -> applet_name

This commit is contained in:
Denis Vlasenko 2006-10-03 21:00:43 +00:00
parent 67b23e6043
commit 8f8f268cfd
45 changed files with 71 additions and 69 deletions

View file

@ -3753,7 +3753,7 @@ tryexec(char *cmd, char **argv, char **envp)
while (*c != NULL) {
c++; argc++;
}
bb_applet_name = cmd;
applet_name = cmd;
exit(a->main(argc, argv));
}
#ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL
@ -13658,7 +13658,7 @@ static arith_t arith (const char *expr, int *perrcode)
#ifdef DEBUG
const char *bb_applet_name = "debug stuff usage";
const char *applet_name = "debug stuff usage";
int main(int argc, char **argv)
{
return ash_main(argc, argv);

View file

@ -1892,7 +1892,7 @@ rewrite_line:
#ifdef TEST
const char *bb_applet_name = "debug stuff usage";
const char *applet_name = "debug stuff usage";
#ifdef CONFIG_FEATURE_NONPRINTABLE_INVERSE_PUT
#include <locale.h>

View file

@ -1145,7 +1145,7 @@ static int pseudo_exec(struct child_prog *child)
/* Check if the command matches any of the forking builtins. */
for (x = bltins_forking; x->cmd; x++) {
if (strcmp(child->argv[0], x->cmd) == 0) {
bb_applet_name=x->cmd;
applet_name=x->cmd;
_exit (x->function(child));
}
}