Home
last modified time | relevance | path

Searched refs:pidBuf (Results 1 - 4 of 4) sorted by relevance

/developtools/hdc/hdc_rust/src/cffi/
H A Dutils.cpp71 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 Dclient.cpp61 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 Dbase.cpp1341 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 Dhook_client.cpp143 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