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 2005 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _LIBC_PORT_I18N_LOCPATH_H 28 #define _LIBC_PORT_I18N_LOCPATH_H 29 30 #include <sys/isa_defs.h> 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 #define _DFLT_LOC_PATH "/usr/lib/locale/" 37 38 #define _ICONV_PATH1 "/usr/lib/iconv/" 39 #define _ICONV_PATH2 "%s%%%s.so" 40 #define _WDMOD_PATH1 "/LC_CTYPE/" 41 #define _WDMOD_PATH2 "wdresolve.so" 42 #define _ENCODING_ALIAS_FILE "alias" 43 #define _ENCODING_ALIAS_PATH _ICONV_PATH1 _ENCODING_ALIAS_FILE 44 45 #define _GENICONVTBL_PATH1 "geniconvtbl/binarytables/%s%%%s.bt" 46 #define _GENICONVTBL_INT_PATH1 "geniconvtbl.so" 47 48 #ifdef _LP64 49 50 #if defined(__sparcv9) 51 52 #define _MACH64_NAME "sparcv9" 53 54 #elif defined(__amd64) 55 56 #define _MACH64_NAME "amd64" 57 58 #else /* !defined(__sparcv9) */ 59 60 #error "Unknown architecture" 61 62 #endif /* defined(__sparcv9) */ 63 64 #define _MACH64_NAME_LEN (sizeof (_MACH64_NAME) - 1) 65 66 #define _ICONV_PATH _ICONV_PATH1 _MACH64_NAME "/" _ICONV_PATH2 67 #define _WDMOD_PATH _WDMOD_PATH1 _MACH64_NAME "/" _WDMOD_PATH2 68 #define _GENICONVTBL_PATH _ICONV_PATH1 _GENICONVTBL_PATH1 69 #define _GENICONVTBL_INT_PATH _ICONV_PATH1 \ 70 _MACH64_NAME "/" _GENICONVTBL_INT_PATH1 71 72 #else /* !LP64 */ 73 74 #define _ICONV_PATH _ICONV_PATH1 _ICONV_PATH2 75 #define _WDMOD_PATH _WDMOD_PATH1 _WDMOD_PATH2 76 #define _GENICONVTBL_PATH _ICONV_PATH1 _GENICONVTBL_PATH1 77 #define _GENICONVTBL_INT_PATH _ICONV_PATH1 _GENICONVTBL_INT_PATH1 78 79 #endif /* _LP64 */ 80 81 #ifdef __cplusplus 82 } 83 #endif 84 85 #endif /* !_LIBC_PORT_I18N_LOCPATH_H */ 86