Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.9 KiB

  1. /* $OpenBSD: langinfo.h,v 1.7 2012/12/05 23:19:57 deraadt Exp $ */
  2. /* $NetBSD: langinfo.h,v 1.3 1995/04/28 23:30:54 jtc Exp $ */
  3. /*
  4. * Written by J.T. Conklin <jtc@netbsd.org>
  5. * Public domain.
  6. */
  7. #ifndef _LANGINFO_H_
  8. #define _LANGINFO_H_
  9. #include <nl_types.h>
  10. #define D_T_FMT 0 /* String for formatting date and time */
  11. #define D_FMT 1 /* Date format string */
  12. #define T_FMT 2 /* Time format string */
  13. #define T_FMT_AMPM 3 /* Time format string with 12 hour clock */
  14. #define AM_STR 4 /* Ante Meridiem afix */
  15. #define PM_STR 5 /* Post Meridiem afix */
  16. #define DAY_1 6 /* Name of the first day of the week */
  17. #define DAY_2 7
  18. #define DAY_3 8
  19. #define DAY_4 9
  20. #define DAY_5 10
  21. #define DAY_6 11
  22. #define DAY_7 12
  23. #define ABDAY_1 13 /* Abbrev. name of the first day of the week */
  24. #define ABDAY_2 14
  25. #define ABDAY_3 15
  26. #define ABDAY_4 16
  27. #define ABDAY_5 17
  28. #define ABDAY_6 18
  29. #define ABDAY_7 19
  30. #define MON_1 20 /* Name of the first month */
  31. #define MON_2 21
  32. #define MON_3 22
  33. #define MON_4 23
  34. #define MON_5 24
  35. #define MON_6 25
  36. #define MON_7 26
  37. #define MON_8 27
  38. #define MON_9 28
  39. #define MON_10 29
  40. #define MON_11 30
  41. #define MON_12 31
  42. #define ABMON_1 32 /* Abbrev. name of the first month */
  43. #define ABMON_2 33
  44. #define ABMON_3 34
  45. #define ABMON_4 35
  46. #define ABMON_5 36
  47. #define ABMON_6 37
  48. #define ABMON_7 38
  49. #define ABMON_8 39
  50. #define ABMON_9 40
  51. #define ABMON_10 41
  52. #define ABMON_11 42
  53. #define ABMON_12 43
  54. #define RADIXCHAR 44 /* Radix character */
  55. #define THOUSEP 45 /* Separator for thousands */
  56. #define YESSTR 46 /* Affirmative response for yes/no queries */
  57. #define YESEXPR 47 /* Affirmative response for yes/no queries */
  58. #define NOSTR 48 /* Negative response for yes/no queries */
  59. #define NOEXPR 49 /* Negative response for yes/no queries */
  60. #define CRNCYSTR 50 /* Currency symbol */
  61. #define CODESET 51 /* Codeset name */
  62. __BEGIN_DECLS
  63. char *nl_langinfo(nl_item);
  64. __END_DECLS
  65. #endif /* _LANGINFO_H_ */