Lines Matching refs:rval
116 kern_return_t rval = KERN_FAILURE;
126 rval = kxld_array_init(&symtab->syms, sizeof(KXLDSym), src->nsyms);
127 require_noerr(rval, finish);
162 KXLD_3264_FUNC(is_32_bit, rval,
165 require_noerr(rval, finish);
172 rval = KERN_SUCCESS;
175 return rval;
185 kern_return_t rval = KERN_FAILURE;
192 require_action(sym, finish, rval=KERN_FAILURE);
194 rval = kxld_sym_init_from_macho32(sym, symtab->strings, &src_syms[i]);
195 require_noerr(rval, finish);
198 rval = KERN_SUCCESS;
201 return rval;
212 kern_return_t rval = KERN_FAILURE;
219 require_action(sym, finish, rval=KERN_FAILURE);
221 rval = kxld_sym_init_from_macho64(sym, symtab->strings, &src_syms[i]);
222 require_noerr(rval, finish);
225 rval = KERN_SUCCESS;
228 return rval;
379 kern_return_t rval = KERN_FAILURE;
381 rval = kxld_array_get_index(&symtab->syms, sym, symindex);
382 require_noerr(rval, finish);
384 rval = KERN_SUCCESS;
387 return rval;
437 kern_return_t rval = KERN_FAILURE;
452 finish, rval=KERN_FAILURE);
482 rval=KERN_FAILURE);
494 KXLD_3264_FUNC(is_32_bit, rval,
497 require_noerr(rval, finish);
500 stroff += rval;
508 rval = KERN_SUCCESS;
511 return rval;
536 kern_return_t rval = KERN_FAILURE;
544 rval = KERN_SUCCESS;
553 rval = kxld_dict_init(&symtab->cxx_index, kxld_dict_kxldaddr_hash,
555 require_noerr(rval, finish);
559 rval = kxld_dict_insert(&symtab->cxx_index, &sym->base_addr, sym);
560 require_noerr(rval, finish);
564 rval = KERN_SUCCESS;
566 return rval;
582 kern_return_t rval = KERN_FAILURE;
590 rval = KERN_SUCCESS;
599 rval = kxld_dict_init(&symtab->name_index, kxld_dict_string_hash,
601 require_noerr(rval, finish);
605 rval = kxld_dict_insert(&symtab->name_index, sym->name, sym);
606 require_noerr(rval, finish);
610 rval = KERN_SUCCESS;
613 return rval;
628 kern_return_t rval = KERN_FAILURE;
640 require_action(sect, finish, rval=KERN_FAILURE);
644 rval = KERN_SUCCESS;
648 return rval;
661 kern_return_t rval = KERN_FAILURE;
665 rval = kxld_array_resize(&symtab->syms, symindex + 1);
666 require_noerr(rval, finish);
671 rval = kxld_dict_insert(&symtab->name_index, sym->name, sym);
672 require_noerr(rval, finish);
674 rval = KERN_SUCCESS;
678 return rval;