Changes in uspace/lib/c/generic/io/io.c [15f3c3f:0803134] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/io.c
r15f3c3f r0803134 45 45 #include <vfs/vfs.h> 46 46 #include <vfs/vfs_sess.h> 47 #include <ipc/ loc.h>47 #include <ipc/devmap.h> 48 48 #include <adt/list.h> 49 49 #include "../private/io.h" … … 594 594 } 595 595 596 buf+= now;596 data += now; 597 597 stream->buf_head += now; 598 598 buf_free -= now; 599 599 bytes_left -= now; 600 600 total_written += now; 601 stream->buf_state = _bs_write; 601 602 602 603 if (buf_free == 0) { … … 606 607 } 607 608 } 608 609 if (total_written > 0)610 stream->buf_state = _bs_write;611 609 612 610 if (need_flush) … … 714 712 off64_t ftell(FILE *stream) 715 713 { 714 _fflushbuf(stream); 716 715 return lseek(stream->fd, 0, SEEK_CUR); 717 716 }
Note:
See TracChangeset
for help on using the changeset viewer.