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