5917 User-mode SMB server
[unleashed.git] / usr / src / lib / libfakekernel / common / sys / kiconv.h
bloba0143eb824eb1875a5e5c781b2b48d601b1b5250
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
25 * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
28 #ifndef _SYS_KICONV_H
29 #define _SYS_KICONV_H
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
35 #include <sys/types.h>
37 #if defined(_KERNEL) || defined(_FAKE_KERNEL)
40 * kiconv functions and their macros (from sunddi.h)
42 #define KICONV_IGNORE_NULL (0x0001)
43 #define KICONV_REPLACE_INVALID (0x0002)
45 struct _iconv_info;
46 typedef struct _iconv_info *kiconv_t;
48 extern kiconv_t kiconv_open(const char *, const char *);
49 extern size_t kiconv(kiconv_t, char **, size_t *, char **, size_t *, int *);
50 extern int kiconv_close(kiconv_t);
51 extern size_t kiconvstr(const char *, const char *, char *, size_t *, char *,
52 size_t *, int, int *);
54 #endif /* _KERNEL */
56 #ifdef __cplusplus
58 #endif
60 #endif /* _SYS_KICONV_H */