/freebsd-10.1-release/usr.sbin/bhyve/ |
H A D | dbgport.c | 58 char ch; local 84 nread = read(conn_fd, &ch, 1); 88 *eax = ch; 95 ch = *eax; 96 nwritten = write(conn_fd, &ch, 1);
|
/freebsd-10.1-release/contrib/ntp/libparse/ |
H A D | clk_schmid.c | 7 * based on information and testing from Adam W. Feigin et. al (Swisstime iis.ethz.ch) 59 * Description courtesy of Adam W. Feigin et. al (Swisstime iis.ethz.ch) 202 char ch, 208 parseprintf(DD_PARSE, ("inp_schmid(0x%p, 0x%x, ...)\n", (void*)parseio, ch)); 210 switch ((uint8_t)ch) 214 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP) 220 return parse_addchar(parseio, ch); 200 inp_schmid( parse_t *parseio, char ch, timestamp_t *tstamp ) argument
|
H A D | clk_rcc8000.c | 138 char ch, 144 parseprintf(DD_PARSE, ("inp_rcc8000(0x%p, 0x%x, ...)\n", (void*)parseio, ch)); 146 switch (ch) 150 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP) 161 return parse_addchar(parseio, ch); 136 inp_rcc8000( parse_t *parseio, char ch, timestamp_t *tstamp ) argument
|
H A D | clk_trimtaip.c | 152 char ch, 158 parseprintf(DD_PARSE, ("inp_trimtaip(0x%p, 0x%x, ...)\n", (void*)parseio, ch)); 160 switch (ch) 166 parseio->parse_data[0] = ch; 172 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP) 179 return parse_addchar(parseio, ch); 150 inp_trimtaip( parse_t *parseio, char ch, timestamp_t *tstamp ) argument
|
/freebsd-10.1-release/libexec/comsat/ |
H A D | comsat.c | 221 unsigned char *cp, ch; local 260 for (cp = line; (ch = *cp) && ch != '\n'; ++cp, --charcnt) { 264 if (((ch & 0x80) && ch < 0xA0) || 265 (!(ch & 0x80) && !isprint(ch) && 266 !isspace(ch) && ch != '\a' && ch ! [all...] |
/freebsd-10.1-release/sys/dev/ata/chipsets/ |
H A D | ata-acard.c | 113 struct ata_channel *ch = device_get_softc(dev); local 119 ch->hw.status = ata_acard_status; 120 ch->flags |= ATA_NO_ATAPI_DMA; 127 struct ata_channel *ch = device_get_softc(dev); local 129 if (ch->dma.flags & ATA_DMA_ACTIVE) { 130 int bmstat = ATA_IDX_INB(ch, ATA_BMSTAT_PORT) & ATA_BMSTAT_MASK; 135 ATA_IDX_OUTB(ch, ATA_BMSTAT_PORT, bmstat & ~ATA_BMSTAT_ERROR); 137 ATA_IDX_OUTB(ch, ATA_BMCMD_PORT, 138 ATA_IDX_INB(ch, ATA_BMCMD_PORT) & ~ATA_BMCMD_START_STOP); 141 if (ATA_IDX_INB(ch, ATA_ALTSTA 154 struct ata_channel *ch = device_get_softc(dev); local 178 struct ata_channel *ch = device_get_softc(dev); local [all...] |
/freebsd-10.1-release/contrib/gdb/gdb/ |
H A D | ocd.c | 748 int ch; 750 ch = serial_readchar (ocd_desc, timeout); 752 switch (ch) 760 return ch; 809 int ch; 815 ch = readchar (timeout); 817 if (ch < 0) 818 error ("ocd_get_packet (readchar): %d", ch); 820 if (ch != 0x55) 821 error ("ocd_get_packet (readchar): %d", ch); 739 int ch; local 800 int ch; local [all...] |
/freebsd-10.1-release/usr.sbin/config/ |
H A D | main.c | 110 int ch, len; local 119 while ((ch = getopt(argc, argv, "CI:d:gmpVx:")) != -1) 120 switch (ch) { 293 int ch; local 298 while ((ch = getc(fp)) != EOF) 299 if (ch != ' ' && ch != '\t') 301 if (ch == EOF) 303 if (ch == '\\'){ 307 if (ch 338 int ch; local [all...] |
/freebsd-10.1-release/crypto/openssh/openbsd-compat/ |
H A D | bsd-snprintf.c | 194 char ch; local 211 ch = *format++; 214 if (ch == '\0') 219 if (ch == '%') 222 DOPR_OUTCH(buffer, currlen, maxlen, ch); 223 ch = *format++; 226 switch (ch) { 229 ch = *format++; 233 ch = *format++; 237 ch [all...] |
/freebsd-10.1-release/lib/libedit/ |
H A D | key.c | 72 char ch; /* single character of key */ member in struct:key_node_t 164 * Looks up *ch in map and then reads characters until a 168 * The last character read is returned in *ch. 171 key_get(EditLine *el, char *ch, key_value_t *val) argument 174 return (node_trav(el, el->el_key.map, ch, val)); 272 node_trav(EditLine *el, key_node_t *ptr, char *ch, key_value_t *val) argument 275 if (ptr->ch == *ch) { 279 if (el_getc(el, ch) != 1) { /* if EOF or error */ 284 return (node_trav(el, ptr->next, ch, va 451 node__get(int ch) argument 620 key__decode_char(char *buf, size_t cnt, size_t off, int ch) argument [all...] |
/freebsd-10.1-release/usr.sbin/lpr/chkprintcap/ |
H A D | skimprintcap.c | 78 char *ch, *curline, *endfield, *lastchar; local 149 ch = curline; 150 while ((ch <= lastchar) && (*ch != ':') && (*ch != '|')) 151 ch++; 152 ch--; /* last char of queue name */ 154 if ((ch - curline) > QENTRY_MAXLEN) { 159 strncat(skim_entryname, curline, (ch - curline
|
/freebsd-10.1-release/tools/regression/sockets/kqueue/ |
H A D | kqueue.c | 109 char ch; local 134 ch = 'a'; 135 len = write(fd[1], &ch, sizeof(ch)); 139 if (len != sizeof(ch)) 160 len = read(fd[0], &ch, sizeof(ch)); 164 if (len != sizeof(ch)) 194 char ch; local 219 ch [all...] |
/freebsd-10.1-release/usr.sbin/pw/ |
H A D | pw.c | 96 int ch; local 185 while ((ch = getopt(argc, argv, opts[which][mode])) != -1) { 186 if (ch == '?') 189 addarg(&arglist, ch, optarg); 230 ch = funcs[which] (cnf, mode, &arglist); 236 if (ch == EXIT_SUCCESS && getarg(&arglist, 'Y') != NULL) { 252 errx(ch, "make exited with status %d", i); 257 return ch; 432 getarg(struct cargs * _args, int ch) argument 436 while (c != NULL && c->ch ! 442 addarg(struct cargs * _args, int ch, char *argstr) argument [all...] |
/freebsd-10.1-release/contrib/dialog/ |
H A D | tailbox.c | 49 int j, tmpint, ch; local 52 if (((ch = getc(fp)) == EOF) && !feof(fp)) 54 else if (!feof(fp) && (ch != '\n')) { 55 if ((ch == TAB) && (dialog_vars.tab_correct)) { 65 obj->line[col] = (char) ch; 71 } while (!feof(fp) && (ch != '\n')); 223 handle_my_getc(DIALOG_CALLBACK * cb, int ch, int fkey, int *result) argument 228 if (!fkey && dlg_char_to_button(ch, obj->buttons) == 0) { 229 ch = DLGK_ENTER; 234 switch (ch) { 379 int ch; local [all...] |
H A D | ui_getc.c | 224 dlg_getc_callbacks(int ch, int fkey, int *result) argument 234 if (!(p->handle_getc(p, ch, fkey, result))) { 337 int ch; local 351 ch = ERR; 357 ch = *fkey = my_wchar; 367 ch = (int) CharOf(last_getc_bytes[used_last_getc++]); 371 ch = ERR; 378 ch = (int) CharOf(last_getc_bytes[used_last_getc++]); 381 ch = wgetch(win); 382 last_getc = ch; 430 int ch = ERR; local [all...] |
/freebsd-10.1-release/crypto/openssl/crypto/bio/ |
H A D | b_print.c | 174 char ch; local 188 ch = *format++; 191 if (ch == '\0' || (buffer == NULL && currlen >= *maxlen)) 196 if (ch == '%') 199 if(!doapr_outch(sbuffer, buffer, &currlen, maxlen, ch)) 201 ch = *format++; 204 switch (ch) { 207 ch = *format++; 211 ch = *format++; 215 ch [all...] |
/freebsd-10.1-release/sys/powerpc/mambo/ |
H A D | mambo_console.c | 164 int ch; local 166 ch = mambocall(MAMBO_CONSOLE_READ); 168 if (ch > 0 && ch < 0xff) { 170 kdb_alt_break(ch, &alt_break_state); 172 return (ch);
|
/freebsd-10.1-release/tools/regression/file/ftruncate/ |
H A D | ftruncate.c | 67 char ch; local 106 size = pread(fd, &ch, sizeof(ch), len - 1); 109 if (size != sizeof(ch)) 112 if (ch != 0) 114 "pread length %llu size %jd ch %d up", 115 len, (intmax_t)size, ch);
|
/freebsd-10.1-release/contrib/nvi/vi/ |
H A D | vs_line.c | 53 ARG_CHAR_T ch = '\0'; local 176 ch = '$'; 180 ch = '~'; 185 ch = '$'; 187 KEY_NAME(sp, ch), KEY_LEN(sp, ch)); 266 chlen = (ch = *p++) == '\t' && !list_tab ? 267 TAB_OFF(scno) : KEY_COL(sp, ch); 293 chlen = (ch = *p++) == '\t' && !list_tab ? 294 TAB_OFF(scno) : KEY_COL(sp, ch); [all...] |
/freebsd-10.1-release/sys/dev/sound/isa/ |
H A D | ess.c | 125 static int ess_setupch(struct ess_info *sc, int ch, int dir, int spd, u_int32_t fmt, int len); 126 static int ess_start(struct ess_chinfo *ch); 127 static int ess_stop(struct ess_chinfo *ch); 461 ess_setupch(struct ess_info *sc, int ch, int dir, int spd, u_int32_t fmt, int len) argument 473 if (ch == 1) { 502 } else if (ch == 2) { 524 ess_start(struct ess_chinfo *ch) argument 526 struct ess_info *sc = ch->parent; 527 int play = (ch->dir == PCMDIR_PLAY)? 1 : 0; 530 ess_setupch(sc, ch 543 ess_stop(struct ess_chinfo *ch) argument 566 struct ess_chinfo *ch = (dir == PCMDIR_PLAY)? &sc->pch : &sc->rch; local 584 struct ess_chinfo *ch = data; local 593 struct ess_chinfo *ch = data; local 607 struct ess_chinfo *ch = data; local 616 struct ess_chinfo *ch = data; local 640 struct ess_chinfo *ch = data; local 648 struct ess_chinfo *ch = data; local [all...] |
H A D | sb16.c | 572 struct sb_chinfo *ch; local 622 ch = &sb->pch; 623 if (ch->run) { 624 l = ch->blksz; 625 if (ch->fmt & AFMT_16BIT) 630 RANGE(ch->spd, 5000, 45000); 632 sb_cmd(sb, ch->spd >> 8); 633 sb_cmd(sb, ch->spd & 0xff); 637 v |= (ch->fmt & AFMT_16BIT)? DSP_DMA16 : DSP_DMA8; 640 v = (AFMT_CHANNEL(ch 681 struct sb_chinfo *ch = (dir == PCMDIR_PLAY)? &sb->pch : &sb->rch; local 697 struct sb_chinfo *ch = data; local 710 struct sb_chinfo *ch = data; local 719 struct sb_chinfo *ch = data; local 728 struct sb_chinfo *ch = data; local 747 struct sb_chinfo *ch = data; local 755 struct sb_chinfo *ch = data; local 767 struct sb_chinfo *ch = data; local [all...] |
/freebsd-10.1-release/usr.bin/wall/ |
H A D | wall.c | 100 int ch; local 110 while ((ch = getopt(argc, argv, "g:n")) != -1) 111 switch (ch) { 190 wchar_t ch; local 248 for (p = lbuf; (ch = *p) != L'\0'; ++p, ++cnt) { 249 if (ch == L'\r') { 253 } else if (ch == L'\n') { 265 if (iswprint(ch) || iswspace(ch) || ch [all...] |
/freebsd-10.1-release/contrib/ncurses/ncurses/base/ |
H A D | MKlib_gen.sh | 264 ch = $i; 265 if ( ch == "*" ) 267 else if ( ch == "va_list" ) 269 else if ( ch == "..." ) 271 else if ( ch == "char" ) 273 else if ( ch == "int" ) 275 else if ( ch == "short" ) 277 else if ( ch == "chtype" ) 279 else if ( ch == "attr_t" || ch [all...] |
/freebsd-10.1-release/contrib/top/ |
H A D | utils.c | 197 register int ch; local 210 while ((ch = *from++) != '\0') 213 if (ch == ' ' && lastch != ' ') 217 lastch = ch; 243 while ((ch = *from++) != '\0') 245 if (ch != ' ') 253 *to++ = ch; 255 lastch = ch;
|
/freebsd-10.1-release/sys/boot/ofw/libofw/ |
H A D | ofw_net.c | 153 char *ch = pkt; local 157 printf("%02x%02x%02x%02x ", ch[i], ch[i+1], 158 ch[i+2], ch[i+3]); 184 char *ch; local 188 if ((ch = strchr(path, ':')) != NULL) 189 *ch = '\0';
|