/kernel/liteos_m/components/shell/src/base/ |
D | shcmd.c | 105 LITE_OS_SEC_TEXT_MINOR UINT32 OsCmdKeyShift(const CHAR *cmdKey, CHAR *cmdOut, UINT32 size) in OsCmdKeyShift() argument 113 if ((cmdKey == NULL) || (cmdOut == NULL)) { in OsCmdKeyShift() 117 len = strlen(cmdKey); in OsCmdKeyShift() 130 for (; *cmdKey != '\0'; cmdKey++) { in OsCmdKeyShift() 132 if (*(cmdKey) == '\"') { in OsCmdKeyShift() 140 …if ((*cmdKey == ' ') && ((*(cmdKey + 1) == ' ') || (*(cmdKey + 1) == '\0')) && QUOTES_STATUS_CLOSE… in OsCmdKeyShift() 143 if (*cmdKey == '\'') { in OsCmdKeyShift() 146 *output = *cmdKey; in OsCmdKeyShift() 172 LITE_OS_SEC_TEXT_MINOR BOOL OsCmdKeyCheck(const CHAR *cmdKey) in OsCmdKeyCheck() argument 174 const CHAR *temp = cmdKey; in OsCmdKeyCheck() [all …]
|
D | shmsg.c | 60 if ((len == strlen(curCmdItem->cmd->cmdKey)) && in ShellMsgTypeGet() 61 (strncmp((CHAR *)(curCmdItem->cmd->cmdKey), cmdType, len) == 0)) { in ShellMsgTypeGet()
|
/kernel/liteos_a/shell/full/src/base/ |
D | shcmd.c | 311 STATIC VOID OsCompleteStr(const CHAR *result, const CHAR *target, CHAR *cmdKey, UINT32 *len) in OsCompleteStr() argument 314 CHAR *des = cmdKey + *len; in OsCompleteStr() 328 STATIC INT32 OsTabMatchCmd(CHAR *cmdKey, UINT32 *len) in OsTabMatchCmd() argument 334 const CHAR *cmdMajor = (const CHAR *)cmdKey; in OsTabMatchCmd() 349 if (strncmp(cmdMajor, curCmdItem->cmd->cmdKey, strlen(cmdMajor)) > 0) { in OsTabMatchCmd() 353 if (strncmp(cmdMajor, curCmdItem->cmd->cmdKey, strlen(cmdMajor)) != 0) { in OsTabMatchCmd() 368 OsCompleteStr(cmdItemGuard->cmd->cmdKey, cmdMajor, cmdKey, len); in OsTabMatchCmd() 375 PRINTK("%s ", cmdItemGuard->cmd->cmdKey); in OsTabMatchCmd() 384 STATIC INT32 OsTabMatchFile(CHAR *cmdKey, UINT32 *len) in OsTabMatchFile() argument 399 if (OsStrSeparate(cmdKey, dirOpen, strCmp, *len)) { in OsTabMatchFile() [all …]
|
D | shmsg.c | 219 if ((len == strlen(curCmdItem->cmd->cmdKey)) && in ShellMsgTypeGet() 220 (strncmp((CHAR *)(curCmdItem->cmd->cmdKey), cmdType, len) == 0)) { in ShellMsgTypeGet()
|
/kernel/liteos_a/apps/shell/src/ |
D | shcmd.c | 282 static void OsCompleteStr(char *result, const char *target, char *cmdKey, unsigned int *len) in OsCompleteStr() argument 285 char *des = cmdKey + *len; in OsCompleteStr() 337 static int OsTabMatchFile(char *cmdKey, unsigned int *len) in OsTabMatchFile() argument 352 if (OsStrSeparate(cmdKey, dirOpen, strCmp, *len)) { in OsTabMatchFile() 360 OsCompleteStr(strOutput, strCmp, cmdKey, len); in OsTabMatchFile() 385 unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size) in OsCmdKeyShift() argument 393 if ((cmdKey == NULL) || (cmdOut == NULL)) { in OsCmdKeyShift() 397 len = strlen(cmdKey); in OsCmdKeyShift() 398 if ((*cmdKey == '\n') || (len >= size)) { in OsCmdKeyShift() 410 for (; *cmdKey != '\0'; cmdKey++) { in OsCmdKeyShift() [all …]
|
/kernel/liteos_a/shell/full/include/ |
D | shcmd.h | 55 const CHAR *cmdKey; member 80 #define SHELLCMD_ENTRY(l, cmdType, cmdKey, paraNum, cmdHook) \ argument 83 cmdKey, \ 94 extern UINT32 OsCmdKeyShift(const CHAR *cmdKey, CHAR *cmdOut, UINT32 size); 95 extern INT32 OsTabCompletion(CHAR *cmdKey, UINT32 *len);
|
D | shell.h | 128 extern UINT32 osCmdReg(CmdType cmdType, const CHAR *cmdKey, UINT32 paraNum, CmdCallBackFunc cmdProc…
|
/kernel/liteos_m/components/shell/include/ |
D | shcmd.h | 51 const CHAR *cmdKey; member 76 #define SHELLCMD_ENTRY(l, cmdType, cmdKey, paraNum, cmdHook) \ argument 79 cmdKey, \ 89 extern UINT32 OsCmdKeyShift(const CHAR *cmdKey, CHAR *cmdOut, UINT32 size);
|
D | shell.h | 126 extern UINT32 osCmdReg(CmdType cmdType, const CHAR *cmdKey, UINT32 paraNum, CmdCallBackFunc cmdProc…
|
/kernel/liteos_a/apps/shell/include/ |
D | shcmd.h | 59 extern unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size); 60 extern int OsTabCompletion(char *cmdKey, unsigned int *len);
|
/kernel/liteos_m/components/shell/src/cmds/ |
D | shell_shellcmd.c | 55 PRINTK("%-8s ", curCmdItem->cmd->cmdKey); in OsShellCmdHelp()
|
/kernel/liteos_a/shell/full/src/cmds/ |
D | shell_shellcmd.c | 55 PRINTK("%-12s ", curCmdItem->cmd->cmdKey); in OsShellCmdHelp()
|
/kernel/liteos_a/apps/tftp/include/ |
D | types_adapt.h | 80 #define SHELLCMD_ENTRY(l, cmdType, cmdKey, paraNum, cmdHook) \ argument
|