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#pragma ident "%Z%%M% %I% %E% SMI" 31 32#include <sys/isa_defs.h> 33 34#ifdef __cplusplus 35extern "C" { 36#endif 37 38#define _DFLT_LOC_PATH "/usr/lib/locale/" 39 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 46 47#define _GENICONVTBL_PATH1 "geniconvtbl/binarytables/%s%%%s.bt" 48#define _GENICONVTBL_INT_PATH1 "geniconvtbl.so" 49 50#ifdef _LP64 51 52#if defined(__sparcv9) 53 54#define _MACH64_NAME "sparcv9" 55 56#elif defined(__amd64) 57 58#define _MACH64_NAME "amd64" 59 60#else /* !defined(__sparcv9) */ 61 62#error "Unknown architecture" 63 64#endif /* defined(__sparcv9) */ 65 66#define _MACH64_NAME_LEN (sizeof (_MACH64_NAME) - 1) 67 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 73 74#else /* !LP64 */ 75 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 80 81#endif /* _LP64 */ 82 83#ifdef __cplusplus 84} 85#endif 86 87#endif /* !_LIBC_PORT_I18N_LOCPATH_H */ 88