Lines Matching refs:buf
30 * Write up to size bytes to buf. Return negative on error, and number of
33 static ssize_t write_entry(char *buf, size_t size, Uploader *u) {
49 r = snprintf(buf + pos, size - pos,
59 buf[size - 1] = '\n';
73 r = snprintf(buf + pos, size - pos,
83 buf[size - 1] = '\n';
98 r = snprintf(buf + pos, size - pos,
108 buf[size - 1] = '\n';
123 r = snprintf(buf + pos, size - pos,
133 buf[size - 1] = '\n';
173 memcpy(buf + pos,
178 buf[pos + tocopy] = '\n';
204 memcpy(buf + pos, u->field_data, len);
205 buf[pos + len] = '\n';
220 memcpy(buf + pos, &le64, 8);
232 buf[pos++] = '\n';
245 static size_t journal_input_callback(void *buf, size_t size, size_t nmemb, void *userp) {
279 w = write_entry((char*)buf + filled, size * nmemb - filled, u);