/DragonOS-0.1.8/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 | 115 void shell_run_built_in_command(int index, int argc, char **argv) in shell_run_built_in_command() argument 121 shell_cmds[index].func(argc, argv); in shell_run_built_in_command() 132 int shell_cmd_cd(int argc, char **argv) in shell_cmd_cd() argument 142 if (!strcmp(".", argv[1])) in shell_cmd_cd() 146 if (!strcmp("..", argv[1])) in shell_cmd_cd() 166 int dest_len = strlen(argv[1]); in shell_cmd_cd() 174 if (argv[1][0] == '/') in shell_cmd_cd() 177 int ec = chdir(argv[1]); in shell_cmd_cd() 185 strncpy(new_path, argv[1], dest_len); in shell_cmd_cd() 204 if (argv[1][0] == '.' && argv[1][1] == '/') // 相对路径 in shell_cmd_cd() [all …]
|
D | cmd_help.c | 15 int shell_help(int argc, char **argv) in shell_help() argument 22 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 | 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()
|
D | cmd_test.c | 10 int shell_pipe_test(int argc, char **argv) in shell_pipe_test() argument
|
/DragonOS-0.1.8/user/libs/libc/src/arch/x86_64/ |
D | crt0.c | 9 void _start(int argc, char **argv) in _start() argument 14 int retval = main(argc, argv); in _start()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/ |
D | syscall.rs | 129 argv: *const *const u8, in rs_do_execve() 139 let argv: Vec<String> = check_and_clone_cstr_array(argv)?; in rs_do_execve() localVariable 141 Ok((path, argv, envp)) in rs_do_execve() 147 let (path, argv, envp) = r.unwrap(); in rs_do_execve() 149 return tmp_rs_execve(path, argv, envp, regs) in rs_do_execve() 166 let argv = vec![String::from("/bin/shell.elf")]; in rs_exec_init_process() localVariable 168 let r = tmp_rs_execve(path, argv, envp, regs); in rs_exec_init_process() 179 argv: Vec<String>, in tmp_rs_execve() 220 param.init_info_mut().args = argv; in tmp_rs_execve()
|
/DragonOS-0.1.8/user/apps/test_sqlite3/ |
D | main.c | 8 int callback(void *NotUsed, int argc, char **argv, char **azColName) in callback() argument 13 printf("%s = %s\n", azColName[i], (argv[i] ? argv[i] : "NULL")); in callback()
|
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/ |
D | unistd.md | 51 ``int execv(const char* path,char * const argv[])`` : 执行文件 53 argv : 执行参数列表
|
/DragonOS-0.1.8/user/libs/libc/src/ |
D | unistd.c | 151 int execv(const char *path, char *const argv[]) in execv() argument 158 int retval = syscall_invoke(SYS_EXECVE, (uint64_t)path, (uint64_t)argv, 0, 0, 0, 0, 0, 0); in execv()
|
/DragonOS-0.1.8/user/libs/libc/src/include/export/ |
D | unistd.h | 95 int execv(const char *path, char *const argv[]);
|
/DragonOS-0.1.8/kernel/src/debug/ |
D | kallsyms.c | 195 int main(int argc, char **argv) in main() argument
|
/DragonOS-0.1.8/user/apps/http_server/ |
D | main.c | 174 int main(int argc, char const *argv[]) in main() argument
|
/DragonOS-0.1.8/user/apps/test_bind/ |
D | main.c | 170 int main(int argc, char const *argv[]) in main() argument
|
/DragonOS-0.1.8/kernel/src/process/ |
D | process.c | 51 extern uint64_t rs_do_execve(const char *filename, const char *const argv[], const char *const envp…
|