Changeset ff381a7 in mainline for uspace/lib/c/generic/elf/elf_load.c


Ignore:
Timestamp:
2015-11-02T20:54:19Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8513177
Parents:
3feeab2 (diff), 5265eea4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/elf/elf_load.c

    r3feeab2 rff381a7  
    9797        int fd;
    9898        int rc;
    99        
     99
    100100        fd = open(file_name, O_RDONLY);
    101101        if (fd < 0) {
     
    147147        int i, rc;
    148148
    149         rc = read_all(elf->fd, header, sizeof(elf_header_t));
     149        rc = read(elf->fd, header, sizeof(elf_header_t));
    150150        if (rc != sizeof(elf_header_t)) {
    151151                DPRINTF("Read error.\n");
     
    209209                        + i * sizeof(elf_segment_header_t), SEEK_SET);
    210210
    211                 rc = read_all(elf->fd, &segment_hdr,
     211                rc = read(elf->fd, &segment_hdr,
    212212                    sizeof(elf_segment_header_t));
    213213                if (rc != sizeof(elf_segment_header_t)) {
     
    231231                    + i * sizeof(elf_section_header_t), SEEK_SET);
    232232
    233                 rc = read_all(elf->fd, &section_hdr,
     233                rc = read(elf->fd, &section_hdr,
    234234                    sizeof(elf_section_header_t));
    235235                if (rc != sizeof(elf_section_header_t)) {
     
    399399                if (now > left) now = left;
    400400
    401                 rc = read_all(elf->fd, dp, now);
     401                rc = read(elf->fd, dp, now);
    402402
    403403                if (rc != (ssize_t) now) {
Note: See TracChangeset for help on using the changeset viewer.