xref: /titanic_50/usr/src/head/iconv.h (revision d39a76e7b087a3d0927cbe6898dc0a6770fa6c68)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_ICONV_H
28 #define	_ICONV_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #include <sys/feature_tests.h>
33 #include <sys/types.h>
34 
35 #ifdef	__cplusplus
36 extern "C" {
37 #endif
38 
39 typedef struct _iconv_info *iconv_t;
40 
41 #if defined(__STDC__)
42 extern iconv_t	iconv_open(const char *, const char *);
43 #ifdef _XPG6
44 extern size_t	iconv(iconv_t, char **_RESTRICT_KYWD,
45 		size_t *_RESTRICT_KYWD, char **_RESTRICT_KYWD,
46 		size_t *_RESTRICT_KYWD);
47 #else
48 extern size_t	iconv(iconv_t, const char **_RESTRICT_KYWD,
49 		size_t *_RESTRICT_KYWD, char **_RESTRICT_KYWD,
50 		size_t *_RESTRICT_KYWD);
51 #endif
52 extern int	iconv_close(iconv_t);
53 #else /* __STDC__ */
54 extern iconv_t	iconv_open();
55 extern size_t	iconv();
56 extern int	iconv_close();
57 #endif
58 
59 #ifdef	__cplusplus
60 }
61 #endif
62 
63 #endif	/* _ICONV_H */
64