Searched refs:off (Results 1 – 12 of 12) sorted by relevance
/xv6-public/ |
H A D | fs.c | 464 if(off > ip->size || off + n < off) in readi() 466 if(off + n > ip->size) in readi() 467 n = ip->size - off; in readi() 493 if(off > ip->size || off + n < off) in writei() 495 if(off + n > MAXFILE*BSIZE) in writei() 507 ip->size = off; in writei() 527 uint off, inum; in dirlookup() local 533 for(off = 0; off < dp->size; off += sizeof(de)){ in dirlookup() 541 *poff = off; in dirlookup() 554 int off; in dirlink() local [all …]
|
H A D | mkfs.c | 71 uint rootino, inum, off; in main() local 160 off = xint(din.size); in main() 161 off = ((off/BSIZE) + 1) * BSIZE; in main() 162 din.size = xint(off); in main() 259 uint fbn, off, n1; in iappend() local 266 off = xint(din.size); in iappend() 269 fbn = off / BSIZE; in iappend() 287 n1 = min(n, (fbn + 1) * BSIZE - off); in iappend() 289 bcopy(p, buf + off - (fbn * BSIZE), n1); in iappend() 292 off += n1; in iappend() [all …]
|
H A D | exec.c | 14 int i, off; in exec() local 43 for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ in exec() 44 if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) in exec() 56 if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) in exec()
|
H A D | sysfile.c | 171 int off; in isdirempty() local 174 for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ in isdirempty() 175 if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) in isdirempty() 190 uint off; in sys_unlink() local 207 if((ip = dirlookup(dp, name, &off)) == 0) in sys_unlink() 219 if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) in sys_unlink() 329 f->off = 0; in sys_open()
|
H A D | file.c | 107 if((r = readi(f->ip, addr, f->off, n)) > 0) in fileread() 108 f->off += r; in fileread() 142 if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) in filewrite() 143 f->off += r; in filewrite()
|
H A D | mmu.h | 168 #define SETGATE(gate, istrap, sel, off, d) \ argument 170 (gate).off_15_0 = (uint)(off) & 0xffff; \ 178 (gate).off_31_16 = (uint)(off) >> 16; \
|
H A D | file.h | 8 uint off; member
|
H A D | elf.h | 27 uint off; member
|
H A D | bootmain.c | 39 readseg(pa, ph->filesz, ph->off); in bootmain()
|
H A D | Notes | 103 test: dup() shared fd->off
|
H A D | TRICKS | 36 because if interrupts are off then we might call cpu(), get
|
H A D | dot-bochsrc | 532 # You can turn the mouse on by setting enabled to 1, or turn it off by 534 # the mouse by default, it is recommended that you leave it off.
|