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