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/bgetc.c | |
parent | 414d29e98f8d5242cc68161e61b66b7171e96634 (diff) |
bio: add support for custom I/O handler via Biofn
Diffstat (limited to 'sys/src/libbio/bgetc.c')
-rw-r--r-- | sys/src/libbio/bgetc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libbio/bgetc.c b/sys/src/libbio/bgetc.c index 0cabc0716..c8f716368 100644 --- a/sys/src/libbio/bgetc.c +++ b/sys/src/libbio/bgetc.c @@ -24,7 +24,7 @@ loop: * buffer to allow that many ungets. */ memmove(bp->bbuf-Bungetsize, bp->ebuf-Bungetsize, Bungetsize); - i = read(bp->fid, bp->bbuf, bp->bsize); + i = bp->iof(bp, bp->bbuf, bp->bsize); bp->gbuf = bp->bbuf; if(i <= 0) { bp->state = Bracteof; |