summaryrefslogtreecommitdiff
path: root/sys/src/libbio/bwrite.c
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2017-05-04 17:42:12 +0000
committeraiju <devnull@localhost>2017-05-04 17:42:12 +0000
commitf681cf835af1e5c9e016e5245c24165b029a5e38 (patch)
tree43453c10a803a5e64b47dc3474e603715cd76bcc /sys/src/libbio/bwrite.c
parent414d29e98f8d5242cc68161e61b66b7171e96634 (diff)
bio: add support for custom I/O handler via Biofn
Diffstat (limited to 'sys/src/libbio/bwrite.c')
-rw-r--r--sys/src/libbio/bwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libbio/bwrite.c b/sys/src/libbio/bwrite.c
index 03f46779b..373038c53 100644
--- a/sys/src/libbio/bwrite.c
+++ b/sys/src/libbio/bwrite.c
@@ -21,7 +21,7 @@ Bwrite(Biobufhdr *bp, void *ap, long count)
if(n == 0) {
if(bp->state != Bwactive)
return Beof;
- i = write(bp->fid, bp->bbuf, bp->bsize);
+ i = bp->iof(bp, bp->bbuf, bp->bsize);
if(i != bp->bsize) {
errstr(errbuf, sizeof errbuf);
if(strstr(errbuf, "interrupt") == nil) {