Lines Matching refs:argc
104 void shell_run_built_in_command(int index, int argc, char **argv) in shell_run_built_in_command() argument
110 shell_cmds[index].func(argc, argv); in shell_run_built_in_command()
121 int shell_cmd_cd(int argc, char **argv) in shell_cmd_cd() argument
125 if (argc < 2) in shell_cmd_cd()
244 int shell_cmd_ls(int argc, char **argv) in shell_cmd_ls() argument
289 int shell_cmd_pwd(int argc, char **argv) in shell_cmd_pwd() argument
305 int shell_cmd_cat(int argc, char **argv) in shell_cmd_cat() argument
342 int shell_cmd_touch(int argc, char **argv) in shell_cmd_touch() argument
381 int shell_cmd_mkdir(int argc, char **argv) in shell_cmd_mkdir() argument
410 int shell_cmd_rmdir(int argc, char **argv) in shell_cmd_rmdir() argument
441 int shell_cmd_rm(int argc, char **argv) in shell_cmd_rm() argument
474 int shell_cmd_exec(int argc, char **argv) in shell_cmd_exec() argument
496 if (strcmp(argv[argc - 1], "&") != 0) in shell_cmd_exec()
507 int shell_cmd_about(int argc, char **argv) in shell_cmd_about() argument
523 int shell_cmd_kill(int argc, char **argv) in shell_cmd_kill() argument
526 if (argc < 2) in shell_cmd_kill()
545 int shell_cmd_reboot(int argc, char **argv) in shell_cmd_reboot() argument
550 int shell_cmd_free(int argc, char **argv) in shell_cmd_free() argument
553 if (argc == 2 && strcmp("-m", argv[1]) != 0) in shell_cmd_free()
570 if (argc == 1) // 按照kb显示 in shell_cmd_free()
595 int parse_command(char *buf, int *argc, char ***argv) in parse_command() argument
610 ++(*argc); in parse_command()
616 *argv = (char **)malloc(sizeof(char **) * (*argc)); in parse_command()
617 memset(*argv, 0, sizeof(char **) * (*argc)); in parse_command()
619 for (int i = 0; i < *argc && index < INPUT_BUFFER_SIZE; ++i) in parse_command()