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


Ignore:
Timestamp:
2017-04-02T12:27:14Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d4067a7
Parents:
163fc09
Message:

Rename read() to vfs_read() and write() to vfs_write()

File:
1 edited

Legend:

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

    r163fc09 rce04ea44  
    207207        }
    208208
    209         rc = write(fd, &pos, &elf_hdr, sizeof(elf_hdr));
     209        rc = vfs_write(fd, &pos, &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(fd, &pos, &p_hdr[i], sizeof(p_hdr[i]));
     217                rc = vfs_write(fd, &pos, &p_hdr[i], sizeof(p_hdr[i]));
    218218                if (rc != sizeof(p_hdr[i])) {
    219219                        printf("Failed writing program header.\n");
     
    232232        note.type = NT_PRSTATUS;
    233233
    234         rc = write(fd, &pos, &note, sizeof(elf_note_t));
     234        rc = vfs_write(fd, &pos, &note, sizeof(elf_note_t));
    235235        if (rc != sizeof(elf_note_t)) {
    236236                printf("Failed writing note header.\n");
     
    239239        }
    240240
    241         rc = write(fd, &pos, "CORE", note.namesz);
     241        rc = vfs_write(fd, &pos, "CORE", note.namesz);
    242242        if (rc != (ssize_t) note.namesz) {
    243243                printf("Failed writing note header.\n");
     
    248248        pos = ALIGN_UP(pos, word_size);
    249249
    250         rc = write(fd, &pos, &pr_status, sizeof(elf_prstatus_t));
     250        rc = vfs_write(fd, &pos, &pr_status, sizeof(elf_prstatus_t));
    251251        if (rc != sizeof(elf_prstatus_t)) {
    252252                printf("Failed writing register data.\n");
     
    310310                }
    311311
    312                 rc = write(fd, pos, buffer, to_copy);
     312                rc = vfs_write(fd, pos, buffer, to_copy);
    313313                if (rc != (ssize_t) to_copy) {
    314314                        printf("Failed writing memory contents.\n");
Note: See TracChangeset for help on using the changeset viewer.