Home
last modified time | relevance | path

Searched refs:SHOW_MAX_LEN (Results 1 – 12 of 12) sorted by relevance

/kernel/liteos_a/apps/shell/src/
Dshcmd.c56 char *tempStr = (char *)malloc(SHOW_MAX_LEN << 1); in OsStrSeparateTabStrGet()
61 (void)memset_s(tempStr, SHOW_MAX_LEN << 1, 0, SHOW_MAX_LEN << 1); in OsStrSeparateTabStrGet()
62 shiftStr = tempStr + SHOW_MAX_LEN; in OsStrSeparateTabStrGet()
64 if (strncpy_s(tempStr, SHOW_MAX_LEN - 1, *tabStr, tabStrLen)) { in OsStrSeparateTabStrGet()
72 if (OsCmdKeyShift(tempStr, shiftStr, SHOW_MAX_LEN - 1)) { in OsStrSeparateTabStrGet()
290 if (*len == (SHOW_MAX_LEN - 1)) { in OsCompleteStr()
572 (void)memset_s(shellCB->shellBuf, SHOW_MAX_LEN, 0, SHOW_MAX_LEN); in OsShellHistoryShow()
573 ret = memcpy_s(shellCB->shellBuf, SHOW_MAX_LEN, cmdMask->cmdString, shellCB->shellBufOffset); in OsShellHistoryShow()
Dshmsg.c204 if (shellCB->shellBufOffset <= (SHOW_MAX_LEN - 1)) { in ParseEnterKey()
218 if (shellCB->shellBufOffset <= (SHOW_MAX_LEN - 1)) { in ParseCancelKey()
233 if ((shellCB->shellBufOffset > 0) && (shellCB->shellBufOffset <= (SHOW_MAX_LEN - 1))) { in ParseDeleteKey()
248 if ((shellCB->shellBufOffset > 0) && (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1))) { in ParseTabKey()
262 if ((ch != '\0') && (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1))) { in ParseNormalChar()
277 (void)memset_s(shellCB->shellBuf, SHOW_MAX_LEN, 0, SHOW_MAX_LEN); in ShellCmdLineParse()
670 (void)memset_s(shellCB->shellBuf, SHOW_MAX_LEN, 0, SHOW_MAX_LEN); in ShellEntry()
/kernel/liteos_a/shell/full/src/base/
Dshmsg.c158 (VOID)memset_s(shellCB->shellBuf, SHOW_MAX_LEN, 0, SHOW_MAX_LEN); in ShellCmdLineParse()
162 if (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1)) { in ShellCmdLineParse()
172 if ((shellCB->shellBufOffset > 0) && (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1))) { in ShellCmdLineParse()
179 if ((shellCB->shellBufOffset > 0) && (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1))) { in ShellCmdLineParse()
194 if (shellCB->shellBufOffset < (SHOW_MAX_LEN - 1)) { in ShellCmdLineParse()
197 shellCB->shellBuf[SHOW_MAX_LEN - 1] = '\0'; in ShellCmdLineParse()
341 (VOID)memset_s(shellCB->shellBuf, SHOW_MAX_LEN, 0, SHOW_MAX_LEN); in ShellEntry()
Dshcmd.c71 CHAR *tempStr = (CHAR *)LOS_MemAlloc(m_aucSysMem0, SHOW_MAX_LEN << 1); in OsStrSeparateTabStrGet()
76 (VOID)memset_s(tempStr, SHOW_MAX_LEN << 1, 0, SHOW_MAX_LEN << 1); in OsStrSeparateTabStrGet()
77 shiftStr = tempStr + SHOW_MAX_LEN; in OsStrSeparateTabStrGet()
79 if (strncpy_s(tempStr, SHOW_MAX_LEN - 1, *tabStr, tabStrLen)) { in OsStrSeparateTabStrGet()
87 if (OsCmdKeyShift(tempStr, shiftStr, SHOW_MAX_LEN - 1)) { in OsStrSeparateTabStrGet()
319 if (*len == (SHOW_MAX_LEN - 1)) { in OsCompleteStr()
724 (VOID)memset_s(shellCB->shellBuf, SHOW_MAX_LEN, 0, SHOW_MAX_LEN); in OsShellHistoryShow()
725 ret = memcpy_s(shellCB->shellBuf, SHOW_MAX_LEN, cmdMask->cmdString, shellCB->shellBufOffset); in OsShellHistoryShow()
/kernel/liteos_a/apps/shell/include/
Dshell.h45 #define SHOW_MAX_LEN CMD_MAX_LEN macro
83 char shellBuf[SHOW_MAX_LEN];
/kernel/liteos_m/components/shell/include/
Dshell.h58 #define SHOW_MAX_LEN CMD_MAX_LEN macro
96 CHAR shellBuf[SHOW_MAX_LEN];
/kernel/liteos_a/shell/full/include/
Dshell.h59 #define SHOW_MAX_LEN CMD_MAX_LEN macro
98 CHAR shellBuf[SHOW_MAX_LEN];
/kernel/liteos_a/shell/full/src/cmds/
Ddate_shellcmd.c172 CHAR timebuf[SHOW_MAX_LEN] = {0}; in OsFormatPrintTime()
189 if (strftime(timebuf, SHOW_MAX_LEN - 1, formatStr + 1, tm)) { in OsFormatPrintTime()
/kernel/liteos_m/components/shell/src/cmds/
Dvfs_shellcmd.c51 #define SHOW_MAX_LEN CMD_MAX_LEN macro
52 #define TEMP_PATH_MAX (PATH_MAX + SHOW_MAX_LEN)
331 CHAR buf[SHOW_MAX_LEN] = {0}; in OsShellCmdPwd()
340 if (strncpy_s(buf, SHOW_MAX_LEN, shellWorkingDirectory, SHOW_MAX_LEN - 1) != EOK) { in OsShellCmdPwd()
Dfullpath.c41 #define TEMP_PATH_MAX (PATH_MAX + SHOW_MAX_LEN)
/kernel/liteos_a/fs/vfs/operation/
Dfullpath.c47 #define TEMP_PATH_MAX (PATH_MAX + SHOW_MAX_LEN)
/kernel/liteos_a/fs/vfs/vfs_cmd/
Dvfs_shellcmd.c474 char buf[SHOW_MAX_LEN] = {0}; in osShellCmdPwd()
490 if (strncpy_s(buf, SHOW_MAX_LEN, shell_working_directory, SHOW_MAX_LEN - 1) != EOK) { in osShellCmdPwd()