xref: /minix3/libexec/getty/extern.h (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1*84d9c625SLionel Sambuc /*	$NetBSD: extern.h,v 1.7 2013/08/11 05:42:41 dholland Exp $	*/
2a06e2ab3SBen Gras 
3a06e2ab3SBen Gras /*
4a06e2ab3SBen Gras  * Copyright (c) 1993
5a06e2ab3SBen Gras  *	The Regents of the University of California.  All rights reserved.
6a06e2ab3SBen Gras  *
7a06e2ab3SBen Gras  * Redistribution and use in source and binary forms, with or without
8a06e2ab3SBen Gras  * modification, are permitted provided that the following conditions
9a06e2ab3SBen Gras  * are met:
10a06e2ab3SBen Gras  * 1. Redistributions of source code must retain the above copyright
11a06e2ab3SBen Gras  *    notice, this list of conditions and the following disclaimer.
12a06e2ab3SBen Gras  * 2. Redistributions in binary form must reproduce the above copyright
13a06e2ab3SBen Gras  *    notice, this list of conditions and the following disclaimer in the
14a06e2ab3SBen Gras  *    documentation and/or other materials provided with the distribution.
15a06e2ab3SBen Gras  * 3. Neither the name of the University nor the names of its contributors
16a06e2ab3SBen Gras  *    may be used to endorse or promote products derived from this software
17a06e2ab3SBen Gras  *    without specific prior written permission.
18a06e2ab3SBen Gras  *
19a06e2ab3SBen Gras  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20a06e2ab3SBen Gras  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21a06e2ab3SBen Gras  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22a06e2ab3SBen Gras  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23a06e2ab3SBen Gras  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24a06e2ab3SBen Gras  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25a06e2ab3SBen Gras  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26a06e2ab3SBen Gras  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27a06e2ab3SBen Gras  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28a06e2ab3SBen Gras  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29a06e2ab3SBen Gras  * SUCH DAMAGE.
30a06e2ab3SBen Gras  *
31a06e2ab3SBen Gras  *	from: @(#)extern.h	8.1 (Berkeley) 6/4/93
32a06e2ab3SBen Gras  */
33a06e2ab3SBen Gras 
34a06e2ab3SBen Gras struct delayval;
35a06e2ab3SBen Gras 
36a06e2ab3SBen Gras int	 adelay(int, struct delayval *);
37*84d9c625SLionel Sambuc const char *autobaud(void);
38a06e2ab3SBen Gras int	 delaybits(void);
39*84d9c625SLionel Sambuc void	 edithost(const char *);
40a06e2ab3SBen Gras void	 gendefaults(void);
41a06e2ab3SBen Gras int	 getent(char *, char *);
42a06e2ab3SBen Gras int	 getflag(char *);
43a06e2ab3SBen Gras long	 getnum(char *);
44a06e2ab3SBen Gras char	*getstr(char *, char **);
45*84d9c625SLionel Sambuc void	 gettable(const char *, char *);
46a06e2ab3SBen Gras void	 makeenv(char *[]);
47*84d9c625SLionel Sambuc const char *portselector(void);
48a06e2ab3SBen Gras void	 set_ttydefaults(int);
49a06e2ab3SBen Gras void	 setchars(void);
50a06e2ab3SBen Gras void	 setdefaults(void);
51a06e2ab3SBen Gras void	 setflags(int);
52a06e2ab3SBen Gras int	 speed(int);
53