c 34 kernel/console.c consputc(int c) c 36 kernel/console.c if(c == BACKSPACE){ c 40 kernel/console.c uartputc_sync(c); c 87 kernel/console.c int c; c 103 kernel/console.c c = cons.buf[cons.r++ % INPUT_BUF_SIZE]; c 105 kernel/console.c if(c == C('D')){ // end-of-file c 115 kernel/console.c cbuf = c; c 122 kernel/console.c if(c == '\n'){ c 140 kernel/console.c consoleintr(int c) c 144 kernel/console.c switch(c){ c 163 kernel/console.c if(c != 0 && cons.e-cons.r < INPUT_BUF_SIZE){ c 164 kernel/console.c c = (c == '\r') ? '\n' : c; c 167 kernel/console.c consputc(c); c 170 kernel/console.c cons.buf[cons.e++ % INPUT_BUF_SIZE] = c; c 172 kernel/console.c if(c == '\n' || c == C('D') || cons.e-cons.r == INPUT_BUF_SIZE){ c 77 kernel/proc.c struct cpu *c = &cpus[id]; c 78 kernel/proc.c return c; c 86 kernel/proc.c struct cpu *c = mycpu(); c 87 kernel/proc.c struct proc *p = c->proc; c 425 kernel/proc.c struct cpu *c = mycpu(); c 427 kernel/proc.c c->proc = 0; c 445 kernel/proc.c c->proc = p; c 446 kernel/proc.c swtch(&c->context, &p->context); c 450 kernel/proc.c c->proc = 0; c 105 kernel/spinlock.c struct cpu *c = mycpu(); c 108 kernel/spinlock.c if(c->noff < 1) c 110 kernel/spinlock.c c->noff -= 1; c 111 kernel/spinlock.c if(c->noff == 0 && c->intena) c 4 kernel/string.c memset(void *dst, int c, uint n) c 9 kernel/string.c cdst[i] = c; c 107 kernel/uart.c uartputc_sync(int c) c 120 kernel/uart.c WriteReg(THR, c); c 157 kernel/uart.c int c = uartgetc(); c 158 kernel/uart.c if(c == -1) c 160 kernel/uart.c consoleintr(c); c 99 user/grep.c int matchstar(int c, char *re, char *text) c 104 user/grep.c }while(*text!='\0' && (*text++==c || c=='.')); c 169 user/grind.c char c; c 170 user/grind.c if(read(fds[0], &c, 1) != 1) c 10 user/printf.c putc(int fd, char c) c 12 user/printf.c write(fd, &c, 1); c 49 user/ulib.c memset(void *dst, int c, uint n) c 54 user/ulib.c cdst[i] = c; c 60 user/ulib.c strchr(const char *s, char c) c 63 user/ulib.c if(*s == c) c 72 user/ulib.c char c; c 75 user/ulib.c cc = read(0, &c, 1); c 78 user/ulib.c buf[i++] = c; c 79 user/ulib.c if(c == '\n' || c == '\r') c 32 user/user.h char* strchr(const char*, char c); c 2004 user/usertests.c char *c, *a, *b; c 2051 user/usertests.c c = sbrk(1); c 2052 user/usertests.c c = sbrk(1); c 2053 user/usertests.c if(c != a + 1){ c 2067 user/usertests.c char *c, *oldbrk, *a, *lastaddr, *p; c 2086 user/usertests.c c = sbrk(-PGSIZE); c 2087 user/usertests.c if(c == (char*)SBRK_ERROR){ c 2091 user/usertests.c c = sbrk(0); c 2092 user/usertests.c if(c != a - PGSIZE){ c 2093 user/usertests.c printf("%s: sbrk deallocation produced wrong address, a %p c %p\n", s, a, c); c 2099 user/usertests.c c = sbrk(PGSIZE); c 2100 user/usertests.c if(c != a || sbrk(0) != a + PGSIZE){ c 2101 user/usertests.c printf("%s: sbrk re-allocation failed, a %p c %p\n", s, a, c); c 2111 user/usertests.c c = sbrk(-(sbrk(0) - oldbrk)); c 2112 user/usertests.c if(c != a){ c 2113 user/usertests.c printf("%s: sbrk downsize failed, a %p c %p\n", s, a, c); c 2175 user/usertests.c char *c, *a; c 2207 user/usertests.c c = sbrk(PGSIZE); c 2214 user/usertests.c if(c == (char*)SBRK_ERROR){ c 12 user/wc.c int l, w, c, inword; c 14 user/wc.c l = w = c = 0; c 18 user/wc.c c++; c 33 user/wc.c printf("%d %d %d %s\n", l, w, c, name);