/illumos-gate/usr/src/lib/iconv_modules/zh/common/ |
H A D | zh_CN.iso2022-CN%UTF-8.c | 112 st->_last_plane = st->_plane = -1; in _icv_open() 167 st->_plane = st->_last_plane = -1; in _icv_iconv() 246 st->_last_plane = st->_plane; in _icv_iconv() 254 st->_plane = st->_last_plane; in _icv_iconv() 262 st->_last_plane = st->_plane; in _icv_iconv() 295 st->_last_plane = st->_plane; in _icv_iconv() 314 st->_last_plane = st->_plane; in _icv_iconv() 321 st->_plane = st->_last_plane; in _icv_iconv() 330 st->_last_plane = st->_plane; in _icv_iconv() 384 st->_plane = st->_last_plane; in _icv_iconv() [all …]
|
H A D | zh_CN.iso2022-CN%zh_CN.gbk.c | 108 st->_last_plane = st->_plane = -1; in _icv_open() 163 st->_plane = st->_last_plane = -1; in _icv_iconv() 242 st->_last_plane = st->_plane; in _icv_iconv() 250 st->_plane = st->_last_plane; in _icv_iconv() 258 st->_last_plane = st->_plane; in _icv_iconv() 291 st->_last_plane = st->_plane; in _icv_iconv() 310 st->_last_plane = st->_plane; in _icv_iconv() 317 st->_plane = st->_last_plane; in _icv_iconv() 326 st->_last_plane = st->_plane; in _icv_iconv() 380 st->_plane = st->_last_plane; in _icv_iconv() [all …]
|
H A D | zh_CN.iso2022-CN%zh_CN.euc.c | 109 st->_last_plane = st->_plane = -1; in _icv_open() 164 st->_plane = st->_last_plane = -1; in _icv_iconv() 243 st->_last_plane = st->_plane; in _icv_iconv() 251 st->_plane = st->_last_plane; in _icv_iconv() 259 st->_last_plane = st->_plane; in _icv_iconv() 285 st->_last_plane = st->_plane; in _icv_iconv() 301 st->_last_plane = st->_plane; in _icv_iconv() 308 st->_plane = st->_last_plane; in _icv_iconv() 317 st->_last_plane = st->_plane; in _icv_iconv() 365 st->_plane = st->_last_plane; in _icv_iconv() [all …]
|
H A D | zh_CN.iso2022-7%UTF-8.c | 105 st->_last_plane = st->_plane = -1; in _icv_open() 151 st->_buf[st->_bufcont++] = ESC; in _icv_iconv() 161 st->_buf[st->_bufcont++] = '$'; in _icv_iconv() 218 st->_last_plane = st->_plane; in _icv_iconv() 226 st->_plane = st->_last_plane; in _icv_iconv() 234 st->_last_plane = st->_plane; in _icv_iconv() 260 st->_last_plane = st->_plane; in _icv_iconv() 276 st->_last_plane = st->_plane; in _icv_iconv() 283 st->_plane = st->_last_plane; in _icv_iconv() 292 st->_last_plane = st->_plane; in _icv_iconv() [all …]
|
H A D | zh_TW-iso2022-CN-EXT.c | 53 _iconv_st *st; in _icv_open() local 62 st->Sfunc = SI; in _icv_open() 66 st->numsav = 0; in _icv_open() 71 st->_errno = 0; in _icv_open() 87 if (st == NULL ) in _icv_close() 90 free(st); in _icv_close() 134 st->_errno = 0; in iso2022_icv_iconv() 157 n = (*convert)( st, outbuf, outbytesleft, iscns(st) ); in iso2022_icv_iconv() 197 st->nonidcount -= st->numsav; /* Since invalid Esc in iso2022_icv_iconv() 387 if ( st->SSfunc == NONE && st->SOcharset == 'G' ) in iscns() [all …]
|
H A D | zh_TW-euc%zh_TW-iso2022-CN-EXT.c | 72 _iconv_st *st; in _icv_open() local 79 st->cstate = C0; in _icv_open() 80 st->istate = IN; in _icv_open() 81 st->_errno = 0; in _icv_open() 101 if (!st) in _icv_close() 104 free(st); in _icv_close() 141 if (st == NULL) { in _icv_iconv() 170 st->cstate, st->istate, st->_errno, st->plane_no); in _icv_iconv() 270 if (st->SS3char != GET_PLANEC(st->plane_no)) { in _icv_iconv() 272 st->SS3char = GET_PLANEC(st->plane_no); in _icv_iconv() [all …]
|
H A D | zh_TW-euc%zh_TW-iso2022-7.c | 81 _iconv_st *st; in _icv_open() local 90 st->_errno = 0; in _icv_open() 106 if (!st) in _icv_close() 109 free(st); in _icv_close() 166 st->cstate, st->istate, st->_errno, plane_no); in _icv_iconv() 210 st->keepc[2] = st->keepc[3] = '\0'; in _icv_iconv() 297 st->_errno, st->cstate); in _icv_iconv() 392 return (st); in _cv_open() 398 free(st); in _cv_close() 461 st->p = st->keepc + 1; in _cv_enconv() [all …]
|
H A D | zh_CN.gbk%zh_CN.iso2022-CN.c | 103 _iconv_st *st; in _icv_open() local 125 free(st); in _icv_close() 226 st->last_plane = st->plane; in _icv_iconv() 243 st->plane != st->last_plane) { in _icv_iconv() 255 st->last_plane = st->plane; in _icv_iconv() 277 if (st->last_plane != st->plane) { in _icv_iconv() 330 st->last_plane = st->plane; in _icv_iconv() 383 if (st->plane != st->last_plane) { in _icv_iconv() 396 st->last_plane = st->plane; in _icv_iconv() 432 if ( st->plane != st->last_plane ) { in _icv_iconv() [all …]
|
H A D | UTF-8%zh_HK.hkscs.c | 60 _iconv_st *st; in _icv_open() local 67 st->ustate = U0; in _icv_open() 68 st->_errno = 0; in _icv_open() 85 if (!st) in _icv_close() 88 free(st); in _icv_close() 129 if (st == NULL) { in _icv_iconv() 135 st->ustate = U0; in _icv_iconv() 136 st->_errno = 0; in _icv_iconv() 206 ucs = ((st->keepc[1] & 0xff) << 8) | ( st->keepc[0] & 0xff); in _icv_iconv() 214 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv() [all …]
|
H A D | UTF-8%zh_TW-big5.c | 61 _iconv_st *st; in _icv_open() local 68 st->ustate = U0; in _icv_open() 69 st->_errno = 0; in _icv_open() 86 if (!st) in _icv_close() 89 free(st); in _icv_close() 130 if (st == NULL) { in _icv_iconv() 136 st->ustate = U0; in _icv_iconv() 137 st->_errno = 0; in _icv_iconv() 214 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv() 347 st->_errno, st->ustate); in _icv_iconv() [all …]
|
H A D | UTF-8%zh_TW-iso2022-7.c | 73 _iconv_st *st; in _icv_open() local 80 st->cstate = C0; in _icv_open() 81 st->istate = IN; in _icv_open() 82 st->ustate = U0; in _icv_open() 83 st->_errno = 0; in _icv_open() 99 if (!st) in _icv_close() 102 free(st); in _icv_close() 149 st->_errno = 0; in _icv_iconv() 156 st->cstate, st->istate, st->_errno, plane_no); in _icv_iconv() 216 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv() [all …]
|
H A D | UTF-8%zh_CN.iso2022-CN.c | 68 _iconv_st * st; in _icv_open() local 74 st->_ustate = U0; in _icv_open() 75 st->_istate = IN; in _icv_open() 76 st->_gstate = -1; in _icv_open() 77 st->_errno = 0; in _icv_open() 79 return (void *)st; in _icv_open() 87 if (st == NULL) in _icv_close() 90 free(st); in _icv_close() 110 if (st == NULL) { in _icv_iconv() 119 st->_errno = 0; in _icv_iconv() [all …]
|
H A D | UTF-8%zh_TW-euc.c | 65 _iconv_st *st; in _icv_open() local 72 st->ustate = U0; in _icv_open() 73 st->_errno = 0; in _icv_open() 90 if (!st) in _icv_close() 93 free(st); in _icv_close() 134 if (st == NULL) { in _icv_iconv() 141 st->_errno = 0; in _icv_iconv() 203 if (st->keepc[1] == 0 && (st->keepc[0] & 0x80) == 0) { in _icv_iconv() 210 ucs = ((st->keepc[1] & 0xff)<< 8) | (st->keepc[0] & 0xff); in _icv_iconv() 218 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv() [all …]
|
H A D | zh_TW-big5%zh_TW-iso2022-CN-EXT.c | 97 _iconv_st *st; in _icv_open() local 112 st->cstate = C0; in _icv_open() 114 st->iSOplane = -1; in _icv_open() 115 st->iSS2plane = -1; in _icv_open() 116 st->iSS3plane = -1; in _icv_open() 118 st->_errno = 0; in _icv_open() 138 if (st == NULL) in _icv_close() 141 free(st); in _icv_close() 172 if (st == NULL) { in _icv_iconv() 199 st->_errno = 0; in _icv_iconv() [all …]
|
H A D | UTF-8%zh_TW-big5p.c | 58 _iconv_st *st; in _icv_open() local 65 st->ustate = U0; in _icv_open() 66 st->_errno = 0; in _icv_open() 78 if (!st) in _icv_close() 81 free(st); in _icv_close() 121 if (st == NULL) { in _icv_iconv() 127 st->ustate = U0; in _icv_iconv() 128 st->_errno = 0; in _icv_iconv() 179 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv() 281 if (st->_errno) { in _icv_iconv() [all …]
|
/illumos-gate/usr/src/lib/libdemangle/common/ |
H A D | rust-v0.c | 123 ret = OPTIONAL(st, rustv0_parse_path(st, sv, B_FALSE)); in rust_demangle_v0() 310 if (HAS_ERROR(st)) in rustv0_parse_type() 318 SAVE_LEN(st, len); in rustv0_parse_type() 441 if (HAS_ERROR(st)) in rustv0_parse_path() 454 if (!OPTIONAL(st, rustv0_parse_disambiguator(st, sv, &disamb))) in rustv0_parse_path() 551 return (OPTIONAL(st, rustv0_parse_disambiguator(st, sv, &val)) && in rustv0_parse_impl_path() 850 if (st->rs_skip) in rustv0_parse_backref() 934 ret = OPTIONAL(st, rustv0_parse_hex_num(st, sv, &val)) && in rustv0_parse_const_data() 962 ret = rust_appendc(st, '\'') && rust_append_utf8_c(st, val) && in rustv0_parse_const_data() 1110 if (!OPTIONAL(st, rustv0_parse_binder(st, sv))) in rustv0_parse_fnsig() [all …]
|
H A D | rust.c | 51 if (HAS_ERROR(st)) in rust_appendc() 54 if (st->rs_skip) in rust_appendc() 80 SET_ERROR(st); in rust_appendc() 135 SET_ERROR(st); in rust_append_utf8_c() 151 if (st->rs_skip) in rust_append() 155 SET_ERROR(st); in rust_append() 188 SET_ERROR(st); in rust_append_sv() 214 SET_ERROR(st); in rust_append_printf() 355 (void) memset(st, 0, sizeof (*st)); in rust_init_state() 363 st->rs_cualloc.cua_arg = st; in rust_init_state() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/ko/common/ |
H A D | euc_to_johap.c | 239 st->invalid = 0; in _cv_open() 243 st->end_cnt = 0; in _cv_open() 249 _cv_close(st) in _cv_close() argument 252 free(st); 278 **outbuf = st->temp_obuf[st->start_cnt]; 284 if (st->start_cnt < st->end_cnt) { 348 st->temp_obuf[st->end_cnt] = Char; 353 (*(st->my_outbuf))++, (*(st->my_outbytesleft))--; 402 _cv_close(st); in main() 444 _cv_close(st); in main() [all …]
|
H A D | johap_to_euc.c | 205 st->invalid = 0; in _cv_open() 209 st->end_cnt = 0; in _cv_open() 215 _cv_close(st) in _cv_close() argument 218 free(st); 244 **outbuf = st->temp_obuf[st->start_cnt]; 250 if (st->start_cnt < st->end_cnt) { 314 st->temp_obuf[st->end_cnt] = Char; 319 (*(st->my_outbuf))++, (*(st->my_outbytesleft))--; 369 _cv_close(st); in main() 411 _cv_close(st); in main() [all …]
|
H A D | utf_to_johap92.c | 47 _iconv_st *st; in _icv_open() local 52 st->_ustate = U0; in _icv_open() 53 st->_errno = 0; in _icv_open() 54 st->_count = 0; in _icv_open() 66 if(!st) in _icv_close() 69 free(st); in _icv_close() 86 if(st == NULL){ in _icv_iconv() 93 st->_errno = 0; in _icv_iconv() 97 st->_errno = 0; in _icv_iconv() 152 st->_count++; in _icv_iconv() [all …]
|
H A D | comb_to_byte.c | 79 AddChar(O, st); in echo_vowel() 80 AddChar(A, st); in echo_vowel() 84 AddChar(O, st); in echo_vowel() 89 AddChar(O, st); in echo_vowel() 90 AddChar(I, st); in echo_vowel() 94 AddChar(U, st); in echo_vowel() 95 AddChar(E, st); in echo_vowel() 99 AddChar(U, st); in echo_vowel() 104 AddChar(U, st); in echo_vowel() 105 AddChar(I, st); in echo_vowel() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/common/ |
H A D | utf8%ibm.c | 90 if (st == NULL) { in _icv_iconv() 98 st->shift = SHIFT_IN; in _icv_iconv() 111 st->ustate = U4; in _icv_iconv() 112 st->keepc[0] = **inbuf; in _icv_iconv() 140 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv() 207 st->_errno, st->ustate); in _icv_iconv() 233 _icv_state *st; in get_ibm_by_utf() 241 *unidx = bisearch(unicode, st, st->table_size); 265 _icv_state *st) in utf8_to_ibm() argument 288 st->shift = SHIFT_IN; in utf8_to_ibm() [all …]
|
H A D | cnv_utf8ibm.c | 84 if (st == NULL) { in _icv_iconv() 90 st->ustate = U0; in _icv_iconv() 91 st->_errno = 0; in _icv_iconv() 100 switch (st->ustate) { in _icv_iconv() 116 c1 =st->keepc[0] = **inbuf; in _icv_iconv() 130 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv() 138 c2 =st->keepc[1] = **inbuf; in _icv_iconv() 194 if (st->_errno) { in _icv_iconv() 197 st->_errno, st->ustate); in _icv_iconv() 223 _icv_state *st; in get_ibm_by_utf() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/vi/common/ |
H A D | UTF-8%viscii.c | 56 _iconv_st *st; in _icv_open() local 63 st->ustate = U0; in _icv_open() 64 st->_errno = 0; in _icv_open() 65 return ((void *) st); in _icv_open() 75 if (!st) in _icv_close() 78 free(st); in _icv_close() 118 if (st == NULL) { in _icv_iconv() 125 st->_errno = 0; in _icv_iconv() 177 c2 = ((st->keepc[0]&0x03)<<6) | ((st->keepc[1])&0x3f); in _icv_iconv() 181 st->keepc[0]&ONEBYTE, st->keepc[1]&ONEBYTE); in _icv_iconv() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmstat.c | 38 int vmstat(vm, st) in vmstat() 40 Vmstat_t* st; 66 st->n_busy = st->n_free = 0; 67 st->s_busy = st->s_free = st->m_busy = st->m_free = 0; 68 st->n_seg = 0; 69 st->extent = 0; 75 st->n_busy = 0; 112 /**/ASSERT(st->extent >= (st->s_busy + st->s_free)); 132 { st->n_busy -= st->n_free; 134 st->s_busy = (st->m_busy = vd->pool)*st->n_busy; [all …]
|