Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 25 of 637) sorted by relevance

12345678910>>...26

/illumos-gate/usr/src/cmd/tic/
H A Dtic_scan.c91 #define iswhite(ch) (ch == ' ' || ch == '\t') argument
144 while ((ch = next_char()) == '\n' || (isascii(ch) && iswhite(ch))); in get_token()
161 if (ch != '\n') *(ptr++) = ch; in get_token()
164 while ((ch = next_char()) != ',' && ch != '\n' && ch != EOF) in get_token()
179 while (isascii(ch) && isalnum(ch)) { in get_token()
210 else if (ch >= 'a' && ch <= 'f') in get_token()
236 if (ch != '\0' && ch != ',') in get_token()
411 if (!isascii(ch) || ! isprint(ch)) { in trans_string()
424 if (ch >= '0' && ch <= '7') { in trans_string()
431 if (ch < '0' || ch > '7') { in trans_string()
[all …]
/illumos-gate/usr/src/uts/common/io/comstar/port/srpt/
H A Dsrpt_ch.c82 ch = kmem_zalloc(sizeof (*ch), KM_SLEEP); in srpt_ch_alloc()
167 ch->ch_num_swqe = ch->ch_sizes.cs_sq; in srpt_ch_alloc()
178 for (ch->ch_tail = 1; ch->ch_tail < ch->ch_num_swqe -1; ch->ch_tail++) { in srpt_ch_alloc()
179 ch->ch_swqe[ch->ch_tail].sw_next = ch->ch_tail + 1; in srpt_ch_alloc()
181 ch->ch_swqe[ch->ch_tail].sw_next = 0; in srpt_ch_alloc()
196 kmem_free(ch, sizeof (*ch)); in srpt_ch_alloc()
210 (void *)ch, ch->ch_refcnt); in srpt_ch_add_ref()
227 (void *)ch, ch->ch_refcnt, wait); in srpt_ch_release_ref()
349 (void *)ch, ch->ch_state); in srpt_ch_cleanup()
1413 if (ch->ch_head == ch->ch_tail) { in srpt_ch_alloc_swqe_wrid()
[all …]
H A Dsrpt_cm.c123 if (ch != NULL) { in srpt_cm_req_hdlr()
173 srpt_channel_t *ch; in srpt_cm_conn_est_hdlr() local
179 ASSERT(ch != NULL); in srpt_cm_conn_est_hdlr()
182 (void *)ch); in srpt_cm_conn_est_hdlr()
188 ch->ch_state); in srpt_cm_conn_est_hdlr()
209 srpt_channel_t *ch; in srpt_cm_conn_closed_hdlr() local
215 ASSERT(ch != NULL); in srpt_cm_conn_closed_hdlr()
235 srpt_ch_cleanup(ch); in srpt_cm_conn_closed_hdlr()
271 srpt_channel_t *ch; in srpt_cm_failure_hdlr() local
276 ASSERT(ch != NULL); in srpt_cm_failure_hdlr()
[all …]
/illumos-gate/usr/src/cmd/keyserv/
H A Dkeyserv_cache.c298 ch->maxsize < ch->length || in create_cache_file_ch()
300 INVALID_ADDRESS(ch->free, ch)) { in create_cache_file_ch()
339 ch->address = (caddr_t)ch; in create_cache_file_ch()
367 ch->free_count = MAPRECS(ch); in create_cache_file_ch()
368 ch->free = &(ch->array[0]); in create_cache_file_ch()
374 if ((ch = remap_cache_file_ch(ch, MAXRECS(ch))) == 0) { in create_cache_file_ch()
412 INVALID_ADDRESS(ch->free, ch)) { in cache_remap_addresses_ch()
447 ch->address = (caddr_t)ch; in cache_remap_addresses_ch()
508 ch->keylen, ch->algtype); in remap_cache_file_ch()
590 ch->keylen, ch->algtype, ch->version, ch->headerlength, in print_cache_ch()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/smbios/
H A Dsmbios_test_chassis.c48 ch->smbch_hdr.smbh_len = sizeof (*ch); in smbios_test_chassis_mktable_fill_chassis()
61 ch->smbch_cn = 0; in smbios_test_chassis_mktable_fill_chassis()
91 smb_chassis_t ch; in smbios_test_chassis_mktable_base() local
94 (void) smbios_test_table_append(table, &ch, sizeof (ch)); in smbios_test_chassis_mktable_base()
105 smb_chassis_t ch; in smbios_test_chassis_mktable_comps() local
111 ch.smbch_cn = 2; in smbios_test_chassis_mktable_comps()
112 (void) smbios_test_table_append(table, &ch, sizeof (ch)); in smbios_test_chassis_mktable_comps()
124 smb_chassis_t ch; in smbios_test_chassis_mktable_sku_nocomps() local
129 (void) smbios_test_table_append(table, &ch, sizeof (ch)); in smbios_test_chassis_mktable_sku_nocomps()
146 ch.smbch_cn = 2; in smbios_test_chassis_mktable_sku()
[all …]
/illumos-gate/usr/src/common/util/
H A Dstrtolctype.h59 #define isalnum(ch) (isalpha(ch) || isdigit(ch)) argument
60 #define isalpha(ch) (isupper(ch) || islower(ch)) argument
61 #define isdigit(ch) ((ch) >= '0' && (ch) <= '9') argument
62 #define islower(ch) ((ch) >= 'a' && (ch) <= 'z') argument
63 #define isspace(ch) (((ch) == ' ') || ((ch) == '\r') || ((ch) == '\n') || \ argument
64 ((ch) == '\t') || ((ch) == '\f'))
65 #define isupper(ch) ((ch) >= 'A' && (ch) <= 'Z') argument
66 #define isxdigit(ch) (isdigit(ch) || ((ch) >= 'a' && (ch) <= 'f') || \ argument
67 ((ch) >= 'A' && (ch) <= 'F'))
/illumos-gate/usr/src/uts/common/pcmcia/cs/
H A Dcs_stubs.c199 csx_DeregisterClient(client_handle_t ch) in csx_DeregisterClient() argument
205 return (CardServices(DeregisterClient, ch)); in csx_DeregisterClient()
215 return (CardServices(GetStatus, ch, gs)); in csx_GetStatus()
225 return (CardServices(SetEventMask, ch, se)); in csx_SetEventMask()
235 return (CardServices(GetEventMask, ch, se)); in csx_GetEventMask()
245 return (CardServices(RequestIO, ch, ior)); in csx_RequestIO()
255 return (CardServices(ReleaseIO, ch, ior)); in csx_ReleaseIO()
426 return (CardServices(ValidateCIS, ch, ci)); in csx_ValidateCIS()
859 "handle: 0x%x\n", ch); in csx_Parse_CISTPL_LONGLINK_MFC()
871 "handle: 0x%x\n", ch); in csx_Parse_CISTPL_LONGLINK_CB()
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwgetch.c96 (int) ch; in iqPush()
130 int ch; in iqPull() local
133 return (ch); in iqPull()
149 int ch; in iqGetNth() local
155 return (ch); in iqGetNth()
243 int ch; in pollTypeahead() local
254 iqAdd(ch); in pollTypeahead()
270 iqPush(ch); in ungetch()
289 iqPush(ch); in __xc_ungetc()
320 if (!(0 <= ch && ch != EOF)) { in __m_echo()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dinet_net_pton.c68 ch = *src++; in inet_net_pton_ipv4()
77 while ((ch = *src++) != '\0' && isascii(ch) && isxdigit(ch)) { in inet_net_pton_ipv4()
79 ch = tolower(ch); in inet_net_pton_ipv4()
98 } else if (isascii(ch) && isdigit(ch)) { in inet_net_pton_ipv4()
110 isascii(ch) && isdigit(ch)); in inet_net_pton_ipv4()
114 if (ch == '\0' || ch == '/') in inet_net_pton_ipv4()
119 if (!isascii(ch) || !isdigit(ch)) in inet_net_pton_ipv4()
138 } while ((ch = *src++) != '\0' && isascii(ch) && isdigit(ch)); in inet_net_pton_ipv4()
194 char ch; in getbits() local
225 char ch; in getv4() local
[all …]
H A Dinet_cidr_pton.c87 int n, ch, tmp, bits; in inet_cidr_pton_ipv4() local
91 while (ch = *src++, (isascii(ch) && isdigit(ch))) { in inet_cidr_pton_ipv4()
100 } while ((ch = *src++) != '\0' && isascii(ch) && isdigit(ch)); in inet_cidr_pton_ipv4()
104 if (ch == '\0' || ch == '/') in inet_cidr_pton_ipv4()
106 if (ch != '.') in inet_cidr_pton_ipv4()
116 } else if (ch != '\0') in inet_cidr_pton_ipv4()
157 int ch, saw_xdigit; in inet_cidr_pton_ipv6() local
185 if (ch == ':') { in inet_cidr_pton_ipv6()
209 if (ch == '/') { in inet_cidr_pton_ipv6()
257 char *cp, ch; in getbits() local
[all …]
/illumos-gate/usr/src/cmd/tr/
H A Dtr.c89 wint_t ch, cnt, lastch; in main() local
95 switch ((char)ch) { in main()
147 (lastch != ch || !cset_in(squeeze, ch))) { in main()
148 lastch = ch; in main()
149 (void) putwchar(ch); in main()
182 if (lastch != ch || !cset_in(squeeze, ch)) { in main()
183 lastch = ch; in main()
331 ch = cmap_lookup(map, ch); in main()
332 if (lastch != ch || !cset_in(squeeze, ch)) { in main()
333 lastch = ch; in main()
[all …]
/illumos-gate/usr/src/uts/common/io/cardbus/
H A Dcardbus_parse.h81 #define isalpha(ch) (((ch) >= 'a' && (ch) <= 'z') || \ argument
82 ((ch) >= 'A' && (ch) <= 'Z'))
83 #define isxdigit(ch) (isdigit(ch) || ((ch) >= 'a' && (ch) <= 'f') || \ argument
84 ((ch) >= 'A' && (ch) <= 'F'))
85 #define isx(ch) ((ch) == 'x' || (ch) == 'X') argument
86 #define isdigit(ch) ((ch) >= '0' && (ch) <= '9') argument
/illumos-gate/usr/src/uts/common/sys/
H A Dkobj_lex.h47 #define isunary(ch) ((ch) == '~' || (ch) == '-') argument
49 #define iswhite(ch) ((ch) == ' ' || (ch) == '\t') argument
51 #define isnewline(ch) ((ch) == '\n' || (ch) == '\r' || (ch) == '\f') argument
53 #define isalphanum(ch) (isalpha(ch) || isdigit(ch)) argument
55 #define isnamechar(ch) (isalphanum(ch) || (ch) == '_' || (ch) == '-') argument
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_conf.h63 #define isunary(ch) ((ch) == '~' || (ch) == '-') argument
64 #define iswhite(ch) ((ch) == ' ' || (ch) == '\t') argument
65 #define isnewline(ch) ((ch) == '\n' || (ch) == '\r' || (ch) == '\f') argument
66 #define isalphanum(ch) (isalpha(ch) || isdigit(ch)) argument
67 #define isnamechar(ch) (isalphanum(ch) || (ch) == '_' || (ch) == '-') argument
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_configfile.c33 #define isunary(ch) ((ch) == '~' || (ch) == '-') argument
34 #define iswhite(ch) ((ch) == ' ' || (ch) == '\t') argument
35 #define isnewline(ch) ((ch) == '\n' || (ch) == '\r' || (ch) == '\f') argument
36 #define isalphanum(ch) (isalpha(ch) || isdigit(ch)) argument
37 #define isnamechar(ch) (isalphanum(ch) || (ch) == '_' || (ch) == '-') argument
277 while ((ch = GETC(buf, cntr)) == ' ' || ch == '\t'); in lex()
317 ch == '\t' || ch == '\f') in lex()
350 while (ch >= '0' && ch <= '7') { in lex()
382 if (iswhite(ch) || (ch == '\n')) { in lex()
416 } else if (isalpha(ch) || ch == '\\') { in lex()
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwgetch.c53 ungetch(ch) in ungetch() argument
54 int ch; in ungetch()
71 __xc_ungetc(int ch, void *w) in __xc_ungetc() argument
76 PUSH(ch); in __xc_ungetc()
116 int ch, i, j, timeout; local
155 if ((w->_flags & W_USE_KEYPAD) && 0 <= ch && ch != EOF) {
182 PUSH(ch);
184 while (node->ch != ch) {
225 ch = POP();
228 if ((__m_screen->_flags & S_ECHO) && 0 <= ch && ch != EOF) {
[all …]
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dtohexstr.c70 unsigned char ch; in hexstr_to_bytes() local
93 ch = (unsigned char) *hexstr; in hexstr_to_bytes()
95 if (!isxdigit(ch)) { in hexstr_to_bytes()
102 if ((ch >= '0') && (ch <= '9')) in hexstr_to_bytes()
103 ch -= '0'; in hexstr_to_bytes()
104 else if ((ch >= 'A') && (ch <= 'F')) in hexstr_to_bytes()
105 ch = ch - 'A' + 10; in hexstr_to_bytes()
106 else if ((ch >= 'a') && (ch <= 'f')) in hexstr_to_bytes()
107 ch = ch - 'a' + 10; in hexstr_to_bytes()
110 b[i/2] |= ch; in hexstr_to_bytes()
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dwgetstr.c60 int cpos = 0, ch; in wgetnstr() local
103 ch = wgetch(win); in wgetnstr()
107 if ((ch == ERR) || (ch == '\n') || (ch == '\r') || in wgetnstr()
110 if ((ch == myerase) || (ch == KEY_LEFT) || in wgetnstr()
111 (ch == KEY_BACKSPACE) || (ch == mykill)) { in wgetnstr()
113 if (ch == mykill) { in wgetnstr()
140 } else if ((KEY_MIN <= ch) && (ch <= KEY_MAX)) in wgetnstr()
145 *cp++ = (char)ch; in wgetnstr()
169 if (ch >= ' ') in wgetnstr()
172 if (ch == '\t') in wgetnstr()
[all …]
H A Dwgetwstr.c50 int cpos = 0, ch; in wgetnwstr() local
88 ch = wgetwch(win); in wgetnwstr()
89 if ((ch == ERR) || (ch == '\n') || (ch == '\r') || in wgetnwstr()
90 (ch == KEY_ENTER)) in wgetnwstr()
92 if ((ch == myerase) || (ch == KEY_LEFT) || in wgetnwstr()
93 (ch == KEY_BACKSPACE) || (ch == mykill)) { in wgetnwstr()
95 if (ch == mykill) { in wgetnwstr()
122 if ((KEY_MIN <= ch) && (ch <= KEY_MAX)) in wgetnwstr()
125 *cp++ = ch; in wgetnwstr()
131 else if (ch >= ' ') in wgetnwstr()
[all …]
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Dc_literal.c160 int ch, i; in conv_translate_c_esc() local
162 ch = *s++; in conv_translate_c_esc()
165 ch = '\a'; in conv_translate_c_esc()
168 ch = '\b'; in conv_translate_c_esc()
171 ch = '\f'; in conv_translate_c_esc()
174 ch = '\n'; in conv_translate_c_esc()
177 ch = '\r'; in conv_translate_c_esc()
180 ch = '\t'; in conv_translate_c_esc()
183 ch = '\v'; in conv_translate_c_esc()
199 ch = (ch << 3) + (*s++ - '0'); in conv_translate_c_esc()
[all …]
/illumos-gate/usr/src/lib/libwrap/
H A Dpercent_x.c55 int ch; local
63 if (*str == '%' && (ch = str[1]) != 0) {
66 ch == 'a' ? eval_hostaddr(request->client) :
67 ch == 'A' ? eval_hostaddr(request->server) :
68 ch == 'c' ? eval_client(request) :
69 ch == 'd' ? eval_daemon(request) :
70 ch == 'h' ? eval_hostinfo(request->client) :
74 ch == 'p' ? eval_pid(request) :
75 ch == 's' ? eval_server(request) :
76 ch == 'u' ? eval_user(request) :
[all …]
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dregex2.h123 CHIN1(cset *cs, wint_t ch) in CHIN1() argument
127 assert(ch >= 0); in CHIN1()
128 if (ch < NC) in CHIN1()
129 return (((cs->bmp[ch >> 3] & (1 << (ch & 7))) != 0) ^ in CHIN1()
140 if (cs->ranges[i].min <= ch && ch <= cs->ranges[i].max) in CHIN1()
149 CHIN(cset *cs, wint_t ch) in CHIN() argument
152 assert(ch >= 0); in CHIN()
153 if (ch < NC) in CHIN()
154 return (((cs->bmp[ch >> 3] & (1 << (ch & 7))) != 0) ^ in CHIN()
157 return (CHIN1(cs, ch) || CHIN1(cs, towlower(ch)) || in CHIN()
[all …]
/illumos-gate/exception_lists/
H A Dwscheck37 usr/src/cmd/bhyve/acpi.[ch]
39 usr/src/cmd/bhyve/atkbdc.[ch]
40 usr/src/cmd/bhyve/audio.[ch]
49 usr/src/cmd/bhyve/fwctl.[ch]
50 usr/src/cmd/bhyve/gdb.[ch]
54 usr/src/cmd/bhyve/inout.[ch]
56 usr/src/cmd/bhyve/mem.[ch]
59 usr/src/cmd/bhyve/mptbl.[ch]
86 usr/src/cmd/bhyve/rtc.[ch]
94 usr/src/cmd/bhyve/vga.[ch]
[all …]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dgb18030.c84 int ch, len, ocount; in _GB18030_mbrtowc() local
117 if (ch <= 0x7f) { in _GB18030_mbrtowc()
119 wch = ch; in _GB18030_mbrtowc()
120 } else if (ch >= 0x81 && ch <= 0xfe) { in _GB18030_mbrtowc()
121 wch = ch; in _GB18030_mbrtowc()
125 if ((ch >= 0x40 && ch <= 0x7e) || (ch >= 0x80 && ch <= 0xfe)) { in _GB18030_mbrtowc()
126 wch = (wch << 8) | ch; in _GB18030_mbrtowc()
128 } else if (ch >= 0x30 && ch <= 0x39) { in _GB18030_mbrtowc()
138 if (ch < 0x81 || ch > 0xfe) in _GB18030_mbrtowc()
140 wch = (wch << 8) | ch; in _GB18030_mbrtowc()
[all …]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Ddoscan.c136 int ch; in __wdoscan_u()
204 if (ch != '%' || (ch = *fmt++) == '%') { in __wdoscan_u()
233 if (ch != '%' || (ch = *fmt++) == '%') { in __wdoscan_u()
261 for (len = 0; ((ch >= 0) && (ch < 256) && isdigit(ch)); in __wdoscan_u()
265 for (len = 0; isdigit(ch); ch = *fmt++) in __wdoscan_u()
485 if ((ch >= 0) && (ch < 256) && in __wdoscan_u()
491 ch = _tolower((int)ch); in __wdoscan_u()
494 if (ch != 'c' && ch != 'C' && ch != '[') { in __wdoscan_u()
509 ch = _tolower(ch); in __wdoscan_u()
512 if (ch != 'c' && ch != 'C' && ch != '[') { in __wdoscan_u()
[all …]

12345678910>>...26