]> andersk Git - openssh.git/blob - includes.h
- (djm) Merge OpenBSD changes:
[openssh.git] / includes.h
1 /*
2  * Author: Tatu Ylonen <ylo@cs.hut.fi>
3  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4  *                    All rights reserved
5  * This file includes most of the needed system headers.
6  *
7  * As far as I am concerned, the code I have written for this software
8  * can be used freely for any purpose.  Any derived versions of this
9  * software must be clearly marked as such, and if the derived work is
10  * incompatible with the protocol description in the RFC file, it must be
11  * called by a name other than "ssh" or "Secure Shell".
12  */
13
14 #ifndef INCLUDES_H
15 #define INCLUDES_H
16
17 #define RCSID(msg) \
18 static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
19
20 #include "config.h"
21
22 #include "next-posix.h"
23
24 #include <sys/types.h>
25 #include <sys/socket.h>
26 #include <sys/ioctl.h>
27 #include <sys/wait.h>
28 #include <sys/resource.h>
29
30 #ifndef HAVE_CYGWIN
31 #include <netinet/tcp.h>
32 #endif
33 #include <arpa/inet.h>
34 #include <netdb.h>
35
36 #include <stdio.h>
37 #include <ctype.h>
38 #include <errno.h>
39 #include <fcntl.h>
40 #include <signal.h>
41 #include <termios.h>
42 #include <stdlib.h>
43 #include <string.h>
44 #include <stdarg.h>
45 #include <pwd.h>
46 #include <grp.h>
47 #include <time.h>
48 #include <dirent.h>
49 #ifdef HAVE_CYGWIN
50 #include <getopt.h>
51 #endif
52
53 #ifdef HAVE_BSTRING_H
54 # include <bstring.h>
55 #endif 
56 #ifdef HAVE_NETGROUP_H
57 # include <netgroup.h>
58 #endif 
59 #if defined(HAVE_NETDB_H) && !defined(HAVE_NEXT)
60 /* Next includes this as part of another header */
61 # include <netdb.h>
62 #endif 
63 #ifdef HAVE_ENDIAN_H
64 # include <endian.h>
65 #endif
66 #ifdef HAVE_SYS_SELECT_H
67 # include <sys/select.h>
68 #endif
69 #ifdef HAVE_SYS_TIME_H
70 # include <sys/time.h>
71 #endif
72 #ifdef HAVE_SYS_BSDTTY_H
73 # include <sys/bsdtty.h>
74 #endif
75 #ifdef HAVE_TTYENT_H
76 # include <ttyent.h>
77 #endif
78 #ifdef USE_PAM
79 # include <security/pam_appl.h>
80 #endif
81 #ifdef HAVE_POLL_H
82 # include <poll.h>
83 #else
84 # ifdef HAVE_SYS_POLL_H
85 #  include <sys/poll.h>
86 # endif
87 #endif
88 #ifdef HAVE_SYS_SYSMACROS_H
89 # include <sys/sysmacros.h>
90 #endif
91
92 #include "version.h"
93
94 /* OpenBSD function replacements */
95 #include "openbsd-compat.h"
96
97 /* Entropy collection */
98 #include "entropy.h"
99
100 /* Define this to be the path of the xauth program. */
101 #ifndef XAUTH_PATH
102 #define XAUTH_PATH "/usr/X11R6/bin/xauth"
103 #endif /* XAUTH_PATH */
104
105 /* Define this to be the path of the rsh program. */
106 #ifndef _PATH_RSH
107 #define _PATH_RSH "/usr/bin/rsh"
108 #endif /* _PATH_RSH */
109
110 /*
111  * Define this to use pipes instead of socketpairs for communicating with the
112  * client program.  Socketpairs do not seem to work on all systems.
113  */
114 /* #define USE_PIPES 1 */
115
116 #ifdef HAVE_CYGWIN
117 #define open binary_open
118 #define pipe binary_pipe
119 extern int binary_open();
120 extern int binary_pipe();
121 #endif
122
123 #endif                          /* INCLUDES_H */
This page took 0.086934 seconds and 5 git commands to generate.