Changeset ce04ea44 in mainline for uspace/lib/c/generic/elf/elf_mod.c
- Timestamp:
- 2017-04-02T12:27:14Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- d4067a7
- Parents:
- 163fc09
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/elf/elf_mod.c
r163fc09 rce04ea44 138 138 int i, rc; 139 139 140 rc = read(elf->fd, &pos, header, sizeof(elf_header_t));140 rc = vfs_read(elf->fd, &pos, header, sizeof(elf_header_t)); 141 141 if (rc != sizeof(elf_header_t)) { 142 142 DPRINTF("Read error.\n"); … … 197 197 198 198 pos = header->e_phoff + i * sizeof(elf_segment_header_t); 199 rc = read(elf->fd, &pos, &segment_hdr,199 rc = vfs_read(elf->fd, &pos, &segment_hdr, 200 200 sizeof(elf_segment_header_t)); 201 201 if (rc != sizeof(elf_segment_header_t)) { … … 216 216 217 217 pos = header->e_shoff + i * sizeof(elf_section_header_t); 218 rc = read(elf->fd, &pos, §ion_hdr,218 rc = vfs_read(elf->fd, &pos, §ion_hdr, 219 219 sizeof(elf_section_header_t)); 220 220 if (rc != sizeof(elf_section_header_t)) { … … 387 387 */ 388 388 pos = entry->p_offset; 389 rc = read(elf->fd, &pos, seg_ptr, entry->p_filesz);389 rc = vfs_read(elf->fd, &pos, seg_ptr, entry->p_filesz); 390 390 if (rc < 0) { 391 391 DPRINTF("read error\n");
Note:
See TracChangeset
for help on using the changeset viewer.