Lines Matching defs:cnt
482 * On success returns 0 and offsets are returned in allocated array with @cnt
485 int elf_resolve_syms_offsets(const char *binary_path, int cnt,
498 offsets = calloc(cnt, sizeof(*offsets));
499 symbols = calloc(cnt, sizeof(*symbols));
506 for (i = 0; i < cnt; i++) {
511 qsort(symbols, cnt, sizeof(*symbols), symbol_cmp);
531 found = bsearch(&tmp, symbols, cnt, sizeof(*symbols), symbol_cmp);
561 if (cnt != cnt_done) {
586 size_t cap = 0, cnt = 0;
609 cnt + 1);
613 offsets[cnt++] = elf_sym_offset(sym);
619 if (cnt)
623 if (cnt) {
625 *pcnt = cnt;