Changeset ed903174 in mainline for uspace/app/taskdump/symtab.c
- Timestamp:
- 2010-02-10T23:51:23Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e70edd1
- Parents:
- b32c604f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskdump/symtab.c
rb32c604f red903174 49 49 static int 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, off _t start, off_t size, void **ptr);51 static int chunk_load(int fd, off64_t start, size_t size, void **ptr); 52 52 static int read_all(int fd, void *buf, size_t len); 53 53 … … 65 65 elf_header_t elf_hdr; 66 66 elf_section_header_t sec_hdr; 67 off_t shstrt_start, shstrt_size; 67 off64_t shstrt_start; 68 size_t shstrt_size; 68 69 char *shstrt, *sec_name; 69 70 void *data; … … 307 308 rc = lseek(fd, elf_hdr->e_shoff + idx * sizeof(elf_section_header_t), 308 309 SEEK_SET); 309 if (rc == (off _t) -1)310 if (rc == (off64_t) -1) 310 311 return EIO; 311 312 … … 328 329 * @return EOK on success or EIO on failure. 329 330 */ 330 static int chunk_load(int fd, off _t start, off_t size, void **ptr)331 static int chunk_load(int fd, off64_t start, size_t size, void **ptr) 331 332 { 332 333 int rc; 333 334 334 335 rc = lseek(fd, start, SEEK_SET); 335 if (rc == (off _t) -1) {336 if (rc == (off64_t) -1) { 336 337 printf("failed seeking chunk\n"); 337 338 *ptr = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.