Lines Matching refs:bufLen
155 int bufLen = iovcnt * sizeof(struct iovec); in UserIovCopy() local
156 if (bufLen < 0) { in UserIovCopy()
160 *iovBuf = (struct iovec*)LOS_MemAlloc(OS_SYS_MEM_ADDR, bufLen); in UserIovCopy()
165 if (LOS_ArchCopyFromUser(*iovBuf, iov, bufLen) != 0) { in UserIovCopy()
1710 size_t bufLen = n; in SysGetcwd() local
1713 if (bufLen > PATH_MAX) { in SysGetcwd()
1714 bufLen = PATH_MAX; in SysGetcwd()
1717 bufRet = (char *)LOS_MemAlloc(OS_SYS_MEM_ADDR, bufLen); in SysGetcwd()
1721 (void)memset_s(bufRet, bufLen, 0, bufLen); in SysGetcwd()
1723 ret = getcwd((buf ? bufRet : NULL), bufLen); in SysGetcwd()
1729 retVal = LOS_ArchCopyToUser(buf, bufRet, bufLen); in SysGetcwd()