extern.h revision 50476
1169695Skan/*
2169695Skan * Copyright (c) 1993
3169695Skan *	The Regents of the University of California.  All rights reserved.
4169695Skan *
5169695Skan * Redistribution and use in source and binary forms, with or without
6169695Skan * modification, are permitted provided that the following conditions
7169695Skan * are met:
8169695Skan * 1. Redistributions of source code must retain the above copyright
9169695Skan *    notice, this list of conditions and the following disclaimer.
10169695Skan * 2. Redistributions in binary form must reproduce the above copyright
11169695Skan *    notice, this list of conditions and the following disclaimer in the
12169695Skan *    documentation and/or other materials provided with the distribution.
13169695Skan * 3. All advertising materials mentioning features or use of this software
14169695Skan *    must display the following acknowledgement:
15169695Skan *	This product includes software developed by the University of
16169695Skan *	California, Berkeley and its contributors.
17169695Skan * 4. Neither the name of the University nor the names of its contributors
18169695Skan *    may be used to endorse or promote products derived from this software
19169695Skan *    without specific prior written permission.
20169695Skan *
21169695Skan * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22169695Skan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23169695Skan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24169695Skan * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25169695Skan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26169695Skan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27169695Skan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28169695Skan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29169695Skan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30169695Skan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31169695Skan * SUCH DAMAGE.
32169695Skan *
33169695Skan *	from: @(#)extern.h	8.1 (Berkeley) 6/4/93
34169695Skan * $FreeBSD: head/libexec/getty/extern.h 50476 1999-08-28 00:22:10Z peter $
35169695Skan */
36169695Skan
37169695Skanstruct delayval;
38169695Skanstruct termios;
39169695Skanstruct gettyflags;
40169695Skanstruct gettynums;
41169695Skanstruct gettystrs;
42169695Skan
43169695Skanextern	char hostname[];
44169695Skanextern	int hopcount;
45169695Skanextern	struct termios tmode, omode;
46169695Skanextern	struct gettyflags gettyflags[];
47169695Skanextern	struct gettynums gettynums[];
48169695Skanextern	struct gettystrs gettystrs[];
49169695Skan
50169695Skanint	 adelay __P((int, struct delayval *));
51169695Skanconst char *autobaud __P((void));
52169695Skanint	 delaybits __P((void));
53169695Skanvoid	 edithost __P((const char *));
54169695Skanvoid	 gendefaults __P((void));
55169695Skanvoid	 gettable __P((const char *, char *));
56169695Skanvoid	 makeenv __P((char *[]));
57169695Skanconst char *portselector __P((void));
58169695Skanvoid	 set_ttydefaults __P((int));
59169695Skanvoid	 setchars __P((void));
60169695Skanvoid	 setdefaults __P((void));
61169695Skanvoid	 setflags __P((int));
62169695Skanint	 speed __P((int));
63169695Skanint	 getty_chat __P((char *, int, int));
64169695Skan