/kernel/liteos_m/components/shell/src/base/ |
H A D | shcmd.c | 101 * Input: cmdKey : Pass in the buff string, which is ready to be operated 103 * size : cmdKey length 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() 129 /* Scan each charactor in 'cmdKey',and squeeze the overmuch space and ignore invalid charactor */ in OsCmdKeyShift() 130 for (; *cmdKey != '\0'; cmdKey++) { in OsCmdKeyShift() 132 if (*(cmdKey) == '\"') { in OsCmdKeyShift() 140 if ((*cmdKey in OsCmdKeyShift() 172 OsCmdKeyCheck(const CHAR *cmdKey) OsCmdKeyCheck() argument 317 const CHAR *cmdKey = NULL; OsCmdExec() local 402 OsCmdItemCreate(CmdType cmdType, const CHAR *cmdKey, UINT32 paraNum, CmdCallBackFunc cmdProc) OsCmdItemCreate() argument 434 osCmdReg(CmdType cmdType, const CHAR *cmdKey, UINT32 paraNum, CmdCallBackFunc cmdProc) osCmdReg() argument [all...] |
H A 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/apps/shell/src/ |
H A 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() 381 * Input: cmdKey : Pass in the buff string, which is ready to be operated 383 * size : cmdKey length 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() 451 OsTabCompletion(char *cmdKey, unsigned int *len) OsTabCompletion() argument [all...] |
/kernel/liteos_a/shell/full/src/base/ |
H A 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, UINT3 argument 432 OsCmdKeyShift(const CHAR *cmdKey, CHAR *cmdOut, UINT32 size) OsCmdKeyShift() argument 498 OsCmdKeyCheck(const CHAR *cmdKey) OsCmdKeyCheck() argument 537 OsTabCompletion(CHAR *cmdKey, UINT32 *len) OsTabCompletion() argument 743 const CHAR *cmdKey = NULL; OsCmdExec() local 794 OsCmdItemCreate(CmdType cmdType, const CHAR *cmdKey, UINT32 paraNum, CmdCallBackFunc cmdProc) OsCmdItemCreate() argument 826 osCmdReg(CmdType cmdType, const CHAR *cmdKey, UINT32 paraNum, CmdCallBackFunc cmdProc) osCmdReg() argument [all...] |
H A 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/shell/full/include/ |
H A D | shcmd.h | 55 const CHAR *cmdKey; member 80 #define SHELLCMD_ENTRY(l, cmdType, cmdKey, paraNum, cmdHook) \ 83 cmdKey, \ 94 extern UINT32 OsCmdKeyShift(const CHAR *cmdKey, CHAR *cmdOut, UINT32 size); 95 extern INT32 OsTabCompletion(CHAR *cmdKey, UINT32 *len);
|
H A D | shell.h | 128 extern UINT32 osCmdReg(CmdType cmdType, const CHAR *cmdKey, UINT32 paraNum, CmdCallBackFunc cmdProc);
|
/kernel/liteos_m/components/shell/include/ |
H A D | shcmd.h | 51 const CHAR *cmdKey; member 76 #define SHELLCMD_ENTRY(l, cmdType, cmdKey, paraNum, cmdHook) \ 79 cmdKey, \ 89 extern UINT32 OsCmdKeyShift(const CHAR *cmdKey, CHAR *cmdOut, UINT32 size);
|
H A D | shell.h | 126 extern UINT32 osCmdReg(CmdType cmdType, const CHAR *cmdKey, UINT32 paraNum, CmdCallBackFunc cmdProc);
|
/kernel/liteos_a/apps/shell/include/ |
H A 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_a/shell/full/src/cmds/ |
H A D | shell_shellcmd.c | 55 PRINTK("%-12s ", curCmdItem->cmd->cmdKey); in OsShellCmdHelp()
|
/kernel/liteos_m/components/shell/src/cmds/ |
H A D | shell_shellcmd.c | 55 PRINTK("%-8s ", curCmdItem->cmd->cmdKey); in OsShellCmdHelp()
|
/kernel/liteos_a/apps/tftp/include/ |
H A D | types_adapt.h | 80 #define SHELLCMD_ENTRY(l, cmdType, cmdKey, paraNum, cmdHook) \
|