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