Changes in uspace/app/taskdump/symtab.c [cde999a:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskdump/symtab.c
rcde999a rb7fd2a0 46 46 #include "include/symtab.h" 47 47 48 static int elf_hdr_check(elf_header_t *hdr);49 static int section_hdr_load(int fd, const elf_header_t *ehdr, int idx,48 static errno_t elf_hdr_check(elf_header_t *hdr); 49 static errno_t section_hdr_load(int fd, const elf_header_t *ehdr, int idx, 50 50 elf_section_header_t *shdr); 51 static int chunk_load(int fd, off64_t start, size_t size, void **ptr);51 static errno_t chunk_load(int fd, off64_t start, size_t size, void **ptr); 52 52 53 53 /** Load symbol table from an ELF file. … … 59 59 * ENOTSUP if file parsing failed. 60 60 */ 61 int symtab_load(const char *file_name, symtab_t **symtab)61 errno_t symtab_load(const char *file_name, symtab_t **symtab) 62 62 { 63 63 symtab_t *stab; … … 71 71 72 72 int fd; 73 int rc;73 errno_t rc; 74 74 size_t nread; 75 75 int i; … … 204 204 * @return EOK on success, ENOENT if no such symbol was found. 205 205 */ 206 int symtab_name_to_addr(symtab_t *st, const char *name, uintptr_t *addr)206 errno_t symtab_name_to_addr(symtab_t *st, const char *name, uintptr_t *addr) 207 207 { 208 208 size_t i; … … 241 241 * @return EOK on success or ENOENT if no matching symbol was found. 242 242 */ 243 int symtab_addr_to_name(symtab_t *st, uintptr_t addr, char **name,243 errno_t symtab_addr_to_name(symtab_t *st, uintptr_t addr, char **name, 244 244 size_t *offs) 245 245 { … … 287 287 * @return EOK on success or an error code. 288 288 */ 289 static int elf_hdr_check(elf_header_t *ehdr)289 static errno_t elf_hdr_check(elf_header_t *ehdr) 290 290 { 291 291 /* TODO */ … … 302 302 * @return EOK on success or EIO if I/O failed. 303 303 */ 304 static int section_hdr_load(int fd, const elf_header_t *elf_hdr, int idx,304 static errno_t section_hdr_load(int fd, const elf_header_t *elf_hdr, int idx, 305 305 elf_section_header_t *sec_hdr) 306 306 { 307 int rc;307 errno_t rc; 308 308 size_t nread; 309 309 aoff64_t pos = elf_hdr->e_shoff + idx * sizeof(elf_section_header_t); … … 327 327 * @return EOK on success or EIO on failure. 328 328 */ 329 static int chunk_load(int fd, off64_t start, size_t size, void **ptr)330 { 331 int rc;329 static errno_t chunk_load(int fd, off64_t start, size_t size, void **ptr) 330 { 331 errno_t rc; 332 332 size_t nread; 333 333 aoff64_t pos = start;
Note:
See TracChangeset
for help on using the changeset viewer.