Changeset ff381a7 in mainline for uspace/app/taskdump/elf_core.c


Ignore:
Timestamp:
2015-11-02T20:54:19Z (9 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/app/taskdump/elf_core.c

    r3feeab2 rff381a7  
    207207        }
    208208
    209         rc = write_all(fd, &elf_hdr, sizeof(elf_hdr));
     209        rc = write(fd, &elf_hdr, sizeof(elf_hdr));
    210210        if (rc != sizeof(elf_hdr)) {
    211211                printf("Failed writing ELF header.\n");
     
    215215
    216216        for (i = 0; i < n_ph; ++i) {
    217                 rc = write_all(fd, &p_hdr[i], sizeof(p_hdr[i]));
     217                rc = write(fd, &p_hdr[i], sizeof(p_hdr[i]));
    218218                if (rc != sizeof(p_hdr[i])) {
    219219                        printf("Failed writing program header.\n");
     
    236236        note.type = NT_PRSTATUS;
    237237
    238         rc = write_all(fd, &note, sizeof(elf_note_t));
     238        rc = write(fd, &note, sizeof(elf_note_t));
    239239        if (rc != sizeof(elf_note_t)) {
    240240                printf("Failed writing note header.\n");
     
    243243        }
    244244
    245         rc = write_all(fd, "CORE", note.namesz);
     245        rc = write(fd, "CORE", note.namesz);
    246246        if (rc != (ssize_t) note.namesz) {
    247247                printf("Failed writing note header.\n");
     
    257257        }
    258258
    259         rc = write_all(fd, &pr_status, sizeof(elf_prstatus_t));
     259        rc = write(fd, &pr_status, sizeof(elf_prstatus_t));
    260260        if (rc != sizeof(elf_prstatus_t)) {
    261261                printf("Failed writing register data.\n");
     
    321321                }
    322322
    323                 rc = write_all(fd, buffer, to_copy);
     323                rc = write(fd, buffer, to_copy);
    324324                if (rc != (ssize_t) to_copy) {
    325325                        printf("Failed writing memory contents.\n");
Note: See TracChangeset for help on using the changeset viewer.