/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SMBSRV_NTLOCALE_H
#define _SMBSRV_NTLOCALE_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* NT language and locale identifiers.
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* Language IDs.
*
* A language ID is a 16 bit value which is the combination of a
* primary language ID and a secondary language ID. The bits are
* allocated as follows:
*
* +-----------------------+-------------------------+
* | Sublanguage ID | Primary Language ID |
* +-----------------------+-------------------------+
* 15 10 9 0 bit
*
* The following two combinations of primary language ID and sub-
* language ID have special semantics:
*
* Primary Language ID Sublanguage ID Result
* ------------------- --------------- ------------------------
* LANG_NEUTRAL SUBLANG_NEUTRAL Language neutral
* LANG_NEUTRAL SUBLANG_DEFAULT User default language
* LANG_NEUTRAL SUBLANG_SYS_DEFAULT System default language
*
* Language ID creation/extraction macros:
* MAKELANGID - construct language id from a primary language
* id and a sublanguage id.
* PRIMARYLANGID - extract primary language id from a language id.
* SUBLANGID - extract sublanguage id from a language id.
*/
/*
* Primary language IDs.
*/
/*
* Sublanguage IDs.
*
* The name immediately following SUBLANG_ dictates which primary
* language ID can be combined with the sub-language ID to form a
* valid language ID.
*/
/*
* Sorting IDs.
*/
/* order */
/* Bopomofo order */
/*
* A locale ID is a 32 bit value which is the combination of a
* language ID, a sort ID, and a reserved area. The bits are
* allocated as follows:
*
* +-------------+---------+-------------------------+
* | Reserved | Sort ID | Language ID |
* +-------------+---------+-------------------------+
* 31 20 19 16 15 0 bit
*
* Locale ID creation/extraction macros:
*
* MAKELCID - construct the locale id from a language id
* and a sort id.
* MAKESORTLCID - construct the locale id from a language id,
* sort id, and sort version.
* LANGIDFROMLCID - extract the language id from a locale id.
* SORTIDFROMLCID - extract the sort id from a locale id.
* SORTVERSIONFROMLCID - extract the sort version from a locale id.
*/
/*
* Default System and User IDs for language and locale.
*/
#define LOCALE_NEUTRAL \
#ifdef __cplusplus
}
#endif
#endif /* _SMBSRV_NTLOCALE_H */