check everything in so i can move to linux and valgrind.

This commit is contained in:
rsc
2003-12-09 06:06:07 +00:00
parent 4e6ed88aa8
commit ceb0477083
5 changed files with 491 additions and 106 deletions

View File

@@ -14,6 +14,7 @@ fspread(Fid *fid, void *buf, long n, vlong offset)
void *freep;
tx.type = Tread;
tx.fid = fid->fid;
if(offset == -1){
qlock(&fid->lk);
tx.offset = fid->offset;
@@ -32,7 +33,7 @@ fspread(Fid *fid, void *buf, long n, vlong offset)
memmove(buf, rx.data, rx.count);
if(offset == -1){
qlock(&fid->lk);
tx.offset += n;
fid->offset += rx.count;
qunlock(&fid->lk);
}
}