Home
last modified time | relevance | path

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

/DragonOS-0.1.8/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.c115 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 …]
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);
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()
Dcmd_test.c10 int shell_pipe_test(int argc, char **argv) in shell_pipe_test() argument
/DragonOS-0.1.8/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.8/kernel/src/arch/x86_64/
Dsyscall.rs129 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/
Dmain.c8 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/
Dunistd.md51 ``int execv(const char* path,char * const argv[])`` : 执行文件
53 argv : 执行参数列表
/DragonOS-0.1.8/user/libs/libc/src/
Dunistd.c151 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/
Dunistd.h95 int execv(const char *path, char *const argv[]);
/DragonOS-0.1.8/kernel/src/debug/
Dkallsyms.c195 int main(int argc, char **argv) in main() argument
/DragonOS-0.1.8/user/apps/http_server/
Dmain.c174 int main(int argc, char const *argv[]) in main() argument
/DragonOS-0.1.8/user/apps/test_bind/
Dmain.c170 int main(int argc, char const *argv[]) in main() argument
/DragonOS-0.1.8/kernel/src/process/
Dprocess.c51 extern uint64_t rs_do_execve(const char *filename, const char *const argv[], const char *const envp…