|
|
1.1 ! root 1: #include "cbt.h" ! 2: ! 3: extern bfile *curbf; ! 4: extern long lseek(); ! 5: ! 6: ndrd(lev, where) ndaddr where; ! 7: { ! 8: register n; ! 9: if(mustwrite(curbf, lev)) { ! 10: /* do we ever get here? (yes, while splitting) */ ! 11: if(ndwrt(curbf->path[lev], curbf->loc[lev]) == EOF) ! 12: return(EOF); ! 13: mustwrite(curbf, lev) = 0; ! 14: } ! 15: if(btbufread(curbf->tfd, where, (char *)curbf->path[lev]) == EOF) ! 16: return(EOF); ! 17: /*if(lseek(curbf->tfd, where * (long)NDSZ, 0) == -1) ! 18: return(EOF); ! 19: if((n = read(curbf->tfd, (char *)curbf->path[lev], NDSZ)) != NDSZ) { ! 20: if(n >= 0) ! 21: errno = BRDERR; ! 22: return(EOF); ! 23: }*/ ! 24: curbf->loc[lev] = where; ! 25: return(0); ! 26: } ! 27: ! 28: getincore(lev, where) ndaddr where; ! 29: { ! 30: if(ndrd(lev, where) == EOF) ! 31: return(EOF); ! 32: if(curbf->path[lev]->hlev != lev) { ! 33: errno = BRDERR; ! 34: curbf->fatal++; ! 35: return(EOF); ! 36: } ! 37: return(0); ! 38: } ! 39: static struct D { struct D *a; char *b;} VER = {&VER,"\n81/8/9:diskrd.c\n"}; ! 40: /*1010100001000111*/
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.