c 41 bsp/boot/arm/gba/debug.c debug_putc(int c)
c 45 bsp/boot/arm/gba/debug.c vba_putc(c);
c 79 bsp/boot/arm/integrator/debug.c debug_putc(int c)
c 85 bsp/boot/arm/integrator/debug.c UART_DR = c;
c 153 bsp/boot/common/load.c char *c;
c 160 bsp/boot/common/load.c c = m->name;
c 161 bsp/boot/common/load.c while (*c != '/' && *c != ' ')
c 162 bsp/boot/common/load.c c++;
c 163 bsp/boot/common/load.c *c = '\0';
c 49 bsp/boot/common/printf.c int c, i, pad;
c 52 bsp/boot/common/printf.c while ((c = *fmt++) != 0) {
c 53 bsp/boot/common/printf.c if (c == '%') {
c 54 bsp/boot/common/printf.c c = *fmt++;
c 56 bsp/boot/common/printf.c if (c == 'l')
c 57 bsp/boot/common/printf.c c = *fmt++;
c 58 bsp/boot/common/printf.c switch (c) {
c 71 bsp/boot/common/printf.c c = 'u';
c 76 bsp/boot/common/printf.c if (c == 'u') {
c 97 bsp/boot/common/printf.c if (c == '\n')
c 99 bsp/boot/common/printf.c debug_putc((int)c);
c 74 bsp/boot/ppc/prep/debug.c debug_putc(int c)
c 83 bsp/boot/ppc/prep/debug.c outb(COM_THR, (u_char)c);
c 88 bsp/boot/ppc/prep/debug.c outb(0xf00, (u_char)c);
c 58 bsp/boot/x86/pc/debug.c debug_putc(int c)
c 67 bsp/boot/x86/pc/debug.c outb(COM_THR, c);
c 75 bsp/boot/x86/pc/debug.c outb(0xe9, (u_char)c);
c 294 bsp/drv/arm/gba/swkbd.c swkbd_input(u_char c)
c 304 bsp/drv/arm/gba/swkbd.c if (c == '\t') {
c 318 bsp/drv/arm/gba/swkbd.c wscons_kbd_input(c);
c 322 bsp/drv/arm/gba/swkbd.c switch (c) {
c 155 bsp/drv/dev/base/cons.c cons_putc(int c)
c 159 bsp/drv/dev/base/cons.c if (c) {
c 160 bsp/drv/dev/base/cons.c consdev->cnputc(consdev->dev, c);
c 161 bsp/drv/dev/base/cons.c if (c == '\n')
c 648 bsp/drv/dev/base/kd.c int c, pos = 0;
c 652 bsp/drv/dev/base/kd.c c = cons_getc();
c 654 bsp/drv/dev/base/kd.c switch(c) {
c 672 bsp/drv/dev/base/kd.c *p = (char)c;
c 679 bsp/drv/dev/base/kd.c printf("%c", c);
c 61 bsp/drv/dev/base/tty.c static void tty_output(int c, struct tty *tp);
c 66 bsp/drv/dev/base/tty.c #define is_ctrl(c) ((c) < 32 || (c) == 0x7f)
c 82 bsp/drv/dev/base/tty.c char c;
c 90 bsp/drv/dev/base/tty.c c = tq->tq_buf[tq->tq_head];
c 94 bsp/drv/dev/base/tty.c return (int)c;
c 101 bsp/drv/dev/base/tty.c tty_putc(int c, struct tty_queue *tq)
c 110 bsp/drv/dev/base/tty.c tq->tq_buf[tq->tq_tail] = (char)(c & 0xff);
c 122 bsp/drv/dev/base/tty.c char c;
c 129 bsp/drv/dev/base/tty.c c = tq->tq_buf[tq->tq_tail];
c 132 bsp/drv/dev/base/tty.c return (int)c;
c 141 bsp/drv/dev/base/tty.c int c;
c 143 bsp/drv/dev/base/tty.c while ((c = tty_getc(from)) != -1)
c 144 bsp/drv/dev/base/tty.c tty_putc(c, to);
c 151 bsp/drv/dev/base/tty.c tty_rubout(int c, struct tty *tp)
c 168 bsp/drv/dev/base/tty.c tty_echo(int c, struct tty *tp)
c 172 bsp/drv/dev/base/tty.c if (c == '\n' && (tp->t_lflag & ECHONL))
c 176 bsp/drv/dev/base/tty.c if (is_ctrl(c) && c != '\n' && c != '\t' && c != '\b') {
c 178 bsp/drv/dev/base/tty.c tty_output(c + 'A' - 1, tp);
c 180 bsp/drv/dev/base/tty.c tty_output(c, tp);
c 274 bsp/drv/dev/base/tty.c tty_input(int c, struct tty *tp)
c 280 bsp/drv/dev/base/tty.c DPRINTF(("tty_input: %d\n", c));
c 290 bsp/drv/dev/base/tty.c if (c == cc[VDDB]) {
c 298 bsp/drv/dev/base/tty.c if (c == '\r') {
c 302 bsp/drv/dev/base/tty.c c = '\n';
c 303 bsp/drv/dev/base/tty.c } else if (c == '\n' && (iflag & INLCR))
c 304 bsp/drv/dev/base/tty.c c = '\r';
c 308 bsp/drv/dev/base/tty.c if (c == cc[VSTOP]) {
c 313 bsp/drv/dev/base/tty.c if (c != cc[VSTART])
c 319 bsp/drv/dev/base/tty.c if (c == cc[VSTART])
c 324 bsp/drv/dev/base/tty.c if (c == cc[VERASE] || c == '\b') {
c 330 bsp/drv/dev/base/tty.c if (c == cc[VKILL]) {
c 338 bsp/drv/dev/base/tty.c if (c == cc[VINTR] || c == cc[VQUIT]) {
c 343 bsp/drv/dev/base/tty.c tty_echo(c, tp);
c 344 bsp/drv/dev/base/tty.c sig = (c == cc[VINTR]) ? SIGINT : SIGQUIT;
c 348 bsp/drv/dev/base/tty.c if (c == cc[VSUSP]) {
c 353 bsp/drv/dev/base/tty.c tty_echo(c, tp);
c 366 bsp/drv/dev/base/tty.c tty_putc(c, &tp->t_rawq);
c 369 bsp/drv/dev/base/tty.c if (c == '\n' || c == cc[VEOF] || c == cc[VEOL]) {
c 377 bsp/drv/dev/base/tty.c tty_echo(c, tp);
c 402 bsp/drv/dev/base/tty.c tty_output(int c, struct tty *tp)
c 407 bsp/drv/dev/base/tty.c tty_putc(c, &tp->t_outq);
c 411 bsp/drv/dev/base/tty.c if (c == '\t' && (tp->t_oflag & OXTABS)) {
c 420 bsp/drv/dev/base/tty.c if (c == '\n' && (tp->t_oflag & ONLCR))
c 423 bsp/drv/dev/base/tty.c tty_putc(c, &tp->t_outq);
c 426 bsp/drv/dev/base/tty.c switch (c) {
c 441 bsp/drv/dev/base/tty.c if (!is_ctrl(c))
c 458 bsp/drv/dev/base/tty.c u_char c;
c 479 bsp/drv/dev/base/tty.c c = (u_char)tmp;
c 480 bsp/drv/dev/base/tty.c if (c == cc[VEOF] && (lflag & ICANON))
c 483 bsp/drv/dev/base/tty.c if (copyout(&c, buf, 1))
c 485 bsp/drv/dev/base/tty.c if ((lflag & ICANON) && (c == '\n' || c == cc[VEOL]))
c 500 bsp/drv/dev/base/tty.c u_char c;
c 514 bsp/drv/dev/base/tty.c if (copyin(buf, &c, 1))
c 516 bsp/drv/dev/base/tty.c tty_output((int)c, tp);
c 207 bsp/drv/dev/base/wscons.c wscons_check_escape(struct wscons_softc *sc, char c)
c 214 bsp/drv/dev/base/wscons.c if (c == 033) {
c 222 bsp/drv/dev/base/wscons.c if (c >= '0' && c <= '9') {
c 223 bsp/drv/dev/base/wscons.c val = c - '0';
c 250 bsp/drv/dev/base/wscons.c if (c != '[')
c 254 bsp/drv/dev/base/wscons.c switch (c) {
c 271 bsp/drv/dev/base/wscons.c switch (c) {
c 336 bsp/drv/dev/base/wscons.c switch (c) {
c 363 bsp/drv/dev/base/wscons.c wscons_putc(int c)
c 368 bsp/drv/dev/base/wscons.c if (wscons_check_escape(sc, c))
c 371 bsp/drv/dev/base/wscons.c switch (c) {
c 385 bsp/drv/dev/base/wscons.c vops->putc(sc->vid_aux, sc->row, sc->col, c);
c 405 bsp/drv/dev/base/wscons.c int c;
c 407 bsp/drv/dev/base/wscons.c while ((c = tty_getc(&tp->t_outq)) >= 0)
c 408 bsp/drv/dev/base/wscons.c wscons_putc(c);
c 424 bsp/drv/dev/base/wscons.c wscons_cnputc(device_t dev, int c)
c 428 bsp/drv/dev/base/wscons.c wscons_putc(c);
c 442 bsp/drv/dev/base/wscons.c wscons_kbd_input(int c)
c 446 bsp/drv/dev/base/wscons.c tty_input(c, &sc->tty);
c 234 bsp/drv/dev/input/pckbd.c int c;
c 236 bsp/drv/dev/input/pckbd.c c = pckbd_scan_key(sc);
c 237 bsp/drv/dev/input/pckbd.c if (c != 0)
c 238 bsp/drv/dev/input/pckbd.c wscons_kbd_input(c);
c 246 bsp/drv/dev/input/pckbd.c int c;
c 254 bsp/drv/dev/input/pckbd.c while ((c = pckbd_scan_key(sc)) == 0) ;
c 256 bsp/drv/dev/input/pckbd.c return c;
c 121 bsp/drv/dev/serial/ns16550.c ns16550_xmt_char(struct serial_port *sp, char c)
c 126 bsp/drv/dev/serial/ns16550.c bus_write_8(COM_THR, c);
c 120 bsp/drv/dev/serial/pl011.c pl011_xmt_char(struct serial_port *sp, char c)
c 125 bsp/drv/dev/serial/pl011.c bus_write_32(UART_DR, (uint32_t)c);
c 131 bsp/drv/dev/serial/pl011.c char c;
c 135 bsp/drv/dev/serial/pl011.c c = bus_read_32(UART_DR) & 0xff;
c 136 bsp/drv/dev/serial/pl011.c return c;
c 156 bsp/drv/dev/serial/pl011.c int c;
c 168 bsp/drv/dev/serial/pl011.c c = bus_read_32(UART_DR);
c 169 bsp/drv/dev/serial/pl011.c serial_rcv_char(sp, c);
c 126 bsp/drv/dev/serial/serial.c int c;
c 128 bsp/drv/dev/serial/serial.c while ((c = tty_getc(&tp->t_outq)) >= 0)
c 129 bsp/drv/dev/serial/serial.c sc->ops->xmt_char(port, c);
c 146 bsp/drv/dev/serial/serial.c serial_rcv_char(struct serial_port *port, char c)
c 149 bsp/drv/dev/serial/serial.c tty_input(c, port->tty);
c 162 bsp/drv/dev/serial/serial.c serial_cnputc(device_t dev, int c)
c 167 bsp/drv/dev/serial/serial.c sc->ops->xmt_char(port, c);
c 99 bsp/drv/include/ddi.h int isalnum(int c);
c 100 bsp/drv/include/ddi.h int isalpha(int c);
c 101 bsp/drv/include/ddi.h int isblank(int c);
c 102 bsp/drv/include/ddi.h int isupper(int c);
c 103 bsp/drv/include/ddi.h int islower(int c);
c 104 bsp/drv/include/ddi.h int isspace(int c);
c 105 bsp/drv/include/ddi.h int isdigit(int c);
c 106 bsp/drv/include/ddi.h int isxdigit(int c);
c 107 bsp/drv/include/ddi.h int isprint(int c);
c 42 bsp/drv/include/serial.h void (*xmt_char)(struct serial_port *port, char c);
c 35 bsp/drv/lib/ctype.c isalnum(int c)
c 37 bsp/drv/lib/ctype.c return (isalpha(c) || isdigit(c));
c 41 bsp/drv/lib/ctype.c isalpha(int c)
c 43 bsp/drv/lib/ctype.c return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
c 47 bsp/drv/lib/ctype.c isblank(int c)
c 49 bsp/drv/lib/ctype.c return (c == ' ' || c == '\t');
c 53 bsp/drv/lib/ctype.c isupper(int c)
c 55 bsp/drv/lib/ctype.c return (c >= 'A' && c <= 'Z');
c 59 bsp/drv/lib/ctype.c islower(int c)
c 61 bsp/drv/lib/ctype.c return (c >= 'a' && c <= 'z');
c 65 bsp/drv/lib/ctype.c isspace(int c)
c 67 bsp/drv/lib/ctype.c return (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v');
c 71 bsp/drv/lib/ctype.c isdigit(int c)
c 73 bsp/drv/lib/ctype.c return (c >= '0' && c <= '9');
c 77 bsp/drv/lib/ctype.c isxdigit(int c)
c 79 bsp/drv/lib/ctype.c return (isdigit(c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f'));
c 83 bsp/drv/lib/ctype.c isprint(int c)
c 85 bsp/drv/lib/ctype.c return (c >= 0x20 && c <= 0x7E);
c 46 bsp/drv/lib/strtoul.c int c;
c 54 bsp/drv/lib/strtoul.c c = (unsigned char) *s++;
c 55 bsp/drv/lib/strtoul.c } while (isspace(c));
c 56 bsp/drv/lib/strtoul.c if (c == '-') {
c 58 bsp/drv/lib/strtoul.c c = *s++;
c 61 bsp/drv/lib/strtoul.c if (c == '+')
c 62 bsp/drv/lib/strtoul.c c = *s++;
c 65 bsp/drv/lib/strtoul.c c == '0' && (*s == 'x' || *s == 'X')) {
c 66 bsp/drv/lib/strtoul.c c = s[1];
c 71 bsp/drv/lib/strtoul.c base = c == '0' ? 8 : 10;
c 75 bsp/drv/lib/strtoul.c for (acc = 0, any = 0;; c = (unsigned char) *s++) {
c 76 bsp/drv/lib/strtoul.c if (isdigit(c))
c 77 bsp/drv/lib/strtoul.c c -= '0';
c 78 bsp/drv/lib/strtoul.c else if (isalpha(c))
c 79 bsp/drv/lib/strtoul.c c -= isupper(c) ? 'A' - 10 : 'a' - 10;
c 82 bsp/drv/lib/strtoul.c if (c >= base)
c 86 bsp/drv/lib/strtoul.c if (acc > cutoff || (acc == cutoff && c > cutlim)) {
c 92 bsp/drv/lib/strtoul.c acc += c;
c 84 bsp/hal/arm/gba/diag.c screen_putc(char c)
c 87 bsp/hal/arm/gba/diag.c switch (c) {
c 100 bsp/hal/arm/gba/diag.c vram[pos_y * VSCR_COLS + pos_x] = c;
c 48 bsp/hal/arm/integrator/diag.c serial_putc(char c)
c 53 bsp/hal/arm/integrator/diag.c UART_DR = (uint32_t)c;
c 46 bsp/hal/ppc/prep/diag.c serial_putc(char c)
c 51 bsp/hal/ppc/prep/diag.c outb(COM_THR, c);
c 86 bsp/hal/x86/pc/diag.c screen_putc(char c)
c 89 bsp/hal/x86/pc/diag.c switch (c) {
c 102 bsp/hal/x86/pc/diag.c vram[pos_y * screen_x + pos_x] = c | VID_ATTR;
c 142 bsp/hal/x86/pc/diag.c bochs_putc(char c)
c 145 bsp/hal/x86/pc/diag.c outb(0xe9, (u_char)c);
c 174 bsp/hal/x86/pc/diag.c serial_putc(char c)
c 179 bsp/hal/x86/pc/diag.c outb(COM_THR, c);
c 68 include/sys/termios.h #define CCEQ(val, c) (c == val ? val != _POSIX_VDISABLE : 0)
c 65 sys/kern/debug.c char c;
c 77 sys/kern/debug.c c = db_msg[i];
c 78 sys/kern/debug.c if (c == '\0')
c 80 sys/kern/debug.c log_buf[LOGINDEX(log_tail)] = c;
c 125 sys/kern/debug.c char c;
c 141 sys/kern/debug.c c = log_buf[LOGINDEX(i)];
c 143 sys/kern/debug.c c = '\0';
c 144 sys/kern/debug.c if (copyout(&c, buf, 1)) {
c 36 sys/lib/vsprintf.c #define isdigit(c) ((u_int)((c) - '0') < 10)
c 55 sys/sync/cond.c cond_t c;
c 60 sys/sync/cond.c if ((c = kmem_alloc(sizeof(struct cond))) == NULL)
c 63 sys/sync/cond.c event_init(&c->event, "condvar");
c 64 sys/sync/cond.c c->owner = self;
c 66 sys/sync/cond.c if (copyout(&c, cp, sizeof(c))) {
c 67 sys/sync/cond.c kmem_free(c);
c 71 sys/sync/cond.c list_insert(&self->conds, &c->task_link);
c 78 sys/sync/cond.c cond_deallocate(cond_t c)
c 81 sys/sync/cond.c c->owner->nsyncs--;
c 82 sys/sync/cond.c list_remove(&c->task_link);
c 83 sys/sync/cond.c kmem_free(c);
c 95 sys/sync/cond.c cond_t c;
c 98 sys/sync/cond.c if (cond_copyin(cp, &c)) {
c 102 sys/sync/cond.c if (event_waiting(&c->event)) {
c 106 sys/sync/cond.c cond_deallocate(c);
c 117 sys/sync/cond.c cond_t c;
c 120 sys/sync/cond.c c = list_entry(list_first(&task->conds),
c 122 sys/sync/cond.c cond_deallocate(c);
c 139 sys/sync/cond.c cond_t c;
c 142 sys/sync/cond.c if (copyin(cp, &c, sizeof(cp)))
c 146 sys/sync/cond.c if (c == COND_INITIALIZER) {
c 151 sys/sync/cond.c copyin(cp, &c, sizeof(cp));
c 153 sys/sync/cond.c if (!cond_valid(c)) {
c 165 sys/sync/cond.c rc = sched_sleep(&c->event);
c 184 sys/sync/cond.c cond_t c;
c 187 sys/sync/cond.c if (cond_copyin(cp, &c)) {
c 191 sys/sync/cond.c sched_wakeone(&c->event);
c 202 sys/sync/cond.c cond_t c;
c 205 sys/sync/cond.c if (cond_copyin(cp, &c)) {
c 209 sys/sync/cond.c sched_wakeup(&c->event);
c 218 sys/sync/cond.c cond_valid(cond_t c)
c 226 sys/sync/cond.c if (tmp == c)
c 239 sys/sync/cond.c cond_t c;
c 241 sys/sync/cond.c if (copyin(ucp, &c, sizeof(ucp)) || !cond_valid(c))
c 243 sys/sync/cond.c *kcp = c;
c 87 usr/bin/more/more.c int c, len, lines = 0;
c 89 usr/bin/more/more.c while ((c = getc(fp)) != EOF) {
c 90 usr/bin/more/more.c if (c == '\n' && ++lines >= maxlines) {
c 93 usr/bin/more/more.c read(2, &c, 1);
c 103 usr/bin/more/more.c putchar(c);
c 54 usr/bin/nice/nice.c int c;
c 63 usr/bin/nice/nice.c while ((c = getopt (argc, argv, "n:")) != -1) {
c 64 usr/bin/nice/nice.c switch (c) {
c 53 usr/bin/sh/var.c is_name(char c)
c 56 usr/bin/sh/var.c if ((c >= 'a' && c <= 'z') ||
c 57 usr/bin/sh/var.c (c >= 'A' && c <= 'Z') || c == '_')
c 36 usr/include/ctype.h int isalnum(int c);
c 37 usr/include/ctype.h int isalpha(int c);
c 38 usr/include/ctype.h int isblank(int c);
c 39 usr/include/ctype.h int iscntrl(int c);
c 40 usr/include/ctype.h int isdigit(int c);
c 41 usr/include/ctype.h int isgraph(int c);
c 42 usr/include/ctype.h int islower(int c);
c 43 usr/include/ctype.h int isprint(int c);
c 44 usr/include/ctype.h int ispunct(int c);
c 45 usr/include/ctype.h int isspace(int c);
c 46 usr/include/ctype.h int isupper(int c);
c 47 usr/include/ctype.h int isxdigit(int c);
c 48 usr/include/ctype.h int isascii(int c);
c 49 usr/include/ctype.h int toascii(int c);
c 51 usr/include/ctype.h int tolower(int c);
c 52 usr/include/ctype.h int toupper(int c);
c 33 usr/lib/libc/ctype/isalnum.c isalnum(int c)
c 35 usr/lib/libc/ctype/isalnum.c return (isalpha(c) || isdigit(c));
c 33 usr/lib/libc/ctype/isalpha.c isalpha(int c)
c 35 usr/lib/libc/ctype/isalpha.c return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
c 33 usr/lib/libc/ctype/isblank.c isblank(int c)
c 35 usr/lib/libc/ctype/isblank.c return (c == ' ' || c == '\t');
c 33 usr/lib/libc/ctype/iscntrl.c iscntrl(int c)
c 35 usr/lib/libc/ctype/iscntrl.c return (c == 127 || (c >= 0 && c <= 31));
c 33 usr/lib/libc/ctype/isdigit.c isdigit(int c)
c 35 usr/lib/libc/ctype/isdigit.c return (c >= '0' && c <= '9');
c 33 usr/lib/libc/ctype/isgraph.c isgraph(int c)
c 35 usr/lib/libc/ctype/isgraph.c return (isprint(c) && c != ' ');
c 33 usr/lib/libc/ctype/islower.c islower(int c)
c 35 usr/lib/libc/ctype/islower.c return (c >= 'a' && c <= 'z');
c 33 usr/lib/libc/ctype/isprint.c isprint(int c)
c 35 usr/lib/libc/ctype/isprint.c return (c >= 0x20 && c <= 0x7E);
c 33 usr/lib/libc/ctype/ispunct.c ispunct(int c)
c 35 usr/lib/libc/ctype/ispunct.c return (isprint(c) && !isspace(c) && !isalnum(c));
c 33 usr/lib/libc/ctype/isspace.c isspace(int c)
c 35 usr/lib/libc/ctype/isspace.c return (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v');
c 33 usr/lib/libc/ctype/isupper.c isupper(int c)
c 35 usr/lib/libc/ctype/isupper.c return (c >= 'A' && c <= 'Z');
c 33 usr/lib/libc/ctype/isxdigit.c isxdigit(int c)
c 35 usr/lib/libc/ctype/isxdigit.c return (isdigit(c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f'));
c 33 usr/lib/libc/ctype/tolower.c tolower(int c)
c 36 usr/lib/libc/ctype/tolower.c if (isupper(c))
c 37 usr/lib/libc/ctype/tolower.c return 'a' - 'A' + c;
c 38 usr/lib/libc/ctype/tolower.c return c;
c 33 usr/lib/libc/ctype/toupper.c toupper(int c)
c 36 usr/lib/libc/ctype/toupper.c if (islower(c))
c 37 usr/lib/libc/ctype/toupper.c return 'A' - 'a' + c;
c 38 usr/lib/libc/ctype/toupper.c return c;
c 48 usr/lib/libc/stdio/fgets.c int c = -1;
c 52 usr/lib/libc/stdio/fgets.c while (--n > 0 && (c = getc(fp)) >= 0) {
c 53 usr/lib/libc/stdio/fgets.c *s++ = c;
c 54 usr/lib/libc/stdio/fgets.c if (c == '\n')
c 57 usr/lib/libc/stdio/fgets.c if (c < 0 && s == buf)
c 36 usr/lib/libc/stdio/fputc.c fputc(c, fp)
c 37 usr/lib/libc/stdio/fputc.c int c;
c 40 usr/lib/libc/stdio/fputc.c return (putc(c, fp));
c 44 usr/lib/libc/stdio/fputs.c int c, r = 0;
c 46 usr/lib/libc/stdio/fputs.c while ((c = *s++) != '\0')
c 47 usr/lib/libc/stdio/fputs.c r = putc(c, fp);
c 40 usr/lib/libc/stdio/gets.c int c;
c 43 usr/lib/libc/stdio/gets.c for (s = buf; (c = getchar()) != '\n';)
c 44 usr/lib/libc/stdio/gets.c if (c == EOF)
c 50 usr/lib/libc/stdio/gets.c *s++ = c;
c 42 usr/lib/libc/stdio/putc.c __swbuf(c, fp)
c 43 usr/lib/libc/stdio/putc.c int c;
c 50 usr/lib/libc/stdio/putc.c c = (unsigned char)c;
c 68 usr/lib/libc/stdio/putc.c *fp->_p++ = c;
c 69 usr/lib/libc/stdio/putc.c if (++n == fp->_bf._size || (fp->_flags & __SLBF && c == '\n'))
c 72 usr/lib/libc/stdio/putc.c return (c);
c 76 usr/lib/libc/stdio/putc.c putc(c, fp)
c 77 usr/lib/libc/stdio/putc.c int c;
c 81 usr/lib/libc/stdio/putc.c return (*fp->_p++ = c);
c 83 usr/lib/libc/stdio/putc.c return (__swbuf(c, fp));
c 38 usr/lib/libc/stdio/putchar.c putchar(c)
c 39 usr/lib/libc/stdio/putchar.c int c;
c 41 usr/lib/libc/stdio/putchar.c return (putc(c, stdout));
c 43 usr/lib/libc/stdio/puts.c char c;
c 45 usr/lib/libc/stdio/puts.c while ((c = *s++) != '\0')
c 46 usr/lib/libc/stdio/puts.c putchar(c);
c 39 usr/lib/libc/stdio/ungetc.c ungetc(c, fp)
c 40 usr/lib/libc/stdio/ungetc.c int c;
c 43 usr/lib/libc/stdio/ungetc.c if (c == EOF)
c 62 usr/lib/libc/stdio/ungetc.c c = (unsigned char)c;
c 70 usr/lib/libc/stdio/ungetc.c *--fp->_p = c;
c 72 usr/lib/libc/stdio/ungetc.c return (c);
c 82 usr/lib/libc/stdio/ungetc.c fp->_p[-1] == c) {
c 85 usr/lib/libc/stdio/ungetc.c return (c);
c 96 usr/lib/libc/stdio/ungetc.c fp->_ubuf[sizeof(fp->_ubuf) - 1] = c;
c 99 usr/lib/libc/stdio/ungetc.c return (c);
c 101 usr/lib/libc/stdio/vfprintf.c #define to_digit(c) ((c) - '0')
c 102 usr/lib/libc/stdio/vfprintf.c #define is_digit(c) ((unsigned)to_digit(c) <= 9)
c 89 usr/lib/libc/stdio/vfscanf.c int c; /* character from format, or conversion */
c 112 usr/lib/libc/stdio/vfscanf.c c = *fmt++;
c 113 usr/lib/libc/stdio/vfscanf.c if (c == 0)
c 115 usr/lib/libc/stdio/vfscanf.c if (isspace(c)) {
c 125 usr/lib/libc/stdio/vfscanf.c if (c != '%')
c 133 usr/lib/libc/stdio/vfscanf.c again: c = *fmt++;
c 134 usr/lib/libc/stdio/vfscanf.c switch (c) {
c 139 usr/lib/libc/stdio/vfscanf.c if (*fp->_p != c)
c 160 usr/lib/libc/stdio/vfscanf.c width = width * 10 + c - '0';
c 174 usr/lib/libc/stdio/vfscanf.c c = CT_INT;
c 180 usr/lib/libc/stdio/vfscanf.c c = CT_INT;
c 189 usr/lib/libc/stdio/vfscanf.c c = CT_INT;
c 195 usr/lib/libc/stdio/vfscanf.c c = CT_INT;
c 205 usr/lib/libc/stdio/vfscanf.c c = CT_INT;
c 211 usr/lib/libc/stdio/vfscanf.c c = CT_STRING;
c 217 usr/lib/libc/stdio/vfscanf.c c = CT_CCL;
c 222 usr/lib/libc/stdio/vfscanf.c c = CT_CHAR;
c 227 usr/lib/libc/stdio/vfscanf.c c = CT_INT;
c 250 usr/lib/libc/stdio/vfscanf.c if (isupper(c))
c 252 usr/lib/libc/stdio/vfscanf.c c = CT_INT;
c 286 usr/lib/libc/stdio/vfscanf.c switch (c) {
c 407 usr/lib/libc/stdio/vfscanf.c c = *fp->_p;
c 412 usr/lib/libc/stdio/vfscanf.c switch (c) {
c 490 usr/lib/libc/stdio/vfscanf.c *p++ = c;
c 507 usr/lib/libc/stdio/vfscanf.c c = ((u_char *)p)[-1];
c 508 usr/lib/libc/stdio/vfscanf.c if (c == 'x' || c == 'X') {
c 510 usr/lib/libc/stdio/vfscanf.c (void) ungetc(c, fp);
c 549 usr/lib/libc/stdio/vfscanf.c int c, n, v;
c 552 usr/lib/libc/stdio/vfscanf.c c = *fmt++; /* first char hat => negated scanset */
c 553 usr/lib/libc/stdio/vfscanf.c if (c == '^') {
c 555 usr/lib/libc/stdio/vfscanf.c c = *fmt++; /* get new first char */
c 561 usr/lib/libc/stdio/vfscanf.c if (c == 0)
c 573 usr/lib/libc/stdio/vfscanf.c tab[c] = v; /* take character c */
c 601 usr/lib/libc/stdio/vfscanf.c if (n == ']' || n < c) {
c 602 usr/lib/libc/stdio/vfscanf.c c = '-';
c 607 usr/lib/libc/stdio/vfscanf.c tab[++c] = v;
c 608 usr/lib/libc/stdio/vfscanf.c } while (c < n);
c 617 usr/lib/libc/stdio/vfscanf.c c = *fmt++;
c 618 usr/lib/libc/stdio/vfscanf.c if (c == 0)
c 620 usr/lib/libc/stdio/vfscanf.c if (c == ']')
c 629 usr/lib/libc/stdio/vfscanf.c c = n;
c 67 usr/lib/libc/stdlib/getenv.c char **p, *c;
c 74 usr/lib/libc/stdlib/getenv.c for (p = environ; (c = *p) != NULL; ++p)
c 75 usr/lib/libc/stdlib/getenv.c if (strncmp(c, name, len) == 0 && c[len] == '=') {
c 77 usr/lib/libc/stdlib/getenv.c return (c + len + 1);
c 83 usr/lib/libc/stdlib/qsort.c med3(a, b, c, cmp)
c 84 usr/lib/libc/stdlib/qsort.c char *a, *b, *c;
c 88 usr/lib/libc/stdlib/qsort.c (cmp(b, c) < 0 ? b : (cmp(a, c) < 0 ? c : a ))
c 89 usr/lib/libc/stdlib/qsort.c :(cmp(b, c) > 0 ? b : (cmp(a, c) < 0 ? a : c ));
c 50 usr/lib/libc/stdlib/setenv.c char *c;
c 56 usr/lib/libc/stdlib/setenv.c if ((c = __findenv(name, &offset))) { /* find if already exists */
c 59 usr/lib/libc/stdlib/setenv.c if ((int)strlen(c) >= l_value) { /* old larger; copy over */
c 60 usr/lib/libc/stdlib/setenv.c while ( (*c++ = *value++) );
c 85 usr/lib/libc/stdlib/setenv.c for (c = (char *)name; *c && *c != '='; ++c); /* no `=' in name */
c 87 usr/lib/libc/stdlib/setenv.c malloc((size_t)((int)(c - name) + l_value + 2))))
c 89 usr/lib/libc/stdlib/setenv.c for (c = environ[offset]; (*c = *name++) && *c != '='; ++c);
c 90 usr/lib/libc/stdlib/setenv.c for (*c++ = '='; (*c++ = *value++) != 0;);
c 50 usr/lib/libc/stdlib/strtol.c int c;
c 60 usr/lib/libc/stdlib/strtol.c c = (unsigned char) *s++;
c 61 usr/lib/libc/stdlib/strtol.c } while (isspace(c));
c 62 usr/lib/libc/stdlib/strtol.c if (c == '-') {
c 64 usr/lib/libc/stdlib/strtol.c c = *s++;
c 67 usr/lib/libc/stdlib/strtol.c if (c == '+')
c 68 usr/lib/libc/stdlib/strtol.c c = *s++;
c 71 usr/lib/libc/stdlib/strtol.c c == '0' && (*s == 'x' || *s == 'X')) {
c 72 usr/lib/libc/stdlib/strtol.c c = s[1];
c 77 usr/lib/libc/stdlib/strtol.c base = c == '0' ? 8 : 10;
c 106 usr/lib/libc/stdlib/strtol.c for (acc = 0, any = 0;; c = (unsigned char) *s++) {
c 107 usr/lib/libc/stdlib/strtol.c if (isdigit(c))
c 108 usr/lib/libc/stdlib/strtol.c c -= '0';
c 109 usr/lib/libc/stdlib/strtol.c else if (isalpha(c))
c 110 usr/lib/libc/stdlib/strtol.c c -= isupper(c) ? 'A' - 10 : 'a' - 10;
c 113 usr/lib/libc/stdlib/strtol.c if (c >= base)
c 118 usr/lib/libc/stdlib/strtol.c if (acc < cutoff || (acc == cutoff && c > cutlim)) {
c 125 usr/lib/libc/stdlib/strtol.c acc -= c;
c 128 usr/lib/libc/stdlib/strtol.c if (acc > cutoff || (acc == cutoff && c > cutlim)) {
c 135 usr/lib/libc/stdlib/strtol.c acc += c;
c 49 usr/lib/libc/stdlib/strtoul.c int c;
c 57 usr/lib/libc/stdlib/strtoul.c c = (unsigned char) *s++;
c 58 usr/lib/libc/stdlib/strtoul.c } while (isspace(c));
c 59 usr/lib/libc/stdlib/strtoul.c if (c == '-') {
c 61 usr/lib/libc/stdlib/strtoul.c c = *s++;
c 64 usr/lib/libc/stdlib/strtoul.c if (c == '+')
c 65 usr/lib/libc/stdlib/strtoul.c c = *s++;
c 68 usr/lib/libc/stdlib/strtoul.c c == '0' && (*s == 'x' || *s == 'X')) {
c 69 usr/lib/libc/stdlib/strtoul.c c = s[1];
c 74 usr/lib/libc/stdlib/strtoul.c base = c == '0' ? 8 : 10;
c 78 usr/lib/libc/stdlib/strtoul.c for (acc = 0, any = 0;; c = (unsigned char) *s++) {
c 79 usr/lib/libc/stdlib/strtoul.c if (isdigit(c))
c 80 usr/lib/libc/stdlib/strtoul.c c -= '0';
c 81 usr/lib/libc/stdlib/strtoul.c else if (isalpha(c))
c 82 usr/lib/libc/stdlib/strtoul.c c -= isupper(c) ? 'A' - 10 : 'a' - 10;
c 85 usr/lib/libc/stdlib/strtoul.c if (c >= base)
c 89 usr/lib/libc/stdlib/strtoul.c if (acc > cutoff || (acc == cutoff && c > cutlim)) {
c 96 usr/lib/libc/stdlib/strtoul.c acc += c;
c 34 usr/lib/libc/string/memccpy.c memccpy(t, f, c, n)
c 37 usr/lib/libc/string/memccpy.c int c;
c 45 usr/lib/libc/string/memccpy.c if ((*tp++ = *fp++) == c)
c 37 usr/lib/libc/string/memchr.c memchr(s, c, n)
c 39 usr/lib/libc/string/memchr.c unsigned char c;
c 46 usr/lib/libc/string/memchr.c if (*p++ == c)
c 45 usr/lib/libc/string/strcspn.c char c, sc;
c 52 usr/lib/libc/string/strcspn.c c = *p++;
c 55 usr/lib/libc/string/strcspn.c if ((sc = *spanp++) == c)
c 41 usr/lib/libc/string/strpbrk.c int c, sc;
c 43 usr/lib/libc/string/strpbrk.c while ((c = *s1++) != 0) {
c 45 usr/lib/libc/string/strpbrk.c if (sc == c)
c 52 usr/lib/libc/string/strsep.c int c, sc;
c 58 usr/lib/libc/string/strsep.c c = *s++;
c 61 usr/lib/libc/string/strsep.c if ((sc = *spanp++) == c) {
c 62 usr/lib/libc/string/strsep.c if (c == 0)
c 42 usr/lib/libc/string/strspn.c char c, sc;
c 48 usr/lib/libc/string/strspn.c c = *p++;
c 50 usr/lib/libc/string/strspn.c if (sc == c)
c 43 usr/lib/libc/string/strstr.c char c, sc;
c 46 usr/lib/libc/string/strstr.c if ((c = *find++) != 0) {
c 52 usr/lib/libc/string/strstr.c } while (sc != c);
c 42 usr/lib/libc/string/strtok_r.c int c, sc;
c 52 usr/lib/libc/string/strtok_r.c c = *s++;
c 54 usr/lib/libc/string/strtok_r.c if (c == sc)
c 58 usr/lib/libc/string/strtok_r.c if (c == 0) { /* no non-delimiter characters */
c 69 usr/lib/libc/string/strtok_r.c c = *s++;
c 72 usr/lib/libc/string/strtok_r.c if ((sc = *spanp++) == c) {
c 73 usr/lib/libc/string/strtok_r.c if (c == 0)
c 42 usr/lib/libc/termios/tcflow.c u_char c;
c 53 usr/lib/libc/termios/tcflow.c c = term.c_cc[action == TCIOFF ? VSTOP : VSTART];
c 54 usr/lib/libc/termios/tcflow.c if (c != _POSIX_VDISABLE && write(fd, &c, sizeof(c)) == -1)
c 36 usr/lib/libsa/putchar.c putchar(int c)
c 40 usr/lib/libsa/putchar.c ch = (char)c;
c 42 usr/lib/libsa/putchar.c return c;
c 39 usr/lib/libsa/vsprintf.c #define isdigit(c) ((unsigned)((c) - '0') < 10)
c 125 usr/sample/tetris/input.c char c;
c 130 usr/sample/tetris/input.c if (rwait(&tv) && read(0, &c, 1) != 1)
c 141 usr/sample/tetris/input.c char c;
c 145 usr/sample/tetris/input.c } while (rwait(&tv) && read(0, &c, 1) == 1);
c 155 usr/sample/tetris/input.c char c;
c 173 usr/sample/tetris/input.c if (read(0, &c, 1) != 1)
c 175 usr/sample/tetris/input.c return ((int)(unsigned char)c);
c 65 usr/sample/tetris/screen.c #define moveto(r, c) printf("\33[%d;%dH", r, c)
c 119 usr/sample/tetris/tetris.c int pos, c;
c 187 usr/sample/tetris/tetris.c c = tgetchar();
c 188 usr/sample/tetris/tetris.c if (c < 0) {
c 219 usr/sample/tetris/tetris.c if (c == keys[5]) {
c 223 usr/sample/tetris/tetris.c if (c == keys[4]) {
c 239 usr/sample/tetris/tetris.c if (c == keys[0]) {
c 245 usr/sample/tetris/tetris.c if (c == keys[1]) {
c 253 usr/sample/tetris/tetris.c if (c == keys[2]) {
c 259 usr/sample/tetris/tetris.c if (c == keys[3]) {
c 267 usr/sample/tetris/tetris.c if (c == '\f')
c 282 usr/server/fs/fatfs/fatfs_fat.c u_long c, target;
c 287 usr/server/fs/fatfs/fatfs_fat.c c = start;
c 290 usr/server/fs/fatfs/fatfs_fat.c error = fat_next_cluster(fmp, c, &c);
c 293 usr/server/fs/fatfs/fatfs_fat.c if (IS_EOFCL(fmp, c))
c 296 usr/server/fs/fatfs/fatfs_fat.c *cl = c;
c 39 usr/test/fault/fault.c int c;
c 46 usr/test/fault/fault.c c = getchar();
c 91 usr/test/kmon/kmon.c int c, len = 0;
c 95 usr/test/kmon/kmon.c c = getchar();
c 96 usr/test/kmon/kmon.c if (c == '\n' || len > LINE_MAX) {
c 100 usr/test/kmon/kmon.c *p = (char)c;