Lines Matching defs:cnt
287 * On success returns 0 and offsets are returned in allocated array with @cnt
290 int elf_resolve_syms_offsets(const char *binary_path, int cnt,
303 offsets = calloc(cnt, sizeof(*offsets));
304 symbols = calloc(cnt, sizeof(*symbols));
311 for (i = 0; i < cnt; i++) {
316 qsort(symbols, cnt, sizeof(*symbols), symbol_cmp);
336 found = bsearch(&tmp, symbols, cnt, sizeof(*symbols), symbol_cmp);
366 if (cnt != cnt_done) {
391 size_t cap = 0, cnt = 0;
414 cnt + 1);
418 offsets[cnt++] = elf_sym_offset(sym);
424 if (cnt)
428 if (cnt) {
430 *pcnt = cnt;