Annotation of src/usr.bin/telnet/telnet_locl.h, Revision 1.4
1.4 ! millert 1: /* $OpenBSD: telnet_locl.h,v 1.3 2003/05/14 01:46:51 hin Exp $ */
1.1 art 2: /* $KTH: telnet_locl.h,v 1.13 1997/11/03 21:37:55 assar Exp $ */
3:
4: /*
5: * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan
6: * (Royal Institute of Technology, Stockholm, Sweden).
7: * All rights reserved.
8: *
9: * Redistribution and use in source and binary forms, with or without
10: * modification, are permitted provided that the following conditions
11: * are met:
12: *
13: * 1. Redistributions of source code must retain the above copyright
14: * notice, this list of conditions and the following disclaimer.
15: *
16: * 2. Redistributions in binary form must reproduce the above copyright
17: * notice, this list of conditions and the following disclaimer in the
18: * documentation and/or other materials provided with the distribution.
19: *
20: * 3. All advertising materials mentioning features or use of this software
21: * must display the following acknowledgement:
22: * This product includes software developed by the Kungliga Tekniska
23: * Högskolan and its contributors.
24: *
25: * 4. Neither the name of the Institute nor the names of its contributors
26: * may be used to endorse or promote products derived from this software
27: * without specific prior written permission.
28: *
29: * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
30: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32: * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
33: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39: * SUCH DAMAGE.
40: */
41:
42:
43: #include <stdio.h>
44: #include <stdlib.h>
45: #include <stdarg.h>
46: #include <string.h>
47: #include <ctype.h>
48: #include <signal.h>
49: #include <errno.h>
50: #include <setjmp.h>
51: #include <sys/types.h>
52: #include <unistd.h>
53:
54: /* termios.h *must* be included before curses.h */
55: #include <termios.h>
56: #include <fcntl.h>
57: #include <netdb.h>
58: #include <pwd.h>
1.4 ! millert 59: #include <poll.h>
1.1 art 60: #include <sys/time.h>
61: #include <time.h>
62: #include <sys/param.h>
63: #include <sys/ioctl.h>
64: #include <sys/resource.h>
65: #include <sys/wait.h>
66: #include <sys/file.h>
67: #include <sys/socket.h>
68: #include <netinet/in.h>
69: #include <netinet/in_systm.h>
70: #include <netinet/ip.h>
71: #include <arpa/inet.h>
72:
73: #include <arpa/telnet.h>
74:
75: #if defined(AUTHENTICATION) || defined(ENCRYPTION)
1.3 hin 76: #include <auth.h>
77: #include <encrypt.h>
1.1 art 78: #endif
1.3 hin 79: #include <misc.h>
80: #include <misc-proto.h>
1.1 art 81:
82: #define LINEMODE
83:
84: #include "ring.h"
85: #include "externs.h"
86: #include "defines.h"
87: #include "types.h"
88:
89: /* prototypes */
90: