import less(1)
[unleashed/tickless.git] / usr / src / lib / libc / port / i18n / _loc_path.h
blob3ed6591039f256c26e4f0c7d3cf68d58de54ec96
1 /*
2 * CDDL HEADER START
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.
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.
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]
20 * CDDL HEADER END
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _LIBC_PORT_I18N_LOCPATH_H
28 #define _LIBC_PORT_I18N_LOCPATH_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #include <sys/isa_defs.h>
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
38 #define _DFLT_LOC_PATH "/usr/lib/locale/"
40 #define _ICONV_PATH1 "/usr/lib/iconv/"
41 #define _ICONV_PATH2 "%s%%%s.so"
42 #define _WDMOD_PATH1 "/LC_CTYPE/"
43 #define _WDMOD_PATH2 "wdresolve.so"
44 #define _ENCODING_ALIAS_FILE "alias"
45 #define _ENCODING_ALIAS_PATH _ICONV_PATH1 _ENCODING_ALIAS_FILE
47 #define _GENICONVTBL_PATH1 "geniconvtbl/binarytables/%s%%%s.bt"
48 #define _GENICONVTBL_INT_PATH1 "geniconvtbl.so"
50 #ifdef _LP64
52 #if defined(__sparcv9)
54 #define _MACH64_NAME "sparcv9"
56 #elif defined(__amd64)
58 #define _MACH64_NAME "amd64"
60 #else /* !defined(__sparcv9) */
62 #error "Unknown architecture"
64 #endif /* defined(__sparcv9) */
66 #define _MACH64_NAME_LEN (sizeof (_MACH64_NAME) - 1)
68 #define _ICONV_PATH _ICONV_PATH1 _MACH64_NAME "/" _ICONV_PATH2
69 #define _WDMOD_PATH _WDMOD_PATH1 _MACH64_NAME "/" _WDMOD_PATH2
70 #define _GENICONVTBL_PATH _ICONV_PATH1 _GENICONVTBL_PATH1
71 #define _GENICONVTBL_INT_PATH _ICONV_PATH1 \
72 _MACH64_NAME "/" _GENICONVTBL_INT_PATH1
74 #else /* !LP64 */
76 #define _ICONV_PATH _ICONV_PATH1 _ICONV_PATH2
77 #define _WDMOD_PATH _WDMOD_PATH1 _WDMOD_PATH2
78 #define _GENICONVTBL_PATH _ICONV_PATH1 _GENICONVTBL_PATH1
79 #define _GENICONVTBL_INT_PATH _ICONV_PATH1 _GENICONVTBL_INT_PATH1
81 #endif /* _LP64 */
83 #ifdef __cplusplus
85 #endif
87 #endif /* !_LIBC_PORT_I18N_LOCPATH_H */