• Home
  • Raw
  • Download

Lines Matching refs:buf

156             char buf[bufSize] = { 0 };  in RollLogFile()  local
157 uv_strerror_r(value, buf, bufSize); in RollLogFile()
158 PrintMessage("RollLogFile error log file %s not exist %s", path, buf); in RollLogFile()
169 char buf[bufSize] = { 0 }; in RollLogFile() local
170 uv_strerror_r(value, buf, bufSize); in RollLogFile()
171 PrintMessage("RollLogFile error unlink last:%s %s", last.c_str(), buf); in RollLogFile()
176 char buf[bufSize] = { 0 }; in RollLogFile() local
177 uv_strerror_r(value, buf, bufSize); in RollLogFile()
178 PrintMessage("RollLogFile error rename %s to %s %s", path, last.c_str(), buf); in RollLogFile()
202 char buf[BUF_SIZE_DEFAULT4] = { 0 }; // only 4k to avoid stack overflow in 32bit or L0 in PrintLogEx() local
205 const int retSize = vsnprintf_s(buf, sizeof(buf), sizeof(buf) - 1, msg, vaArgs); in PrintLogEx()
219 filePath.c_str(), line, buf); in PrintLogEx()
223 filePath.c_str(), line, buf); in PrintLogEx()
227 filePath.c_str(), line, buf); in PrintLogEx()
231 filePath.c_str(), line, buf); in PrintLogEx()
241 if (string(buf).back() == '\n') { in PrintLogEx()
248 threadIdString.c_str(), debugInfo.c_str(), buf, sep.c_str()); in PrintLogEx()
320 void AllocBufferCallback(uv_handle_t *handle, size_t sizeSuggested, uv_buf_t *buf) in AllocBufferCallback() argument
323 buf->base = (char *)new uint8_t[size](); in AllocBufferCallback()
324 if (buf->base) { in AllocBufferCallback()
325 buf->len = size - 1; in AllocBufferCallback()
335 char buf[bufSize] = { 0 }; in SendCallback() local
336 uv_strerror_r(status, buf, bufSize); in SendCallback()
337 WRITE_LOG(LOG_WARN, "SendCallback failed,status:%d %s", status, buf); in SendCallback()
458 int SendToStream(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen) in SendToStream() argument
469 if (memcpy_s(pDynBuf, bufLen, buf, bufLen)) { in SendToStream()
480 …int SendToStreamEx(uv_stream_t *handleStream, const uint8_t *buf, const int bufLen, uv_stream_t *h… in SendToStreamEx() argument
493 bfr.base = (char *)buf; in SendToStreamEx()
519 int SendToPollFd(int fd, const uint8_t *buf, const int bufLen) in SendToPollFd() argument
529 if (memcpy_s(pDynBuf, bufLen, buf, bufLen)) { in SendToPollFd()
735 int ReadBinFile(const char *pathName, void **buf, const size_t bufLen) in ReadBinFile() argument
764 …pDst = reinterpret_cast<uint8_t *>(buf); // The first address of the static array is the array ad… in ReadBinFile()
796 *buf = pDst; in ReadBinFile()
803 int WriteBinFile(const char *pathName, const uint8_t *buf, const size_t bufLen, bool newFile) in WriteBinFile() argument
828 uv_buf_t wbf = uv_buf_init((char *)buf, bufLen); in WriteBinFile()
857 char buf[BUF_SIZE_DEFAULT] = ""; in ProgramMutex() local
859 size_t size = sizeof(buf); in ProgramMutex()
860 if (uv_os_tmpdir(buf, &size) < 0) { in ProgramMutex()
864 …if (snprintf_s(bufPath, sizeof(bufPath), sizeof(bufPath) - 1, "%s%c.%s.pid", buf, Base::GetPathSep… in ProgramMutex()
884 if (snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "Global\\%s", procname) < 0) { in ProgramMutex()
888 HANDLE hMutex = CreateMutex(nullptr, FALSE, buf); in ProgramMutex()
1032 char buf[BUF_SIZE_DEFAULT] = { 0 }; in GetHdcAbsolutePath() local
1033 uv_err_name_r(ret, buf, BUF_SIZE_DEFAULT); in GetHdcAbsolutePath()
1034 WRITE_LOG(LOG_WARN, "uvexepath ret:%d error:%s", ret, buf); in GetHdcAbsolutePath()
1052 char buf[bufSize] = { 0 }; in CreateSocketPair() local
1053 strerror_r(errno, buf, bufSize); in CreateSocketPair()
1054 WRITE_LOG(LOG_WARN, "fcntl failed to set FD_CLOEXEC: %s", buf); in CreateSocketPair()
1174 char buf[bufSize] = { 0 }; in CheckDirectoryOrPath() local
1175 uv_strerror_r((int)req.result, buf, bufSize); in CheckDirectoryOrPath()
1176 BuildErrorString(localPath, "lstat", buf, errStr); in CheckDirectoryOrPath()
1189 char buf[bufSize] = { 0 }; in CheckDirectoryOrPath() local
1190 uv_strerror_r((int)req.result, buf, bufSize); in CheckDirectoryOrPath()
1191 BuildErrorString(localPath, op, buf, errStr); in CheckDirectoryOrPath()
1223 char buf[bufSize] = { 0 }; in TryCreateDirectory() local
1224 uv_strerror_r((int)req.result, buf, bufSize); in TryCreateDirectory()
1225 WRITE_LOG(LOG_WARN, "create dir %s failed %s", path.c_str(), buf); in TryCreateDirectory()
1562 char buf[bufSize] = { 0 }; in GetCwd() local
1563 uv_strerror_r(value, buf, bufSize); in GetCwd()
1564 WRITE_LOG(LOG_FATAL, "get path failed: %s", buf); in GetCwd()
1588 char buf[bufSize] = { 0 }; in GetTmpDir() local
1589 uv_strerror_r(value, buf, bufSize); in GetTmpDir()
1590 WRITE_LOG(LOG_FATAL, "get tmppath failed: %s", buf); in GetTmpDir()
1704 int ReadFromFd(int fd, void *buf, size_t count) in ReadFromFd() argument
1710 BOOL bWriteStat = ReadFile((HANDLE)s, buf, count, &bytesRead, &ov); in ReadFromFd()
1717 return TEMP_FAILURE_RETRY(read(fd, buf, count)); in ReadFromFd()
1721 int WriteToFd(int fd, const void *buf, size_t count) in WriteToFd() argument
1727 BOOL bWriteStat = WriteFile((HANDLE)s, buf, count, &bytesWrite, &ov); in WriteToFd()
1734 return TEMP_FAILURE_RETRY(write(fd, buf, count)); in WriteToFd()