Home
last modified time | relevance | path

Searched refs:pg_name (Results 1 – 2 of 2) sorted by relevance

/components/finsh/
A Dmsh.c257 char *pg_name; in msh_exec_module() local
271 if (pg_name == RT_NULL) in msh_exec_module()
276 pg_name[cmd_length] = '\0'; in msh_exec_module()
278 if (strstr(pg_name, ".mo") != RT_NULL || strstr(pg_name, ".MO") != RT_NULL) in msh_exec_module()
295 strcat(pg_name, ".mo"); in msh_exec_module()
318 rt_free(pg_name); in msh_exec_module()
484 char *pg_name; in _msh_exec_lwp() local
501 if (pg_name) in _msh_exec_lwp()
515 if (pg_name) in _msh_exec_lwp()
522 if (pg_name) in _msh_exec_lwp()
[all …]
A Dmsh_file.c73 char *pg_name; in msh_exec_script() local
86 pg_name = (char *) rt_malloc(length); in msh_exec_script()
87 if (pg_name == RT_NULL) return -RT_ENOMEM; in msh_exec_script()
90 rt_memcpy(pg_name, cmd_line, cmd_length); in msh_exec_script()
91 pg_name[cmd_length] = '\0'; in msh_exec_script()
93 if (strstr(pg_name, ".sh") != RT_NULL || strstr(pg_name, ".SH") != RT_NULL) in msh_exec_script()
96 fd = open(pg_name, O_RDONLY, 0); in msh_exec_script()
101 rt_snprintf(pg_name, length - 1, "/bin/%.*s", cmd_length, cmd_line); in msh_exec_script()
102 fd = open(pg_name, O_RDONLY, 0); in msh_exec_script()
106 rt_free(pg_name); in msh_exec_script()

Completed in 17 milliseconds