summaryrefslogtreecommitdiff
path: root/usr/src/man/man3head/langinfo.h.3head
blob: 3b79e1fe212c8e50fd969d40d0bf991df908f91c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
'\" te
.\" Copyright 1989 AT&T. Copyright (c) 2002, Sun Microsystems, Inc.  All Rights Reserved.
.\" 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 or http://www.opensolaris.org/os/licensing.  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]
.TH langinfo.h 3HEAD "30 Aug 2002" "SunOS 5.11" "Headers"
.SH NAME
langinfo.h, langinfo \- language information constants
.SH SYNOPSIS
.LP
.nf
#include <langinfo.h>
.fi

.SH DESCRIPTION
.sp
.LP
The <\fBlanginfo.h\fR> header contains the constants used to identify items of
\fBlanginfo\fR data (see \fBnl_langinfo\fR(3C)). The type of the constant,
\fBnl_item\fR, is defined as described in <\fBnl_types.h\fR>.
.sp
.LP
The following constants are defined. The entries under Category indicate in
which \fBsetlocale\fR(3C) category each item is defined.
.sp

.sp
.TS
tab();
cw(1.42i) |cw(1.42i) |cw(2.66i) 
lw(1.42i) |lw(1.42i) |lw(2.66i) 
.
ConstantCategoryMeaning
_
\fBCODESET\fR\fBLC_CTYPE\fRcodeset name
_
\fBD_T_FMT\fR\fBLC_TIME\fRstring for formatting date and time
_
\fBD_FMT\fR\fBLC_TIME\fRdate format string
_
\fBT_FMT\fR\fBLC_TIME\fRtime format string
_
\fBT_FMT_AMPM\fR\fBLC_TIME\fRa.m. or p.m. time format string
_
\fBAM_STR\fR\fBLC_TIME\fRante-meridiem affix
_
\fBPM_STR\fR\fBLC_TIME\fRpost-meridiem affix
_
\fBDAY_1\fR\fBLC_TIME\fRT{
name of the first day of the week (for example, Sunday)
T}
_
\fBDAY_2\fR\fBLC_TIME\fRT{
name of the second day of the week (for example, Monday)
T}
_
\fBDAY_3\fR\fBLC_TIME\fRT{
name of the third day of the week (for example, Tuesday)
T}
_
\fBDAY_4\fR\fBLC_TIME\fRT{
name of the fourth day of the week (for example, Wednesday)
T}
_
\fBDAY_5\fR\fBLC_TIME\fRT{
name of the fifth day of the week (for example, Thursday)
T}
_
\fBDAY_6\fR\fBLC_TIME\fRT{
name of the sixth day of the week (for example, Friday)
T}
_
\fBDAY_7\fR\fBLC_TIME\fRT{
name of the seventh day of the week (for example, Saturday)
T}
_
\fBABDAY_1\fR\fBLC_TIME\fRT{
abbreviated name of the first day of the week
T}
_
\fBABDAY_2\fR\fBLC_TIME\fRT{
abbreviated name of the second day of the week
T}
_
\fBABDAY_3\fR\fBLC_TIME\fRT{
abbreviated name of the third day of the week
T}
_
\fBABDAY_4\fR\fBLC_TIME\fRT{
abbreviated name of the fourth day of the week
T}
_
\fBABDAY_5\fR\fBLC_TIME\fRT{
abbreviated name of the fifth day of the week
T}
_
\fBABDAY_6\fR\fBLC_TIME\fRT{
abbreviated name of the seventh day of the week
T}
_
\fBABDAY_7\fR\fBLC_TIME\fRT{
abbreviated name of the seventh day of the week
T}
_
\fBMON_1\fR\fBLC_TIME\fRname of the first month of the year
_
\fBMON_2\fR\fBLC_TIME\fRname of the second month
_
\fBMON_3\fR\fBLC_TIME\fRname of the third month
_
\fBMON_4\fR\fBLC_TIME\fRname of the fourth month
_
\fBMON_5\fR\fBLC_TIME\fRname of the fifth month
_
\fBMON_6\fR\fBLC_TIME\fRname of the sixth month
_
\fBMON_7\fR\fBLC_TIME\fRname of the seventh month
_
\fBMON_8\fR\fBLC_TIME\fRname of the eighth month
_
\fBMON_9\fR\fBLC_TIME\fRname of the ninth month
_
\fBMON_10\fR\fBLC_TIME\fRname of the tenth month
_
\fBMON_11\fR\fBLC_TIME\fRname of the eleventh month
_
\fBMON_12\fR\fBLC_TIME\fRname of the twelfth month
_
\fBABMON_1\fR\fBLC_TIME\fRabbreviated name of the first month
_
\fBABMON_2\fR\fBLC_TIME\fRabbreviated name of the second month
_
\fBABMON_3\fR\fBLC_TIME\fRabbreviated name of the third month
_
\fBABMON_4\fR\fBLC_TIME\fRabbreviated name of the fourth month
_
\fBABMON_5\fR\fBLC_TIME\fRabbreviated name of the fifth month
_
\fBABMON_6\fR\fBLC_TIME\fRabbreviated name of the sixth month
_
\fBABMON_7\fR\fBLC_TIME\fRabbreviated name of the seventh month
_
\fBABMON_8\fR\fBLC_TIME\fRabbreviated name of the eighth month
_
\fBABMON_9\fR\fBLC_TIME\fRabbreviated name of the ninth month
_
\fBABMON_10\fR\fBLC_TIME\fRabbreviated name of the tenth month
_
\fBABMON_11\fR\fBLC_TIME\fRabbreviated name of the eleventh month
_
\fBABMON_12\fR\fB LC_TIME\fRabbreviated name of the twelfth month
_
\fBERA\fR\fBLC_TIME\fRera description segments
_
\fBERA_D_FMT\fR\fBLC_TIME\fRera date format string
_
\fBERA_D_T_FMT\fR\fBLC_TIME\fRera date and time format string
_
\fBERA_T_FMT\fR\fBLC_TIME\fRera time format string
_
\fBALT_DIGITS\fR\fBLC_TIME\fRalternative symbols for digits
_
\fBRADIXCHAR\fR\fBLC_NUMERIC\fRradix character
_
\fBTHOUSEP\fR\fBLC_NUMERIC\fRseparator for thousands
_
\fBYESEXPR\fR\fBLC_MESSAGES\fRaffirmative response expression
_
\fBNOEXPR\fR\fBLC_MESSAGES\fRnegative response expression
_
\fBYESSTR\fR\fBLC_MESSAGES\fRaffirmative response for yes/no queries
_
\fBNOSTR\fR\fBLC_MESSAGES\fRnegative response ro yes/no queries
_
\fBCRNCYSTR\fR\fBLC_MONETARY\fRT{
local currency symbol, preceded by '-' if the symbol sould appear before the value, '+' if the symbol should appear after the value, or '.' if the symbol should replace the radix character
T}
.TE

