Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskdump/symtab.c

    rcde999a rb7fd2a0  
    4646#include "include/symtab.h"
    4747
    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,
     48static errno_t elf_hdr_check(elf_header_t *hdr);
     49static errno_t section_hdr_load(int fd, const elf_header_t *ehdr, int idx,
    5050    elf_section_header_t *shdr);
    51 static int chunk_load(int fd, off64_t start, size_t size, void **ptr);
     51static errno_t chunk_load(int fd, off64_t start, size_t size, void **ptr);
    5252
    5353/** Load symbol table from an ELF file.
     
    5959 *                      ENOTSUP if file parsing failed.
    6060 */
    61 int symtab_load(const char *file_name, symtab_t **symtab)
     61errno_t symtab_load(const char *file_name, symtab_t **symtab)
    6262{
    6363        symtab_t *stab;
     
    7171
    7272        int fd;
    73         int rc;
     73        errno_t rc;
    7474        size_t nread;
    7575        int i;
     
    204204 * @return      EOK on success, ENOENT if no such symbol was found.
    205205 */
    206 int symtab_name_to_addr(symtab_t *st, const char *name, uintptr_t *addr)
     206errno_t symtab_name_to_addr(symtab_t *st, const char *name, uintptr_t *addr)
    207207{
    208208        size_t i;
     
    241241 * @return      EOK on success or ENOENT if no matching symbol was found.
    242242 */
    243 int symtab_addr_to_name(symtab_t *st, uintptr_t addr, char **name,
     243errno_t symtab_addr_to_name(symtab_t *st, uintptr_t addr, char **name,
    244244    size_t *offs)
    245245{
     
    287287 * @return      EOK on success or an error code.
    288288 */
    289 static int elf_hdr_check(elf_header_t *ehdr)
     289static errno_t elf_hdr_check(elf_header_t *ehdr)
    290290{
    291291        /* TODO */
     
    302302 * @return              EOK on success or EIO if I/O failed.
    303303 */
    304 static int section_hdr_load(int fd, const elf_header_t *elf_hdr, int idx,
     304static errno_t section_hdr_load(int fd, const elf_header_t *elf_hdr, int idx,
    305305    elf_section_header_t *sec_hdr)
    306306{
    307         int rc;
     307        errno_t rc;
    308308        size_t nread;
    309309        aoff64_t pos = elf_hdr->e_shoff + idx * sizeof(elf_section_header_t);
     
    327327 * @return              EOK on success or EIO on failure.
    328328 */
    329 static int chunk_load(int fd, off64_t start, size_t size, void **ptr)
    330 {
    331         int rc;
     329static errno_t chunk_load(int fd, off64_t start, size_t size, void **ptr)
     330{
     331        errno_t rc;
    332332        size_t nread;
    333333        aoff64_t pos = start;
Note: See TracChangeset for help on using the changeset viewer.