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.

76 lines
1.9 KiB

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