/titanic_50/usr/src/cmd/tic/ |
H A D | tic_scan.c | 91 #define iswhite(ch) (ch == ' ' || ch == '\t') argument 137 register int ch; in get_token() local 142 while ((ch = next_char()) == '\n' || (isascii(ch) && iswhite(ch))); in get_token() 144 if (ch == EOF) in get_token() 147 if (ch == '.') { in get_token() 150 while ((ch = next_char()) == ' ' || ch == '\t'); in get_token() 153 if (! isascii(ch) || ! isalnum(ch)) { in get_token() 154 warning("Illegal character - '%c'", ch); in get_token() 159 if (ch != '\n') *(ptr++) = ch; in get_token() 162 while ((ch = next_char()) != ',' && ch != '\n' && ch != EOF) in get_token() [all …]
|
/titanic_50/usr/src/uts/common/io/comstar/port/srpt/ |
H A D | srpt_ch.c | 63 static void srpt_ch_process_iu(srpt_channel_t *ch, srpt_iu_t *iu); 72 srpt_channel_t *ch; in srpt_ch_alloc() local 82 ch = kmem_zalloc(sizeof (*ch), KM_SLEEP); in srpt_ch_alloc() 83 rw_init(&ch->ch_rwlock, NULL, RW_DRIVER, NULL); in srpt_ch_alloc() 84 mutex_init(&ch->ch_reflock, NULL, MUTEX_DRIVER, NULL); in srpt_ch_alloc() 85 cv_init(&ch->ch_cv_complete, NULL, CV_DRIVER, NULL); in srpt_ch_alloc() 86 ch->ch_refcnt = 1; in srpt_ch_alloc() 87 ch->ch_cv_waiters = 0; in srpt_ch_alloc() 89 ch->ch_state = SRPT_CHANNEL_CONNECTING; in srpt_ch_alloc() 90 ch->ch_tgt = tgt; in srpt_ch_alloc() [all …]
|
H A D | srpt_cm.c | 73 srpt_channel_t *ch = NULL; in srpt_cm_req_hdlr() local 117 ch = srpt_stp_login(tgt, &login, &login_rsp, in srpt_cm_req_hdlr() 119 if (ch != NULL) { in srpt_cm_req_hdlr() 131 ret_args->cm_ret.rep.cm_channel = ch->ch_chan_hdl; in srpt_cm_req_hdlr() 169 srpt_channel_t *ch; in srpt_cm_conn_est_hdlr() local 174 ch = (srpt_channel_t *)ibt_get_chan_private(event->cm_channel); in srpt_cm_conn_est_hdlr() 175 ASSERT(ch != NULL); in srpt_cm_conn_est_hdlr() 178 (void *)ch); in srpt_cm_conn_est_hdlr() 180 rw_enter(&ch->ch_rwlock, RW_WRITER); in srpt_cm_conn_est_hdlr() 181 if (ch->ch_state != SRPT_CHANNEL_CONNECTING && in srpt_cm_conn_est_hdlr() [all …]
|
/titanic_50/usr/src/common/util/ |
H A D | strtolctype.h | 59 #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'))
|
/titanic_50/usr/src/cmd/keyserv/ |
H A D | keyserv_cache.c | 43 struct cachekey_header *ch; member 108 static struct cachekey_header *remap_cache_file_ch(struct cachekey_header *ch, 111 static struct cachekey_header *cache_insert_ch(struct cachekey_header *ch, 117 static struct cachekey3_list *cache_retrieve_ch(struct cachekey_header *ch, 122 static int cache_remove_ch(struct cachekey_header *ch, 161 static struct cachekey3_list * copy_cl_item(struct cachekey_header *ch, 204 struct cachekey_header *ch; in create_cache_file_ch() local 283 if ((ch = (void *)mmap(0, sizeof (struct cachekey_header), in create_cache_file_ch() 292 if (ch->version != CACHEKEY_HEADER_VERSION || in create_cache_file_ch() 293 ch->headerlength != sizeof (struct cachekey_header) || in create_cache_file_ch() [all …]
|
/titanic_50/usr/src/lib/libxcurses/src/tic/ |
H A D | ticscan.c | 48 #define iswhite(ch) (ch == ' ' || ch == '\t') argument 109 int ch; in get_token() local 114 while ((ch = next_char()) == '\n' || iswhite(ch)) { in get_token() 118 if (ch == EOF) in get_token() 122 if (ch == '.') in get_token() 126 while ((ch = next_char()) == ' ' || ch == '\t') in get_token() 130 if (! isalnum(ch)) { in get_token() 131 warning(m_strmsg(ill_char), ch); in get_token() 136 *(ptr++) = ch; in get_token() 140 while ((ch = next_char()) != ',' && ch != '\n' && ch != EOF) in get_token() [all …]
|
/titanic_50/usr/src/uts/common/pcmcia/cs/ |
H A D | cs_stubs.c | 188 csx_RegisterClient(client_handle_t *ch, client_reg_t *cr) in csx_RegisterClient() argument 194 return (CardServices(RegisterClient, ch, cr)); in csx_RegisterClient() 198 csx_DeregisterClient(client_handle_t ch) in csx_DeregisterClient() argument 202 cmn_err(CE_CONT, "csx_DeregisterClient: handle: 0x%x\n", ch); in csx_DeregisterClient() 204 return (CardServices(DeregisterClient, ch)); in csx_DeregisterClient() 208 csx_GetStatus(client_handle_t ch, get_status_t *gs) in csx_GetStatus() argument 212 cmn_err(CE_CONT, "csx_GetStatus: handle: 0x%x\n", ch); in csx_GetStatus() 214 return (CardServices(GetStatus, ch, gs)); in csx_GetStatus() 218 csx_SetEventMask(client_handle_t ch, sockevent_t *se) in csx_SetEventMask() argument 222 cmn_err(CE_CONT, "csx_SetEventMask: handle: 0x%x\n", ch); in csx_SetEventMask() [all …]
|
/titanic_50/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | wgetch.c | 81 int ch = __m_screen->_unget._stack[i]; in iqContainsFullLine() local 82 if (PTERMIOS(_shell)->c_cc[VEOL] == ch) in iqContainsFullLine() 84 if ('\n' == ch) in iqContainsFullLine() 91 iqPush(unsigned int ch) in iqPush() argument 96 (int) ch; in iqPush() 100 iqAdd(unsigned int ch) in iqAdd() argument 111 __m_screen->_unget._stack[0] = (int) ch; in iqAdd() 130 int ch; in iqPull() local 132 ch = __m_screen->_unget._stack[--(__m_screen->_unget._count)]; in iqPull() 133 return (ch); in iqPull() [all …]
|
/titanic_50/usr/src/lib/libresolv2/common/inet/ |
H A D | inet_net_pton.c | 65 int n, ch, tmp = 0, dirty, bits; in inet_net_pton_ipv4() local 68 ch = *src++; in inet_net_pton_ipv4() 69 if (ch == '0' && (src[0] == 'x' || src[0] == 'X') in inet_net_pton_ipv4() 77 while ((ch = *src++) != '\0' && isascii(ch) && isxdigit(ch)) { in inet_net_pton_ipv4() 78 if (isupper(ch)) in inet_net_pton_ipv4() 79 ch = tolower(ch); in inet_net_pton_ipv4() 80 n = strchr(xdigits, ch) - xdigits; in inet_net_pton_ipv4() 98 } else if (isascii(ch) && isdigit(ch)) { in inet_net_pton_ipv4() 103 n = strchr(digits, ch) - digits; in inet_net_pton_ipv4() 109 } while ((ch = *src++) != '\0' && in inet_net_pton_ipv4() [all …]
|
H A D | inet_cidr_pton.c | 87 int n, ch, tmp, bits; in inet_cidr_pton_ipv4() local 91 while (ch = *src++, (isascii(ch) && isdigit(ch))) { in inet_cidr_pton_ipv4() 94 n = strchr(digits, ch) - digits; 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() 112 if (ch == '/' && dst > odst) { 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 172 while ((ch = *src++) != '\0') { in inet_cidr_pton_ipv6() [all …]
|
/titanic_50/usr/src/common/net/wanboot/crypt/ |
H A D | cbc.c | 66 cbc_encrypt(cbc_handle_t *ch, uint8_t *data, size_t datalen, in cbc_encrypt() argument 73 if (!IS_P2ALIGNED(datalen, ch->blocklen)) { in cbc_encrypt() 80 for (i = 0; i < datalen; i += ch->blocklen) { in cbc_encrypt() 81 cbc_xorblock(lastp, thisp, ch->blocklen); in cbc_encrypt() 83 ch->encrypt(ch->ks, thisp); in cbc_encrypt() 85 thisp += ch->blocklen; in cbc_encrypt() 88 bcopy(lastp, IV, ch->blocklen); in cbc_encrypt() 93 cbc_decrypt(cbc_handle_t *ch, uint8_t *data, size_t datalen, in cbc_decrypt() argument 101 if (!IS_P2ALIGNED(datalen, ch->blocklen)) { in cbc_decrypt() 108 for (i = 0; i < datalen; i += ch->blocklen) { in cbc_decrypt() [all …]
|
/titanic_50/usr/src/uts/common/io/cardbus/ |
H A D | cardbus_parse.h | 81 #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
|
/titanic_50/usr/src/cmd/tr/ |
H A D | tr.c | 73 cset_in(struct cset *cs, wchar_t ch) in cset_in() argument 76 if (ch < CS_CACHE_SIZE && cs->cs_havecache) in cset_in() 77 return (cs->cs_cache[ch]); in cset_in() 78 return (cset_in_hard(cs, ch)); in cset_in() 89 wint_t ch, cnt, lastch; in main() local 94 while ((ch = getopt(argc, argv, "Ccdsu")) != -1) in main() 95 switch ((char)ch) { in main() 145 for (lastch = OOBCH; (ch = getwchar()) != WEOF; ) in main() 146 if (!cset_in(delete, ch) && in main() 147 (lastch != ch || !cset_in(squeeze, ch))) { in main() [all …]
|
/titanic_50/usr/src/uts/common/sys/ |
H A D | kobj_lex.h | 47 #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
|
/titanic_50/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_conf.h | 63 #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
|
/titanic_50/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_configfile.c | 35 #define isunary(ch) ((ch) == '~' || (ch) == '-') argument 36 #define iswhite(ch) ((ch) == ' ' || (ch) == '\t') argument 37 #define isnewline(ch) ((ch) == '\n' || (ch) == '\r' || (ch) == '\f') argument 38 #define isalphanum(ch) (isalpha(ch) || isdigit(ch)) argument 39 #define isnamechar(ch) (isalphanum(ch) || (ch) == '_' || (ch) == '-') argument 274 int ch, oval, badquote; in lex() local 279 while ((ch = GETC(buf, cntr)) == ' ' || ch == '\t'); in lex() 286 *cp++ = (char)ch; in lex() 287 switch (ch) { in lex() 318 while ((ch = GETC(buf, cntr)) == ' ' || in lex() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/stdio/common/ |
H A D | doscan.c | 86 int ch; in _doscan() local 97 if ( (ch = *fmt++) == '\0') in _doscan() 99 if (isws(ch)) in _doscan() 114 if (ch != '%' || (ch = *fmt++) == '%') in _doscan() 116 if ( (inchar = locgetc()) == ch ) in _doscan() 126 if (ch == '*') in _doscan() 129 ch = *fmt++; in _doscan() 134 for (len = 0; isdigit(ch); ch = *fmt++) in _doscan() 135 len = len * 10 + ch - '0'; in _doscan() 138 if ( (size = ch) == 'l' || (size == 'h') || (size == 'L') ) in _doscan() [all …]
|
/titanic_50/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | wgetch.c | 53 ungetch(ch) in ungetch() argument 54 int ch; in ungetch() 59 __m_trace("ungetch(%d)", ch); 61 code = __xc_ungetc(ch, (WINDOW *) 0) == EOF ? ERR : OK; 71 __xc_ungetc(int ch, void *w) in __xc_ungetc() argument 76 PUSH(ch); in __xc_ungetc() 116 int ch, i, j, timeout; local 148 ch = fgetc(__m_screen->_if); 155 if ((w->_flags & W_USE_KEYPAD) && 0 <= ch && ch != EOF) { 173 if (ch == cur_term->_shell.c_cc[VERASE]) [all …]
|
/titanic_50/usr/src/lib/libcryptoutil/common/ |
H A D | tohexstr.c | 70 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 …]
|
/titanic_50/usr/src/cmd/sgs/libconv/common/ |
H A D | c_literal.c | 160 int ch, i; in conv_translate_c_esc() local 162 ch = *s++; in conv_translate_c_esc() 163 switch (ch) { 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() [all …]
|
/titanic_50/usr/src/lib/libcurses/screen/ |
H A D | wgetstr.c | 60 int cpos = 0, ch; in wgetnstr() local 103 ch = wgetch(win); in wgetnstr() 107 if ((ch == ERR) || (ch == '\n') || (ch == '\r') || in wgetnstr() 108 (ch == KEY_ENTER)) 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() 148 } else if (ISMBIT(ch)) { in wgetnstr() [all …]
|
H A D | wgetwstr.c | 50 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() 129 if ((ch & EUCMASK) != P00) in wgetnwstr() [all …]
|
/titanic_50/usr/src/lib/libwrap/ |
H A D | percent_x.c | 55 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) : 71 ch == 'H' ? eval_hostinfo(request->server) : 72 ch == 'n' ? eval_hostname(request->client) : 73 ch == 'N' ? eval_hostname(request->server) : [all …]
|
/titanic_50/usr/src/lib/libc/port/locale/ |
H A D | gb18030.c | 84 int ch, len, ocount; in _GB18030_mbrtowc() local 116 ch = (unsigned char)*s++; in _GB18030_mbrtowc() 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() 124 ch = (unsigned char)*s++; 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() [all …]
|
/titanic_50/usr/src/lib/libc/port/stdio/ |
H A D | doscan.c | 134 wchar_t ch; in __wdoscan_u() local 138 int ch; in __wdoscan_u() 192 if ((ch = *fmt++) == '\0') { in __wdoscan_u() 196 if (iswspace(ch)) { in __wdoscan_u() 206 if (ch != '%' || (ch = *fmt++) == '%') { in __wdoscan_u() 207 if (ch == '%') { in __wdoscan_u() 217 if ((inchar = _wd_getwc(&chcount, iop)) == ch) in __wdoscan_u() 225 if (isspace(ch)) { in __wdoscan_u() 235 if (ch != '%' || (ch = *fmt++) == '%') { in __wdoscan_u() 236 if (ch == '%') { in __wdoscan_u() [all …]
|