xref: /freebsd/bin/csh/iconv_stub.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
135bb448cSHajimu UMEMOTO /*-
235bb448cSHajimu UMEMOTO  * Copyright (c) 2006 Hajimu UMEMOTO <ume@FreeBSD.org>
335bb448cSHajimu UMEMOTO  * All rights reserved.
435bb448cSHajimu UMEMOTO  *
535bb448cSHajimu UMEMOTO  * Redistribution and use in source and binary forms, with or without
635bb448cSHajimu UMEMOTO  * modification, are permitted provided that the following conditions
735bb448cSHajimu UMEMOTO  * are met:
835bb448cSHajimu UMEMOTO  * 1. Redistributions of source code must retain the above copyright
935bb448cSHajimu UMEMOTO  *    notice, this list of conditions and the following disclaimer.
1035bb448cSHajimu UMEMOTO  * 2. Redistributions in binary form must reproduce the above copyright
1135bb448cSHajimu UMEMOTO  *    notice, this list of conditions and the following disclaimer in the
1235bb448cSHajimu UMEMOTO  *    documentation and/or other materials provided with the distribution.
1335bb448cSHajimu UMEMOTO  *
1435bb448cSHajimu UMEMOTO  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1535bb448cSHajimu UMEMOTO  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1635bb448cSHajimu UMEMOTO  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1735bb448cSHajimu UMEMOTO  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1835bb448cSHajimu UMEMOTO  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1935bb448cSHajimu UMEMOTO  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2035bb448cSHajimu UMEMOTO  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2135bb448cSHajimu UMEMOTO  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2235bb448cSHajimu UMEMOTO  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2335bb448cSHajimu UMEMOTO  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2435bb448cSHajimu UMEMOTO  * SUCH DAMAGE.
2535bb448cSHajimu UMEMOTO  */
2635bb448cSHajimu UMEMOTO 
2735bb448cSHajimu UMEMOTO #ifndef _ICONV_H_
2835bb448cSHajimu UMEMOTO #define _ICONV_H_
2935bb448cSHajimu UMEMOTO 
3035bb448cSHajimu UMEMOTO typedef void *iconv_t;
31*969dfbc7STijl Coosemans typedef size_t dl_iconv_t(iconv_t, char **, size_t *, char **, size_t *);
3235bb448cSHajimu UMEMOTO typedef int dl_iconv_close_t(iconv_t);
3335bb448cSHajimu UMEMOTO 
3435bb448cSHajimu UMEMOTO extern iconv_t dl_iconv_open(const char *, const char *);
3535bb448cSHajimu UMEMOTO extern dl_iconv_t *dl_iconv;
3635bb448cSHajimu UMEMOTO extern dl_iconv_close_t *dl_iconv_close;
3735bb448cSHajimu UMEMOTO 
3835bb448cSHajimu UMEMOTO #define iconv_open	dl_iconv_open
3935bb448cSHajimu UMEMOTO #define iconv		dl_iconv
4035bb448cSHajimu UMEMOTO #define iconv_close	dl_iconv_close
4135bb448cSHajimu UMEMOTO 
4235bb448cSHajimu UMEMOTO #endif /* !_ICONV_H_ */
43