115100Sjoerg/* 215100Sjoerg * Copyright (c) 1993 315100Sjoerg * The Regents of the University of California. All rights reserved. 415100Sjoerg * 515100Sjoerg * Redistribution and use in source and binary forms, with or without 615100Sjoerg * modification, are permitted provided that the following conditions 715100Sjoerg * are met: 815100Sjoerg * 1. Redistributions of source code must retain the above copyright 915100Sjoerg * notice, this list of conditions and the following disclaimer. 1015100Sjoerg * 2. Redistributions in binary form must reproduce the above copyright 1115100Sjoerg * notice, this list of conditions and the following disclaimer in the 1215100Sjoerg * documentation and/or other materials provided with the distribution. 13262435Sbrueffer * 3. Neither the name of the University nor the names of its contributors 1415100Sjoerg * may be used to endorse or promote products derived from this software 1515100Sjoerg * without specific prior written permission. 1615100Sjoerg * 1715100Sjoerg * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1815100Sjoerg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1915100Sjoerg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2015100Sjoerg * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2115100Sjoerg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2215100Sjoerg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2315100Sjoerg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2415100Sjoerg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2515100Sjoerg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2615100Sjoerg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2715100Sjoerg * SUCH DAMAGE. 2815100Sjoerg * 2915249Sjoerg * from: @(#)extern.h 8.1 (Berkeley) 6/4/93 3050476Speter * $FreeBSD$ 3115100Sjoerg */ 3215100Sjoerg 3315100Sjoergstruct delayval; 3415645Sjoergstruct termios; 3515100Sjoerg 3615645Sjoergextern char hostname[]; 3715645Sjoergextern int hopcount; 3815645Sjoergextern struct termios tmode, omode; 3915645Sjoergextern struct gettyflags gettyflags[]; 4015645Sjoergextern struct gettynums gettynums[]; 4115645Sjoergextern struct gettystrs gettystrs[]; 4215645Sjoerg 4390301Simpint adelay(int, struct delayval *); 4490301Simpconst char *autobaud(void); 4590301Simpint delaybits(void); 4690301Simpvoid edithost(const char *); 4790301Simpvoid gendefaults(void); 4890301Simpvoid gettable(const char *, char *); 4990301Simpvoid makeenv(char *[]); 5090301Simpconst char *portselector(void); 5190301Simpvoid set_ttydefaults(int); 5290301Simpvoid setchars(void); 5390301Simpvoid setdefaults(void); 5490301Simpvoid set_flags(int); 5590301Simpint speed(int); 5690301Simpint getty_chat(char *, int, int); 57