Changeset 58898d1d in mainline for uspace/lib/posix/source/stdio.c
- Timestamp:
- 2017-03-24T20:31:54Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e9b2534
- Parents:
- c9e3692
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/stdio.c
rc9e3692 r58898d1d 344 344 static int _dprintf_str_write(const char *str, size_t size, void *fd) 345 345 { 346 ssize_t wr = write(*(int *) fd, str, size); 346 const int fildes = *(int *) fd; 347 ssize_t wr = write(fildes, &posix_pos[fildes], str, size); 347 348 if (wr < 0) 348 349 return errno; … … 371 372 } 372 373 373 if (write(*(int *) fd, buf, sz) != (ssize_t) sz) { 374 const int fildes = *(int *) fd; 375 if (write(fildes, &posix_pos[fildes], buf, sz) != (ssize_t) sz) 374 376 break; 375 }376 377 377 378 chars++;
Note:
See TracChangeset
for help on using the changeset viewer.