Searched refs:SHOW_MAX_LEN (Results 1 – 12 of 12) sorted by relevance
/kernel/liteos_a/apps/shell/src/ |
D | shcmd.c | 56 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()
|
D | shmsg.c | 204 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/ |
D | shmsg.c | 158 (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()
|
D | shcmd.c | 71 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/ |
D | shell.h | 45 #define SHOW_MAX_LEN CMD_MAX_LEN macro 83 char shellBuf[SHOW_MAX_LEN];
|
/kernel/liteos_m/components/shell/include/ |
D | shell.h | 58 #define SHOW_MAX_LEN CMD_MAX_LEN macro 96 CHAR shellBuf[SHOW_MAX_LEN];
|
/kernel/liteos_a/shell/full/include/ |
D | shell.h | 59 #define SHOW_MAX_LEN CMD_MAX_LEN macro 98 CHAR shellBuf[SHOW_MAX_LEN];
|
/kernel/liteos_a/shell/full/src/cmds/ |
D | date_shellcmd.c | 172 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/ |
D | vfs_shellcmd.c | 51 #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()
|
D | fullpath.c | 41 #define TEMP_PATH_MAX (PATH_MAX + SHOW_MAX_LEN)
|
/kernel/liteos_a/fs/vfs/operation/ |
D | fullpath.c | 47 #define TEMP_PATH_MAX (PATH_MAX + SHOW_MAX_LEN)
|
/kernel/liteos_a/fs/vfs/vfs_cmd/ |
D | vfs_shellcmd.c | 474 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()
|