xref: /titanic_50/usr/src/lib/libc/port/locale/cname.h (revision 4297a3b0d0a35d80f86fff155e288e885a100e6d)
1*4297a3b0SGarrett D'Amore /*
2*4297a3b0SGarrett D'Amore  * Copyright (c) 1992, 1993, 1994 Henry Spencer.
3*4297a3b0SGarrett D'Amore  * Copyright (c) 1992, 1993, 1994
4*4297a3b0SGarrett D'Amore  *	The Regents of the University of California.  All rights reserved.
5*4297a3b0SGarrett D'Amore  *
6*4297a3b0SGarrett D'Amore  * This code is derived from software contributed to Berkeley by
7*4297a3b0SGarrett D'Amore  * Henry Spencer.
8*4297a3b0SGarrett D'Amore  *
9*4297a3b0SGarrett D'Amore  * Redistribution and use in source and binary forms, with or without
10*4297a3b0SGarrett D'Amore  * modification, are permitted provided that the following conditions
11*4297a3b0SGarrett D'Amore  * are met:
12*4297a3b0SGarrett D'Amore  * 1. Redistributions of source code must retain the above copyright
13*4297a3b0SGarrett D'Amore  *    notice, this list of conditions and the following disclaimer.
14*4297a3b0SGarrett D'Amore  * 2. Redistributions in binary form must reproduce the above copyright
15*4297a3b0SGarrett D'Amore  *    notice, this list of conditions and the following disclaimer in the
16*4297a3b0SGarrett D'Amore  *    documentation and/or other materials provided with the distribution.
17*4297a3b0SGarrett D'Amore  * 4. Neither the name of the University nor the names of its contributors
18*4297a3b0SGarrett D'Amore  *    may be used to endorse or promote products derived from this software
19*4297a3b0SGarrett D'Amore  *    without specific prior written permission.
20*4297a3b0SGarrett D'Amore  *
21*4297a3b0SGarrett D'Amore  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22*4297a3b0SGarrett D'Amore  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23*4297a3b0SGarrett D'Amore  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24*4297a3b0SGarrett D'Amore  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25*4297a3b0SGarrett D'Amore  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26*4297a3b0SGarrett D'Amore  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27*4297a3b0SGarrett D'Amore  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28*4297a3b0SGarrett D'Amore  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29*4297a3b0SGarrett D'Amore  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30*4297a3b0SGarrett D'Amore  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31*4297a3b0SGarrett D'Amore  * SUCH DAMAGE.
32*4297a3b0SGarrett D'Amore  */
33*4297a3b0SGarrett D'Amore 
34*4297a3b0SGarrett D'Amore /* character-name table */
35*4297a3b0SGarrett D'Amore static struct cname {
36*4297a3b0SGarrett D'Amore 	char *name;
37*4297a3b0SGarrett D'Amore 	char code;
38*4297a3b0SGarrett D'Amore } cnames[] = {
39*4297a3b0SGarrett D'Amore 	{"NUL",			'\0'},
40*4297a3b0SGarrett D'Amore 	{"SOH",			'\001'},
41*4297a3b0SGarrett D'Amore 	{"STX",			'\002'},
42*4297a3b0SGarrett D'Amore 	{"ETX",			'\003'},
43*4297a3b0SGarrett D'Amore 	{"EOT",			'\004'},
44*4297a3b0SGarrett D'Amore 	{"ENQ",			'\005'},
45*4297a3b0SGarrett D'Amore 	{"ACK",			'\006'},
46*4297a3b0SGarrett D'Amore 	{"BEL",			'\007'},
47*4297a3b0SGarrett D'Amore 	{"alert",		'\007'},
48*4297a3b0SGarrett D'Amore 	{"BS",			'\010'},
49*4297a3b0SGarrett D'Amore 	{"backspace",		'\b'},
50*4297a3b0SGarrett D'Amore 	{"HT",			'\011'},
51*4297a3b0SGarrett D'Amore 	{"tab",			'\t'},
52*4297a3b0SGarrett D'Amore 	{"LF",			'\012'},
53*4297a3b0SGarrett D'Amore 	{"newline",		'\n'},
54*4297a3b0SGarrett D'Amore 	{"VT",			'\013'},
55*4297a3b0SGarrett D'Amore 	{"vertical-tab",	'\v'},
56*4297a3b0SGarrett D'Amore 	{"FF",			'\014'},
57*4297a3b0SGarrett D'Amore 	{"form-feed",		'\f'},
58*4297a3b0SGarrett D'Amore 	{"CR",			'\015'},
59*4297a3b0SGarrett D'Amore 	{"carriage-return",	'\r'},
60*4297a3b0SGarrett D'Amore 	{"SO",			'\016'},
61*4297a3b0SGarrett D'Amore 	{"SI",			'\017'},
62*4297a3b0SGarrett D'Amore 	{"DLE",			'\020'},
63*4297a3b0SGarrett D'Amore 	{"DC1",			'\021'},
64*4297a3b0SGarrett D'Amore 	{"DC2",			'\022'},
65*4297a3b0SGarrett D'Amore 	{"DC3",			'\023'},
66*4297a3b0SGarrett D'Amore 	{"DC4",			'\024'},
67*4297a3b0SGarrett D'Amore 	{"NAK",			'\025'},
68*4297a3b0SGarrett D'Amore 	{"SYN",			'\026'},
69*4297a3b0SGarrett D'Amore 	{"ETB",			'\027'},
70*4297a3b0SGarrett D'Amore 	{"CAN",			'\030'},
71*4297a3b0SGarrett D'Amore 	{"EM",			'\031'},
72*4297a3b0SGarrett D'Amore 	{"SUB",			'\032'},
73*4297a3b0SGarrett D'Amore 	{"ESC",			'\033'},
74*4297a3b0SGarrett D'Amore 	{"IS4",			'\034'},
75*4297a3b0SGarrett D'Amore 	{"FS",			'\034'},
76*4297a3b0SGarrett D'Amore 	{"IS3",			'\035'},
77*4297a3b0SGarrett D'Amore 	{"GS",			'\035'},
78*4297a3b0SGarrett D'Amore 	{"IS2",			'\036'},
79*4297a3b0SGarrett D'Amore 	{"RS",			'\036'},
80*4297a3b0SGarrett D'Amore 	{"IS1",			'\037'},
81*4297a3b0SGarrett D'Amore 	{"US",			'\037'},
82*4297a3b0SGarrett D'Amore 	{"space",		' '},
83*4297a3b0SGarrett D'Amore 	{"exclamation-mark",	'!'},
84*4297a3b0SGarrett D'Amore 	{"quotation-mark",	'"'},
85*4297a3b0SGarrett D'Amore 	{"number-sign",		'#'},
86*4297a3b0SGarrett D'Amore 	{"dollar-sign",		'$'},
87*4297a3b0SGarrett D'Amore 	{"percent-sign",	'%'},
88*4297a3b0SGarrett D'Amore 	{"ampersand",		'&'},
89*4297a3b0SGarrett D'Amore 	{"apostrophe",		'\''},
90*4297a3b0SGarrett D'Amore 	{"left-parenthesis",	'('},
91*4297a3b0SGarrett D'Amore 	{"right-parenthesis",	')'},
92*4297a3b0SGarrett D'Amore 	{"asterisk",		'*'},
93*4297a3b0SGarrett D'Amore 	{"plus-sign",		'+'},
94*4297a3b0SGarrett D'Amore 	{"comma",		','},
95*4297a3b0SGarrett D'Amore 	{"hyphen",		'-'},
96*4297a3b0SGarrett D'Amore 	{"hyphen-minus",	'-'},
97*4297a3b0SGarrett D'Amore 	{"period",		'.'},
98*4297a3b0SGarrett D'Amore 	{"full-stop",		'.'},
99*4297a3b0SGarrett D'Amore 	{"slash",		'/'},
100*4297a3b0SGarrett D'Amore 	{"solidus",		'/'},
101*4297a3b0SGarrett D'Amore 	{"zero",		'0'},
102*4297a3b0SGarrett D'Amore 	{"one",			'1'},
103*4297a3b0SGarrett D'Amore 	{"two",			'2'},
104*4297a3b0SGarrett D'Amore 	{"three",		'3'},
105*4297a3b0SGarrett D'Amore 	{"four",		'4'},
106*4297a3b0SGarrett D'Amore 	{"five",		'5'},
107*4297a3b0SGarrett D'Amore 	{"six",			'6'},
108*4297a3b0SGarrett D'Amore 	{"seven",		'7'},
109*4297a3b0SGarrett D'Amore 	{"eight",		'8'},
110*4297a3b0SGarrett D'Amore 	{"nine",		'9'},
111*4297a3b0SGarrett D'Amore 	{"colon",		':'},
112*4297a3b0SGarrett D'Amore 	{"semicolon",		';'},
113*4297a3b0SGarrett D'Amore 	{"less-than-sign",	'<'},
114*4297a3b0SGarrett D'Amore 	{"equals-sign",		'='},
115*4297a3b0SGarrett D'Amore 	{"greater-than-sign",	'>'},
116*4297a3b0SGarrett D'Amore 	{"question-mark",	'?'},
117*4297a3b0SGarrett D'Amore 	{"commercial-at",	'@'},
118*4297a3b0SGarrett D'Amore 	{"left-square-bracket",	'['},
119*4297a3b0SGarrett D'Amore 	{"backslash",		'\\'},
120*4297a3b0SGarrett D'Amore 	{"reverse-solidus",	'\\'},
121*4297a3b0SGarrett D'Amore 	{"right-square-bracket", ']'},
122*4297a3b0SGarrett D'Amore 	{"circumflex",		'^'},
123*4297a3b0SGarrett D'Amore 	{"circumflex-accent",	'^'},
124*4297a3b0SGarrett D'Amore 	{"underscore",		'_'},
125*4297a3b0SGarrett D'Amore 	{"low-line",		'_'},
126*4297a3b0SGarrett D'Amore 	{"grave-accent",	'`'},
127*4297a3b0SGarrett D'Amore 	{"left-brace",		'{'},
128*4297a3b0SGarrett D'Amore 	{"left-curly-bracket",	'{'},
129*4297a3b0SGarrett D'Amore 	{"vertical-line",	'|'},
130*4297a3b0SGarrett D'Amore 	{"right-brace",		'}'},
131*4297a3b0SGarrett D'Amore 	{"right-curly-bracket",	'}'},
132*4297a3b0SGarrett D'Amore 	{"tilde",		'~'},
133*4297a3b0SGarrett D'Amore 	{"DEL",	'\177'},
134*4297a3b0SGarrett D'Amore 	{NULL,	0}
135*4297a3b0SGarrett D'Amore };
136