Lines Matching refs:rc
72 int rc = fread(&ehdr, sizeof(ehdr), 1, fp); in parse_elf64() local
73 if (rc != 1) return; in parse_elf64()
84 rc = fseek(fp, offset, SEEK_SET); in parse_elf64()
85 if (rc<0) { perror("fail to seek"); return; } in parse_elf64()
86 rc = fread(&phdr, sizeof(phdr), 1, fp); in parse_elf64()
87 if (rc != 1) { perror("fail to read program header"); return; } in parse_elf64()
106 rc = fseek(fp, offset, SEEK_SET); in parse_elf64()
107 if (rc<0) { perror("fail to seek"); return; } in parse_elf64()
108 rc = fread(&shdr, sizeof(shdr), 1, fp); in parse_elf64()
109 if (rc != 1) { perror("fail to read sec header"); return; } in parse_elf64()
128 rc = fseek(fp, offset+k, SEEK_SET); if (rc<0) continue; in parse_elf64()
129 rc = fread(&symb, sizeof(symb), 1, fp); if (rc != 1) continue; in parse_elf64()
135 rc = fseek(fp, headers[link].sh_offset+ix, SEEK_SET); if (rc<0) continue; in parse_elf64()
154 int rc = fread(ident, sizeof(ident), 1, fp); in load_symbol_from_file() local
155 if (rc != 1) { perror("fail to read ident"); err=-1; goto end; } in load_symbol_from_file()
158 rc = fseek(fp, 0, SEEK_SET); if (rc<0) { perror("fail to rewind"); goto end; } in load_symbol_from_file()