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 /* Copyright (c) 1988 AT&T */
28 /* All Rights Reserved */
29
30
31 /*
32 * An application should not include this header directly. Instead it
33 * should be included only through the inclusion of other Sun headers.
34 *
35 * The contents of this header is limited to identifiers specified in the
36 * C Standard. Any new identifiers specified in future amendments to the
37 * C Standard must be placed in this header. If these new identifiers
38 * are required to also be in the C++ Standard "std" namespace, then for
39 * anything other than macro definitions, corresponding "using" directives
40 * must also be added to <locale.h>.
41 */
42
43 #ifndef _ISO_LOCALE_ISO_H
44 #define _ISO_LOCALE_ISO_H
45
46 #pragma ident "%Z%%M% %I% %E% SMI"
47
48 #include <sys/feature_tests.h>
49
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53
54 #if __cplusplus >= 199711L
55 namespace std {
56 #endif
57
58 struct lconv {
59 char *decimal_point;
60 char *thousands_sep;
61 char *grouping;
62 char *int_curr_symbol;
63 char *currency_symbol;
64 char *mon_decimal_point;
65 char *mon_thousands_sep;
66 char *mon_grouping;
67 char *positive_sign;
90 char int_n_sign_posn;
91 #endif
92 };
93
94 #define LC_CTYPE 0
95 #define LC_NUMERIC 1
96 #define LC_TIME 2
97 #define LC_COLLATE 3
98 #define LC_MONETARY 4
99 #define LC_MESSAGES 5
100 #define LC_ALL 6
101
102 #ifndef NULL
103 #if defined(_LP64)
104 #define NULL 0L
105 #else
106 #define NULL 0
107 #endif
108 #endif
109
110 #if defined(__STDC__)
111 extern char *setlocale(int, const char *);
112 extern struct lconv *localeconv(void);
113 #else
114 extern char *setlocale();
115 extern struct lconv *localeconv();
116 #endif
117
118 #if __cplusplus >= 199711L
119 }
120 #endif /* end of namespace std */
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 #endif /* _ISO_LOCALE_ISO_H */
|
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 2014 Garrett D'Amore <garrett@damore.org>
24 *
25 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
26 * Use is subject to license terms.
27 */
28
29 /* Copyright (c) 1988 AT&T */
30 /* All Rights Reserved */
31
32
33 /*
34 * An application should not include this header directly. Instead it
35 * should be included only through the inclusion of other Sun headers.
36 *
37 * The contents of this header is limited to identifiers specified in the
38 * C Standard. Any new identifiers specified in future amendments to the
39 * C Standard must be placed in this header. If these new identifiers
40 * are required to also be in the C++ Standard "std" namespace, then for
41 * anything other than macro definitions, corresponding "using" directives
42 * must also be added to <locale.h>.
43 */
44
45 #ifndef _ISO_LOCALE_ISO_H
46 #define _ISO_LOCALE_ISO_H
47
48 #include <sys/feature_tests.h>
49
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53
54 #if __cplusplus >= 199711L
55 namespace std {
56 #endif
57
58 struct lconv {
59 char *decimal_point;
60 char *thousands_sep;
61 char *grouping;
62 char *int_curr_symbol;
63 char *currency_symbol;
64 char *mon_decimal_point;
65 char *mon_thousands_sep;
66 char *mon_grouping;
67 char *positive_sign;
90 char int_n_sign_posn;
91 #endif
92 };
93
94 #define LC_CTYPE 0
95 #define LC_NUMERIC 1
96 #define LC_TIME 2
97 #define LC_COLLATE 3
98 #define LC_MONETARY 4
99 #define LC_MESSAGES 5
100 #define LC_ALL 6
101
102 #ifndef NULL
103 #if defined(_LP64)
104 #define NULL 0L
105 #else
106 #define NULL 0
107 #endif
108 #endif
109
110 extern char *setlocale(int, const char *);
111 extern struct lconv *localeconv(void);
112
113 #if __cplusplus >= 199711L
114 }
115 #endif /* end of namespace std */
116
117 #ifdef __cplusplus
118 }
119 #endif
120
121 #endif /* _ISO_LOCALE_ISO_H */
|