iconv_open.c revision 258750
1251876Speter/*-
2251876Speter * Copyright (c) 2013 Peter Wemm
3251876Speter * All rights reserved.
4251876Speter *
5251876Speter * Redistribution and use in source and binary forms, with or without
6251876Speter * modification, are permitted provided that the following conditions
7251876Speter * are met:
8251876Speter * 1. Redistributions of source code must retain the above copyright
9251876Speter *    notice, this list of conditions and the following disclaimer.
10251876Speter * 2. Redistributions in binary form must reproduce the above copyright
11251876Speter *    notice, this list of conditions and the following disclaimer in the
12251876Speter *    documentation and/or other materials provided with the distribution.
13251876Speter *
14251876Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15251876Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16251876Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17251876Speter * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18251876Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19251876Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20251876Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21251876Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22251876Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23251876Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24251876Speter * SUCH DAMAGE.
25251876Speter *
26251876Speter * $FreeBSD: stable/10/lib/libc/iconv/iconv_open.c 258750 2013-11-29 19:44:30Z gjb $
27251876Speter */
28251876Speter
29251876Speter#include <sys/types.h>
30251876Speter#include <iconv.h>
31251876Speter#include "iconv-internal.h"
32251876Speter
33251876Spetericonv_t
34251876Spetericonv_open(const char *a, const char *b)
35251876Speter{
36251876Speter	return __bsd_iconv_open(a, b);
37251876Speter}
38251876Speter