Lines Matching refs:buffer
103 char buffer[32]; in readNamespacePid() local
104 size_t bytesRead = ::fread(buffer, 1, sizeof(buffer), file.get()); in readNamespacePid()
105 if (bytesRead < sizeof(buffer) && feof(file.get())) { in readNamespacePid()
107 buffer[bytesRead] = '\0'; in readNamespacePid()
108 if (isNumericString(buffer)) { in readNamespacePid()
110 return buffer; in readNamespacePid()
112 LOGE("File %s does not contain a valid pid '%s'", nsPath, buffer); in readNamespacePid()
186 static int sncatf(char* buffer, size_t size, const char* fmt, ...) { in sncatf() argument
187 size_t len = strnlen(buffer, size); in sncatf()
197 int printed = vsnprintf(buffer + len, size - len, fmt, args); in sncatf()
198 buffer[size - 1] = '\0'; in sncatf()
219 char buffer[4096]; in execCommand() local
223 int printed = snprintf(buffer, sizeof(buffer), in execCommand()
234 sncatf(buffer, sizeof(buffer), " \"%s\"", argv[i]); in execCommand()
236 sncatf(buffer, sizeof(buffer), " %s", argv[i]); in execCommand()
239 sncatf(buffer, sizeof(buffer), "': %s", strerror(error)); in execCommand()
240 LOGE("%s", buffer); in execCommand()