diff options
author | aiju <devnull@localhost> | 2017-05-04 17:42:12 +0000 |
---|---|---|
committer | aiju <devnull@localhost> | 2017-05-04 17:42:12 +0000 |
commit | f681cf835af1e5c9e016e5245c24165b029a5e38 (patch) | |
tree | 43453c10a803a5e64b47dc3474e603715cd76bcc /sys/src/libbio/bflush.c | |
parent | 414d29e98f8d5242cc68161e61b66b7171e96634 (diff) |
bio: add support for custom I/O handler via Biofn
Diffstat (limited to 'sys/src/libbio/bflush.c')
-rw-r--r-- | sys/src/libbio/bflush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libbio/bflush.c b/sys/src/libbio/bflush.c index 44b0d59a9..5a0a5f034 100644 --- a/sys/src/libbio/bflush.c +++ b/sys/src/libbio/bflush.c @@ -12,7 +12,7 @@ Bflush(Biobufhdr *bp) n = bp->bsize+bp->ocount; if(n == 0) return 0; - c = write(bp->fid, bp->bbuf, n); + c = bp->iof(bp, bp->bbuf, n); if(n == c) { bp->offset += n; bp->ocount = -bp->bsize; |