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