Lines Matching refs:ret
149 int ret;
151 ret = _stdenc_get_state_desc(se->se_handle, se->se_ps,
153 if (!ret)
156 return (ret);
166 int ret = -1;
173 ret = _stdenc_init_state(cs, se->se_ps);
174 if (!ret && se->se_pssaved)
175 ret = _stdenc_init_state(cs, se->se_pssaved);
177 return (ret);
185 int ret;
187 ret = _csmapper_open(&cm, src, dst, 0, rnorm);
188 if (ret)
189 return (ret);
219 int i, ret;
226 ret = open_csmapper(&sd->sd_mapper, ec->ec_csname,
228 if (ret == 0) {
244 ret = errno;
246 return (ret);
248 } else if (ret != ENOENT) {
251 return (ret);
275 int count = 0, i, ret;
284 ret = open_dsts(&ss->ss_dsts, &dbsrc->db_charsets[i], dbdst);
285 if (ret)
292 ret = errno;
306 return (ret);
319 int ret;
324 ret = _csmapper_convert(sd->sd_mapper,
326 switch (ret) {
358 int ret;
362 ret = errno;
365 ret = _citrus_esdb_open(&esdbsrc, src);
366 if (ret)
368 ret = _citrus_esdb_open(&esdbdst, dst);
369 if (ret)
371 ret = _stdenc_open(&is->is_src_encoding, esdbsrc.db_encname,
373 if (ret)
375 ret = _stdenc_open(&is->is_dst_encoding, esdbdst.db_encname,
377 if (ret)
383 ret = open_srcs(&is->is_srcs, &esdbsrc, &esdbdst);
384 if (ret)
404 return (ret);
476 int ret, state = 0;
487 ret = put_state_resetx(&sc->sc_dst_encoding,
489 if (ret)
494 ret = EINVAL;
510 ret = get_state_desc_gen(&sc->sc_src_encoding, &state);
523 ret = mbtocsx(&sc->sc_src_encoding, &csid, &idx, &tmpin,
525 if (ret)
530 ret = get_state_desc_gen(&sc->sc_src_encoding, &state);
531 if (ret) {
532 ret = EINVAL;
541 ret = EINVAL;
545 ret = do_conv(is, &csid, &idx);
546 if (ret) {
547 if (ret == E_NO_CORRESPONDING_CHAR) {
555 ret = EILSEQ;
563 ret = wctombx(&sc->sc_dst_encoding,
566 if (ret)
574 ret = cstombx(&sc->sc_dst_encoding,
577 if (ret)
594 return (ret);