langinfo.h 1.8 KB

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