or1k: fix some TLS issues
[uclibc-ng.git] / include / langinfo.h
blob94a4d7e75cf9d2766c24f46c6272d31658f9e36b
1 /* Access to locale-dependent parameters.
2 Copyright (C) 1995-2002,2003,2004,2005,2009 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 #ifndef _LANGINFO_H
20 #define _LANGINFO_H 1
22 /* Get the type definition. */
23 #include <nl_types.h>
25 #include <bits/uClibc_locale.h> /* Define the __LC_* category names. */
28 __BEGIN_DECLS
30 /* Construct an `nl_item' value for `nl_langinfo' from a locale category
31 (LC_*) and an item index within the category. Some code may depend on
32 the item values within a category increasing monotonically with the
33 indices. */
34 #if 0
35 #define _NL_ITEM(category, index) (((category) << 16) | (index))
37 /* Extract the category and item index from a constructed `nl_item' value. */
38 #define _NL_ITEM_CATEGORY(item) ((int) (item) >> 16)
39 #define _NL_ITEM_INDEX(item) ((int) (item) & 0xffff)
40 #else
41 #define _NL_ITEM(category, index) \
42 (((category) << __NL_ITEM_CATEGORY_SHIFT) | (index))
44 /* Extract the category and item index from a constructed `nl_item' value. */
45 #define _NL_ITEM_CATEGORY(item) ((int) (item) >> __NL_ITEM_CATEGORY_SHIFT)
46 #define _NL_ITEM_INDEX(item) ((int) (item) & __NL_ITEM_INDEX_MASK)
47 #endif
49 /* Enumeration of locale items that can be queried with `nl_langinfo'. */
50 enum
52 /* LC_TIME category: date and time formatting. */
54 /* Abbreviated days of the week. */
55 ABDAY_1 = _NL_ITEM (__LC_TIME, 0), /* Sun */
56 #define ABDAY_1 ABDAY_1
57 ABDAY_2,
58 #define ABDAY_2 ABDAY_2
59 ABDAY_3,
60 #define ABDAY_3 ABDAY_3
61 ABDAY_4,
62 #define ABDAY_4 ABDAY_4
63 ABDAY_5,
64 #define ABDAY_5 ABDAY_5
65 ABDAY_6,
66 #define ABDAY_6 ABDAY_6
67 ABDAY_7,
68 #define ABDAY_7 ABDAY_7
70 /* Long-named days of the week. */
71 DAY_1, /* Sunday */
72 #define DAY_1 DAY_1
73 DAY_2, /* Monday */
74 #define DAY_2 DAY_2
75 DAY_3, /* Tuesday */
76 #define DAY_3 DAY_3
77 DAY_4, /* Wednesday */
78 #define DAY_4 DAY_4
79 DAY_5, /* Thursday */
80 #define DAY_5 DAY_5
81 DAY_6, /* Friday */
82 #define DAY_6 DAY_6
83 DAY_7, /* Saturday */
84 #define DAY_7 DAY_7
86 /* Abbreviated month names. */
87 ABMON_1, /* Jan */
88 #define ABMON_1 ABMON_1
89 ABMON_2,
90 #define ABMON_2 ABMON_2
91 ABMON_3,
92 #define ABMON_3 ABMON_3
93 ABMON_4,
94 #define ABMON_4 ABMON_4
95 ABMON_5,
96 #define ABMON_5 ABMON_5
97 ABMON_6,
98 #define ABMON_6 ABMON_6
99 ABMON_7,
100 #define ABMON_7 ABMON_7
101 ABMON_8,
102 #define ABMON_8 ABMON_8
103 ABMON_9,
104 #define ABMON_9 ABMON_9
105 ABMON_10,
106 #define ABMON_10 ABMON_10
107 ABMON_11,
108 #define ABMON_11 ABMON_11
109 ABMON_12,
110 #define ABMON_12 ABMON_12
112 /* Long month names. */
113 MON_1, /* January */
114 #define MON_1 MON_1
115 MON_2,
116 #define MON_2 MON_2
117 MON_3,
118 #define MON_3 MON_3
119 MON_4,
120 #define MON_4 MON_4
121 MON_5,
122 #define MON_5 MON_5
123 MON_6,
124 #define MON_6 MON_6
125 MON_7,
126 #define MON_7 MON_7
127 MON_8,
128 #define MON_8 MON_8
129 MON_9,
130 #define MON_9 MON_9
131 MON_10,
132 #define MON_10 MON_10
133 MON_11,
134 #define MON_11 MON_11
135 MON_12,
136 #define MON_12 MON_12
138 AM_STR, /* Ante meridian string. */
139 #define AM_STR AM_STR
140 PM_STR, /* Post meridian string. */
141 #define PM_STR PM_STR
143 D_T_FMT, /* Date and time format for strftime. */
144 #define D_T_FMT D_T_FMT
145 D_FMT, /* Date format for strftime. */
146 #define D_FMT D_FMT
147 T_FMT, /* Time format for strftime. */
148 #define T_FMT T_FMT
149 T_FMT_AMPM, /* 12-hour time format for strftime. */
150 #define T_FMT_AMPM T_FMT_AMPM
152 ERA, /* Alternate era. */
153 #define ERA ERA
154 __ERA_YEAR, /* Year in alternate era format. */
155 #ifdef __USE_GNU
156 # define ERA_YEAR __ERA_YEAR
157 #endif
158 ERA_D_FMT, /* Date in alternate era format. */
159 #define ERA_D_FMT ERA_D_FMT
160 ALT_DIGITS, /* Alternate symbols for digits. */
161 #define ALT_DIGITS ALT_DIGITS
162 ERA_D_T_FMT, /* Date and time in alternate era format. */
163 #define ERA_D_T_FMT ERA_D_T_FMT
164 ERA_T_FMT, /* Time in alternate era format. */
165 #define ERA_T_FMT ERA_T_FMT
167 #if 0
168 _NL_TIME_ERA_NUM_ENTRIES, /* Number entries in the era arrays. */
169 _NL_TIME_ERA_ENTRIES, /* Structure with era entries in usable form.*/
171 _NL_WABDAY_1, /* Sun */
172 _NL_WABDAY_2,
173 _NL_WABDAY_3,
174 _NL_WABDAY_4,
175 _NL_WABDAY_5,
176 _NL_WABDAY_6,
177 _NL_WABDAY_7,
179 /* Long-named days of the week. */
180 _NL_WDAY_1, /* Sunday */
181 _NL_WDAY_2, /* Monday */
182 _NL_WDAY_3, /* Tuesday */
183 _NL_WDAY_4, /* Wednesday */
184 _NL_WDAY_5, /* Thursday */
185 _NL_WDAY_6, /* Friday */
186 _NL_WDAY_7, /* Saturday */
188 /* Abbreviated month names. */
189 _NL_WABMON_1, /* Jan */
190 _NL_WABMON_2,
191 _NL_WABMON_3,
192 _NL_WABMON_4,
193 _NL_WABMON_5,
194 _NL_WABMON_6,
195 _NL_WABMON_7,
196 _NL_WABMON_8,
197 _NL_WABMON_9,
198 _NL_WABMON_10,
199 _NL_WABMON_11,
200 _NL_WABMON_12,
202 /* Long month names. */
203 _NL_WMON_1, /* January */
204 _NL_WMON_2,
205 _NL_WMON_3,
206 _NL_WMON_4,
207 _NL_WMON_5,
208 _NL_WMON_6,
209 _NL_WMON_7,
210 _NL_WMON_8,
211 _NL_WMON_9,
212 _NL_WMON_10,
213 _NL_WMON_11,
214 _NL_WMON_12,
216 _NL_WAM_STR, /* Ante meridian string. */
217 _NL_WPM_STR, /* Post meridian string. */
219 _NL_WD_T_FMT, /* Date and time format for strftime. */
220 _NL_WD_FMT, /* Date format for strftime. */
221 _NL_WT_FMT, /* Time format for strftime. */
222 _NL_WT_FMT_AMPM, /* 12-hour time format for strftime. */
224 _NL_WERA_YEAR, /* Year in alternate era format. */
225 _NL_WERA_D_FMT, /* Date in alternate era format. */
226 _NL_WALT_DIGITS, /* Alternate symbols for digits. */
227 _NL_WERA_D_T_FMT, /* Date and time in alternate era format. */
228 _NL_WERA_T_FMT, /* Time in alternate era format. */
230 _NL_TIME_WEEK_NDAYS,
231 _NL_TIME_WEEK_1STDAY,
232 _NL_TIME_WEEK_1STWEEK,
233 _NL_TIME_FIRST_WEEKDAY,
234 _NL_TIME_FIRST_WORKDAY,
235 _NL_TIME_CAL_DIRECTION,
236 _NL_TIME_TIMEZONE,
238 _DATE_FMT, /* strftime format for date. */
239 #define _DATE_FMT _DATE_FMT
240 _NL_W_DATE_FMT,
242 _NL_TIME_CODESET,
243 #endif /* 0 */
245 _NL_NUM_LC_TIME, /* Number of indices in LC_TIME category. */
247 /* LC_COLLATE category: text sorting.
248 This information is accessed by the strcoll and strxfrm functions.
249 These `nl_langinfo' names are used only internally. */
250 #if 0
251 _NL_COLLATE_NRULES = _NL_ITEM (__LC_COLLATE, 0),
252 _NL_COLLATE_RULESETS,
253 _NL_COLLATE_TABLEMB,
254 _NL_COLLATE_WEIGHTMB,
255 _NL_COLLATE_EXTRAMB,
256 _NL_COLLATE_INDIRECTMB,
257 _NL_COLLATE_GAP1,
258 _NL_COLLATE_GAP2,
259 _NL_COLLATE_GAP3,
260 _NL_COLLATE_TABLEWC,
261 _NL_COLLATE_WEIGHTWC,
262 _NL_COLLATE_EXTRAWC,
263 _NL_COLLATE_INDIRECTWC,
264 _NL_COLLATE_SYMB_HASH_SIZEMB,
265 _NL_COLLATE_SYMB_TABLEMB,
266 _NL_COLLATE_SYMB_EXTRAMB,
267 _NL_COLLATE_COLLSEQMB,
268 _NL_COLLATE_COLLSEQWC,
269 _NL_COLLATE_CODESET,
270 _NL_NUM_LC_COLLATE,
271 #endif
273 /* LC_CTYPE category: character classification.
274 This information is accessed by the functions in <ctype.h>.
275 These `nl_langinfo' names are used only internally. */
276 #if 0
277 _NL_CTYPE_CLASS = _NL_ITEM (__LC_CTYPE, 0),
278 _NL_CTYPE_TOUPPER,
279 _NL_CTYPE_GAP1,
280 _NL_CTYPE_TOLOWER,
281 _NL_CTYPE_GAP2,
282 _NL_CTYPE_CLASS32,
283 _NL_CTYPE_GAP3,
284 _NL_CTYPE_GAP4,
285 _NL_CTYPE_GAP5,
286 _NL_CTYPE_GAP6,
287 _NL_CTYPE_CLASS_NAMES,
288 _NL_CTYPE_MAP_NAMES,
289 _NL_CTYPE_WIDTH,
290 _NL_CTYPE_MB_CUR_MAX,
291 _NL_CTYPE_CODESET_NAME,
292 CODESET = _NL_CTYPE_CODESET_NAME,
293 #define CODESET CODESET
294 _NL_CTYPE_TOUPPER32,
295 _NL_CTYPE_TOLOWER32,
296 _NL_CTYPE_CLASS_OFFSET,
297 _NL_CTYPE_MAP_OFFSET,
298 _NL_CTYPE_INDIGITS_MB_LEN,
299 _NL_CTYPE_INDIGITS0_MB,
300 _NL_CTYPE_INDIGITS1_MB,
301 _NL_CTYPE_INDIGITS2_MB,
302 _NL_CTYPE_INDIGITS3_MB,
303 _NL_CTYPE_INDIGITS4_MB,
304 _NL_CTYPE_INDIGITS5_MB,
305 _NL_CTYPE_INDIGITS6_MB,
306 _NL_CTYPE_INDIGITS7_MB,
307 _NL_CTYPE_INDIGITS8_MB,
308 _NL_CTYPE_INDIGITS9_MB,
309 _NL_CTYPE_INDIGITS_WC_LEN,
310 _NL_CTYPE_INDIGITS0_WC,
311 _NL_CTYPE_INDIGITS1_WC,
312 _NL_CTYPE_INDIGITS2_WC,
313 _NL_CTYPE_INDIGITS3_WC,
314 _NL_CTYPE_INDIGITS4_WC,
315 _NL_CTYPE_INDIGITS5_WC,
316 _NL_CTYPE_INDIGITS6_WC,
317 _NL_CTYPE_INDIGITS7_WC,
318 _NL_CTYPE_INDIGITS8_WC,
319 _NL_CTYPE_INDIGITS9_WC,
320 _NL_CTYPE_OUTDIGIT0_MB,
321 #else
322 _NL_CTYPE_OUTDIGIT0_MB = _NL_ITEM (__LC_CTYPE, 0),
323 #endif
324 _NL_CTYPE_OUTDIGIT1_MB,
325 _NL_CTYPE_OUTDIGIT2_MB,
326 _NL_CTYPE_OUTDIGIT3_MB,
327 _NL_CTYPE_OUTDIGIT4_MB,
328 _NL_CTYPE_OUTDIGIT5_MB,
329 _NL_CTYPE_OUTDIGIT6_MB,
330 _NL_CTYPE_OUTDIGIT7_MB,
331 _NL_CTYPE_OUTDIGIT8_MB,
332 _NL_CTYPE_OUTDIGIT9_MB,
333 #if 0
334 _NL_CTYPE_OUTDIGIT0_WC,
335 _NL_CTYPE_OUTDIGIT1_WC,
336 _NL_CTYPE_OUTDIGIT2_WC,
337 _NL_CTYPE_OUTDIGIT3_WC,
338 _NL_CTYPE_OUTDIGIT4_WC,
339 _NL_CTYPE_OUTDIGIT5_WC,
340 _NL_CTYPE_OUTDIGIT6_WC,
341 _NL_CTYPE_OUTDIGIT7_WC,
342 _NL_CTYPE_OUTDIGIT8_WC,
343 _NL_CTYPE_OUTDIGIT9_WC,
344 _NL_CTYPE_TRANSLIT_TAB_SIZE,
345 _NL_CTYPE_TRANSLIT_FROM_IDX,
346 _NL_CTYPE_TRANSLIT_FROM_TBL,
347 _NL_CTYPE_TRANSLIT_TO_IDX,
348 _NL_CTYPE_TRANSLIT_TO_TBL,
349 _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN,
350 _NL_CTYPE_TRANSLIT_DEFAULT_MISSING,
351 _NL_CTYPE_TRANSLIT_IGNORE_LEN,
352 _NL_CTYPE_TRANSLIT_IGNORE,
353 _NL_CTYPE_MAP_TO_NONASCII,
354 _NL_CTYPE_NONASCII_CASE,
355 _NL_CTYPE_EXTRA_MAP_1,
356 _NL_CTYPE_EXTRA_MAP_2,
357 _NL_CTYPE_EXTRA_MAP_3,
358 _NL_CTYPE_EXTRA_MAP_4,
359 _NL_CTYPE_EXTRA_MAP_5,
360 _NL_CTYPE_EXTRA_MAP_6,
361 _NL_CTYPE_EXTRA_MAP_7,
362 _NL_CTYPE_EXTRA_MAP_8,
363 _NL_CTYPE_EXTRA_MAP_9,
364 _NL_CTYPE_EXTRA_MAP_10,
365 _NL_CTYPE_EXTRA_MAP_11,
366 _NL_CTYPE_EXTRA_MAP_12,
367 _NL_CTYPE_EXTRA_MAP_13,
368 _NL_CTYPE_EXTRA_MAP_14,
369 #else /* 0 */
370 _NL_CTYPE_CODESET_NAME, /* uClibc note: MUST BE LAST ENTRY!!! */
371 CODESET = _NL_CTYPE_CODESET_NAME,
372 #define CODESET CODESET
373 #endif /* 0 */
374 _NL_NUM_LC_CTYPE,
376 /* LC_MONETARY category: formatting of monetary quantities.
377 These items each correspond to a member of `struct lconv',
378 defined in <locale.h>. */
379 __INT_CURR_SYMBOL = _NL_ITEM (__LC_MONETARY, 0),
380 #ifdef __USE_GNU
381 # define INT_CURR_SYMBOL __INT_CURR_SYMBOL
382 #endif
383 __CURRENCY_SYMBOL,
384 #ifdef __USE_GNU
385 # define CURRENCY_SYMBOL __CURRENCY_SYMBOL
386 #endif
387 __MON_DECIMAL_POINT,
388 #ifdef __USE_GNU
389 # define MON_DECIMAL_POINT __MON_DECIMAL_POINT
390 #endif
391 __MON_THOUSANDS_SEP,
392 #ifdef __USE_GNU
393 # define MON_THOUSANDS_SEP __MON_THOUSANDS_SEP
394 #endif
395 __MON_GROUPING,
396 #ifdef __USE_GNU
397 # define MON_GROUPING __MON_GROUPING
398 #endif
399 __POSITIVE_SIGN,
400 #ifdef __USE_GNU
401 # define POSITIVE_SIGN __POSITIVE_SIGN
402 #endif
403 __NEGATIVE_SIGN,
404 #ifdef __USE_GNU
405 # define NEGATIVE_SIGN __NEGATIVE_SIGN
406 #endif
407 __INT_FRAC_DIGITS,
408 #ifdef __USE_GNU
409 # define INT_FRAC_DIGITS __INT_FRAC_DIGITS
410 #endif
411 __FRAC_DIGITS,
412 #ifdef __USE_GNU
413 # define FRAC_DIGITS __FRAC_DIGITS
414 #endif
415 __P_CS_PRECEDES,
416 #ifdef __USE_GNU
417 # define P_CS_PRECEDES __P_CS_PRECEDES
418 #endif
419 __P_SEP_BY_SPACE,
420 #ifdef __USE_GNU
421 # define P_SEP_BY_SPACE __P_SEP_BY_SPACE
422 #endif
423 __N_CS_PRECEDES,
424 #ifdef __USE_GNU
425 # define N_CS_PRECEDES __N_CS_PRECEDES
426 #endif
427 __N_SEP_BY_SPACE,
428 #ifdef __USE_GNU
429 # define N_SEP_BY_SPACE __N_SEP_BY_SPACE
430 #endif
431 __P_SIGN_POSN,
432 #ifdef __USE_GNU
433 # define P_SIGN_POSN __P_SIGN_POSN
434 #endif
435 __N_SIGN_POSN,
436 #ifdef __USE_GNU
437 # define N_SIGN_POSN __N_SIGN_POSN
438 #endif
439 #if 0 /* moved below for some reason on uClibc */
440 _NL_MONETARY_CRNCYSTR,
441 #define CRNCYSTR _NL_MONETARY_CRNCYSTR
442 #endif
443 __INT_P_CS_PRECEDES,
444 #ifdef __USE_GNU
445 # define INT_P_CS_PRECEDES __INT_P_CS_PRECEDES
446 #endif
447 __INT_P_SEP_BY_SPACE,
448 #ifdef __USE_GNU
449 # define INT_P_SEP_BY_SPACE __INT_P_SEP_BY_SPACE
450 #endif
451 __INT_N_CS_PRECEDES,
452 #ifdef __USE_GNU
453 # define INT_N_CS_PRECEDES __INT_N_CS_PRECEDES
454 #endif
455 __INT_N_SEP_BY_SPACE,
456 #ifdef __USE_GNU
457 # define INT_N_SEP_BY_SPACE __INT_N_SEP_BY_SPACE
458 #endif
459 __INT_P_SIGN_POSN,
460 #ifdef __USE_GNU
461 # define INT_P_SIGN_POSN __INT_P_SIGN_POSN
462 #endif
463 __INT_N_SIGN_POSN,
464 #ifdef __USE_GNU
465 # define INT_N_SIGN_POSN __INT_N_SIGN_POSN
466 #endif
467 #if 1 /* moved here from above */
468 _NL_MONETARY_CRNCYSTR,
469 #define CRNCYSTR _NL_MONETARY_CRNCYSTR
470 #endif
471 #if 0
472 _NL_MONETARY_DUO_INT_CURR_SYMBOL,
473 _NL_MONETARY_DUO_CURRENCY_SYMBOL,
474 _NL_MONETARY_DUO_INT_FRAC_DIGITS,
475 _NL_MONETARY_DUO_FRAC_DIGITS,
476 _NL_MONETARY_DUO_P_CS_PRECEDES,
477 _NL_MONETARY_DUO_P_SEP_BY_SPACE,
478 _NL_MONETARY_DUO_N_CS_PRECEDES,
479 _NL_MONETARY_DUO_N_SEP_BY_SPACE,
480 _NL_MONETARY_DUO_INT_P_CS_PRECEDES,
481 _NL_MONETARY_DUO_INT_P_SEP_BY_SPACE,
482 _NL_MONETARY_DUO_INT_N_CS_PRECEDES,
483 _NL_MONETARY_DUO_INT_N_SEP_BY_SPACE,
484 _NL_MONETARY_DUO_P_SIGN_POSN,
485 _NL_MONETARY_DUO_N_SIGN_POSN,
486 _NL_MONETARY_DUO_INT_P_SIGN_POSN,
487 _NL_MONETARY_DUO_INT_N_SIGN_POSN,
488 _NL_MONETARY_UNO_VALID_FROM,
489 _NL_MONETARY_UNO_VALID_TO,
490 _NL_MONETARY_DUO_VALID_FROM,
491 _NL_MONETARY_DUO_VALID_TO,
492 _NL_MONETARY_CONVERSION_RATE,
493 _NL_MONETARY_DECIMAL_POINT_WC,
494 _NL_MONETARY_THOUSANDS_SEP_WC,
495 _NL_MONETARY_CODESET,
496 #endif /* 0 */
497 _NL_NUM_LC_MONETARY,
499 /* LC_NUMERIC category: formatting of numbers.
500 These also correspond to members of `struct lconv'; see <locale.h>. */
501 __DECIMAL_POINT = _NL_ITEM (__LC_NUMERIC, 0),
502 #ifdef __USE_GNU
503 # define DECIMAL_POINT __DECIMAL_POINT
504 #endif
505 RADIXCHAR = __DECIMAL_POINT,
506 #define RADIXCHAR RADIXCHAR
507 __THOUSANDS_SEP,
508 #ifdef __USE_GNU
509 # define THOUSANDS_SEP __THOUSANDS_SEP
510 #endif
511 THOUSEP = __THOUSANDS_SEP,
512 #define THOUSEP THOUSEP
513 __GROUPING,
514 #ifdef __USE_GNU
515 # define GROUPING __GROUPING
516 #endif
517 #if 0
518 _NL_NUMERIC_DECIMAL_POINT_WC,
519 _NL_NUMERIC_THOUSANDS_SEP_WC,
520 _NL_NUMERIC_CODESET,
521 #endif
522 _NL_NUM_LC_NUMERIC,
524 __YESEXPR = _NL_ITEM (__LC_MESSAGES, 0), /* Regex matching ``yes'' input. */
525 #define YESEXPR __YESEXPR
526 __NOEXPR, /* Regex matching ``no'' input. */
527 #define NOEXPR __NOEXPR
528 __YESSTR, /* Output string for ``yes''. */
529 #if defined __USE_GNU || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
530 # define YESSTR __YESSTR
531 #endif
532 __NOSTR, /* Output string for ``no''. */
533 #if defined __USE_GNU || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
534 # define NOSTR __NOSTR
535 #endif
536 #if 0
537 _NL_MESSAGES_CODESET,
538 #endif
539 _NL_NUM_LC_MESSAGES,
541 #if 0
542 _NL_PAPER_HEIGHT = _NL_ITEM (__LC_PAPER, 0),
543 _NL_PAPER_WIDTH,
544 _NL_PAPER_CODESET,
545 _NL_NUM_LC_PAPER,
547 _NL_NAME_NAME_FMT = _NL_ITEM (__LC_NAME, 0),
548 _NL_NAME_NAME_GEN,
549 _NL_NAME_NAME_MR,
550 _NL_NAME_NAME_MRS,
551 _NL_NAME_NAME_MISS,
552 _NL_NAME_NAME_MS,
553 _NL_NAME_CODESET,
554 _NL_NUM_LC_NAME,
556 _NL_ADDRESS_POSTAL_FMT = _NL_ITEM (__LC_ADDRESS, 0),
557 _NL_ADDRESS_COUNTRY_NAME,
558 _NL_ADDRESS_COUNTRY_POST,
559 _NL_ADDRESS_COUNTRY_AB2,
560 _NL_ADDRESS_COUNTRY_AB3,
561 _NL_ADDRESS_COUNTRY_CAR,
562 _NL_ADDRESS_COUNTRY_NUM,
563 _NL_ADDRESS_COUNTRY_ISBN,
564 _NL_ADDRESS_LANG_NAME,
565 _NL_ADDRESS_LANG_AB,
566 _NL_ADDRESS_LANG_TERM,
567 _NL_ADDRESS_LANG_LIB,
568 _NL_ADDRESS_CODESET,
569 _NL_NUM_LC_ADDRESS,
571 _NL_TELEPHONE_TEL_INT_FMT = _NL_ITEM (__LC_TELEPHONE, 0),
572 _NL_TELEPHONE_TEL_DOM_FMT,
573 _NL_TELEPHONE_INT_SELECT,
574 _NL_TELEPHONE_INT_PREFIX,
575 _NL_TELEPHONE_CODESET,
576 _NL_NUM_LC_TELEPHONE,
578 _NL_MEASUREMENT_MEASUREMENT = _NL_ITEM (__LC_MEASUREMENT, 0),
579 _NL_MEASUREMENT_CODESET,
580 _NL_NUM_LC_MEASUREMENT,
582 _NL_IDENTIFICATION_TITLE = _NL_ITEM (__LC_IDENTIFICATION, 0),
583 _NL_IDENTIFICATION_SOURCE,
584 _NL_IDENTIFICATION_ADDRESS,
585 _NL_IDENTIFICATION_CONTACT,
586 _NL_IDENTIFICATION_EMAIL,
587 _NL_IDENTIFICATION_TEL,
588 _NL_IDENTIFICATION_FAX,
589 _NL_IDENTIFICATION_LANGUAGE,
590 _NL_IDENTIFICATION_TERRITORY,
591 _NL_IDENTIFICATION_AUDIENCE,
592 _NL_IDENTIFICATION_APPLICATION,
593 _NL_IDENTIFICATION_ABBREVIATION,
594 _NL_IDENTIFICATION_REVISION,
595 _NL_IDENTIFICATION_DATE,
596 _NL_IDENTIFICATION_CATEGORY,
597 _NL_IDENTIFICATION_CODESET,
598 _NL_NUM_LC_IDENTIFICATION,
599 #endif
601 /* This marks the highest value used. */
602 _NL_NUM
605 /* This macro produces an item you can pass to `nl_langinfo' or
606 `nl_langinfo_l' to get the name of the locale in use for CATEGORY. */
607 #define _NL_LOCALE_NAME(category) _NL_ITEM ((category), -1)
608 #ifdef __USE_GNU
609 # define NL_LOCALE_NAME(category) _NL_LOCALE_NAME (category)
610 #endif
613 /* Return the current locale's value for ITEM.
614 If ITEM is invalid, an empty string is returned.
616 The string returned will not change until `setlocale' is called;
617 it is usually in read-only memory and cannot be modified. */
619 extern char *nl_langinfo (nl_item __item) __THROW;
620 libc_hidden_proto(nl_langinfo)
623 #if defined __USE_XOPEN2K && defined __UCLIBC_HAS_XLOCALE__
624 /* This interface is for the extended locale model. See <locale.h> for
625 more information. */
627 /* Get locale datatype definition. */
628 # include <xlocale.h>
630 /* Just like nl_langinfo but get the information from the locale object L. */
631 extern char *nl_langinfo_l (nl_item __item, __locale_t __l);
632 libc_hidden_proto(nl_langinfo_l)
633 #endif
635 __END_DECLS
637 #endif /* langinfo.h */