Lines Matching refs:buf
261 char buf[256];
273 (void)md_snprintf(buf, sizeof(buf), "System %s failed: %s\n",
275 HPROF_ERROR(JNI_TRUE, buf);
279 system_write(int fd, void *buf, int len, jboolean socket)
285 res = md_send(fd, buf, len, 0);
290 res = md_write(fd, buf, len);
321 write_raw(void *buf, int len)
327 system_write(gdata->fd, buf, len, gdata->socket);
331 (void)memcpy(gdata->write_buffer + gdata->write_buffer_index, buf, len);
417 char buf[1024];
420 (void)md_vsnprintf(buf, sizeof(buf), fmt, args);
421 buf[sizeof(buf)-1] = 0;
422 write_raw(buf, (int)strlen(buf));
446 heap_raw(void *buf, int len)
453 system_write(gdata->heap_fd, buf, len, JNI_FALSE);
457 (void)memcpy(gdata->heap_buffer + gdata->heap_buffer_index, buf, len);
535 char buf[1024];
538 (void)md_vsnprintf(buf, sizeof(buf), fmt, args);
539 buf[sizeof(buf)-1] = 0;
540 heap_raw(buf, (int)strlen(buf));
741 char buf[FILENAME_MAX+80];
743 (void)md_snprintf(buf, sizeof(buf), "Can't open %s", prelude_file);
744 buf[sizeof(buf)-1] = 0;
745 HPROF_ERROR(JNI_TRUE, buf);
751 char buf[1024]; /* File is small, small buffer ok here */
753 nbytes = md_read(prelude_fd, buf, sizeof(buf));
761 write_raw(buf, nbytes);
1868 char *buf;
1877 buf = HPROF_MALLOC(buf_len);
1878 HPROF_ASSERT(buf!=NULL);
1887 nbytes = md_read(fd, buf, count);
1896 (*raw_interface)(buf, nbytes);
1904 HPROF_FREE(buf);