.sp
.LP
If the locale's values for \fBp_cs_precedes\fR and \fBn_cs_precedes\fR do not
match, the value of \fBnl_langinfo(CRNCYSTR)\fR is unspecified.
.sp
.LP
The <\fBlanginfo.h\fR> header declares the following as a function:
.sp
.in +2
.nf
char *nl_langinfo(nl_item);
.fi
.in -2

.sp
.LP
Inclusion of <\fBlanginfo.h\fR> header may also make visible all symbols from
<\fBnl_types.h\fR>.
.SH USAGE
.sp
.LP
Wherever possible, users are advised to use functions compatible with those in
the ISO C standard to access items of \fBlanginfo\fR data. In particular, the
\fBstrftime\fR(3C) function should be used to access date and time information
defined in category \fBLC_TIME\fR. The \fBlocaleconv\fR(3C) function should be
used to access information corresponding to \fBRADIXCHAR\fR, \fBTHOUSEP\fR, and
\fBCRNCYSTR\fR.
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
tab() box;
cw(2.75i) |cw(2.75i) 
lw(2.75i) |lw(2.75i) 
.
ATTRIBUTE TYPEATTRIBUTE VALUE
_
Interface StabilityStandard
.TE

.SH SEE ALSO
.sp
.LP
\fBmkmsgs\fR(1), \fBlocaleconv\fR(3C), \fBnl_langinfo\fR(3C),
\fBnl_types.h\fR(3HEAD), \fBsetlocale\fR(3C), \fBstrftime\fR(3C),
\fBattributes\fR(5), \fBstandards\fR(5)