• Home
  • Raw
  • Download

Lines Matching refs:buf

159             char buf[bufSize] = { 0 };  in RollLogFile()  local
160 uv_strerror_r(value, buf, bufSize); in RollLogFile()
161 PrintMessage("RollLogFile error log file %s not exist %s", path, buf); in RollLogFile()
172 char buf[bufSize] = { 0 }; in RollLogFile() local
173 uv_strerror_r(value, buf, bufSize); in RollLogFile()
174 PrintMessage("RollLogFile error unlink last:%s %s", last.c_str(), buf); in RollLogFile()
179 char buf[bufSize] = { 0 }; in RollLogFile() local
180 uv_strerror_r(value, buf, bufSize); in RollLogFile()
181 PrintMessage("RollLogFile error rename %s to %s %s", path, last.c_str(), buf); in RollLogFile()
205 char buf[BUF_SIZE_DEFAULT4] = { 0 }; // only 4k to avoid stack overflow in 32bit or L0 in PrintLogEx() local
208 const int retSize = vsnprintf_s(buf, sizeof(buf), sizeof(buf) - 1, msg, vaArgs); in PrintLogEx()
222 filePath.c_str(), line, buf); in PrintLogEx()
226 filePath.c_str(), line, buf); in PrintLogEx()
230 filePath.c_str(), line, buf); in PrintLogEx()
234 filePath.c_str(), line, buf); in PrintLogEx()
244 if (string(buf).back() == '\n') { in PrintLogEx()
251 threadIdString.c_str(), debugInfo.c_str(), buf, sep.c_str()); in PrintLogEx()
323 void AllocBufferCallback(uv_handle_t *handle, size_t sizeSuggested, uv_buf_t *buf) in AllocBufferCallback() argument
326 buf->base = (char *)new uint8_t[size](); in AllocBufferCallback()
327 if (buf->base) { in AllocBufferCallback()
328 buf->len = size - 1; in AllocBufferCallback()
338 char buf[bufSize] = { 0 }; in SendCallback() local
339 uv_strerror_r(status, buf, bufSize); in SendCallback()
340 WRITE_LOG(LOG_WARN, "SendCallback failed,status:%d %s", status, buf); in SendCallback()
409 int SendToStream(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen) in SendToStream() argument
420 if (memcpy_s(pDynBuf, bufLen, buf, bufLen)) { in SendToStream()
431 …int SendToStreamEx(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen, uv_stream_t *h… in SendToStreamEx() argument
444 bfr.base = (char *)buf; in SendToStreamEx()
474 int SendToPollFd(int fd, const uint8_t *buf, const int bufLen) in SendToPollFd() argument
484 if (memcpy_s(pDynBuf, bufLen, buf, bufLen)) { in SendToPollFd()
690 int ReadBinFile(const char *pathName, void **buf, const size_t bufLen) in ReadBinFile() argument
719 …pDst = reinterpret_cast<uint8_t *>(buf); // The first address of the static array is the array ad… in ReadBinFile()
751 *buf = pDst; in ReadBinFile()
758 int WriteBinFile(const char *pathName, const uint8_t *buf, const size_t bufLen, bool newFile) in WriteBinFile() argument
783 uv_buf_t wbf = uv_buf_init((char *)buf, bufLen); in WriteBinFile()
812 char buf[BUF_SIZE_DEFAULT] = ""; in ProgramMutex() local
814 size_t size = sizeof(buf); in ProgramMutex()
815 if (uv_os_tmpdir(buf, &size) < 0) { in ProgramMutex()
819 …if (snprintf_s(bufPath, sizeof(bufPath), sizeof(bufPath) - 1, "%s%c.%s.pid", buf, Base::GetPathSep… in ProgramMutex()
839 if (snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "Global\\%s", procname) < 0) { in ProgramMutex()
843 HANDLE hMutex = CreateMutex(nullptr, FALSE, buf); in ProgramMutex()
987 char buf[BUF_SIZE_DEFAULT] = { 0 }; in GetHdcAbsolutePath() local
988 uv_err_name_r(ret, buf, BUF_SIZE_DEFAULT); in GetHdcAbsolutePath()
989 WRITE_LOG(LOG_WARN, "uvexepath ret:%d error:%s", ret, buf); in GetHdcAbsolutePath()
1007 char buf[bufSize] = { 0 }; in CreateSocketPair() local
1008 strerror_r(errno, buf, bufSize); in CreateSocketPair()
1009 WRITE_LOG(LOG_WARN, "fcntl failed to set FD_CLOEXEC: %s", buf); in CreateSocketPair()
1129 char buf[bufSize] = { 0 }; in CheckDirectoryOrPath() local
1130 uv_strerror_r((int)req.result, buf, bufSize); in CheckDirectoryOrPath()
1131 BuildErrorString(localPath, "lstat", buf, errStr); in CheckDirectoryOrPath()
1144 char buf[bufSize] = { 0 }; in CheckDirectoryOrPath() local
1145 uv_strerror_r((int)req.result, buf, bufSize); in CheckDirectoryOrPath()
1146 BuildErrorString(localPath, op, buf, errStr); in CheckDirectoryOrPath()
1515 char buf[bufSize] = { 0 }; in GetCwd() local
1516 uv_strerror_r(value, buf, bufSize); in GetCwd()
1517 WRITE_LOG(LOG_FATAL, "get path failed: %s", buf); in GetCwd()
1541 char buf[bufSize] = { 0 }; in GetTmpDir() local
1542 uv_strerror_r(value, buf, bufSize); in GetTmpDir()
1543 WRITE_LOG(LOG_FATAL, "get tmppath failed: %s", buf); in GetTmpDir()
1660 int ReadFromFd(int fd, void *buf, size_t count) in ReadFromFd() argument
1666 BOOL bWriteStat = ReadFile((HANDLE)s, buf, count, &bytesRead, &ov); in ReadFromFd()
1673 return TEMP_FAILURE_RETRY(read(fd, buf, count)); in ReadFromFd()
1677 int WriteToFd(int fd, const void *buf, size_t count) in WriteToFd() argument
1683 BOOL bWriteStat = WriteFile((HANDLE)s, buf, count, &bytesWrite, &ov); in WriteToFd()
1690 return TEMP_FAILURE_RETRY(write(fd, buf, count)); in WriteToFd()