s                  59 console.c        char *s;
s                  86 console.c            if((s = (char*)*argp++) == 0)
s                  87 console.c              s = "(null)";
s                  88 console.c            for(; *s; s++)
s                  89 console.c              consputc(*s);
s                 107 console.c      panic(char *s)
s                 116 console.c        cprintf(s);
s                 118 console.c        getcallerpcs(&s, pcs);
s                  13 exec.c           char *s, *last;
s                  91 exec.c           for(last=s=path; *s; s++)
s                  92 exec.c             if(*s == '/')
s                  93 exec.c               last = s+1;
s                  11 forktest.c     printf(int fd, const char *s, ...)
s                  13 forktest.c       write(fd, s, strlen(s));
s                 517 fs.c           namecmp(const char *s, const char *t)
s                 519 fs.c             return strncmp(s, t, DIRSIZ);
s                 598 fs.c             char *s;
s                 605 fs.c             s = path;
s                 608 fs.c             len = path - s;
s                 610 fs.c               memmove(name, s, DIRSIZ);
s                 612 fs.c               memmove(name, s, len);
s                  31 mmu.h            uint s : 1;          // 0 = system, 1 = application
s                 154 mmu.h            uint s : 1;           // must be 0 (system)
s                 175 mmu.h            (gate).s = 0;                                           \
s                  42 printf.c         char *s;
s                  64 printf.c               s = (char*)*ap;
s                  66 printf.c               if(s == 0)
s                  67 printf.c                 s = "(null)";
s                  68 printf.c               while(*s != 0){
s                  69 printf.c                 putc(fd, *s);
s                  70 printf.c                 s++;
s                 175 sh.c           panic(char *s)
s                 177 sh.c             printf(2, "%s\n", s);
s                 268 sh.c             char *s;
s                 271 sh.c             s = *ps;
s                 272 sh.c             while(s < es && strchr(whitespace, *s))
s                 273 sh.c               s++;
s                 275 sh.c               *q = s;
s                 276 sh.c             ret = *s;
s                 277 sh.c             switch(*s){
s                 286 sh.c               s++;
s                 289 sh.c               s++;
s                 290 sh.c               if(*s == '>'){
s                 292 sh.c                 s++;
s                 297 sh.c               while(s < es && !strchr(whitespace, *s) && !strchr(symbols, *s))
s                 298 sh.c                 s++;
s                 302 sh.c               *eq = s;
s                 304 sh.c             while(s < es && strchr(whitespace, *s))
s                 305 sh.c               s++;
s                 306 sh.c             *ps = s;
s                 313 sh.c             char *s;
s                 315 sh.c             s = *ps;
s                 316 sh.c             while(s < es && strchr(whitespace, *s))
s                 317 sh.c               s++;
s                 318 sh.c             *ps = s;
s                 319 sh.c             return *s && strchr(toks, *s);
s                 328 sh.c           parsecmd(char *s)
s                 333 sh.c             es = s + strlen(s);
s                 334 sh.c             cmd = parseline(&s, es);
s                 335 sh.c             peek(&s, es, "");
s                 336 sh.c             if(s != es){
s                 337 sh.c               printf(2, "leftovers: %s\n", s);
s                  34 string.c         const char *s;
s                  37 string.c         s = src;
s                  39 string.c         if(s < d && s + n > d){
s                  40 string.c           s += n;
s                  43 string.c             *--d = *--s;
s                  46 string.c             *d++ = *s++;
s                  69 string.c       strncpy(char *s, const char *t, int n)
s                  73 string.c         os = s;
s                  74 string.c         while(n-- > 0 && (*s++ = *t++) != 0)
s                  77 string.c           *s++ = 0;
s                  83 string.c       safestrcpy(char *s, const char *t, int n)
s                  87 string.c         os = s;
s                  90 string.c         while(--n > 0 && (*s++ = *t++) != 0)
s                  92 string.c         *s = 0;
s                  97 string.c       strlen(const char *s)
s                 101 string.c         for(n = 0; s[n]; n++)
s                  34 syscall.c        char *s, *ep;
s                  41 syscall.c        for(s = *pp; s < ep; s++){
s                  42 syscall.c          if(*s == 0)
s                  43 syscall.c            return s - *pp;
s                   8 ulib.c         strcpy(char *s, const char *t)
s                  12 ulib.c           os = s;
s                  13 ulib.c           while((*s++ = *t++) != 0)
s                  27 ulib.c         strlen(const char *s)
s                  31 ulib.c           for(n = 0; s[n]; n++)
s                  44 ulib.c         strchr(const char *s, char c)
s                  46 ulib.c           for(; *s; s++)
s                  47 ulib.c             if(*s == c)
s                  48 ulib.c               return (char*)s;
s                  85 ulib.c         atoi(const char *s)
s                  90 ulib.c           while('0' <= *s && *s <= '9')
s                  91 ulib.c             n = n*10 + *s++ - '0';
s                  15 umalloc.c        } s;
s                  30 umalloc.c        for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
s                  31 umalloc.c          if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
s                  33 umalloc.c        if(bp + bp->s.size == p->s.ptr){
s                  34 umalloc.c          bp->s.size += p->s.ptr->s.size;
s                  35 umalloc.c          bp->s.ptr = p->s.ptr->s.ptr;
s                  37 umalloc.c          bp->s.ptr = p->s.ptr;
s                  38 umalloc.c        if(p + p->s.size == bp){
s                  39 umalloc.c          p->s.size += bp->s.size;
s                  40 umalloc.c          p->s.ptr = bp->s.ptr;
s                  42 umalloc.c          p->s.ptr = bp;
s                  58 umalloc.c        hp->s.size = nu;
s                  71 umalloc.c          base.s.ptr = freep = prevp = &base;
s                  72 umalloc.c          base.s.size = 0;
s                  74 umalloc.c        for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
s                  75 umalloc.c          if(p->s.size >= nunits){
s                  76 umalloc.c            if(p->s.size == nunits)
s                  77 umalloc.c              prevp->s.ptr = p->s.ptr;
s                  79 umalloc.c              p->s.size -= nunits;
s                  80 umalloc.c              p += p->s.size;
s                  81 umalloc.c              p->s.size = nunits;
s                 169 vm.c             mycpu()->gdt[SEG_TSS].s = 0;