Lines Matching refs:nmemb
80 size_t nmemb, in output_callback() argument
87 size*nmemb, (int)(size*nmemb), buf); in output_callback()
89 if (nmemb && !u->answer) { in output_callback()
90 u->answer = strndup(buf, size*nmemb); in output_callback()
92 … log_warning("Failed to store server answer (%zu bytes): out of memory", size*nmemb); in output_callback()
95 return size * nmemb; in output_callback()
178 size_t nmemb, in start_upload() argument
293 static size_t fd_input_callback(void *buf, size_t size, size_t nmemb, void *userp) { in fd_input_callback() argument
298 assert(nmemb < SSIZE_MAX / size); in fd_input_callback()
303 assert(!size_multiply_overflow(size, nmemb)); in fd_input_callback()
305 n = read(u->input, buf, size * nmemb); in fd_input_callback()
306 log_debug("%s: allowed %zu, read %zd", __func__, size*nmemb, n); in fd_input_callback()