1 /* $OpenBSD: vars.c,v 1.8 2006/08/18 03:06:18 jason Exp $ */ 2 /* $NetBSD: vars.c,v 1.3 1994/12/08 09:31:19 jtc Exp $ */ 3 4 /*- 5 * SPDX-License-Identifier: BSD-3-Clause 6 * 7 * Copyright (c) 1983, 1993 8 * The Regents of the University of California. All rights reserved. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted provided that the following conditions 12 * are met: 13 * 1. Redistributions of source code must retain the above copyright 14 * notice, this list of conditions and the following disclaimer. 15 * 2. Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in the 17 * documentation and/or other materials provided with the distribution. 18 * 3. Neither the name of the University nor the names of its contributors 19 * may be used to endorse or promote products derived from this software 20 * without specific prior written permission. 21 * 22 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 */ 34 35 #include <sys/cdefs.h> 36 __FBSDID("$FreeBSD$"); 37 38 #ifndef lint 39 #if 0 40 static char sccsid[] = "@(#)vars.c 8.1 (Berkeley) 6/6/93"; 41 static const char rcsid[] = "$OpenBSD: vars.c,v 1.8 2006/08/18 03:06:18 jason Exp $"; 42 #endif 43 #endif /* not lint */ 44 45 #include "tip.h" 46 #include "pathnames.h" 47 48 /* 49 * Definition of variables 50 */ 51 value_t vtable[] = { 52 { "beautify", BOOL, (READ|WRITE)<<PUBLIC, 53 "be", (char *)TRUE }, 54 { "baudrate", NUMBER|IREMOTE|INIT, (READ<<PUBLIC)|(WRITE<<ROOT), 55 "ba", (char *)&BR }, 56 { "dialtimeout",NUMBER, (READ<<PUBLIC)|(WRITE<<ROOT), 57 "dial", (char *)60 }, 58 { "eofread", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC, 59 "eofr", (char *)&IE }, 60 { "eofwrite", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC, 61 "eofw", (char *)&OE }, 62 { "eol", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC, 63 NOSTR, (char *)&EL }, 64 { "escape", CHAR, (READ|WRITE)<<PUBLIC, 65 "es", (char *)'~' }, 66 { "exceptions", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC, 67 "ex", (char *)&EX }, 68 { "force", CHAR, (READ|WRITE)<<PUBLIC, 69 "fo", (char *)CTRL('p') }, 70 { "framesize", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC, 71 "fr", (char *)&FS }, 72 { "host", STRING|IREMOTE|INIT, READ<<PUBLIC, 73 "ho", (char *)&HO }, 74 { "log", STRING|INIT, (READ|WRITE)<<ROOT, 75 NOSTR, _PATH_ACULOG }, 76 { "phones", STRING|INIT|IREMOTE, READ<<PUBLIC, 77 NOSTR, (char *)&PH }, 78 { "prompt", CHAR, (READ|WRITE)<<PUBLIC, 79 "pr", (char *)'\n' }, 80 { "raise", BOOL, (READ|WRITE)<<PUBLIC, 81 "ra", (char *)FALSE }, 82 { "raisechar", CHAR, (READ|WRITE)<<PUBLIC, 83 "rc", NOSTR }, 84 { "record", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC, 85 "rec", (char *)&RE }, 86 { "remote", STRING|INIT|IREMOTE, READ<<PUBLIC, 87 NOSTR, (char *)&RM }, 88 { "script", BOOL, (READ|WRITE)<<PUBLIC, 89 "sc", (char *)FALSE }, 90 { "tabexpand", BOOL, (READ|WRITE)<<PUBLIC, 91 "tab", (char *)FALSE }, 92 { "verbose", BOOL, (READ|WRITE)<<PUBLIC, 93 "verb", (char *)TRUE }, 94 { "SHELL", STRING|ENVIRON|INIT, (READ|WRITE)<<PUBLIC, 95 NULL, _PATH_BSHELL }, 96 { "HOME", STRING|ENVIRON, (READ|WRITE)<<PUBLIC, 97 NOSTR, NOSTR }, 98 { "echocheck", BOOL, (READ|WRITE)<<PUBLIC, 99 "ec", (char *)FALSE }, 100 { "disconnect", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC, 101 "di", (char *)&DI }, 102 { "tandem", BOOL, (READ|WRITE)<<PUBLIC, 103 "ta", (char *)TRUE }, 104 { "linedelay", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC, 105 "ldelay", (char *)&DL }, 106 { "chardelay", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC, 107 "cdelay", (char *)&CL }, 108 { "etimeout", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC, 109 "et", (char *)&ET }, 110 { "rawftp", BOOL, (READ|WRITE)<<PUBLIC, 111 "raw", (char *)FALSE }, 112 { "halfduplex", BOOL, (READ|WRITE)<<PUBLIC, 113 "hdx", (char *)FALSE }, 114 { "localecho", BOOL, (READ|WRITE)<<PUBLIC, 115 "le", (char *)FALSE }, 116 { "parity", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC, 117 "par", (char *)&PA }, 118 { "hardwareflow", BOOL, (READ|WRITE)<<PUBLIC, 119 "hf", (char *)FALSE }, 120 { "linedisc", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC, 121 "ld", (char *)&LD }, 122 { "direct", BOOL, (READ<<PUBLIC)|(WRITE<<ROOT), 123 "dc", (char *)FALSE }, 124 { NOSTR, 0, 0, 125 NOSTR, NOSTR } 126 }; 127