/busybox-1.35.0/libbb/ |
D | printable.c | 11 void FAST_FUNC fputc_printable(int ch, FILE *file) in fputc_printable() argument 13 if ((ch & (0x80 + PRINTABLE_META)) == (0x80 + PRINTABLE_META)) { in fputc_printable() 15 ch &= 0x7f; in fputc_printable() 17 ch = (unsigned char) ch; in fputc_printable() 18 if (ch == 0x9b) { in fputc_printable() 20 ch = '{'; in fputc_printable() 23 if (ch < ' ') { in fputc_printable() 24 ch += '@'; in fputc_printable() 27 if (ch == 0x7f) { in fputc_printable() 28 ch = '?'; in fputc_printable() [all …]
|
D | uuencode.c | 93 unsigned ch = 0; in decode_base64() local 118 ch = (ch << 6) | t; in decode_base64() 121 *dst++ = (char) (ch >> 16); in decode_base64() 122 *dst++ = (char) (ch >> 8); in decode_base64() 123 *dst++ = (char) ch; in decode_base64() 124 if (ch & 0x1000000) { /* was last input char '='? */ in decode_base64() 126 if (ch & (0x1000000 << 6)) /* was it "=="? */ in decode_base64() 130 ch = 0; in decode_base64() 143 uint64_t ch = 0; in decode_base32() local 162 ch = (ch << 5) | t; in decode_base32() [all …]
|
D | die_if_bad_username.c | 34 unsigned char ch; in die_if_bad_username() local 45 ch = *name; in die_if_bad_username() 46 if (ch == '_' in die_if_bad_username() 49 || (ch >= '0' && ch <= '9') in die_if_bad_username() 50 || ((ch|0x20) >= 'a' && (ch|0x20) <= 'z') in die_if_bad_username() 55 (unsigned)ch, (unsigned)(name - start)); in die_if_bad_username()
|
D | fgets_str.c | 19 int ch; in xmalloc_fgets_internal() local 23 ch = fgetc(file); in xmalloc_fgets_internal() 24 if (ch == EOF) { in xmalloc_fgets_internal() 34 linebuf[idx] = ch; in xmalloc_fgets_internal() 40 linebuf[idx] = ch; in xmalloc_fgets_internal()
|
D | get_line_from_file.c | 15 int ch; in bb_get_chunk_from_file() local 19 while ((ch = getc(file)) != EOF) { in bb_get_chunk_from_file() 26 linebuf[idx++] = (char) ch; in bb_get_chunk_from_file() 27 if (ch == '\0') in bb_get_chunk_from_file() 29 if (end && ch == '\n') in bb_get_chunk_from_file()
|
D | platform.c | 184 int ch; in getline() local 190 ch = fgetc(stream); in getline() 191 if (ch == EOF) in getline() 197 line[len++] = ch; in getline() 198 } while (ch != '\n'); in getline()
|
D | pw_encrypt_des.c | 204 ascii_to_bin(char ch) in ascii_to_bin() argument 206 if (ch > 'z') in ascii_to_bin() 208 if (ch >= 'a') in ascii_to_bin() 209 return (ch - 'a' + 38); in ascii_to_bin() 210 if (ch > 'Z') in ascii_to_bin() 212 if (ch >= 'A') in ascii_to_bin() 213 return (ch - 'A' + 12); in ascii_to_bin() 214 if (ch > '9') in ascii_to_bin() 216 if (ch >= '.') in ascii_to_bin() 217 return (ch - '.'); in ascii_to_bin()
|
/busybox-1.35.0/networking/ |
D | nameif.c | 147 static void nameif_parse_selector(ethtable_t *ch, char *selector) in nameif_parse_selector() argument 158 ch->phy_address = -1; in nameif_parse_selector() 167 ch->bus_info = xstrdup(selector + 4); in nameif_parse_selector() 170 ch->driver = xstrdup(selector + 7); in nameif_parse_selector() 173 ch->phy_address = xatoi_positive(selector + 8); in nameif_parse_selector() 178 ch->mac = ether_aton_r(selector + (is_prefixed_with(selector, "mac=") ? 4 : 0), lmac); in nameif_parse_selector() 179 if (ch->mac == NULL) in nameif_parse_selector() 187 bb_error_msg_and_die("no selectors found for %s", ch->ifname); in nameif_parse_selector() 193 ethtable_t *ch; in prepend_new_eth_table() local 196 ch = xzalloc(sizeof(*ch)); in prepend_new_eth_table() [all …]
|
D | httpd.c | 762 unsigned char ch; in parse_conf() local 773 while ((ch = *p0) != '\0' && ch != '\n' && ch != '#' in parse_conf() 774 && ch != ' ' && ch != '\t' in parse_conf() 781 while (ch != '\0' && ch != '\n' && ch != '#') { in parse_conf() 782 if (ch != ' ' && ch != '\t') { in parse_conf() 783 *p++ = ch; in parse_conf() 785 ch = *++p0; in parse_conf() 798 ch = (buf[0] & ~0x20); /* toupper if it's a letter */ in parse_conf() 800 if (ch == 'I') { in parse_conf() 808 if (flag == FIRST_PARSE && ch == 'H') { in parse_conf() [all …]
|
/busybox-1.35.0/util-linux/ |
D | hexdump.c | 91 int ch; in hexdump_main() local 96 ch = 'C'; in hexdump_main() 102 while ((ch = getopt(argc, argv, hexdump_opts)) > 0) { in hexdump_main() 103 p = strchr(hexdump_opts, ch); in hexdump_main() 111 if (ch == 'C') { in hexdump_main() 119 if (ch == 'e') { in hexdump_main() 122 if (ch == 'f') { in hexdump_main() 125 if (ch == 'n') { in hexdump_main() 128 if (ch == 's') { /* compat: -s accepts hex numbers too */ in hexdump_main() 136 if (ch == 'v') { in hexdump_main()
|
/busybox-1.35.0/coreutils/ |
D | tac.c | 71 int ch, i; in tac_main() local 83 ch = fgetc(f); in tac_main() 84 if (ch != EOF) { in tac_main() 88 line->buf[i++] = ch; in tac_main() 90 if (ch == '\n' || (ch == EOF && i != 0)) { in tac_main() 97 } while (ch != EOF); in tac_main()
|
D | dos2unix.c | 63 int ch; in convert() local 88 while ((ch = fgetc(in)) != EOF) { in convert() 89 if (ch == '\r') in convert() 91 if (ch == '\n') in convert() 94 fputc(ch, out); in convert()
|
D | od.c | 175 int ch; in od_main() local 180 while ((ch = getopt(argc, argv, od_opts)) > 0) { in od_main() 181 if (ch == 'v') { in od_main() 183 } else if (((p = strchr(od_opts, ch)) != NULL) && (*p != '\0')) { in od_main()
|
D | tr.c | 256 unsigned char ch; in complement() local 259 ch = '\0'; in complement() 261 if (memchr(buffer, ch, buffer_len) == NULL) in complement() 262 conv[len++] = ch; in complement() 263 if (++ch == '\0') in complement()
|
D | sort.c | 163 unsigned char ch = 0; in get_key() local 169 while ((ch = str[end]) != '\0') { in get_key() 171 if (ch == key_separator) in get_key() 187 if (j && ch) { in get_key() 642 int ch = (option_mask32 & FLAG_z) ? '\0' : '\n'; in sort_main() local 644 printf("%s%c", lines[i], ch); in sort_main()
|
/busybox-1.35.0/shell/ |
D | hush.c | 1385 # define syntax_error_unterm_ch(lineno, ch) syntax_error_unterm_ch(ch) argument 1387 # define syntax_error_unexpected_ch(lineno, ch) syntax_error_unexpected_ch(ch) argument 1434 static void syntax_error_unterm_ch(unsigned lineno, char ch) in syntax_error_unterm_ch() argument 1436 char msg[2] = { ch, '\0' }; in syntax_error_unterm_ch() 1440 static void syntax_error_unexpected_ch(unsigned lineno UNUSED_PARAM, int ch) in syntax_error_unexpected_ch() argument 1443 msg[0] = ch; in syntax_error_unexpected_ch() 1448 bb_error_msg("syntax error: unexpected %s", ch == EOF ? "EOF" : msg); in syntax_error_unexpected_ch() 1463 # define syntax_error_unterm_ch(ch) syntax_error_unterm_ch(__LINE__, ch) argument 1465 # define syntax_error_unexpected_ch(ch) syntax_error_unexpected_ch(__LINE__, ch) argument 2724 int ch; in fgetc_interactive() local [all …]
|
/busybox-1.35.0/archival/libarchive/bz/ |
D | bzlib.c | 123 uint8_t ch = (uint8_t)(s->state_in_ch); in add_pair_to_block() local 125 BZ_UPDATE_CRC(s, s->blockCRC, ch); in add_pair_to_block() 130 s->block[s->nblock] = (uint8_t)ch; s->nblock++; in add_pair_to_block() 133 s->block[s->nblock] = (uint8_t)ch; s->nblock++; in add_pair_to_block() 136 s->block[s->nblock] = (uint8_t)ch; s->nblock++; in add_pair_to_block() 140 s->block[s->nblock] = (uint8_t)ch; s->nblock++; in add_pair_to_block() 141 s->block[s->nblock] = (uint8_t)ch; s->nblock++; in add_pair_to_block() 142 s->block[s->nblock] = (uint8_t)ch; s->nblock++; in add_pair_to_block() 143 s->block[s->nblock] = (uint8_t)ch; s->nblock++; in add_pair_to_block() 166 uint8_t ch = (uint8_t)(zs->state_in_ch); \ [all …]
|
/busybox-1.35.0/mailutils/ |
D | reformime.c | 96 int ch = fgetc(stdin); in parse() local 97 if (ch == '\r') /* Support both line endings */ in parse() 99 if (ch == EOF) in parse() 101 if (ch == '\n' && last_ch == ch) in parse() 105 header[header_idx++] = last_ch = ch; in parse()
|
D | sendmail.c | 201 char ch = *s++; in rcptto_list() local 203 if (ch == '"' && prev != '\\') { in rcptto_list() 205 } else if (!in_quote && ch == ',') { in rcptto_list() 210 prev = ch; in rcptto_list()
|
/busybox-1.35.0/networking/udhcp/ |
D | signalpipe.c | 29 unsigned char ch = sig; /* use char, avoid dealing with partial writes */ in signal_handler() local 30 if (write(WRITE_FD, &ch, 1) != 1) in signal_handler()
|
/busybox-1.35.0/util-linux/volume_id/ |
D | ubifs.c | 75 struct ubifs_ch ch; member 115 if (le32_to_cpu(sb->ch.magic) != UBIFS_NODE_MAGIC) in volume_id_probe_ubifs()
|
/busybox-1.35.0/miscutils/ |
D | devfsd.c | 1628 char ch; in st_expr_expand() local 1639 switch (ch = *input) { in st_expr_expand() 1648 ch = input[1]; in st_expr_expand() 1649 if (isspace(ch) ||(ch == '/') ||(ch == '\0')) { in st_expr_expand() 1664 for (ptr = ++input; !isspace(ch) && (ch != '/') && (ch != '\0'); ch = *++ptr) in st_expr_expand() 1687 buffer[out_pos++] = ch; in st_expr_expand() 1688 if (ch == '\0') { in st_expr_expand() 1723 char ch; in expand_variable() local 1729 ch = input[0]; in expand_variable() 1730 if (ch == '$') { in expand_variable() [all …]
|
/busybox-1.35.0/runit/ |
D | runsvdir.c | 382 char ch; in runsvdir_main() local 383 while (read(logpipe.rd, &ch, 1) > 0) { in runsvdir_main() 384 if (ch < ' ') in runsvdir_main() 385 ch = ' '; in runsvdir_main() 388 rplog[i-1] = ch; in runsvdir_main()
|
/busybox-1.35.0/scripts/kconfig/ |
D | symbol.c | 486 signed char ch; in sym_string_valid() local 492 ch = *str++; in sym_string_valid() 493 if (ch == '-') in sym_string_valid() 494 ch = *str++; in sym_string_valid() 495 if (!isdigit(ch)) in sym_string_valid() 497 if (ch == '0' && *str != 0) in sym_string_valid() 499 while ((ch = *str++)) { in sym_string_valid() 500 if (!isdigit(ch)) in sym_string_valid() 507 ch = *str++; in sym_string_valid() 509 if (!isxdigit(ch)) in sym_string_valid() [all …]
|
/busybox-1.35.0/loginutils/ |
D | getty.c | 698 char ch; in getty_main() local 700 while (safe_read(STDIN_FILENO, &ch, 1) == 1) { in getty_main() 701 debug("read %x\n", (unsigned char)ch); in getty_main() 702 if (ch == '\n' || ch == '\r') in getty_main()
|