Changeset 6afc9d7 in mainline for uspace/app/taskdump/elf_core.c
- Timestamp:
- 2015-10-06T19:01:36Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0328987
- Parents:
- f1f7584
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskdump/elf_core.c
rf1f7584 r6afc9d7 207 207 } 208 208 209 rc = write _all(fd, &elf_hdr, sizeof(elf_hdr));209 rc = write(fd, &elf_hdr, sizeof(elf_hdr)); 210 210 if (rc != sizeof(elf_hdr)) { 211 211 printf("Failed writing ELF header.\n"); … … 215 215 216 216 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])); 218 218 if (rc != sizeof(p_hdr[i])) { 219 219 printf("Failed writing program header.\n"); … … 236 236 note.type = NT_PRSTATUS; 237 237 238 rc = write _all(fd, ¬e, sizeof(elf_note_t));238 rc = write(fd, ¬e, sizeof(elf_note_t)); 239 239 if (rc != sizeof(elf_note_t)) { 240 240 printf("Failed writing note header.\n"); … … 243 243 } 244 244 245 rc = write _all(fd, "CORE", note.namesz);245 rc = write(fd, "CORE", note.namesz); 246 246 if (rc != (ssize_t) note.namesz) { 247 247 printf("Failed writing note header.\n"); … … 257 257 } 258 258 259 rc = write _all(fd, &pr_status, sizeof(elf_prstatus_t));259 rc = write(fd, &pr_status, sizeof(elf_prstatus_t)); 260 260 if (rc != sizeof(elf_prstatus_t)) { 261 261 printf("Failed writing register data.\n"); … … 321 321 } 322 322 323 rc = write _all(fd, buffer, to_copy);323 rc = write(fd, buffer, to_copy); 324 324 if (rc != (ssize_t) to_copy) { 325 325 printf("Failed writing memory contents.\n");
Note:
See TracChangeset
for help on using the changeset viewer.