Changeset ce04ea44 in mainline for uspace/lib/posix/source/stdio.c
- Timestamp:
- 2017-04-02T12:27:14Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d4067a7
- Parents:
- 163fc09
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/stdio.c
r163fc09 rce04ea44 344 344 { 345 345 const int fildes = *(int *) fd; 346 ssize_t wr = write(fildes, &posix_pos[fildes], str, size);346 ssize_t wr = vfs_write(fildes, &posix_pos[fildes], str, size); 347 347 if (wr < 0) 348 return errno;348 return wr; 349 349 return str_nlength(str, wr); 350 350 } … … 372 372 373 373 const int fildes = *(int *) fd; 374 if ( write(fildes, &posix_pos[fildes], buf, sz) != (ssize_t) sz)374 if (vfs_write(fildes, &posix_pos[fildes], buf, sz) < 0) 375 375 break; 376 376
Note:
See TracChangeset
for help on using the changeset viewer.