/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_user_container_002.cpp | 51 int strLen = strlen(idMapStr); in WriteIdMap() local 57 int ret = write(uidMap, idMapStr, strLen); in WriteIdMap() 58 if (ret != strLen) { in WriteIdMap() 70 ret = write(gidMap, idMapStr, strLen); in WriteIdMap() 71 if (ret != strLen) { in WriteIdMap()
|
H A D | It_time_container_004.cpp | 68 int strLen = strlen(timeOff); in WriteProcTime() local 74 ret = write(fd, timeOff, strLen); in WriteProcTime() 75 if (ret != strLen) { in WriteProcTime()
|
H A D | It_time_container_005.cpp | 68 int strLen = strlen(timeOff); in WriteProcTime() local 74 ret = write(fd, timeOff, strLen); in WriteProcTime() 75 if (ret != strLen) { in WriteProcTime()
|
H A D | It_time_container_007.cpp | 51 int strLen = strlen(timeOff); in WriteProcTime() local 57 ret = write(fd, timeOff, strLen); in WriteProcTime()
|
H A D | It_time_container_002.cpp | 86 int strLen = strlen(timeOff); in WriteProcTime() local 92 ret = write(fd, timeOff, strLen); in WriteProcTime() 93 if (ret != strLen) { in WriteProcTime()
|
H A D | It_time_container_008.cpp | 50 int strLen = strlen(timeOff); in WriteProcTime() local 56 ret = write(fd, timeOff, strLen); in WriteProcTime()
|
/kernel/liteos_a/shell/full/src/cmds/ |
H A D | date_shellcmd.c | 134 UINT32 strLen = strlen(str); in OsStrToTm() local 135 if (strLen == 8) { /* 8:Time format string length, such as hh:mm:ss or yyyymmdd */ in OsStrToTm() 141 } else if (strLen == 10) { /* 10:Time format string length,such as yyyy/mm/dd */ in OsStrToTm() 143 } else if (strLen == 5) { /* 5:Time format string length,such as hh:mm or mm/dd */ in OsStrToTm() 149 } else if (strLen == 7) { /* 7:Time format string length,such as yyyy/mm */ in OsStrToTm()
|
/kernel/liteos_a/kernel/extended/dynload/src/ |
H A D | los_exec_elf.c | 91 UINT32 strLen;
in OsCopyUserParam() local 103 strLen = strlen(fileName);
in OsCopyUserParam() 104 err = memcpy_s(kfileName, PATH_MAX, fileName, strLen);
in OsCopyUserParam()
|
H A D | los_load_elf.c | 640 UINT32 offset, strLen;
in OsCopyParams() local 658 strLen = strlen(strPtr) + 1;
in OsCopyParams() 660 strLen = LOS_StrnlenUser(strPtr, PATH_MAX);
in OsCopyParams() 662 if (strLen < 1) {
in OsCopyParams() 667 if (offset < strLen) {
in OsCopyParams() 672 loadInfo->topOfMem -= strLen;
in OsCopyParams() 673 offset -= strLen;
in OsCopyParams() 677 err = memcpy_s((VOID *)(UINTPTR)(kvaddr + offset), strLen, strPtr, strLen);
in OsCopyParams() 679 err = LOS_ArchCopyFromUser((VOID *)(UINTPTR)(kvaddr + offset), strPtr, strLen);
in OsCopyParams() [all...] |
/kernel/liteos_a/syscall/ |
H A D | fs_syscall.c | 342 uint8_t strLen = 0; in ProcRealProcessDirGet() local 355 char *pidStr = NextName(fullPath + procLen, &strLen); in ProcRealProcessDirGet() 366 if (memcpy_s(pidBuf, PATH_MAX, pidStr, strLen) != EOK) { in ProcRealProcessDirGet() 370 pidBuf[strLen] = '\0'; in ProcRealProcessDirGet() 384 if (snprintf_s(path, PATH_MAX + 1, PATH_MAX, "/proc/%d%s", rootPid, (pidStr + strLen)) < 0) { in ProcRealProcessDirGet()
|