1 #ifndef _LANGINFO_H 2 #define _LANGINFO_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #include <features.h> 9 #include <nl_types.h> 10 11 #define __NEED_locale_t 12 13 #include <bits/alltypes.h> 14 15 #define ABDAY_1 0x20000 16 #define ABDAY_2 0x20001 17 #define ABDAY_3 0x20002 18 #define ABDAY_4 0x20003 19 #define ABDAY_5 0x20004 20 #define ABDAY_6 0x20005 21 #define ABDAY_7 0x20006 22 23 #define DAY_1 0x20007 24 #define DAY_2 0x20008 25 #define DAY_3 0x20009 26 #define DAY_4 0x2000A 27 #define DAY_5 0x2000B 28 #define DAY_6 0x2000C 29 #define DAY_7 0x2000D 30 31 #define ABMON_1 0x2000E 32 #define ABMON_2 0x2000F 33 #define ABMON_3 0x20010 34 #define ABMON_4 0x20011 35 #define ABMON_5 0x20012 36 #define ABMON_6 0x20013 37 #define ABMON_7 0x20014 38 #define ABMON_8 0x20015 39 #define ABMON_9 0x20016 40 #define ABMON_10 0x20017 41 #define ABMON_11 0x20018 42 #define ABMON_12 0x20019 43 44 #define MON_1 0x2001A 45 #define MON_2 0x2001B 46 #define MON_3 0x2001C 47 #define MON_4 0x2001D 48 #define MON_5 0x2001E 49 #define MON_6 0x2001F 50 #define MON_7 0x20020 51 #define MON_8 0x20021 52 #define MON_9 0x20022 53 #define MON_10 0x20023 54 #define MON_11 0x20024 55 #define MON_12 0x20025 56 57 #define AM_STR 0x20026 58 #define PM_STR 0x20027 59 60 #define D_T_FMT 0x20028 61 #define D_FMT 0x20029 62 #define T_FMT 0x2002A 63 #define T_FMT_AMPM 0x2002B 64 65 #define ERA 0x2002C 66 #define ERA_D_FMT 0x2002E 67 #define ALT_DIGITS 0x2002F 68 #define ERA_D_T_FMT 0x20030 69 #define ERA_T_FMT 0x20031 70 71 #define CODESET 14 72 73 #define CRNCYSTR 0x4000F 74 75 #define RADIXCHAR 0x10000 76 #define THOUSEP 0x10001 77 #define YESEXPR 0x50000 78 #define NOEXPR 0x50001 79 80 #define _NL_LOCALE_NAME(cat) (((cat)<<16) | 0xffff) 81 82 #if defined(_GNU_SOURCE) 83 #define NL_LOCALE_NAME(cat) _NL_LOCALE_NAME(cat) 84 #endif 85 86 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 87 #define YESSTR 0x50002 88 #define NOSTR 0x50003 89 #endif 90 91 char *nl_langinfo(nl_item); 92 char *nl_langinfo_l(nl_item, locale_t); 93 94 #ifdef __cplusplus 95 } 96 #endif 97 98 #endif 99