/xv6-public/ |
H A D | umalloc.c | 15 } s; member 30 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) in free() 31 if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) in free() 33 if(bp + bp->s.size == p->s.ptr){ in free() 34 bp->s.size += p->s.ptr->s.size; in free() 35 bp->s.ptr = p->s.ptr->s.ptr; in free() 37 bp->s.ptr = p->s.ptr; in free() 39 p->s.size += bp->s.size; in free() 40 p->s.ptr = bp->s.ptr; in free() 74 for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ in malloc() [all …]
|
H A D | string.c | 34 const char *s; in memmove() local 37 s = src; in memmove() 39 if(s < d && s + n > d){ in memmove() 40 s += n; in memmove() 43 *--d = *--s; in memmove() 46 *d++ = *s++; in memmove() 73 os = s; in strncpy() 77 *s++ = 0; in strncpy() 87 os = s; in safestrcpy() 92 *s = 0; in safestrcpy() [all …]
|
H A D | ulib.c | 8 strcpy(char *s, const char *t) in strcpy() argument 12 os = s; in strcpy() 13 while((*s++ = *t++) != 0) in strcpy() 27 strlen(const char *s) in strlen() argument 31 for(n = 0; s[n]; n++) in strlen() 46 for(; *s; s++) in strchr() 47 if(*s == c) in strchr() 48 return (char*)s; in strchr() 85 atoi(const char *s) in atoi() argument 90 while('0' <= *s && *s <= '9') in atoi() [all …]
|
H A D | sh.c | 272 while(s < es && strchr(whitespace, *s)) in gettoken() 273 s++; in gettoken() 286 s++; in gettoken() 289 s++; in gettoken() 297 while(s < es && !strchr(whitespace, *s) && !strchr(symbols, *s)) in gettoken() 304 while(s < es && strchr(whitespace, *s)) in gettoken() 305 s++; in gettoken() 316 while(s < es && strchr(whitespace, *s)) in peek() 317 s++; in peek() 319 return *s && strchr(toks, *s); in peek() [all …]
|
H A D | printf.c | 42 char *s; in printf() local 64 s = (char*)*ap; in printf() 66 if(s == 0) in printf() 67 s = "(null)"; in printf() 68 while(*s != 0){ in printf() 69 putc(fd, *s); in printf() 70 s++; in printf()
|
H A D | forktest.c | 11 printf(int fd, const char *s, ...) in printf() argument 13 write(fd, s, strlen(s)); in printf()
|
H A D | syscall.c | 34 char *s, *ep; in fetchstr() local 41 for(s = *pp; s < ep; s++){ in fetchstr() 42 if(*s == 0) in fetchstr() 43 return s - *pp; in fetchstr()
|
H A D | exec.c | 13 char *s, *last; in exec() local 91 for(last=s=path; *s; s++) in exec() 92 if(*s == '/') in exec() 93 last = s+1; in exec()
|
H A D | console.c | 59 char *s; in cprintf() local 86 if((s = (char*)*argp++) == 0) in cprintf() 87 s = "(null)"; in cprintf() 88 for(; *s; s++) in cprintf() 89 consputc(*s); in cprintf() 107 panic(char *s) in panic() argument 116 cprintf(s); in panic() 118 getcallerpcs(&s, pcs); in panic()
|
H A D | runoff | 185 >s.defs 191 echo $i $defs >>s.defs 209 ' s.defs > t.defs
|
H A D | mmu.h | 31 uint s : 1; // 0 = system, 1 = application member 154 uint s : 1; // must be 0 (system) member 175 (gate).s = 0; \
|
H A D | README | 5 xv6 is a re-implementation of Dennis Ritchie's and Ken Thompson's Unix 11 xv6 is inspired by John Lions's Commentary on UNIX 6th Edition (Peer
|
H A D | fs.c | 517 namecmp(const char *s, const char *t) in namecmp() argument 519 return strncmp(s, t, DIRSIZ); in namecmp() 598 char *s; in skipelem() local 605 s = path; in skipelem() 608 len = path - s; in skipelem() 610 memmove(name, s, DIRSIZ); in skipelem() 612 memmove(name, s, len); in skipelem()
|
H A D | TRICKS | 22 constructed at the top of cp's kernel stack. So tf 25 If other tf's were used in forkret1, we could add 79 The x86's processor-ordering memory model 103 will observe CPU0's write of lk->locked = 0 only 133 before the return statement. So it's not safe to just
|
H A D | runoff1 | 101 printf "%04d %s\n", ++$n, $lines[$i];
|
H A D | kernel.ld | 43 * of the data section, but that's not one of the conventional
|
H A D | sleep1.p | 2 This file defines a Promela model for xv6's
|
H A D | dot-bochsrc | 8 # allows you to change all the settings that control Bochs's behavior. 42 # rfb provides an interface to AT&T's VNC viewer, cross platform 93 # --enable-show-ips option enabled, to find your workstation's capability. 115 # The default is 32MB, most OS's won't need more than that. 552 # private_colormap: Request that the GUI create and use it's own 556 # on all GUI's. 587 # address), and you cannot use ff:ff:ff:ff:ff:ff because that's the broadcast 605 # you can use the following 'ethmod's to simulate a virtual network.
|
H A D | vm.c | 169 mycpu()->gdt[SEG_TSS].s = 0; in switchuvm()
|
H A D | gdbutil | 208 # GDB's || is buggy
|
H A D | Notes | 60 some sleep()s should be interruptible by kill()
|