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