1cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes/*	$NetBSD: cname.h,v 1.7 2003/08/07 16:43:19 agc Exp $	*/
24fa7b105644222d9b35347c9d226ca8e011072ebColin Cross
34fa7b105644222d9b35347c9d226ca8e011072ebColin Cross/*-
44fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * Copyright (c) 1992, 1993, 1994
54fa7b105644222d9b35347c9d226ca8e011072ebColin Cross *	The Regents of the University of California.  All rights reserved.
64fa7b105644222d9b35347c9d226ca8e011072ebColin Cross *
74fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * This code is derived from software contributed to Berkeley by
84fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * Henry Spencer.
94fa7b105644222d9b35347c9d226ca8e011072ebColin Cross *
104fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * Redistribution and use in source and binary forms, with or without
114fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * modification, are permitted provided that the following conditions
124fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * are met:
134fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * 1. Redistributions of source code must retain the above copyright
144fa7b105644222d9b35347c9d226ca8e011072ebColin Cross *    notice, this list of conditions and the following disclaimer.
154fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * 2. Redistributions in binary form must reproduce the above copyright
164fa7b105644222d9b35347c9d226ca8e011072ebColin Cross *    notice, this list of conditions and the following disclaimer in the
174fa7b105644222d9b35347c9d226ca8e011072ebColin Cross *    documentation and/or other materials provided with the distribution.
184fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * 3. Neither the name of the University nor the names of its contributors
194fa7b105644222d9b35347c9d226ca8e011072ebColin Cross *    may be used to endorse or promote products derived from this software
204fa7b105644222d9b35347c9d226ca8e011072ebColin Cross *    without specific prior written permission.
214fa7b105644222d9b35347c9d226ca8e011072ebColin Cross *
224fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
234fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
244fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
254fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
264fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
274fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
284fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
294fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
304fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
314fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
324fa7b105644222d9b35347c9d226ca8e011072ebColin Cross * SUCH DAMAGE.
334fa7b105644222d9b35347c9d226ca8e011072ebColin Cross *
344fa7b105644222d9b35347c9d226ca8e011072ebColin Cross *	@(#)cname.h	8.3 (Berkeley) 3/20/94
354fa7b105644222d9b35347c9d226ca8e011072ebColin Cross */
364fa7b105644222d9b35347c9d226ca8e011072ebColin Cross
37cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes/*-
38cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * Copyright (c) 1992, 1993, 1994 Henry Spencer.
39cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *
40cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * This code is derived from software contributed to Berkeley by
41cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * Henry Spencer.
42cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *
43cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * Redistribution and use in source and binary forms, with or without
44cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * modification, are permitted provided that the following conditions
45cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * are met:
46cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * 1. Redistributions of source code must retain the above copyright
47cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *    notice, this list of conditions and the following disclaimer.
48cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * 2. Redistributions in binary form must reproduce the above copyright
49cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *    notice, this list of conditions and the following disclaimer in the
50cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *    documentation and/or other materials provided with the distribution.
51cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * 3. All advertising materials mentioning features or use of this software
52cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *    must display the following acknowledgement:
53cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *	This product includes software developed by the University of
54cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *	California, Berkeley and its contributors.
55cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * 4. Neither the name of the University nor the names of its contributors
56cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *    may be used to endorse or promote products derived from this software
57cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *    without specific prior written permission.
58cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *
59cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
60cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
61cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
62cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
63cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
64cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
65cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
66cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
67cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
68cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
69cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes * SUCH DAMAGE.
70cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *
71cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes *	@(#)cname.h	8.3 (Berkeley) 3/20/94
72cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes */
73cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes
744fa7b105644222d9b35347c9d226ca8e011072ebColin Cross/* character-name table */
754fa7b105644222d9b35347c9d226ca8e011072ebColin Crossstatic const struct cname {
76cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes	const char *name;
774fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	char code;
784fa7b105644222d9b35347c9d226ca8e011072ebColin Cross} cnames[] = {
794fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "NUL",			'\0' },
804fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "SOH",			'\001' },
814fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "STX",			'\002' },
824fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "ETX",			'\003' },
834fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "EOT",			'\004' },
844fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "ENQ",			'\005' },
854fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "ACK",			'\006' },
864fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "BEL",			'\007' },
874fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "alert",			'\007' },
884fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "BS",				'\010' },
894fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "backspace",			'\b' },
904fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "HT",				'\011' },
914fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "tab",			'\t' },
924fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "LF",				'\012' },
934fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "newline",			'\n' },
944fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "VT",				'\013' },
954fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "vertical-tab",		'\v' },
964fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "FF",				'\014' },
974fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "form-feed",			'\f' },
984fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "CR",				'\015' },
994fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "carriage-return",		'\r' },
1004fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "SO",				'\016' },
1014fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "SI",				'\017' },
1024fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "DLE",			'\020' },
1034fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "DC1",			'\021' },
1044fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "DC2",			'\022' },
1054fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "DC3",			'\023' },
1064fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "DC4",			'\024' },
1074fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "NAK",			'\025' },
1084fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "SYN",			'\026' },
1094fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "ETB",			'\027' },
1104fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "CAN",			'\030' },
1114fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "EM",				'\031' },
1124fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "SUB",			'\032' },
1134fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "ESC",			'\033' },
1144fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "IS4",			'\034' },
1154fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "FS",				'\034' },
1164fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "IS3",			'\035' },
1174fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "GS",				'\035' },
1184fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "IS2",			'\036' },
1194fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "RS",				'\036' },
1204fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "IS1",			'\037' },
1214fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "US",				'\037' },
1224fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "space",			' ' },
1234fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "exclamation-mark",		'!' },
1244fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "quotation-mark",		'"' },
1254fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "number-sign",		'#' },
1264fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "dollar-sign",		'$' },
1274fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "percent-sign",		'%' },
1284fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "ampersand",			'&' },
1294fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "apostrophe",			'\'' },
1304fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "left-parenthesis",		'(' },
1314fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "right-parenthesis",		')' },
1324fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "asterisk",			'*' },
1334fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "plus-sign",			'+' },
1344fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "comma",			',' },
1354fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "hyphen",			'-' },
1364fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "hyphen-minus",		'-' },
1374fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "period",			'.' },
1384fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "full-stop",			'.' },
1394fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "slash",			'/' },
1404fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "solidus",			'/' },
1414fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "zero",			'0' },
1424fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "one",			'1' },
1434fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "two",			'2' },
1444fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "three",			'3' },
1454fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "four",			'4' },
1464fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "five",			'5' },
1474fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "six",			'6' },
1484fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "seven",			'7' },
1494fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "eight",			'8' },
1504fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "nine",			'9' },
1514fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "colon",			':' },
1524fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "semicolon",			';' },
1534fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "less-than-sign",		'<' },
1544fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "equals-sign",		'=' },
1554fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "greater-than-sign",		'>' },
1564fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "question-mark",		'?' },
1574fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "commercial-at",		'@' },
1584fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "left-square-bracket",	'[' },
1594fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "backslash",			'\\' },
1604fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "reverse-solidus",		'\\' },
1614fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "right-square-bracket",	']' },
1624fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "circumflex",			'^' },
1634fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "circumflex-accent",		'^' },
1644fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "underscore",			'_' },
1654fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "low-line",			'_' },
1664fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "grave-accent",		'`' },
1674fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "left-brace",			'{' },
1684fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "left-curly-bracket",		'{' },
1694fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "vertical-line",		'|' },
1704fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "right-brace",		'}' },
1714fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "right-curly-bracket",	'}' },
1724fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "tilde",			'~' },
1734fa7b105644222d9b35347c9d226ca8e011072ebColin Cross	{ "DEL",			'\177' },
174cc213f871bf4c5329eb5eb7a80a0ce9d4a880af8Elliott Hughes	{ NULL,				0 },
1754fa7b105644222d9b35347c9d226ca8e011072ebColin Cross};
176