1 /*	$MirOS: src/include/locale.h,v 1.7 2006/05/30 10:39:51 tg Exp $	*/
2 /*	$OpenBSD: locale.h,v 1.6 2003/06/02 19:34:12 millert Exp $	*/
3 /*	$NetBSD: locale.h,v 1.6 1994/10/26 00:56:02 cgd Exp $	*/
4 
5 /*
6  * Copyright (c) 1991 The Regents of the University of California.
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  * 1. Redistributions of source code must retain the above copyright
13  *    notice, this list of conditions and the following disclaimer.
14  * 2. Redistributions in binary form must reproduce the above copyright
15  *    notice, this list of conditions and the following disclaimer in the
16  *    documentation and/or other materials provided with the distribution.
17  * 3. Neither the name of the University nor the names of its contributors
18  *    may be used to endorse or promote products derived from this software
19  *    without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31  * SUCH DAMAGE.
32  *
33  *	@(#)locale.h	5.2 (Berkeley) 2/24/91
34  */
35 
36 #ifndef _LOCALE_H_
37 #define _LOCALE_H_
38 
39 #include <sys/cdefs.h>
40 
41 #ifdef _LOCALE_CONST_LCONV
42 #define Cchar	const char
43 #else
44 #define Cchar	char
45 #endif
46 
47 struct lconv {
48 	Cchar	*decimal_point;
49 	Cchar	*thousands_sep;
50 	Cchar	*grouping;
51 	Cchar	*int_curr_symbol;
52 	Cchar	*currency_symbol;
53 	Cchar	*mon_decimal_point;
54 	Cchar	*mon_thousands_sep;
55 	Cchar	*mon_grouping;
56 	Cchar	*positive_sign;
57 	Cchar	*negative_sign;
58 	char	int_frac_digits;
59 	char	frac_digits;
60 	char	p_cs_precedes;
61 	char	p_sep_by_space;
62 	char	n_cs_precedes;
63 	char	n_sep_by_space;
64 	char	p_sign_posn;
65 	char	n_sign_posn;
66 };
67 #undef Cchar
68 
69 #define	LC_ALL		0
70 #define	LC_COLLATE	1
71 #define	LC_CTYPE	2
72 #define	LC_MONETARY	3
73 #define	LC_NUMERIC	4
74 #define	LC_TIME		5
75 #define LC_MESSAGES	6
76 #define	_LC_LAST	7		/* marks end */
77 
78 __BEGIN_DECLS
79 struct lconv	*localeconv(void);
80 char		*setlocale(int, const char *);
81 __END_DECLS
82 
83 #endif /* _LOCALE_H_ */
84