extern.h revision 50476
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.
1315100Sjoerg * 3. All advertising materials mentioning features or use of this software
1415100Sjoerg *    must display the following acknowledgement:
1515100Sjoerg *	This product includes software developed by the University of
1615100Sjoerg *	California, Berkeley and its contributors.
1715100Sjoerg * 4. Neither the name of the University nor the names of its contributors
1815100Sjoerg *    may be used to endorse or promote products derived from this software
1915100Sjoerg *    without specific prior written permission.
2015100Sjoerg *
2115100Sjoerg * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2215100Sjoerg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2315100Sjoerg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2415100Sjoerg * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2515100Sjoerg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2615100Sjoerg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2715100Sjoerg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2815100Sjoerg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2915100Sjoerg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3015100Sjoerg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3115100Sjoerg * SUCH DAMAGE.
3215100Sjoerg *
3315249Sjoerg *	from: @(#)extern.h	8.1 (Berkeley) 6/4/93
3450476Speter * $FreeBSD: head/libexec/getty/extern.h 50476 1999-08-28 00:22:10Z peter $
3515100Sjoerg */
3615100Sjoerg
3715100Sjoergstruct delayval;
3815645Sjoergstruct termios;
3915645Sjoergstruct gettyflags;
4015645Sjoergstruct gettynums;
4115645Sjoergstruct gettystrs;
4215100Sjoerg
4315645Sjoergextern	char hostname[];
4415645Sjoergextern	int hopcount;
4515645Sjoergextern	struct termios tmode, omode;
4615645Sjoergextern	struct gettyflags gettyflags[];
4715645Sjoergextern	struct gettynums gettynums[];
4815645Sjoergextern	struct gettystrs gettystrs[];
4915645Sjoerg
5015100Sjoergint	 adelay __P((int, struct delayval *));
5115645Sjoergconst char *autobaud __P((void));
5215100Sjoergint	 delaybits __P((void));
5315645Sjoergvoid	 edithost __P((const char *));
5415100Sjoergvoid	 gendefaults __P((void));
5515645Sjoergvoid	 gettable __P((const char *, char *));
5615100Sjoergvoid	 makeenv __P((char *[]));
5715645Sjoergconst char *portselector __P((void));
5815100Sjoergvoid	 set_ttydefaults __P((int));
5915100Sjoergvoid	 setchars __P((void));
6015100Sjoergvoid	 setdefaults __P((void));
6115249Sjoergvoid	 setflags __P((int));
6215100Sjoergint	 speed __P((int));
6322208Sdavidnint	 getty_chat __P((char *, int, int));
64