2006-04-03 08:53:58 +04:00
|
|
|
/* $NetBSD: vars.c,v 1.12 2006/04/03 04:53:58 christos Exp $ */
|
1994-12-08 12:30:36 +03:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
/*
|
1994-12-08 12:30:36 +03:00
|
|
|
* Copyright (c) 1983, 1993
|
|
|
|
* The Regents of the University of California. All rights reserved.
|
1993-03-21 12:45:37 +03:00
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
2003-08-07 15:13:06 +04:00
|
|
|
* 3. Neither the name of the University nor the names of its contributors
|
1993-03-21 12:45:37 +03:00
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
1997-11-22 10:28:39 +03:00
|
|
|
#include <sys/cdefs.h>
|
1993-03-21 12:45:37 +03:00
|
|
|
#ifndef lint
|
1994-12-08 12:30:36 +03:00
|
|
|
#if 0
|
|
|
|
static char sccsid[] = "@(#)vars.c 8.1 (Berkeley) 6/6/93";
|
|
|
|
#endif
|
2006-04-03 08:53:58 +04:00
|
|
|
__RCSID("$NetBSD: vars.c,v 1.12 2006/04/03 04:53:58 christos Exp $");
|
1993-03-21 12:45:37 +03:00
|
|
|
#endif /* not lint */
|
|
|
|
|
|
|
|
#include "tip.h"
|
|
|
|
#include "pathnames.h"
|
|
|
|
|
2004-04-24 02:11:44 +04:00
|
|
|
static char path_bshell[] = _PATH_BSHELL;
|
1993-03-21 12:45:37 +03:00
|
|
|
/*
|
|
|
|
* Definition of variables
|
|
|
|
*/
|
|
|
|
value_t vtable[] = {
|
|
|
|
{ "beautify", BOOL, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"be", (void *)TRUE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "baudrate", NUMBER|IREMOTE|INIT, (READ<<PUBLIC)|(WRITE<<ROOT),
|
2006-04-03 08:53:58 +04:00
|
|
|
"ba", &BR },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "dialtimeout",NUMBER, (READ<<PUBLIC)|(WRITE<<ROOT),
|
2006-04-03 08:53:58 +04:00
|
|
|
"dial", (void *)60 },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "eofread", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"eofr", &IE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "eofwrite", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"eofw", &OE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "eol", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
NULL, &EL },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "escape", CHAR, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"es", (void *)'~' },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "exceptions", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"ex", &EX },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "force", CHAR, (READ|WRITE)<<PUBLIC,
|
2006-04-03 03:25:35 +04:00
|
|
|
"fo", NULL },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "framesize", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"fr", &FS },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "host", STRING|IREMOTE|INIT, READ<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"ho", &HO },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "phones", STRING|INIT|IREMOTE, READ<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
NULL, &PH },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "prompt", CHAR, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"pr", (void *)'\n' },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "raise", BOOL, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"ra", (void *)FALSE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "raisechar", CHAR, (READ|WRITE)<<PUBLIC,
|
2006-04-02 08:25:36 +04:00
|
|
|
"rc", NULL },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "record", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"rec", &RE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "remote", STRING|INIT|IREMOTE, READ<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
NULL, &RM },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "script", BOOL, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"sc", FALSE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "tabexpand", BOOL, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"tab", (void *)FALSE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "verbose", BOOL, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"verb", (void *)TRUE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "SHELL", STRING|ENVIRON|INIT, (READ|WRITE)<<PUBLIC,
|
2004-04-24 02:11:44 +04:00
|
|
|
NULL, path_bshell },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "HOME", STRING|ENVIRON, (READ|WRITE)<<PUBLIC,
|
1997-11-22 10:28:39 +03:00
|
|
|
NULL, NULL },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "echocheck", BOOL, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"ec", (void *)FALSE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "disconnect", STRING|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"di", &DI },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "tandem", BOOL, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"ta", (void *)TRUE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "linedelay", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"ldelay", &DL },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "chardelay", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"cdelay", &CL },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "etimeout", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"et", &ET },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "rawftp", BOOL, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"raw", (void *)FALSE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "halfduplex", BOOL, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"hdx", (void *)FALSE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "localecho", BOOL, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"le", (void *)FALSE },
|
1993-03-21 12:45:37 +03:00
|
|
|
{ "parity", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"par", &PA },
|
2006-03-29 16:37:59 +04:00
|
|
|
{ "hardwareflow", BOOL, (READ|WRITE)<<PUBLIC,
|
2006-04-03 08:53:58 +04:00
|
|
|
"hf", (void *)FALSE },
|
1997-11-22 10:28:39 +03:00
|
|
|
{ NULL, 0, 0, NULL, NULL }
|
1993-03-21 12:45:37 +03:00
|
|
|
};
|