debug("Starting %s process...\n", __FUNCTION__);
#if !defined(CONFIG_SYS_HUSH_PARSER)
- ret = run_command (s, 0);
+ ret = builtin_run_command(s, 0);
#else
ret = parse_string_outer(s, FLAG_PARSE_SEMICOLON
| FLAG_EXIT_FROM_LOOP);
k++;
}
- run_command(addr, 0);
+ builtin_run_command(addr, 0);
return 0;
}
* Call run_cmd
*/
printf("running command at addr 0x%s ...\n", addr);
- run_command((char*)la, 0);
+ builtin_run_command((char *)la, 0);
break;
default:
*d = '\0';
start = get_ticks();
- ret = run_command (cmd, 0);
+ ret = builtin_run_command(cmd, 0);
end = get_ticks();
printf("ticks=%ld\n", (ulong)(end - start));
if (len == -1)
printf ("<INTERRUPT>\n");
else
- rc = run_command (lastcommand, flag);
+ rc = builtin_run_command(lastcommand, flag);
if (rc <= 0) {
/* invalid command or not repeatable, forget it */
int rcode = 0;
#ifndef CONFIG_SYS_HUSH_PARSER
- if (run_command(getenv("bootcmd"), flag) < 0)
+ if (builtin_run_command(getenv("bootcmd"), flag) < 0)
rcode = 1;
#else
if (parse_string_outer(getenv("bootcmd"),
if (*line) {
debug ("** exec: \"%s\"\n",
line);
- if (run_command (line, 0) < 0) {
+ if (builtin_run_command(line, 0) < 0) {
rcode = 1;
break;
}
++next;
}
if (rcode == 0 && *line)
- rcode = (run_command(line, 0) >= 0);
+ rcode = (builtin_run_command(line, 0) >= 0);
}
#endif
free (cmd);
{
#ifndef CONFIG_SYS_HUSH_PARSER
/*
- * run_command can return 0 or 1 for success, so clean up its result.
+ * builtin_run_command can return 0 or 1 for success, so clean up
+ * its result.
*/
- if (run_command(cmd, flag) == -1)
+ if (builtin_run_command(cmd, flag) == -1)
return 1;
return 0;
if (len == -1)
puts ("<INTERRUPT>\n");
else
- rc = run_command (lastcommand, flag);
+ rc = builtin_run_command(lastcommand, flag);
if (rc <= 0) {
/* invalid command or not repeatable, forget it */
* creates or modifies environment variables (like "bootp" does).
*/
-int run_command (const char *cmd, int flag)
+int builtin_run_command(const char *cmd, int flag)
{
cmd_tbl_t *cmdtp;
char cmdbuf[CONFIG_SYS_CBSIZE]; /* working copy of cmd */
/* common/main.c */
void main_loop (void);
-int run_command (const char *cmd, int flag);
+int builtin_run_command(const char *cmd, int flag);
int run_command2(const char *cmd, int flag);
int readline (const char *const prompt);
int readline_into_buffer(const char *const prompt, char *buffer,