Lines Matching defs:to

9  * Unless required by applicable law or agreed to in writing, software
401 WRITE_LOG(LOG_WARN, "Failed to open TEMP dir");
445 WRITE_LOG(LOG_WARN, "Failed to open log dir");
550 PrintMessage("rename %s to %s", path, last.c_str());
556 PrintMessage("RollLogFile error rename %s to %s %s", path, last.c_str(), buf);
586 char buf[BUF_SIZE_DEFAULT4] = { 0 }; // only 4k to avoid stack overflow in 32bit or L0
681 // if MAX_SIZE_IOBUF==5k,bufMaxSize at least 40k. It must be set to io 8 times is more appropriate,
732 // UV_RUN_DEFAULT: Runs the event loop until the reference count drops to zero. Always returns zero.
773 // UV_RUN_DEFAULT: Runs the event loop until the reference count drops to zero. Always returns zero.
906 // connected state). Bound sockets or pipes will be assumed to be servers.
943 WRITE_LOG(LOG_WARN, "SendToPollFd, send %d bytes to fd %d failed [%d][%s]", bufLen, fd, ret, buf);
1216 // >0: read max nBuffLen bytes to *buff
1355 // no need to CanonicalizeSpecPath, else not work
1372 // CheckOrNew is true means to confirm whether the service is running
1425 WRITE_LOG(LOG_DEBUG, "Write mutext to %s, pid:%s", bufPath, pidBuf);
1548 WRITE_LOG(LOG_WARN, "fcntl failed to set FD_CLOEXEC: %s", buf);
1650 // avoid to use stringstream
1948 string ReplaceAll(string str, const string from, const string to)
1952 str.replace(startPos, from.length(), to);
1953 startPos += to.length(); // Handles case where 'to' is a substring of 'from'
1980 UINT to = CP_UTF8;
1984 to = CP_ACP;
2000 WRITE_LOG(LOG_FATAL, "MultiByteToWideChar failed to wstr %s error:%lu", src, err);
2004 count = WideCharToMultiByte(to, 0, wstr, -1, nullptr, 0, nullptr, nullptr);
2017 count = WideCharToMultiByte(to, 0, wstr, -1, ustr, count, nullptr, nullptr);
2020 WRITE_LOG(LOG_FATAL, "WideCharToMultiByte failed to ustr %s error:%lu", wstr, err);
2372 // NOTE: This function relies on the caller to guarantee that
2373 // the input parameter is not null and to check the opened handle state.