Changeset 6afc9d7 in mainline for uspace/app/taskdump/symtab.c


Ignore:
Timestamp:
2015-10-06T19:01:36Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0328987
Parents:
f1f7584
Message:

UNIX-like I/O functions should use errno to return error code for many reasons.

File:
1 edited

Legend:

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

    rf1f7584 r6afc9d7  
    8888        }
    8989
    90         rc = read_all(fd, &elf_hdr, sizeof(elf_header_t));
     90        rc = read(fd, &elf_hdr, sizeof(elf_header_t));
    9191        if (rc != sizeof(elf_header_t)) {
    9292                printf("failed reading elf header\n");
     
    310310                return EIO;
    311311
    312         rc = read_all(fd, sec_hdr, sizeof(elf_section_header_t));
     312        rc = read(fd, sec_hdr, sizeof(elf_section_header_t));
    313313        if (rc != sizeof(elf_section_header_t))
    314314                return EIO;
     
    346346        }
    347347
    348         rc = read_all(fd, *ptr, size);
     348        rc = read(fd, *ptr, size);
    349349        if (rc != (ssize_t) size) {
    350350                printf("failed reading chunk\n");
Note: See TracChangeset for help on using the changeset viewer.