]>
Commit | Line | Data |
---|---|---|
8efc0c15 | 1 | /* |
5260325f | 2 | * |
3 | * includes.h | |
4 | * | |
5 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | |
6 | * | |
7 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | |
8 | * All rights reserved | |
9 | * | |
10 | * Created: Thu Mar 23 16:29:37 1995 ylo | |
11 | * | |
12 | * This file includes most of the needed system headers. | |
13 | * | |
14 | */ | |
8efc0c15 | 15 | |
16 | #ifndef INCLUDES_H | |
17 | #define INCLUDES_H | |
18 | ||
19 | #define RCSID(msg) \ | |
20 | static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg } | |
21 | ||
793edc37 | 22 | #include "config.h" |
23 | ||
8efc0c15 | 24 | #include <sys/types.h> |
25 | #include <sys/socket.h> | |
8efc0c15 | 26 | #include <sys/param.h> |
27 | #include <sys/ioctl.h> | |
28 | #include <sys/stat.h> | |
29 | #include <sys/wait.h> | |
8efc0c15 | 30 | #include <sys/un.h> |
31 | #include <sys/resource.h> | |
32 | ||
33 | #include <netinet/in.h> | |
34 | #include <netinet/in_systm.h> | |
35 | #include <netinet/tcp.h> | |
36 | #include <netinet/ip.h> | |
37 | #include <arpa/inet.h> | |
38 | #include <netdb.h> | |
39 | ||
8efc0c15 | 40 | #include <stdio.h> |
41 | #include <ctype.h> | |
42 | #include <errno.h> | |
43 | #include <fcntl.h> | |
8efc0c15 | 44 | #include <signal.h> |
45 | #include <termios.h> | |
46 | #include <stdlib.h> | |
47 | #include <string.h> | |
48 | #include <stdarg.h> | |
49 | #include <pwd.h> | |
50 | #include <grp.h> | |
51 | #include <unistd.h> | |
52 | #include <time.h> | |
8efc0c15 | 53 | #include <dirent.h> |
54 | ||
d94aa2ae | 55 | #ifdef HAVE_BSTRING_H |
56 | # include <bstring.h> | |
57 | #endif | |
c75a1a66 | 58 | #ifdef HAVE_NETGROUP_H |
59 | # include <netgroup.h> | |
60 | #endif | |
d94aa2ae | 61 | #ifdef HAVE_NETDB_H |
62 | # include <netdb.h> | |
63 | #endif | |
4cca272e | 64 | #ifdef HAVE_PATHS_H |
65 | # include <paths.h> | |
66 | #endif | |
67 | #ifdef HAVE_ENDIAN_H | |
68 | # include <endian.h> | |
69 | #endif | |
793edc37 | 70 | #ifdef HAVE_SYS_SELECT_H |
71 | # include <sys/select.h> | |
72 | #endif | |
b09a984b | 73 | #ifdef HAVE_SYS_TIME_H |
74 | # include <sys/time.h> | |
75 | #endif | |
a7effaac | 76 | #ifdef HAVE_SYS_BSDTTY_H |
77 | # include <sys/bsdtty.h> | |
78 | #endif | |
d94aa2ae | 79 | #ifdef USE_PAM |
793edc37 | 80 | # include <security/pam_appl.h> |
beb43d31 | 81 | #endif |
a5c9cd31 | 82 | #ifdef HAVE_POLL_H |
83 | # include <poll.h> | |
84 | #else | |
85 | # ifdef HAVE_SYS_POLL_H | |
86 | # include <sys/poll.h> | |
87 | # endif | |
88 | #endif | |
20af321f | 89 | #ifdef HAVE_SYS_SYSMACROS_H |
90 | # include <sys/sysmacros.h> | |
91 | #endif | |
4cca272e | 92 | |
93 | #include "version.h" | |
48e671d5 | 94 | |
95 | /* BSD function replacements */ | |
96 | #include "bsd-bindresvport.h" | |
97 | #include "bsd-rresvport.h" | |
5ab44a92 | 98 | #include "bsd-misc.h" |
beb43d31 | 99 | #include "bsd-strlcpy.h" |
b09a984b | 100 | #include "bsd-strlcat.h" |
beb43d31 | 101 | #include "bsd-mktemp.h" |
dad3b556 | 102 | #include "bsd-snprintf.h" |
847e8865 | 103 | #include "bsd-daemon.h" |
f498ed15 | 104 | #include "bsd-login.h" |
8efc0c15 | 105 | |
48e671d5 | 106 | /* rfc2553 socket API replacements */ |
107 | #include "fake-getaddrinfo.h" | |
108 | #include "fake-getnameinfo.h" | |
109 | #include "fake-socket.h" | |
110 | ||
8efc0c15 | 111 | /* Define this to be the path of the xauth program. */ |
112 | #ifndef XAUTH_PATH | |
113 | #define XAUTH_PATH "/usr/X11R6/bin/xauth" | |
114 | #endif /* XAUTH_PATH */ | |
115 | ||
116 | /* Define this to be the path of the rsh program. */ | |
117 | #ifndef _PATH_RSH | |
118 | #define _PATH_RSH "/usr/bin/rsh" | |
119 | #endif /* _PATH_RSH */ | |
120 | ||
aa3378df | 121 | /* |
122 | * Define this to use pipes instead of socketpairs for communicating with the | |
123 | * client program. Socketpairs do not seem to work on all systems. | |
124 | */ | |
bc8c2601 | 125 | /* #define USE_PIPES 1 */ |
8efc0c15 | 126 | |
5260325f | 127 | #endif /* INCLUDES_H */ |