Searched refs:pidBuf (Results 1 - 4 of 4) sorted by relevance
/developtools/hdc/hdc_rust/src/cffi/ |
H A D | utils.cpp | 71 char pidBuf[BUF_SIZE_TINY] = ""; in ProgramMutex() local 73 if (snprintf_s(pidBuf, sizeof(pidBuf), sizeof(pidBuf) - 1, "%d", pid) < 0) { in ProgramMutex() 103 rc = fwrite(&pidBuf, sizeof(char), strlen(pidBuf), fp); in ProgramMutex() 130 char pidBuf[BUF_SIZE_TINY] = ""; in ProgramMutex() local 132 if (snprintf_s(pidBuf, sizeof(pidBuf), sizeof(pidBuf) in ProgramMutex() [all...] |
/developtools/hdc/src/host/ |
H A D | client.cpp | 61 char pidBuf[BUF_SIZE_TINY] = ""; in GetLastPID() local 68 Base::ReadBinFile(path.c_str(), reinterpret_cast<void **>(&pidBuf), BUF_SIZE_TINY); in GetLastPID() 69 int pid = atoi(pidBuf); // pid maybe 0 in GetLastPID()
|
/developtools/hdc/src/common/ |
H A D | base.cpp | 1341 char pidBuf[BUF_SIZE_TINY] = ""; in ProgramMutex() local 1352 if (snprintf_s(pidBuf, sizeof(pidBuf), sizeof(pidBuf) - 1, "%d", pid) < 0) { in ProgramMutex() 1415 uv_buf_t wbf = uv_buf_init(pidBuf, strlen(pidBuf)); in ProgramMutex() 1425 WRITE_LOG(LOG_DEBUG, "Write mutext to %s, pid:%s", bufPath, pidBuf); in ProgramMutex()
|
/developtools/profiler/device/plugins/native_hook/src/ |
H A D | hook_client.cpp | 143 char pidBuf[11] = {0}; /* 11: 32 bits to the maximum length of a string */ in ConvertPid() local 146 if ((*str >= '0') && (*str <= '9') && (static_cast<unsigned long>(count) < sizeof(pidBuf) - 1)) { in ConvertPid() 147 pidBuf[count] = *str; in ConvertPid() 158 return atoi(pidBuf); in ConvertPid()
|
Completed in 8 milliseconds