/DragonOS-0.1.2/user/apps/shell/ |
D | cmd.h | 14 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 …]
|
D | cmd.c | 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 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 …]
|
D | cmd_help.c | 14 int shell_help(int argc, char **argv) in shell_help() argument 21 free(argv); in shell_help()
|
D | cmd_test.h | 4 int shell_pipe_test(int argc, char **argv);
|
D | cmd_help.h | 4 int shell_help(int argc, char **argv);
|
D | cmd_test.c | 7 int shell_pipe_test(int argc, char **argv) in shell_pipe_test() argument
|
D | shell.c | 53 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.2/user/libs/libc/src/sysdeps/x86_64/elf/ |
D | start.c | 7 void _start(int argc, char **argv) in _start() argument 10 int retval = main(argc, argv); in _start()
|
/DragonOS-0.1.2/docs/userland/libc/apis/api-list/ |
D | unistd.md | 51 ``int execv(const char* path,char * const argv[])`` : 执行文件 53 argv : 执行参数列表
|
/DragonOS-0.1.2/user/libs/libc/src/ |
D | unistd.c | 139 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()
|
D | unistd.h | 91 int execv(const char *path, char *const argv[]);
|
/DragonOS-0.1.2/kernel/src/process/ |
D | process.c | 352 ul do_execve(struct pt_regs *regs, char *path, char *argv[], char *envp[]) in do_execve() argument 410 if (argv != NULL) in do_execve() 418 for (argc = 0; argc < 8 && argv[argc] != NULL; ++argc) in do_execve() 421 if (*argv[argc] == NULL) in do_execve() 425 int argv_len = strnlen_user(argv[argc], 1023) + 1; in do_execve() 426 strncpy((char *)(str_addr - argv_len), argv[argc], argv_len - 1); in do_execve()
|
D | process.h | 124 ul do_execve(struct pt_regs *regs, char *path, char *argv[], char *envp[]);
|
/DragonOS-0.1.2/kernel/src/debug/ |
D | kallsyms.c | 195 int main(int argc, char **argv) in main() argument
|
/DragonOS-0.1.2/kernel/src/syscall/ |
D | syscall.c | 459 char **argv = (char **)regs->r9; in sys_execve() local 482 uint64_t retval = do_execve(regs, path, argv, NULL); in sys_execve()
|