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/brdstr.c | |
parent | 414d29e98f8d5242cc68161e61b66b7171e96634 (diff) |
bio: add support for custom I/O handler via Biofn
Diffstat (limited to 'sys/src/libbio/brdstr.c')
-rw-r--r-- | sys/src/libbio/brdstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libbio/brdstr.c b/sys/src/libbio/brdstr.c index 5e27c033d..ec163db7f 100644 --- a/sys/src/libbio/brdstr.c +++ b/sys/src/libbio/brdstr.c @@ -69,7 +69,7 @@ Brdstr(Biobufhdr *bp, int delim, int nulldelim) for(;;){ ip = (char*)bp->bbuf + i; while(i < bp->bsize) { - j = read(bp->fid, ip, bp->bsize-i); + j = bp->iof(bp, ip, bp->bsize-i); if(j < 0) Berror(bp, "read error: %r"); if(j <= 0 && i == 0) |