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.
7 *
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.
12 *
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]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 #ifndef _SYS_KICONV_H
27 #define _SYS_KICONV_H
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 #include <sys/types.h>
34
35 #ifdef _KERNEL
36
37 /*
38 * Supported fromcode/tocode values are saved in the following component type
39 * of (name, id) pair. The id values of fromcode and tocode are used to
40 * find out the corresponding code conversions.
41 */
42 typedef struct {
43 char *name;
44 size_t id;
45 } kiconv_code_list_t;
46
47 /*
48 * Each unique kiconv code conversion identified by tocode and fromcode ids
49 * have corresponding module id and internal function pointers to open(),
50 * kiconv(), close(), and kiconvstr().
51 */
52 typedef struct {
53 uint16_t tid; /* tocode id. */
54 uint16_t fid; /* fromcode id. */
55 uint16_t mid; /* module id. */
|
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.
7 *
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.
12 *
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]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 *
25 * Copyright 2017 RackTop Systems.
26 */
27
28 #ifndef _SYS_KICONV_H
29 #define _SYS_KICONV_H
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 #include <sys/types.h>
36
37 #if defined(_KERNEL) || defined(_FAKE_KERNEL)
38
39 /*
40 * Supported fromcode/tocode values are saved in the following component type
41 * of (name, id) pair. The id values of fromcode and tocode are used to
42 * find out the corresponding code conversions.
43 */
44 typedef struct {
45 char *name;
46 size_t id;
47 } kiconv_code_list_t;
48
49 /*
50 * Each unique kiconv code conversion identified by tocode and fromcode ids
51 * have corresponding module id and internal function pointers to open(),
52 * kiconv(), close(), and kiconvstr().
53 */
54 typedef struct {
55 uint16_t tid; /* tocode id. */
56 uint16_t fid; /* fromcode id. */
57 uint16_t mid; /* module id. */
|