Home
last modified time | relevance | path

Searched refs:kcd (Results 1 – 9 of 9) sorted by relevance

/titanic_41/usr/src/uts/common/os/
H A Dkiconv.c183 kiconv_to_sb(void *kcd, char **inbuf, size_t *inbytesleft, char **outbuf, in kiconv_to_sb() argument
202 if (! kcd || kcd == (void *)-1) { in kiconv_to_sb()
211 id = ((kiconv_state_t)kcd)->id; in kiconv_to_sb()
219 ((kiconv_state_t)kcd)->bom_processed = 0; in kiconv_to_sb()
241 if (((kiconv_state_t)kcd)->bom_processed == 0 && (ibtail - ib) >= 3 && in kiconv_to_sb()
244 ((kiconv_state_t)kcd)->bom_processed = 1; in kiconv_to_sb()
360 kiconv_fr_sb(void *kcd, char **inbuf, size_t *inbytesleft, char **outbuf, in kiconv_fr_sb() argument
373 if ((ulong_t)kcd > KICONV_MAX_MAPPING_TBLID) { in kiconv_fr_sb()
415 sz = u8_number_of_bytes[to_u8_tbl[(ulong_t)kcd][k].u8[0]]; in kiconv_fr_sb()
436 *ob++ = to_u8_tbl[(ulong_t)kcd][k].u8[i]; in kiconv_fr_sb()
[all …]
/titanic_41/usr/src/uts/common/kiconv/kiconv_ja/
H A Dkiconv_ja.c280 kiconv_state_t kcd; in _kiconv_ja_open_unicode() local
282 kcd = (kiconv_state_t)kmem_alloc(sizeof (kiconv_state_data_t), in _kiconv_ja_open_unicode()
284 kcd->id = id; in _kiconv_ja_open_unicode()
285 kcd->bom_processed = 0; in _kiconv_ja_open_unicode()
286 return ((void *)kcd); in _kiconv_ja_open_unicode()
314 close_ja(void *kcd) in close_ja() argument
316 if (! kcd || kcd == (void *)-1) in close_ja()
319 kmem_free(kcd, sizeof (kiconv_state_data_t)); in close_ja()
325 _do_kiconv_fr_eucjp(void *kcd, char **inbuf, size_t *inbytesleft, in _do_kiconv_fr_eucjp() argument
337 size_t id = ((kiconv_state_t)kcd)->id; in _do_kiconv_fr_eucjp()
[all …]
/titanic_41/usr/src/uts/common/kiconv/kiconv_sc/
H A Dkiconv_cck_common.c62 kiconv_close_to_cck(void *kcd) in kiconv_close_to_cck() argument
64 if (! kcd || kcd == (void *)-1) in kiconv_close_to_cck()
67 kmem_free(kcd, sizeof (kiconv_state_data_t)); in kiconv_close_to_cck()
76 kiconv_utf8_to_cck(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_utf8_to_cck() argument
91 if (! kcd || kcd == (void *)-1) { in kiconv_utf8_to_cck()
98 ((kiconv_state_t)kcd)->bom_processed = 0; in kiconv_utf8_to_cck()
H A Dkiconv_sc.c94 kiconv_to_gb18030(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_to_gb18030() argument
98 return kiconv_utf8_to_cck(kcd, inbuf, inbytesleft, outbuf, in kiconv_to_gb18030()
117 kiconv_fr_gb18030(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_fr_gb18030() argument
130 if (kcd == NULL || kcd == (void *)-1) { in kiconv_fr_gb18030()
324 kiconv_to_gbk(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_to_gbk() argument
328 return kiconv_utf8_to_cck(kcd, inbuf, inbytesleft, outbuf, in kiconv_to_gbk()
347 kiconv_fr_gbk(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_fr_gbk() argument
359 if (kcd == NULL || kcd == (void *)-1) { in kiconv_fr_gbk()
513 kiconv_to_euccn(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_to_euccn() argument
516 return kiconv_utf8_to_cck(kcd, inbuf, inbytesleft, outbuf, in kiconv_to_euccn()
[all …]
/titanic_41/usr/src/uts/common/kiconv/kiconv_tc/
H A Dkiconv_tc.c134 kiconv_fr_big5_common(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_fr_big5_common() argument
147 if (kcd == NULL || kcd == (void *)-1) { in kiconv_fr_big5_common()
300 kiconv_fr_big5(void *kcd, char **inbuf, size_t *inbytesleft, char **outbuf, in kiconv_fr_big5() argument
303 return (kiconv_fr_big5_common(kcd, inbuf, inbytesleft, outbuf, in kiconv_fr_big5()
323 kiconv_fr_big5hkscs(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_fr_big5hkscs() argument
326 return kiconv_fr_big5_common(kcd, inbuf, inbytesleft, outbuf, in kiconv_fr_big5hkscs()
345 kiconv_fr_cp950hkscs(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_fr_cp950hkscs() argument
348 return kiconv_fr_big5_common(kcd, inbuf, inbytesleft, outbuf, in kiconv_fr_cp950hkscs()
367 kiconv_fr_euctw(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_fr_euctw() argument
382 if (kcd == NULL || kcd == (void *)-1) { in kiconv_fr_euctw()
[all …]
/titanic_41/usr/src/uts/common/kiconv/kiconv_ko/
H A Dkiconv_ko.c85 kiconv_fr_euckr(void *kcd, char **inbuf, size_t *inbufleft, in kiconv_fr_euckr() argument
97 if (kcd == NULL || kcd == (void *)-1) { in kiconv_fr_euckr()
253 kiconv_fr_uhc(void *kcd, char **inbuf, size_t *inbufleft, in kiconv_fr_uhc() argument
265 if (kcd == NULL || kcd == (void *)-1) { in kiconv_fr_uhc()
421 kiconv_to_euckr(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_to_euckr() argument
424 return (kiconv_utf8_to_cck(kcd, inbuf, inbytesleft, outbuf, in kiconv_to_euckr()
432 kiconv_to_uhc(void *kcd, char **inbuf, size_t *inbytesleft, in kiconv_to_uhc() argument
435 return (kiconv_utf8_to_cck(kcd, inbuf, inbytesleft, outbuf, in kiconv_to_uhc()
/titanic_41/usr/src/uts/common/sys/
H A Dkiconv_cck_common.h66 if (((kiconv_state_t)kcd)->bom_processed == 0 && \
71 ((kiconv_state_t)kcd)->bom_processed = 1
127 size_t kiconv_utf8_to_cck(void *kcd, char **inbuf, size_t *inbytesleft,
H A Dkiconv_ja.h120 if (((kiconv_state_t)kcd)->bom_processed == 0 && (inleft) >= 3 && \
127 ((kiconv_state_t)kcd)->bom_processed = 1
/titanic_41/usr/src/uts/common/kiconv/kiconv_emea/
H A Dkiconv_emea.c600 kiconv_to_sb(void *kcd, char **inbuf, size_t *inbytesleft, char **outbuf, in kiconv_to_sb() argument
620 if (! kcd || kcd == (void *)-1) { in kiconv_to_sb()
626 id = ((kiconv_state_t)kcd)->id; in kiconv_to_sb()
635 ((kiconv_state_t)kcd)->bom_processed = 0; in kiconv_to_sb()
666 if (((kiconv_state_t)kcd)->bom_processed == 0 && (ibtail - ib) >= 3 && in kiconv_to_sb()
669 ((kiconv_state_t)kcd)->bom_processed = 1; in kiconv_to_sb()
793 kiconv_fr_sb(void *kcd, char **inbuf, size_t *inbytesleft, char **outbuf, in kiconv_fr_sb() argument
807 if ((ulong_t)kcd > KICONV_MAX_MAPPING_TBLID && in kiconv_fr_sb()
808 ((ulong_t)kcd < KICONV_TBLID_RANGE1_START || in kiconv_fr_sb()
809 (ulong_t)kcd > KICONV_TBLID_RANGE1_END)) { in kiconv_fr_sb()
[all …]