Home
last modified time | relevance | path

Searched refs:s (Results 1 – 21 of 21) sorted by relevance

/xv6-public/
H A Dumalloc.c15 } 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 Dstring.c34 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 Dulib.c8 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 Dsh.c272 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 Dprintf.c42 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 Dforktest.c11 printf(int fd, const char *s, ...) in printf() argument
13 write(fd, s, strlen(s)); in printf()
H A Dsyscall.c34 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 Dexec.c13 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 Dconsole.c59 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 Drunoff185 >s.defs
191 echo $i $defs >>s.defs
209 ' s.defs > t.defs
H A Dmmu.h31 uint s : 1; // 0 = system, 1 = application member
154 uint s : 1; // must be 0 (system) member
175 (gate).s = 0; \
H A DREADME5 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 Dfs.c517 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 DTRICKS22 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 Drunoff1101 printf "%04d %s\n", ++$n, $lines[$i];
H A Dkernel.ld43 * of the data section, but that's not one of the conventional
H A Dsleep1.p2 This file defines a Promela model for xv6's
H A Ddot-bochsrc8 # 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 Dvm.c169 mycpu()->gdt[SEG_TSS].s = 0; in switchuvm()
H A Dgdbutil208 # GDB's || is buggy
H A DNotes60 some sleep()s should be interruptible by kill()