xref: /titanic_51/usr/src/cmd/tip/vars.c (revision dcda19f50b2b80bfc622fff718ac04fb0e1cb670)
1 /*
2  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 /*
7  * Copyright (c) 1983 Regents of the University of California.
8  * All rights reserved. The Berkeley software License Agreement
9  * specifies the terms and conditions for redistribution.
10  */
11 
12 #pragma ident	"%Z%%M%	%I%	%E% SMI"
13 
14 #include "tip.h"
15 
16 /*
17  * Definition of variables
18  */
19 value_t vtable[] = {
20 	{ "beautify",	BOOL,			(READ|WRITE)<<PUBLIC,
21 	    "be",	(char *)TRUE },
22 	{ "baudrate",	NUMBER|IREMOTE|INIT,	(READ<<PUBLIC)|(WRITE<<ROOT),
23 	    "ba",	(char *)&BR },
24 	{ "dialtimeout", NUMBER,		(READ<<PUBLIC)|(WRITE<<ROOT),
25 	    "dial",	(char *)60 },
26 	{ "eofread",	STRING|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
27 	    "eofr",	(char *)&IE },
28 	{ "eofwrite",	STRING|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
29 	    "eofw",	(char *)&OE },
30 	{ "eol",	STRING|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
31 	    NOSTR,	(char *)&EL },
32 	{ "escape",	CHAR,			(READ|WRITE)<<PUBLIC,
33 	    "es",	(char *)'~' },
34 	{ "exceptions",	STRING|INIT|IREMOTE,	(READ|WRITE)<<PUBLIC,
35 	    "ex",	(char *)&EX },
36 	{ "force",	CHAR,			(READ|WRITE)<<PUBLIC,
37 	    "fo",	(char *)0377 },
38 	{ "framesize",	NUMBER|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
39 	    "fr",	(char *)&FS },
40 	{ "host",	STRING|IREMOTE|INIT,	READ<<PUBLIC,
41 	    "ho",	(char *)&HO },
42 	{ "log",	STRING|INIT,		(READ|WRITE)<<ROOT,
43 	    NOSTR,	"/var/adm/aculog" },
44 	{ "phones",	STRING|INIT|IREMOTE,	READ<<PUBLIC,
45 	    NOSTR,	(char *)&PH },
46 	{ "prompt",	CHAR,			(READ|WRITE)<<PUBLIC,
47 	    "pr",	(char *)'\n' },
48 	{ "raise",	BOOL,			(READ|WRITE)<<PUBLIC,
49 	    "ra",	(char *)FALSE },
50 	{ "raisechar",	CHAR,			(READ|WRITE)<<PUBLIC,
51 	    "rc",	(char *)0377 },
52 	{ "record",	STRING|INIT|IREMOTE,	(READ|WRITE)<<PUBLIC,
53 	    "rec",	(char *)&RE },
54 	{ "remote",	STRING|INIT|IREMOTE,	READ<<PUBLIC,
55 	    NOSTR,	(char *)&RM },
56 	{ "script",	BOOL,			(READ|WRITE)<<PUBLIC,
57 	    "sc",	(char *)FALSE },
58 	{ "tabexpand",	BOOL,			(READ|WRITE)<<PUBLIC,
59 	    "tab",	(char *)FALSE },
60 	{ "verbose",	BOOL,			(READ|WRITE)<<PUBLIC,
61 	    "verb",	(char *)TRUE },
62 	{ "SHELL",	STRING|ENVIRON|INIT,	(READ|WRITE)<<PUBLIC,
63 	    NULL,	"/bin/sh" },
64 	{ "HOME",	STRING|ENVIRON,		(READ|WRITE)<<PUBLIC,
65 	    NOSTR,	NOSTR },
66 	{ "echocheck",	BOOL,			(READ|WRITE)<<PUBLIC,
67 	    "ec",	(char *)FALSE },
68 	{ "disconnect",	STRING|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
69 	    "di",	(char *)&DI },
70 	{ "tandem",	BOOL,			(READ|WRITE)<<PUBLIC,
71 	    "ta",	(char *)TRUE },
72 	{ "linedelay",	NUMBER|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
73 	    "ldelay",	(char *)&DL },
74 	{ "chardelay",	NUMBER|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
75 	    "cdelay",	(char *)&CL },
76 	{ "etimeout",	NUMBER|IREMOTE|INIT,	(READ|WRITE)<<PUBLIC,
77 	    "et",	(char *)&ET },
78 	{ "rawftp",	BOOL,			(READ|WRITE)<<PUBLIC,
79 	    "raw",	(char *)FALSE },
80 	{ "halfduplex",	BOOL,			(READ|WRITE)<<PUBLIC,
81 	    "hdx",	(char *)FALSE },
82 	{ "localecho",	BOOL,			(READ|WRITE)<<PUBLIC,
83 	    "le",	(char *)FALSE },
84 	{ "parity",	STRING|INIT|IREMOTE,	(READ|WRITE)<<PUBLIC,
85 	    "par",	(char *)&PA },
86 	{ "hardwareflow", BOOL,			(READ|WRITE)<<PUBLIC,
87 	    "hf",	(char *)FALSE },
88 	{ NOSTR, NULL, NULL, NOSTR, NOSTR }
89 };
90