This commit is contained in:
Russ Cox 2008-05-31 12:09:43 -04:00
commit 5f6612babb
15 changed files with 125 additions and 55 deletions

View file

@ -1,8 +1,8 @@
#include "lib9.h"
#include <bio.h>
off_t
Bseek(Biobuf *bp, off_t offset, int base)
long long
Bseek(Biobuf *bp, long long offset, int base)
{
vlong n, d;
int bufsz;
@ -52,7 +52,7 @@ Bseek(Biobuf *bp, off_t offset, int base)
case Bwactive:
Bflush(bp);
n = lseek(bp->fid, offset, base);
n = seek(bp->fid, offset, base);
break;
}
bp->offset = n;