From 2d91deba45d5a284614e06cc55e2be03599ca26d Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 1 Aug 2001 17:21:35 +0000 Subject: Allow multiple shells to be enabled. --- shell/ash.c | 4 ++-- shell/hush.c | 8 ++++---- shell/lash.c | 2 +- shell/msh.c | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 15e1adb..b1aec62 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -7638,7 +7638,7 @@ static void procargs (int, char **); */ int -shell_main(argc, argv) +ash_main(argc, argv) int argc; char **argv; { @@ -12874,7 +12874,7 @@ findvar(struct var **vpp, const char *name) /* * Copyright (c) 1999 Herbert Xu * This file contains code for the times builtin. - * $Id: ash.c,v 1.15 2001/07/31 21:38:23 andersen Exp $ + * $Id: ash.c,v 1.16 2001/08/01 17:21:33 kraai Exp $ */ static int timescmd (int argc, char **argv) { diff --git a/shell/hush.c b/shell/hush.c index 1344042..0e619f8 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -112,7 +112,7 @@ #else #define applet_name "hush" #include "standalone.h" -#define shell_main main +#define hush_main main #undef BB_FEATURE_SH_FANCY_PROMPT #endif @@ -2562,7 +2562,7 @@ static void setup_job_control() tcsetpgrp(shell_terminal, shell_pgrp); } -int shell_main(int argc, char **argv) +int hush_main(int argc, char **argv) { int opt; FILE *input; @@ -2572,8 +2572,8 @@ int shell_main(int argc, char **argv) global_argc = argc; global_argv = argv; - /* (re?) initialize globals. Sometimes shell_main() ends up calling - * shell_main(), therefore we cannot rely on the BSS to zero out this + /* (re?) initialize globals. Sometimes hush_main() ends up calling + * hush_main(), therefore we cannot rely on the BSS to zero out this * stuff. Reset these to 0 every time. */ ifs = NULL; /* map[] is taken care of with call to update_ifs_map() */ diff --git a/shell/lash.c b/shell/lash.c index 8f86095..0af6691 100644 --- a/shell/lash.c +++ b/shell/lash.c @@ -1545,7 +1545,7 @@ static void setup_job_control() tcsetpgrp(shell_terminal, shell_pgrp); } -int shell_main(int argc_l, char **argv_l) +int lash_main(int argc_l, char **argv_l) { int opt, interactive=FALSE; FILE *input = stdin; diff --git a/shell/msh.c b/shell/msh.c index 8f046e7..92a0f85 100644 --- a/shell/msh.c +++ b/shell/msh.c @@ -143,7 +143,7 @@ static int newfile(char *s); static char *findeq(char *cp); static char *cclass(char *p, int sub); static void initarea(void); -extern int shell_main(int argc, char **argv); +extern int msh_main(int argc, char **argv); struct brkcon { @@ -692,7 +692,7 @@ static char * current_prompt; */ -extern int shell_main(int argc, char **argv) +extern int msh_main(int argc, char **argv) { register int f; register char *s; -- cgit v1.1