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 64 kernel/console.c char c; c 65 kernel/console.c if(either_copyin(&c, user_src, src+i, 1) == -1) c 67 kernel/console.c uartputc(c); c 83 kernel/console.c int c; c 99 kernel/console.c c = cons.buf[cons.r++ % INPUT_BUF_SIZE]; c 101 kernel/console.c if(c == C('D')){ // end-of-file c 111 kernel/console.c cbuf = c; c 118 kernel/console.c if(c == '\n'){ c 136 kernel/console.c consoleintr(int c) c 140 kernel/console.c switch(c){ c 159 kernel/console.c if(c != 0 && cons.e-cons.r < INPUT_BUF_SIZE){ c 160 kernel/console.c c = (c == '\r') ? '\n' : c; c 163 kernel/console.c consputc(c); c 166 kernel/console.c cons.buf[cons.e++ % INPUT_BUF_SIZE] = c; c 168 kernel/console.c if(c == '\n' || c == C('D') || cons.e-cons.r == INPUT_BUF_SIZE){ c 127 kernel/printf.c switch(c){ c 149 kernel/printf.c consputc(c); 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 448 kernel/proc.c struct cpu *c = mycpu(); c 450 kernel/proc.c c->proc = 0; c 465 kernel/proc.c c->proc = p; c 466 kernel/proc.c swtch(&c->context, &p->context); c 470 kernel/proc.c c->proc = 0; c 102 kernel/spinlock.c struct cpu *c = mycpu(); c 105 kernel/spinlock.c if(c->noff < 1) c 107 kernel/spinlock.c c->noff -= 1; c 108 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 87 kernel/uart.c uartputc(int c) c 100 kernel/uart.c uart_tx_buf[uart_tx_w % UART_TX_BUF_SIZE] = c; c 112 kernel/uart.c uartputc_sync(int c) c 124 kernel/uart.c WriteReg(THR, c); c 150 kernel/uart.c int c = uart_tx_buf[uart_tx_r % UART_TX_BUF_SIZE]; c 156 kernel/uart.c WriteReg(THR, c); c 181 kernel/uart.c int c = uartgetc(); c 182 kernel/uart.c if(c == -1) c 184 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 110 user/printf.c if(c == 'd'){ c 112 user/printf.c } else if(c == 'l') { c 114 user/printf.c } else if(c == 'x') { c 116 user/printf.c } else if(c == 'p') { c 118 user/printf.c } else if(c == 's'){ c 126 user/printf.c } else if(c == 'c'){ c 128 user/printf.c } else if(c == '%'){ c 129 user/printf.c putc(fd, c); c 133 user/printf.c putc(fd, c); c 47 user/ulib.c memset(void *dst, int c, uint n) c 52 user/ulib.c cdst[i] = c; c 58 user/ulib.c strchr(const char *s, char c) c 61 user/ulib.c if(*s == c) c 70 user/ulib.c char c; c 73 user/ulib.c cc = read(0, &c, 1); c 76 user/ulib.c buf[i++] = c; c 77 user/ulib.c if(c == '\n' || c == '\r') c 30 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 2091 user/usertests.c c = sbrk(-PGSIZE); c 2092 user/usertests.c if(c == (char*)0xffffffffffffffffL){ c 2096 user/usertests.c c = sbrk(0); c 2097 user/usertests.c if(c != a - PGSIZE){ c 2098 user/usertests.c printf("%s: sbrk deallocation produced wrong address, a %p c %p\n", s, a, c); c 2104 user/usertests.c c = sbrk(PGSIZE); c 2105 user/usertests.c if(c != a || sbrk(0) != a + PGSIZE){ c 2106 user/usertests.c printf("%s: sbrk re-allocation failed, a %p c %p\n", s, a, c); c 2116 user/usertests.c c = sbrk(-(sbrk(0) - oldbrk)); c 2117 user/usertests.c if(c != a){ c 2118 user/usertests.c printf("%s: sbrk downsize failed, a %p c %p\n", s, a, c); c 2180 user/usertests.c char *c, *a; c 2202 user/usertests.c c = sbrk(PGSIZE); c 2209 user/usertests.c if(c == (char*)0xffffffffffffffffL){ c 3047 user/usertests.c char c; c 3048 user/usertests.c int cc = read(fds[0], &c, 1); 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);