Searched refs:nmemb (Results 1 – 6 of 6) sorted by relevance
/systemd-251/src/basic/ |
D | sort-util.h | 14 void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size, 29 size_t nmemb, size_t size, comparison_fn_t compar) { in bsearch_safe() argument 30 if (nmemb <= 0) in bsearch_safe() 34 return bsearch(key, base, nmemb, size, compar); in bsearch_safe() 48 static inline void _qsort_safe(void *base, size_t nmemb, size_t size, comparison_fn_t compar) { in _qsort_safe() argument 49 if (nmemb <= 1) in _qsort_safe() 53 qsort(base, nmemb, size, compar); in _qsort_safe() 64 static inline void qsort_r_safe(void *base, size_t nmemb, size_t size, comparison_userdata_fn_t com… in qsort_r_safe() argument 65 if (nmemb <= 1) in qsort_r_safe() 69 qsort_r(base, nmemb, size, compar, userdata); in qsort_r_safe()
|
D | sort-util.c | 7 void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size, in xbsearch_r() argument 13 assert(!size_multiply_overflow(nmemb, size)); in xbsearch_r() 16 u = nmemb; in xbsearch_r()
|
/systemd-251/src/journal-remote/ |
D | journal-upload.c | 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() [all …]
|
D | journal-upload-journal.c | 253 static size_t journal_input_callback(void *buf, size_t size, size_t nmemb, void *userp) { in journal_input_callback() argument 261 assert(nmemb <= SSIZE_MAX / size); in journal_input_callback() 267 while (j && filled < size * nmemb) { in journal_input_callback() 289 w = write_entry((char*)buf + filled, size * nmemb - filled, u); in journal_input_callback()
|
D | journal-upload.h | 64 size_t nmemb,
|
/systemd-251/src/import/ |
D | pull-job.c | 482 static size_t pull_job_write_callback(void *contents, size_t size, size_t nmemb, void *userdata) { in pull_job_write_callback() argument 484 size_t sz = size * nmemb; in pull_job_write_callback() 543 static size_t pull_job_header_callback(void *contents, size_t size, size_t nmemb, void *userdata) { in pull_job_header_callback() argument 545 size_t sz = size * nmemb; in pull_job_header_callback()
|