1*53ee8cc1Swenshuai.xi /* 2*53ee8cc1Swenshuai.xi * Copyright (c) 2003-2004, Artem B. Bityuckiy, SoftMine Corporation. 3*53ee8cc1Swenshuai.xi * Rights transferred to Franklin Electronic Publishers. 4*53ee8cc1Swenshuai.xi * 5*53ee8cc1Swenshuai.xi * Redistribution and use in source and binary forms, with or without 6*53ee8cc1Swenshuai.xi * modification, are permitted provided that the following conditions 7*53ee8cc1Swenshuai.xi * are met: 8*53ee8cc1Swenshuai.xi * 1. Redistributions of source code must retain the above copyright 9*53ee8cc1Swenshuai.xi * notice, this list of conditions and the following disclaimer. 10*53ee8cc1Swenshuai.xi * 2. Redistributions in binary form must reproduce the above copyright 11*53ee8cc1Swenshuai.xi * notice, this list of conditions and the following disclaimer in the 12*53ee8cc1Swenshuai.xi * documentation and/or other materials provided with the distribution. 13*53ee8cc1Swenshuai.xi * 14*53ee8cc1Swenshuai.xi * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15*53ee8cc1Swenshuai.xi * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*53ee8cc1Swenshuai.xi * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*53ee8cc1Swenshuai.xi * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*53ee8cc1Swenshuai.xi * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*53ee8cc1Swenshuai.xi * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*53ee8cc1Swenshuai.xi * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*53ee8cc1Swenshuai.xi * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*53ee8cc1Swenshuai.xi * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*53ee8cc1Swenshuai.xi * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*53ee8cc1Swenshuai.xi * SUCH DAMAGE. 25*53ee8cc1Swenshuai.xi */ 26*53ee8cc1Swenshuai.xi #ifndef _ICONV_H_ 27*53ee8cc1Swenshuai.xi #define _ICONV_H_ 28*53ee8cc1Swenshuai.xi 29*53ee8cc1Swenshuai.xi #include <_ansi.h> 30*53ee8cc1Swenshuai.xi #include <reent.h> 31*53ee8cc1Swenshuai.xi #include <sys/types.h> 32*53ee8cc1Swenshuai.xi #include <sys/_types.h> 33*53ee8cc1Swenshuai.xi 34*53ee8cc1Swenshuai.xi /* iconv_t: charset conversion descriptor type */ 35*53ee8cc1Swenshuai.xi typedef _iconv_t iconv_t; 36*53ee8cc1Swenshuai.xi 37*53ee8cc1Swenshuai.xi _BEGIN_STD_C 38*53ee8cc1Swenshuai.xi 39*53ee8cc1Swenshuai.xi #ifndef _REENT_ONLY 40*53ee8cc1Swenshuai.xi iconv_t 41*53ee8cc1Swenshuai.xi _EXFUN(iconv_open, (_CONST char *, _CONST char *)); 42*53ee8cc1Swenshuai.xi 43*53ee8cc1Swenshuai.xi size_t 44*53ee8cc1Swenshuai.xi _EXFUN(iconv, (iconv_t, _CONST char **, size_t *, char **, size_t *)); 45*53ee8cc1Swenshuai.xi 46*53ee8cc1Swenshuai.xi int 47*53ee8cc1Swenshuai.xi _EXFUN(iconv_close, (iconv_t)); 48*53ee8cc1Swenshuai.xi #endif 49*53ee8cc1Swenshuai.xi 50*53ee8cc1Swenshuai.xi iconv_t 51*53ee8cc1Swenshuai.xi _EXFUN(_iconv_open_r, (struct _reent *, _CONST char *, _CONST char *)); 52*53ee8cc1Swenshuai.xi 53*53ee8cc1Swenshuai.xi size_t 54*53ee8cc1Swenshuai.xi _EXFUN(_iconv_r, (struct _reent *, iconv_t, _CONST char **, 55*53ee8cc1Swenshuai.xi size_t *, char **, size_t *)); 56*53ee8cc1Swenshuai.xi 57*53ee8cc1Swenshuai.xi int 58*53ee8cc1Swenshuai.xi _EXFUN(_iconv_close_r, (struct _reent *, iconv_t)); 59*53ee8cc1Swenshuai.xi 60*53ee8cc1Swenshuai.xi _END_STD_C 61*53ee8cc1Swenshuai.xi 62*53ee8cc1Swenshuai.xi #endif /* #ifndef _ICONV_H_ */ 63