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/bread.c | |
parent | 414d29e98f8d5242cc68161e61b66b7171e96634 (diff) |
bio: add support for custom I/O handler via Biofn
Diffstat (limited to 'sys/src/libbio/bread.c')
-rw-r--r-- | sys/src/libbio/bread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libbio/bread.c b/sys/src/libbio/bread.c index 8e57d8e07..8ad61960c 100644 --- a/sys/src/libbio/bread.c +++ b/sys/src/libbio/bread.c @@ -20,7 +20,7 @@ Bread(Biobufhdr *bp, void *ap, long count) if(n == 0) { if(bp->state != Bractive) break; - i = read(bp->fid, bp->bbuf, bp->bsize); + i = bp->iof(bp, bp->bbuf, bp->bsize); if(i <= 0) { bp->state = Bracteof; if(i < 0) { |