root / lab4 / .minix-src / include / langinfo.h @ 13
History | View | Annotate | Download (3 KB)
1 | 13 | up20180614 | /* $NetBSD: langinfo.h,v 1.10 2013/08/19 08:03:33 joerg Exp $ */
|
---|---|---|---|
2 | |||
3 | /*
|
||
4 | * Written by J.T. Conklin <jtc@NetBSD.org>
|
||
5 | * Public domain.
|
||
6 | */
|
||
7 | |||
8 | #ifndef _LANGINFO_H_
|
||
9 | #define _LANGINFO_H_
|
||
10 | |||
11 | #include <sys/cdefs.h> |
||
12 | #include <nl_types.h> |
||
13 | |||
14 | #define D_T_FMT ((nl_item)0) /* String for formatting date and |
||
15 | time */
|
||
16 | #define D_FMT ((nl_item)1) /* Date format string */ |
||
17 | #define T_FMT ((nl_item)2) /* Time format string */ |
||
18 | #define T_FMT_AMPM ((nl_item)3) /* Time format string with 12 hour |
||
19 | clock */
|
||
20 | #define AM_STR ((nl_item)4) /* Ante Meridiem afix */ |
||
21 | #define PM_STR ((nl_item)5) /* Post Meridiem afix */ |
||
22 | |||
23 | #define DAY_1 ((nl_item)6) /* Name of the first day of the week */ |
||
24 | #define DAY_2 ((nl_item)7) |
||
25 | #define DAY_3 ((nl_item)8) |
||
26 | #define DAY_4 ((nl_item)9) |
||
27 | #define DAY_5 ((nl_item)10) |
||
28 | #define DAY_6 ((nl_item)11) |
||
29 | #define DAY_7 ((nl_item)12) |
||
30 | |||
31 | #define ABDAY_1 ((nl_item)13) /* Abbrev. name of the first day of |
||
32 | the week */
|
||
33 | #define ABDAY_2 ((nl_item)14) |
||
34 | #define ABDAY_3 ((nl_item)15) |
||
35 | #define ABDAY_4 ((nl_item)16) |
||
36 | #define ABDAY_5 ((nl_item)17) |
||
37 | #define ABDAY_6 ((nl_item)18) |
||
38 | #define ABDAY_7 ((nl_item)19) |
||
39 | |||
40 | #define MON_1 ((nl_item)20) /* Name of the first month */ |
||
41 | #define MON_2 ((nl_item)21) |
||
42 | #define MON_3 ((nl_item)22) |
||
43 | #define MON_4 ((nl_item)23) |
||
44 | #define MON_5 ((nl_item)24) |
||
45 | #define MON_6 ((nl_item)25) |
||
46 | #define MON_7 ((nl_item)26) |
||
47 | #define MON_8 ((nl_item)27) |
||
48 | #define MON_9 ((nl_item)28) |
||
49 | #define MON_10 ((nl_item)29) |
||
50 | #define MON_11 ((nl_item)30) |
||
51 | #define MON_12 ((nl_item)31) |
||
52 | |||
53 | #define ABMON_1 ((nl_item)32) /* Abbrev. name of the first month */ |
||
54 | #define ABMON_2 ((nl_item)33) |
||
55 | #define ABMON_3 ((nl_item)34) |
||
56 | #define ABMON_4 ((nl_item)35) |
||
57 | #define ABMON_5 ((nl_item)36) |
||
58 | #define ABMON_6 ((nl_item)37) |
||
59 | #define ABMON_7 ((nl_item)38) |
||
60 | #define ABMON_8 ((nl_item)39) |
||
61 | #define ABMON_9 ((nl_item)40) |
||
62 | #define ABMON_10 ((nl_item)41) |
||
63 | #define ABMON_11 ((nl_item)42) |
||
64 | #define ABMON_12 ((nl_item)43) |
||
65 | |||
66 | #define RADIXCHAR ((nl_item)44) /* Radix character */ |
||
67 | #define THOUSEP ((nl_item)45) /* Separator for thousands */ |
||
68 | #define YESSTR ((nl_item)46) /* Affirmitive response for yes/no |
||
69 | queries */
|
||
70 | #define YESEXPR ((nl_item)47) /* Affirmitive response for yes/no |
||
71 | queries */
|
||
72 | #define NOSTR ((nl_item)48) /* Negative response for yes/no |
||
73 | queries */
|
||
74 | #define NOEXPR ((nl_item)49) /* Negative response for yes/no |
||
75 | queries */
|
||
76 | #define CRNCYSTR ((nl_item)50) /* Currency symbol */ |
||
77 | |||
78 | #define CODESET ((nl_item)51) /* codeset name */ |
||
79 | |||
80 | #define ERA ((nl_item)52) /* Era description segments */ |
||
81 | #define ERA_D_FMT ((nl_item)53) /* Era date format string */ |
||
82 | #define ERA_D_T_FMT ((nl_item)54) /* Era date and time format string */ |
||
83 | #define ERA_T_FMT ((nl_item)55) /* Era time format string */ |
||
84 | |||
85 | #define ALT_DIGITS ((nl_item)56) /* Alternative symbols for digits */ |
||
86 | |||
87 | __BEGIN_DECLS |
||
88 | char *nl_langinfo(nl_item);
|
||
89 | __END_DECLS |
||
90 | |||
91 | #if defined(_NETBSD_SOURCE)
|
||
92 | # ifndef __LOCALE_T_DECLARED
|
||
93 | typedef struct _locale *locale_t; |
||
94 | # define __LOCALE_T_DECLARED
|
||
95 | # endif
|
||
96 | __BEGIN_DECLS |
||
97 | char *nl_langinfo_l(nl_item, locale_t);
|
||
98 | __END_DECLS |
||
99 | #endif
|
||
100 | |||
101 | #endif /* _LANGINFO_H_ */ |