Home
last modified time | relevance | path

Searched refs:cmdName (Results 1 – 3 of 3) sorted by relevance

/kernel/liteos_m/components/shell/src/base/
Dshmsg.c77 CHAR *cmdName = NULL; in GetCmdName() local
82 cmdName = (CHAR *)malloc(len + 1); in GetCmdName()
83 if (cmdName == NULL) { in GetCmdName()
103 cmdName[loop] = *tmpStr++; in GetCmdName()
106 cmdName[loop] = '\0'; in GetCmdName()
108 return cmdName; in GetCmdName()
149 CHAR *cmdName = NULL; in ParseAndExecCmdline() local
151 cmdName = GetCmdName(cmdline, len); in ParseAndExecCmdline()
152 if (cmdName == NULL) { in ParseAndExecCmdline()
157 ret = ShellMsgTypeGet(cmdParsed, cmdName); in ParseAndExecCmdline()
[all …]
/kernel/liteos_a/apps/shell/src/
Dshmsg.c320 char *cmdName = NULL; in GetCmdName() local
325 cmdName = (char *)malloc(len + 1); in GetCmdName()
326 if (cmdName == NULL) { in GetCmdName()
346 cmdName[loop] = *tmpStr++; in GetCmdName()
349 cmdName[loop] = '\0'; in GetCmdName()
351 return cmdName; in GetCmdName()
354 void ChildExec(const char *cmdName, char *const paramArray[], bool foreground) in ChildExec() argument
378 ret = execve(cmdName, paramArray, NULL); in ChildExec()
385 int CheckExit(const char *cmdName, const CmdParsed *cmdParsed) in CheckExit() argument
389 …if (strlen(cmdName) != CMD_EXIT_COMMAND_BYTES || strncmp(cmdName, CMD_EXIT_COMMAND, CMD_EXIT_COMMA… in CheckExit()
[all …]
/kernel/liteos_a/apps/shell/include/
Dshmsg.h65 extern void ChildExec(const char *cmdName, char *const paramArray[], bool foreground);