xref: /netbsd-src/include/langinfo.h (revision ae9172d6cd9432a6a1a56760d86b32c57a66c39c)
1 /*	$NetBSD: langinfo.h,v 1.2 1994/10/26 00:55:59 cgd Exp $	*/
2 
3 /*
4  * Copyright (c) 1994 Winning Strategies, Inc.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  * 3. All advertising materials mentioning features or use of this software
16  *    must display the following acknowledgement:
17  *      This product includes software developed by Winning Strategies, Inc.
18  * 4. The name of the author may not be used to endorse or promote products
19  *    derived from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifndef _LANGINFO_H_
34 #define _LANGINFO_H_
35 #include <sys/cdefs.h>
36 
37 #define D_T_FMT		0	/* String for formatting date and time */
38 #define D_FMT		1	/* Date format string */
39 #define	T_FMT		2	/* Time format string */
40 #define T_FMT_AMPM	3	/* Time format string with 12 hour clock */
41 #define AM_STR		4	/* Ante Meridiem afix */
42 #define PM_STR		5	/* Post Meridiem afix */
43 
44 #define DAY_1		6	/* Name of the first day of the week */
45 #define DAY_2		7
46 #define DAY_3		8
47 #define DAY_4		9
48 #define DAY_5		10
49 #define DAY_6		11
50 #define DAY_7		12
51 
52 #define ABDAY_1		13	/* Abbrev. name of the first day of the week */
53 #define ABDAY_2		14
54 #define ABDAY_3		15
55 #define ABDAY_4		16
56 #define ABDAY_5		17
57 #define ABDAY_6		18
58 #define ABDAY_7		19
59 
60 #define MON_1		20	/* Name of the first month */
61 #define MON_2		21
62 #define MON_3		22
63 #define MON_4		23
64 #define MON_5		24
65 #define MON_6		25
66 #define MON_7		26
67 #define MON_8		27
68 #define MON_9		28
69 #define MON_10		29
70 #define MON_11		30
71 #define MON_12		31
72 
73 #define ABMON_1		32	/* Abbrev. name of the first month */
74 #define ABMON_2		33
75 #define ABMON_3		34
76 #define ABMON_4		35
77 #define ABMON_5		36
78 #define ABMON_6		37
79 #define ABMON_7		38
80 #define ABMON_8		39
81 #define ABMON_9		40
82 #define ABMON_10	41
83 #define ABMON_11	42
84 #define ABMON_12	43
85 
86 #define RADIXCHAR	44	/* Radix character */
87 #define THOUSEP		45	/* Separator for thousands */
88 #define YESSTR		46	/* Affirmitive response for yes/no queries */
89 #define YESEXPR		47	/* Affirmitive response for yes/no queries */
90 #define NOSTR		48	/* Negative response for yes/no queries */
91 #define NOEXPR		49	/* Negative response for yes/no queries */
92 #define CRNCYSTR	50	/* Currency symbol */
93 
94 __BEGIN_DECLS
95 char *nl_langinfo __P((nl_item));
96 __END_DECLS
97 
98 #endif	/* _LANGINFO_H_ */
99