Lines Matching refs:buf
203 void CompileLog::finish_log_on_error(outputStream* file, char* buf, int buflen) {
216 jio_snprintf(buf, buflen, UINTX_FORMAT, log->thread_id());
217 file->print_raw(buf);
220 size_t nr; // number read into buf from partial log
227 nr = read(partial_fd, buf, (int)nr);
230 file->write(buf, nr);
236 while ((nr = read(partial_fd, buf, buflen)) > 0) {
243 // { file->write(buf, nr); }
246 const char* bufp; // pointer into buf
248 for (bufp = buf; nr > 0; nr -= nw, bufp += nw) {
251 // First, scan ahead into the buf, checking the state machine.
297 char buf[4 * K];
298 finish_log_on_error(file, buf, sizeof(buf));