158f0484fSRodney W. Grimes /*- 258f0484fSRodney W. Grimes * Copyright (c) 1992, 1993, 1994 Henry Spencer. 358f0484fSRodney W. Grimes * Copyright (c) 1992, 1993, 1994 458f0484fSRodney W. Grimes * The Regents of the University of California. All rights reserved. 558f0484fSRodney W. Grimes * 658f0484fSRodney W. Grimes * This code is derived from software contributed to Berkeley by 758f0484fSRodney W. Grimes * Henry Spencer. 858f0484fSRodney W. Grimes * 958f0484fSRodney W. Grimes * Redistribution and use in source and binary forms, with or without 1058f0484fSRodney W. Grimes * modification, are permitted provided that the following conditions 1158f0484fSRodney W. Grimes * are met: 1258f0484fSRodney W. Grimes * 1. Redistributions of source code must retain the above copyright 1358f0484fSRodney W. Grimes * notice, this list of conditions and the following disclaimer. 1458f0484fSRodney W. Grimes * 2. Redistributions in binary form must reproduce the above copyright 1558f0484fSRodney W. Grimes * notice, this list of conditions and the following disclaimer in the 1658f0484fSRodney W. Grimes * documentation and/or other materials provided with the distribution. 1758f0484fSRodney W. Grimes * 3. All advertising materials mentioning features or use of this software 1858f0484fSRodney W. Grimes * must display the following acknowledgement: 1958f0484fSRodney W. Grimes * This product includes software developed by the University of 2058f0484fSRodney W. Grimes * California, Berkeley and its contributors. 2158f0484fSRodney W. Grimes * 4. Neither the name of the University nor the names of its contributors 2258f0484fSRodney W. Grimes * may be used to endorse or promote products derived from this software 2358f0484fSRodney W. Grimes * without specific prior written permission. 2458f0484fSRodney W. Grimes * 2558f0484fSRodney W. Grimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2658f0484fSRodney W. Grimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2758f0484fSRodney W. Grimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2858f0484fSRodney W. Grimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2958f0484fSRodney W. Grimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3058f0484fSRodney W. Grimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3158f0484fSRodney W. Grimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3258f0484fSRodney W. Grimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3358f0484fSRodney W. Grimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3458f0484fSRodney W. Grimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3558f0484fSRodney W. Grimes * SUCH DAMAGE. 3658f0484fSRodney W. Grimes * 3758f0484fSRodney W. Grimes * @(#)cname.h 8.3 (Berkeley) 3/20/94 3858f0484fSRodney W. Grimes */ 3958f0484fSRodney W. Grimes 4058f0484fSRodney W. Grimes /* character-name table */ 4158f0484fSRodney W. Grimes static struct cname { 4258f0484fSRodney W. Grimes char *name; 4358f0484fSRodney W. Grimes char code; 4458f0484fSRodney W. Grimes } cnames[] = { 4558f0484fSRodney W. Grimes "NUL", '\0', 4658f0484fSRodney W. Grimes "SOH", '\001', 4758f0484fSRodney W. Grimes "STX", '\002', 4858f0484fSRodney W. Grimes "ETX", '\003', 4958f0484fSRodney W. Grimes "EOT", '\004', 5058f0484fSRodney W. Grimes "ENQ", '\005', 5158f0484fSRodney W. Grimes "ACK", '\006', 5258f0484fSRodney W. Grimes "BEL", '\007', 5358f0484fSRodney W. Grimes "alert", '\007', 5458f0484fSRodney W. Grimes "BS", '\010', 5558f0484fSRodney W. Grimes "backspace", '\b', 5658f0484fSRodney W. Grimes "HT", '\011', 5758f0484fSRodney W. Grimes "tab", '\t', 5858f0484fSRodney W. Grimes "LF", '\012', 5958f0484fSRodney W. Grimes "newline", '\n', 6058f0484fSRodney W. Grimes "VT", '\013', 6158f0484fSRodney W. Grimes "vertical-tab", '\v', 6258f0484fSRodney W. Grimes "FF", '\014', 6358f0484fSRodney W. Grimes "form-feed", '\f', 6458f0484fSRodney W. Grimes "CR", '\015', 6558f0484fSRodney W. Grimes "carriage-return", '\r', 6658f0484fSRodney W. Grimes "SO", '\016', 6758f0484fSRodney W. Grimes "SI", '\017', 6858f0484fSRodney W. Grimes "DLE", '\020', 6958f0484fSRodney W. Grimes "DC1", '\021', 7058f0484fSRodney W. Grimes "DC2", '\022', 7158f0484fSRodney W. Grimes "DC3", '\023', 7258f0484fSRodney W. Grimes "DC4", '\024', 7358f0484fSRodney W. Grimes "NAK", '\025', 7458f0484fSRodney W. Grimes "SYN", '\026', 7558f0484fSRodney W. Grimes "ETB", '\027', 7658f0484fSRodney W. Grimes "CAN", '\030', 7758f0484fSRodney W. Grimes "EM", '\031', 7858f0484fSRodney W. Grimes "SUB", '\032', 7958f0484fSRodney W. Grimes "ESC", '\033', 8058f0484fSRodney W. Grimes "IS4", '\034', 8158f0484fSRodney W. Grimes "FS", '\034', 8258f0484fSRodney W. Grimes "IS3", '\035', 8358f0484fSRodney W. Grimes "GS", '\035', 8458f0484fSRodney W. Grimes "IS2", '\036', 8558f0484fSRodney W. Grimes "RS", '\036', 8658f0484fSRodney W. Grimes "IS1", '\037', 8758f0484fSRodney W. Grimes "US", '\037', 8858f0484fSRodney W. Grimes "space", ' ', 8958f0484fSRodney W. Grimes "exclamation-mark", '!', 9058f0484fSRodney W. Grimes "quotation-mark", '"', 9158f0484fSRodney W. Grimes "number-sign", '#', 9258f0484fSRodney W. Grimes "dollar-sign", '$', 9358f0484fSRodney W. Grimes "percent-sign", '%', 9458f0484fSRodney W. Grimes "ampersand", '&', 9558f0484fSRodney W. Grimes "apostrophe", '\'', 9658f0484fSRodney W. Grimes "left-parenthesis", '(', 9758f0484fSRodney W. Grimes "right-parenthesis", ')', 9858f0484fSRodney W. Grimes "asterisk", '*', 9958f0484fSRodney W. Grimes "plus-sign", '+', 10058f0484fSRodney W. Grimes "comma", ',', 10158f0484fSRodney W. Grimes "hyphen", '-', 10258f0484fSRodney W. Grimes "hyphen-minus", '-', 10358f0484fSRodney W. Grimes "period", '.', 10458f0484fSRodney W. Grimes "full-stop", '.', 10558f0484fSRodney W. Grimes "slash", '/', 10658f0484fSRodney W. Grimes "solidus", '/', 10758f0484fSRodney W. Grimes "zero", '0', 10858f0484fSRodney W. Grimes "one", '1', 10958f0484fSRodney W. Grimes "two", '2', 11058f0484fSRodney W. Grimes "three", '3', 11158f0484fSRodney W. Grimes "four", '4', 11258f0484fSRodney W. Grimes "five", '5', 11358f0484fSRodney W. Grimes "six", '6', 11458f0484fSRodney W. Grimes "seven", '7', 11558f0484fSRodney W. Grimes "eight", '8', 11658f0484fSRodney W. Grimes "nine", '9', 11758f0484fSRodney W. Grimes "colon", ':', 11858f0484fSRodney W. Grimes "semicolon", ';', 11958f0484fSRodney W. Grimes "less-than-sign", '<', 12058f0484fSRodney W. Grimes "equals-sign", '=', 12158f0484fSRodney W. Grimes "greater-than-sign", '>', 12258f0484fSRodney W. Grimes "question-mark", '?', 12358f0484fSRodney W. Grimes "commercial-at", '@', 12458f0484fSRodney W. Grimes "left-square-bracket", '[', 12558f0484fSRodney W. Grimes "backslash", '\\', 12658f0484fSRodney W. Grimes "reverse-solidus", '\\', 12758f0484fSRodney W. Grimes "right-square-bracket", ']', 12858f0484fSRodney W. Grimes "circumflex", '^', 12958f0484fSRodney W. Grimes "circumflex-accent", '^', 13058f0484fSRodney W. Grimes "underscore", '_', 13158f0484fSRodney W. Grimes "low-line", '_', 13258f0484fSRodney W. Grimes "grave-accent", '`', 13358f0484fSRodney W. Grimes "left-brace", '{', 13458f0484fSRodney W. Grimes "left-curly-bracket", '{', 13558f0484fSRodney W. Grimes "vertical-line", '|', 13658f0484fSRodney W. Grimes "right-brace", '}', 13758f0484fSRodney W. Grimes "right-curly-bracket", '}', 13858f0484fSRodney W. Grimes "tilde", '~', 13958f0484fSRodney W. Grimes "DEL", '\177', 14058f0484fSRodney W. Grimes NULL, 0, 14158f0484fSRodney W. Grimes }; 142