Searched refs:cmdLine (Results 1 – 2 of 2) sorted by relevance
/kernel/liteos_a/apps/shell/src/ |
D | main.c | 92 char *cmdLine = NULL; in DoShellExec() local 101 cmdLine = (char *)malloc(len); in DoShellExec() 102 if (!cmdLine) { in DoShellExec() 105 errno_t ret1 = memset_s(cmdLine, len, 0, len); in DoShellExec() 107 free(cmdLine); in DoShellExec() 112 (void)strcat_s(cmdLine, len, argv[j]); in DoShellExec() 113 (void)strcat_s(cmdLine, len, " "); in DoShellExec() 116 cmdLine[len - 2] = '\0'; /* 2, (len - 2) is the end of cmdline buf */ in DoShellExec() 117 ret = syscall(__NR_shellexec, argv[0], cmdLine); in DoShellExec() 118 free(cmdLine); in DoShellExec()
|
/kernel/liteos_a/fs/patchfs/ |
D | los_partition_utils.c | 115 CHAR *cmdLine = NULL; in GetPartitionBootArgs() local 119 cmdLine = (CHAR *)malloc(COMMAND_LINE_SIZE); in GetPartitionBootArgs() 120 if (cmdLine == NULL) { in GetPartitionBootArgs() 131 cmdLineLen = mtd->read(mtd, COMMAND_LINE_ADDR, COMMAND_LINE_SIZE, cmdLine); in GetPartitionBootArgs() 141 len = strlen(cmdLine + i); in GetPartitionBootArgs() 142 tmp = strstr(cmdLine + i, argName); in GetPartitionBootArgs() 148 free(cmdLine); in GetPartitionBootArgs() 156 free(cmdLine); in GetPartitionBootArgs()
|