Home
last modified time | relevance | path

Searched refs:cd (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/lib/iconv_modules/utf-8/common/
H A Dace_utf8.c89 cd->ibl = cd->obl = _SYS_NMLN; in _icv_open()
90 cd->iblconsumed = cd->oblremaining = 0; in _icv_open()
206 if (cd->iblconsumed >= cd->ibl) { in _icv_iconv()
222 *(cd->ib + cd->iblconsumed++) = '\0'; in _icv_iconv()
227 (const char *)cd->ib, (char *)cd->ob, in _icv_iconv()
294 if (cd->iblconsumed >= cd->ibl) { in _icv_iconv()
297 (void *)cd->ib, cd->ibl); in _icv_iconv()
310 *(cd->ib + cd->iblconsumed) = '\0'; in _icv_iconv()
327 (void *)cd->ob, cd->obl); in _icv_iconv()
374 if (cd->iblconsumed >= cd->ibl) { in _icv_iconv()
[all …]
H A Dutf7_to_ucs.c51 cd->little_endian = true; in _icv_open()
54 return((void *)cd); in _icv_open()
61 if (! cd) in _icv_close()
64 free((void *)cd); in _icv_close()
78 if (! cd) { in _icv_iconv()
86 cd->remnant = 0; in _icv_iconv()
87 cd->remnant_count = 0; in _icv_iconv()
146 cd->remnant_count++; in _icv_iconv()
198 cd->remnant = 0; in _icv_iconv()
204 cd->remnant = 0; in _icv_iconv()
[all …]
H A Ducs_to_utf7.c50 cd->little_endian = true; in _icv_open()
53 return((void *)cd); in _icv_open()
60 if (! cd) in _icv_close()
63 free((void *)cd); in _icv_close()
86 if (! cd) {
112 cd->remnant = 0;
113 cd->remnant_count = 0;
116 cd->bom_written = false;
128 if (! cd->bom_written) {
145 cd->bom_written = true;
[all …]
H A Ducs4_to_utf32.c42 ucs_ucs_state_t *cd; in _icv_open() local
52 cd->input.bom_written = true; in _icv_open()
55 cd->input.bom_written = true; in _icv_open()
62 cd->output.bom_written = true; in _icv_open()
65 cd->output.bom_written = true; in _icv_open()
70 return((void *)cd); in _icv_open()
75 _icv_close(ucs_ucs_state_t *cd) in _icv_close() argument
77 if (! cd) in _icv_close()
80 free((void *)cd); in _icv_close()
98 if (! cd) { in _icv_iconv()
[all …]
H A Dutf32_to_ucs4.c42 ucs_ucs_state_t *cd; in _icv_open() local
52 cd->input.bom_written = true; in _icv_open()
55 cd->input.bom_written = true; in _icv_open()
62 cd->output.bom_written = true; in _icv_open()
65 cd->output.bom_written = true; in _icv_open()
70 return((void *)cd); in _icv_open()
75 _icv_close(ucs_ucs_state_t *cd) in _icv_close() argument
77 if (! cd) in _icv_close()
80 free((void *)cd); in _icv_close()
98 if (! cd) { in _icv_iconv()
[all …]
H A Ducs_to_ucs4.c42 ucs_ucs_state_t *cd; in _icv_open() local
52 cd->input.bom_written = true; in _icv_open()
55 cd->input.bom_written = true; in _icv_open()
62 cd->output.bom_written = true; in _icv_open()
65 cd->output.bom_written = true; in _icv_open()
70 return((void *)cd); in _icv_open()
75 _icv_close(ucs_ucs_state_t *cd) in _icv_close() argument
77 if (! cd) in _icv_close()
80 free((void *)cd); in _icv_close()
97 if (! cd) { in _icv_iconv()
[all …]
H A Ducs4_to_ucs.c41 ucs_ucs_state_t *cd; in _icv_open() local
51 cd->input.bom_written = true; in _icv_open()
54 cd->input.bom_written = true; in _icv_open()
61 cd->output.bom_written = true; in _icv_open()
64 cd->output.bom_written = true; in _icv_open()
69 return((void *)cd); in _icv_open()
74 _icv_close(ucs_ucs_state_t *cd) in _icv_close() argument
76 if (! cd) in _icv_close()
79 free((void *)cd); in _icv_close()
98 if (! cd) { in _icv_iconv()
[all …]
H A Dutf8_to_ucs.c50 cd->little_endian = false; in _icv_open()
51 cd->bom_written = true; in _icv_open()
54 cd->little_endian = true; in _icv_open()
55 cd->bom_written = true; in _icv_open()
57 cd->little_endian = true; in _icv_open()
60 return((void *)cd); in _icv_open()
65 _icv_close(ucs_state_t *cd) in _icv_close() argument
67 if (! cd) in _icv_close()
70 free((void *)cd); in _icv_close()
84 if (! cd) { in _icv_iconv()
[all …]
H A Dsb_to_ucs.c57 cd->little_endian = false; in _icv_open()
58 cd->bom_written = true; in _icv_open()
61 cd->little_endian = true; in _icv_open()
62 cd->bom_written = true; in _icv_open()
64 cd->little_endian = true; in _icv_open()
67 return((void *)cd); in _icv_open()
72 _icv_close(ucs_state_t *cd) in _icv_close() argument
74 if (! cd) in _icv_close()
77 free((void *)cd); in _icv_close()
97 if (! cd) { in _icv_iconv()
[all …]
H A Ducs_to_sb.c51 cd->bom_written = true; in _icv_open()
54 cd->little_endian = true; in _icv_open()
55 cd->bom_written = true; in _icv_open()
57 cd->little_endian = true; in _icv_open()
60 return((void *)cd); in _icv_open()
67 if (! cd) in _icv_close()
70 free((void *)cd); in _icv_close()
88 if (! cd) { in _icv_iconv()
95 cd->bom_written = false; in _icv_iconv()
106 if (! cd->bom_written) { in _icv_iconv()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/ko/common/
H A Dnbyte_to_UTF2.c44 cd->cur_stat = 1; in _icv_open()
45 cd->hbuf[1] = cd->hbuf[2] = cd->hbuf[3] = cd->hbuf[4] = '\0'; in _icv_open()
46 cd->cur_act = 0; in _icv_open()
48 return((void*)cd); in _icv_open()
56 if (!cd) in _icv_close()
59 free((void*)cd); in _icv_close()
74 if (!cd) in _icv_iconv()
82 cd->cur_stat = 1; in _icv_iconv()
83 cd->hbuf[1] = cd->hbuf[2] = cd->hbuf[3] = cd->hbuf[4] = '\0'; in _icv_iconv()
84 cd->cur_act = 0; in _icv_iconv()
[all …]
H A DUTF2_to_iso2022-7.c45 cd->designated = 0; in _icv_open()
46 cd->state = ASCII; in _icv_open()
48 return((void*)cd); in _icv_open()
56 if (!cd) in _icv_close()
59 free((void*)cd); in _icv_close()
76 if (!cd) in _icv_iconv()
99 cd->designated = 0; in _icv_iconv()
100 cd->state = ASCII; in _icv_iconv()
124 cd->state = ASCII; in _icv_iconv()
154 if (cd->prev_state != E && cd->prev_state != CI) in _icv_iconv()
[all …]
H A Dutf_nbyte.h40 cd->ci = cd->v = cd->cf = CVC_FILL; cd->prev_state = E;
47 if (cd->prev_state != E)\
50 if ((cd->ci <= 18 || cd->ci == CVC_FILL) &&\
51 (cd->v <= 20 || cd->v == CVC_FILL) &&\
52 (cd->cf <= 28 || cd->cf == CVC_FILL))\
55 cd->ci + 1 : 0] + '@';\
58 c[i] = (char)Y21_32[cd->v != CVC_FILL ? cd->v +\
63 cd->cf - 1 : 0] + '@';\
74 if (cd->state == ASCII)\
77 cd->state = WANSUNG;\
[all …]
H A Dutf_johap92.h50 cd->ci = cd->v = cd->cf = CVC_FILL; cd->prev_state = E;
55 if (cd->prev_state != E)\
64 if ((cd->ci <= 18 || cd->ci == CVC_FILL) &&\
65 (cd->v <= 20 || cd->v == CVC_FILL) &&\
66 (cd->cf <= 28 || cd->cf == CVC_FILL))\
68 code = (cd->ci == CVC_FILL) ? 1 : cd->ci + 2;\
69 code = (code<<5) | ((unsigned short)(cd->v ==\
70 CVC_FILL) ? 2 : cd->v +\
71 (short)(cd->v + 1) / 6 * 2 + 3);\
72 code = (code<<5) | ((cd->cf == CVC_FILL) ? 1 : \
[all …]
H A Dutf_johap.h39 cd->ci = cd->v = cd->cf = CVC_FILL; cd->prev_state = E;
44 if (cd->prev_state != E)\
53 if ((cd->ci <= 18 || cd->ci == CVC_FILL) &&\
54 (cd->v <= 20 || cd->v == CVC_FILL) &&\
55 (cd->cf <= 28 || cd->cf == CVC_FILL))\
57 code = (cd->ci == CVC_FILL) ? 9 :\
58 cd->ci + 0xA;\
59 code = (code<<5) | ((unsigned short)(cd->v ==\
60 CVC_FILL) ? 1 : cd->v + \
61 (short)(cd->v + 1) / 3 + 2);\
[all …]
H A Dutf_iso2022.h52 cd->ci = cd->v = cd->cf = CVC_FILL; cd->prev_state = E;
57 if (cd->prev_state != E)\
59 short num = (cd->designated) ?\
60 (cd->state == ASCII ? 3 : 2) :\
61 (cd->state == ASCII ? 7 : 6);\
69 code = _johap_to_wansung(cd->ci, cd->v, cd->cf);\
73 num = (cd->designated && cd->state == WANSUNG)\
84 cd->state = ASCII;\
92 if (!cd->designated && errno != EILSEQ)\
98 cd->designated = 1;\
[all …]
H A Dutf_to_iso_main.c56 cd->state = ASCII; in _icv_open()
58 return((void*)cd); in _icv_open()
66 if (!cd) in _icv_close()
69 free((void*)cd); in _icv_close()
84 if (!cd) in _icv_iconv()
92 if (cd->state == HANGUL) in _icv_iconv()
108 cd->state = ASCII; in _icv_iconv()
131 cd->state = ASCII; in _icv_iconv()
175 cd->state = HANGUL; in _icv_iconv()
198 cd->state = ASCII; in _icv_iconv()
[all …]
H A DUTF2_to_johap.c38 if (cd == (_conv_desc*)NULL) in _icv_open()
46 return((void*)cd); in _icv_open()
52 void _icv_close(_conv_desc* cd) in _icv_close() argument
54 if (!cd) in _icv_close()
57 free((void*)cd); in _icv_close()
72 if (!cd) in _icv_iconv()
124 cd->prev_state = CI; in _icv_iconv()
129 if (cd->prev_state != E && cd->prev_state != CI) in _icv_iconv()
134 cd->prev_state = V; in _icv_iconv()
139 if (cd->prev_state != E && cd->prev_state != V) in _icv_iconv()
[all …]
H A DUTF2_to_nbyte.c45 cd->state = ASCII; in _icv_open()
47 return((void*)cd); in _icv_open()
55 if (!cd) in _icv_close()
58 free((void*)cd); in _icv_close()
74 if (!cd) in _icv_iconv()
83 cd->state = ASCII; in _icv_iconv()
107 cd->state = ASCII; in _icv_iconv()
132 cd->prev_state = CI; in _icv_iconv()
137 if (cd->prev_state != E && cd->prev_state != CI) in _icv_iconv()
142 cd->prev_state = V; in _icv_iconv()
[all …]
H A Diso2022-7_to_UTF2.c44 cd->designator = NDY; in _icv_open()
45 cd->state = ASCII; in _icv_open()
47 return((void*)cd); in _icv_open()
55 if (!cd) in _icv_close()
58 free((void*)cd); in _icv_close()
73 if (!cd) in _icv_iconv()
81 cd->designator = NDY; in _icv_iconv()
82 cd->state = ASCII; in _icv_iconv()
105 cd->state = ASCII; in _icv_iconv()
111 cd->state = WANSUNG; in _icv_iconv()
[all …]
H A Diso_to_utf_main.c47 if (cd == (_conv_desc*)NULL) in _icv_open()
54 cd->state = ASCII; in _icv_open()
56 return((void*)cd); in _icv_open()
62 void _icv_close(_conv_desc* cd) in _icv_close() argument
64 if (!cd) in _icv_close()
67 free((void*)cd); in _icv_close()
82 if (!cd) in _icv_iconv()
91 cd->state = ASCII; in _icv_iconv()
108 cd->state = ASCII; in _icv_iconv()
114 cd->state = HANGUL; in _icv_iconv()
[all …]
/illumos-gate/usr/src/common/ctf/
H A Dctf_decl.c64 cd->cd_ordp = CTF_PREC_BASE; in ctf_decl_init()
66 cd->cd_buf = buf; in ctf_decl_init()
67 cd->cd_ptr = buf; in ctf_decl_init()
68 cd->cd_end = buf + len; in ctf_decl_init()
132 prec = cd->cd_qualp; in ctf_decl_push()
141 cd->cd_err = EAGAIN; in ctf_decl_push()
150 cd->cd_order[prec] = cd->cd_ordp++; in ctf_decl_push()
157 cd->cd_qualp = prec; in ctf_decl_push()
174 size_t len = (size_t)(cd->cd_end - cd->cd_ptr); in ctf_decl_sprintf()
182 cd->cd_ptr += MIN(n, len); in ctf_decl_sprintf()
[all …]
/illumos-gate/usr/src/cmd/keyserv/
H A Dkeyserv_cache.c362 cd = MOVE_ADDR(cd, -(ch->reclength)); in create_cache_file_ch()
428 cd->prev = MOVE_ADDR(cd->prev, offset); in cache_remap_addresses_ch()
429 cd->next = MOVE_ADDR(cd->next, offset); in cache_remap_addresses_ch()
432 cd = MOVE_ADDR(cd, ch->reclength); in cache_remap_addresses_ch()
570 cd = MOVE_ADDR(cd, newch->reclength); in remap_cache_file_ch()
613 cd = cd->nexthash; in print_cache_ch()
629 cd = cd->next; in print_cache_ch()
643 cd = cd->next; in print_cache_ch()
810 for (cd = (*ch)->bucket[hash]; cd != 0; cd = cd->nexthash) { in find_cache_item()
1006 for (cd = ch->bucket[hash]; cd != 0; cd = cd->nexthash) { in cache_retrieve_ch()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/utf-8/common/binarytables/test/
H A Dutf8_to_ebcdic_test.c278 iconv_t cd; in main() local
309 if (((iconv_t)(-1)) == cd) { in main()
332 validate(i, cd, cd2, cd3); in main()
333 validate(0x100, cd, cd2, cd3); in main()
334 validate(0x3ff, cd, cd2, cd3); in main()
335 validate(0x400, cd, cd2, cd3); in main()
336 validate(0xfff, cd, cd2, cd3); in main()
337 validate(0x1000, cd, cd2, cd3); in main()
338 validate(0x3fff, cd, cd2, cd3); in main()
363 validate(i, cd, cd2, cd3); in main()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Diconv.c89 iconv_t cd; in iconv_open() local
100 free(cd); in iconv_open()
108 return (cd); in iconv_open()
127 free(cd); in iconv_open()
138 free(cd); in iconv_open()
149 return (cd); in iconv_open()
415 (*(cd->_conv)->_icv_close)(cd->_conv->_icv_state); in iconv_close()
418 free(cd->_conv); in iconv_close()
419 free(cd); in iconv_close()
438 if (cd == NULL || cd == (iconv_t)-1) { in iconv()
[all …]

12345678910>>...12