Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 15 of 15) sorted by relevance

/DragonOS-0.1.3/user/apps/shell/
Dcmd.h14 int (*func)(int argc, char **argv);
34 void shell_run_built_in_command(int index, int argc, char **argv);
43 int shell_cmd_cd(int argc, char **argv);
52 int shell_cmd_ls(int argc, char **argv);
61 int shell_cmd_pwd(int argc, char **argv);
70 int shell_cmd_cat(int argc, char **argv);
79 int shell_cmd_touch(int argc, char **argv);
88 int shell_cmd_rm(int argc, char **argv);
97 int shell_cmd_mkdir(int argc, char **argv);
106 int shell_cmd_rmdir(int argc, char **argv);
[all …]
Dcmd.c104 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
131 if (!strcmp(".", argv[1])) in shell_cmd_cd()
135 if (!strcmp("..", argv[1])) in shell_cmd_cd()
155 int dest_len = strlen(argv[1]); in shell_cmd_cd()
163 if (argv[1][0] == '/') in shell_cmd_cd()
166 int ec = chdir(argv[1]); in shell_cmd_cd()
174 strncpy(new_path, argv[1], dest_len); in shell_cmd_cd()
193 if (argv[1][0] == '.' && argv[1][1] == '/') // 相对路径 in shell_cmd_cd()
[all …]
Dcmd_help.c15 int shell_help(int argc, char **argv) in shell_help() argument
22 free(argv); in shell_help()
Dcmd_test.h4 int shell_pipe_test(int argc, char **argv);
Dcmd_help.h4 int shell_help(int argc, char **argv);
Dcmd_test.c7 int shell_pipe_test(int argc, char **argv) in shell_pipe_test() argument
Dshell.c53 char **argv; in main_loop() local
80 int cmd_num = parse_command(input_buffer, &argc, &argv); in main_loop()
83 shell_run_built_in_command(cmd_num, argc, argv); in main_loop()
/DragonOS-0.1.3/user/libs/libc/src/arch/x86_64/
Dcrt0.c9 void _start(int argc, char **argv) in _start() argument
14 int retval = main(argc, argv); in _start()
/DragonOS-0.1.3/docs/userland/libc/apis/api-list/
Dunistd.md51 ``int execv(const char* path,char * const argv[])`` : 执行文件
53 argv : 执行参数列表
/DragonOS-0.1.3/user/libs/libc/src/
Dunistd.c139 int execv(const char *path, char *const argv[]) in execv() argument
146 int retval = syscall_invoke(SYS_EXECVE, (uint64_t)path, (uint64_t)argv, 0, 0, 0, 0, 0, 0); in execv()
/DragonOS-0.1.3/user/libs/libc/src/include/
Dunistd.h95 int execv(const char *path, char *const argv[]);
/DragonOS-0.1.3/kernel/src/process/
Dprocess.c364 ul do_execve(struct pt_regs *regs, char *path, char *argv[], char *envp[]) in do_execve() argument
424 if (argv != NULL) in do_execve()
432 for (argc = 0; argc < 8 && argv[argc] != NULL; ++argc) in do_execve()
435 if (*argv[argc] == NULL) in do_execve()
439 int argv_len = strnlen_user(argv[argc], 1023) + 1; in do_execve()
440 strncpy((char *)(str_addr - argv_len), argv[argc], argv_len - 1); in do_execve()
Dprocess.h124 ul do_execve(struct pt_regs *regs, char *path, char *argv[], char *envp[]);
/DragonOS-0.1.3/kernel/src/debug/
Dkallsyms.c195 int main(int argc, char **argv) in main() argument
/DragonOS-0.1.3/kernel/src/syscall/
Dsyscall.c486 char **argv = (char **)regs->r9; in sys_execve() local
509 uint64_t retval = do_execve(regs, path, argv, NULL); in sys_execve()