11573Srgrimes/*-
21573Srgrimes * Copyright (c) 1992, 1993, 1994 Henry Spencer.
31573Srgrimes * Copyright (c) 1992, 1993, 1994
41573Srgrimes *	The Regents of the University of California.  All rights reserved.
51573Srgrimes *
61573Srgrimes * This code is derived from software contributed to Berkeley by
71573Srgrimes * Henry Spencer.
81573Srgrimes *
91573Srgrimes * Redistribution and use in source and binary forms, with or without
101573Srgrimes * modification, are permitted provided that the following conditions
111573Srgrimes * are met:
121573Srgrimes * 1. Redistributions of source code must retain the above copyright
131573Srgrimes *    notice, this list of conditions and the following disclaimer.
141573Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
151573Srgrimes *    notice, this list of conditions and the following disclaimer in the
161573Srgrimes *    documentation and/or other materials provided with the distribution.
171573Srgrimes * 4. Neither the name of the University nor the names of its contributors
181573Srgrimes *    may be used to endorse or promote products derived from this software
191573Srgrimes *    without specific prior written permission.
201573Srgrimes *
211573Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
221573Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
231573Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
241573Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
251573Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
261573Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
271573Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
281573Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
291573Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
301573Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
311573Srgrimes * SUCH DAMAGE.
321573Srgrimes *
331573Srgrimes *	@(#)cname.h	8.3 (Berkeley) 3/20/94
3492991Sobrien * $FreeBSD$
351573Srgrimes */
361573Srgrimes
371573Srgrimes/* character-name table */
381573Srgrimesstatic struct cname {
391573Srgrimes	char *name;
401573Srgrimes	char code;
411573Srgrimes} cnames[] = {
4217141Sjkh	{"NUL",			'\0'},
4317141Sjkh	{"SOH",			'\001'},
4417141Sjkh	{"STX",			'\002'},
4517141Sjkh	{"ETX",			'\003'},
4617141Sjkh	{"EOT",			'\004'},
4717141Sjkh	{"ENQ",			'\005'},
4817141Sjkh	{"ACK",			'\006'},
4917141Sjkh	{"BEL",			'\007'},
5017141Sjkh	{"alert",		'\007'},
5117141Sjkh	{"BS",			'\010'},
5217141Sjkh	{"backspace",		'\b'},
5317141Sjkh	{"HT",			'\011'},
5417141Sjkh	{"tab",			'\t'},
5517141Sjkh	{"LF",			'\012'},
5617141Sjkh	{"newline",		'\n'},
5717141Sjkh	{"VT",			'\013'},
5817141Sjkh	{"vertical-tab",	'\v'},
5917141Sjkh	{"FF",			'\014'},
6017141Sjkh	{"form-feed",		'\f'},
6117141Sjkh	{"CR",			'\015'},
6217141Sjkh	{"carriage-return",	'\r'},
6317141Sjkh	{"SO",			'\016'},
6417141Sjkh	{"SI",			'\017'},
6517141Sjkh	{"DLE",			'\020'},
6617141Sjkh	{"DC1",			'\021'},
6717141Sjkh	{"DC2",			'\022'},
6817141Sjkh	{"DC3",			'\023'},
6917141Sjkh	{"DC4",			'\024'},
7017141Sjkh	{"NAK",			'\025'},
7117141Sjkh	{"SYN",			'\026'},
7217141Sjkh	{"ETB",			'\027'},
7317141Sjkh	{"CAN",			'\030'},
7417141Sjkh	{"EM",			'\031'},
7517141Sjkh	{"SUB",			'\032'},
7617141Sjkh	{"ESC",			'\033'},
7717141Sjkh	{"IS4",			'\034'},
7817141Sjkh	{"FS",			'\034'},
7917141Sjkh	{"IS3",			'\035'},
8017141Sjkh	{"GS",			'\035'},
8117141Sjkh	{"IS2",			'\036'},
8217141Sjkh	{"RS",			'\036'},
8317141Sjkh	{"IS1",			'\037'},
8417141Sjkh	{"US",			'\037'},
8517141Sjkh	{"space",		' '},
8617141Sjkh	{"exclamation-mark",	'!'},
8717141Sjkh	{"quotation-mark",	'"'},
8817141Sjkh	{"number-sign",		'#'},
8917141Sjkh	{"dollar-sign",		'$'},
9017141Sjkh	{"percent-sign",	'%'},
9117141Sjkh	{"ampersand",		'&'},
9217141Sjkh	{"apostrophe",		'\''},
9317141Sjkh	{"left-parenthesis",	'('},
9417141Sjkh	{"right-parenthesis",	')'},
9517141Sjkh	{"asterisk",		'*'},
9617141Sjkh	{"plus-sign",		'+'},
9717141Sjkh	{"comma",		','},
9817141Sjkh	{"hyphen",		'-'},
9917141Sjkh	{"hyphen-minus",	'-'},
10017141Sjkh	{"period",		'.'},
10117141Sjkh	{"full-stop",		'.'},
10217141Sjkh	{"slash",		'/'},
10317141Sjkh	{"solidus",		'/'},
10417141Sjkh	{"zero",		'0'},
10517141Sjkh	{"one",			'1'},
10617141Sjkh	{"two",			'2'},
10717141Sjkh	{"three",		'3'},
10817141Sjkh	{"four",		'4'},
10917141Sjkh	{"five",		'5'},
11017141Sjkh	{"six",			'6'},
11117141Sjkh	{"seven",      		'7'},
11217141Sjkh	{"eight",		'8'},
11317141Sjkh	{"nine",		'9'},
11417141Sjkh	{"colon",		':'},
11517141Sjkh	{"semicolon",		';'},
11617141Sjkh	{"less-than-sign",	'<'},
11717141Sjkh	{"equals-sign",		'='},
11817141Sjkh	{"greater-than-sign",	'>'},
11917141Sjkh	{"question-mark",	'?'},
12017141Sjkh	{"commercial-at",	'@'},
12117141Sjkh	{"left-square-bracket",	'['},
12217141Sjkh	{"backslash",		'\\'},
12317141Sjkh	{"reverse-solidus",	'\\'},
12417141Sjkh	{"right-square-bracket",']'},
12517141Sjkh	{"circumflex",		'^'},
12617141Sjkh	{"circumflex-accent",	'^'},
12717141Sjkh	{"underscore",		'_'},
12817141Sjkh	{"low-line",		'_'},
12917141Sjkh	{"grave-accent",	'`'},
13017141Sjkh	{"left-brace",		'{'},
13117141Sjkh	{"left-curly-bracket",	'{'},
13217141Sjkh	{"vertical-line",	'|'},
13317141Sjkh	{"right-brace",		'}'},
13417141Sjkh	{"right-curly-bracket",	'}'},
13517141Sjkh	{"tilde",		'~'},
13617141Sjkh	{"DEL",	'\177'},
13717141Sjkh	{NULL,	0}
1381573Srgrimes};
139