/freebsd-11-stable/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-11-stable/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-11-stable/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-11-stable/usr.sbin/spi/ |
H A D | spi.c | 164 int err, ch, hdev, finfo, fdir; local 186 while (!err && (ch = getopt(argc, argv, "f:d:m:s:c:C:AbLvih")) != -1) { 187 switch (ch) { 387 int ch, ch2, ctr, cbcmd, err; local 412 ch = hexval(*(ppos++)); 413 if (ch < 0 || !*ppos) { /* must be valid pair of hex characters */ 424 ch = (ch * 16 + ch2) & 0xff; /* convert to byte */ 443 *pcur = reversebits[ch]; 445 *pcur = (uint8_t)ch; 527 int ch, ch2, ch3, ncmd, lsb, err; local 904 uint8_t ch; local [all...] |
/freebsd-11-stable/contrib/ntp/libparse/ |
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-11-stable/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-11-stable/contrib/tcpdump/ |
H A D | strtoaddr.c | 163 int ch, seen_xdigits; local 176 while ((ch = *src++) != '\0') { 179 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) 180 pch = strchr((xdigits = xdigits_u), ch); 188 if (ch == ':') { 205 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
|
/freebsd-11-stable/tests/sys/file/ |
H A D | ftruncate_test.c | 67 char ch; local 105 size = pread(fd, &ch, sizeof(ch), len - 1); 108 if (size != sizeof(ch)) 111 if (ch != 0) 113 "pread length %jd size %jd ch %d up", 114 (intmax_t)len, (intmax_t)size, ch);
|
/freebsd-11-stable/usr.sbin/cron/cron/ |
H A D | do_command.c | 192 register int ch; local 195 for (input_data = p = e->cmd; (ch = *input_data); 198 *p = ch; 200 if (ch == '%' || ch == '\\') 201 *--p = ch; 205 if (ch == '\\') { 209 if (ch == '%') { 383 register int ch; local 402 while ((ch 446 register int ch; local [all...] |
/freebsd-11-stable/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-11-stable/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 | 570 struct sb_chinfo *ch; local 620 ch = &sb->pch; 621 if (ch->run) { 622 l = ch->blksz; 623 if (ch->fmt & AFMT_16BIT) 628 RANGE(ch->spd, 5000, 45000); 630 sb_cmd(sb, ch->spd >> 8); 631 sb_cmd(sb, ch->spd & 0xff); 635 v |= (ch->fmt & AFMT_16BIT)? DSP_DMA16 : DSP_DMA8; 638 v = (AFMT_CHANNEL(ch 679 struct sb_chinfo *ch = (dir == PCMDIR_PLAY)? &sb->pch : &sb->rch; local 695 struct sb_chinfo *ch = data; local 708 struct sb_chinfo *ch = data; local 717 struct sb_chinfo *ch = data; local 726 struct sb_chinfo *ch = data; local 745 struct sb_chinfo *ch = data; local 753 struct sb_chinfo *ch = data; local 765 struct sb_chinfo *ch = data; local [all...] |
/freebsd-11-stable/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-11-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | config_file.c | 284 int ch; 290 SVN_ERR(parser_getc(ctx, &ch)); 291 while (ch != '\n' && ch != EOF) 296 svn_stringbuf_appendbyte(line, ch); 305 ch = '\n'; 321 SVN_ERR(parser_getc_plain(ctx, &ch)); 324 *c = ch; 335 int ch = 0; 338 SVN_ERR(parser_getc(ctx, &ch)); 282 int ch; local 333 int ch = 0; local 353 int ch; local 385 int ch; local 418 int ch = *pch; local 493 int ch; local 566 int ch; local 766 int ch, count; local [all...] |
/freebsd-11-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-uart.h | 132 * @param ch Byte to write 134 static inline void cvmx_uart_write_byte(int uart_index, uint8_t ch) argument 146 cvmx_write_csr(CVMX_MIO_UARTX_THR(uart_index), ch); local
|
/freebsd-11-stable/sys/dev/bvm/ |
H A D | bvm_console.c | 85 bvm_rcons(u_char *ch) argument 91 *ch = (u_char)c; 98 bvm_wcons(u_char ch) argument 101 outl(bvm_cons_port, ch); 208 unsigned char ch; local 210 if (bvm_rcons(&ch) == 0) { 212 kdb_alt_break(ch, &alt_break_state); 214 return (ch);
|
/freebsd-11-stable/contrib/top/ |
H A D | utils.c | 198 register int ch; local 211 while ((ch = *from++) != '\0') 214 if (ch == ' ' && lastch != ' ') 218 lastch = ch; 244 while ((ch = *from++) != '\0') 246 if (ch != ' ') 254 *to++ = ch; 256 lastch = ch;
|
/freebsd-11-stable/lib/libc/locale/ |
H A D | big5.c | 70 wchar_t ch; member in struct:__anon6654 92 return (ps == NULL || ((const _BIG5State *)ps)->ch == 0); 113 if ((bs->ch & ~0xFF) != 0) { 129 if (bs->ch != 0) { 134 wc = (bs->ch << 8) | (*s & 0xFF); 137 bs->ch = 0; 146 bs->ch = wc; 171 if (bs->ch != 0) {
|
H A D | gbk.c | 67 wchar_t ch; member in struct:__anon6661 89 return (ps == NULL || ((const _GBKState *)ps)->ch == 0); 110 if ((gs->ch & ~0xFF) != 0) { 126 if (gs->ch != 0) { 131 wc = (gs->ch << 8) | (*s & 0xFF); 134 gs->ch = 0; 143 gs->ch = wc; 168 if (gs->ch != 0) {
|
H A D | mskanji.c | 72 wchar_t ch; member in struct:__anon6665 94 return (ps == NULL || ((const _MSKanjiState *)ps)->ch == 0); 106 if ((ms->ch & ~0xFF) != 0) { 122 if (ms->ch != 0) { 127 wc = (ms->ch << 8) | (*s & 0xFF); 130 ms->ch = 0; 137 ms->ch = wc; 163 if (ms->ch != 0) {
|
/freebsd-11-stable/sys/netpfil/ipfw/nptv6/ |
H A D | nptv6.h | 60 int nptv6_init(struct ip_fw_chain *ch, int first); 61 void nptv6_uninit(struct ip_fw_chain *ch, int last);
|
/freebsd-11-stable/stand/ofw/libofw/ |
H A D | ofw_net.c | 167 char *ch = ptr; local 171 printf("%02x%02x%02x%02x ", ch[i], ch[i+1], 172 ch[i+2], ch[i+3]); 199 char *ch; local 203 if ((ch = strchr(path, ':')) != NULL) 204 *ch = '\0';
|
/freebsd-11-stable/contrib/ncurses/ncurses/base/ |
H A D | MKlib_gen.sh | 285 ch = $i; 286 if ( ch == "*" ) { 288 } else if ( ch == "va_list" ) { 290 } else if ( ch == "..." ) { 292 } else if ( ch == "char" ) { 294 } else if ( ch == "int" ) { 296 } else if ( ch == "short" ) { 298 } else if ( ch == "chtype" ) { 300 } else if ( ch == "attr_t" || ch [all...] |
/freebsd-11-stable/contrib/elftoolchain/libpe/ |
H A D | pe_coff.c | 72 pe_update_coff_header(PE *pe, PE_CoffHdr *ch) argument 75 if (pe == NULL || ch == NULL) { 92 if (pe->pe_ch->ch_optsize != ch->ch_optsize) 96 *pe->pe_ch = *ch;
|