]> andersk Git - openssh.git/blob - includes.h
- (djm) Merge cygwin support from Corinna Vinschen <vinschen@cygnus.com>
[openssh.git] / includes.h
1 /*
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  */
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
22 #include "config.h"
23
24 #include "next-posix.h"
25
26 #include <sys/types.h>
27 #include <sys/socket.h>
28 #include <sys/ioctl.h>
29 #include <sys/wait.h>
30 #include <sys/resource.h>
31
32 #ifndef HAVE_CYGWIN
33 #include <netinet/tcp.h>
34 #endif
35 #include <arpa/inet.h>
36 #include <netdb.h>
37
38 #include <stdio.h>
39 #include <ctype.h>
40 #include <errno.h>
41 #include <fcntl.h>
42 #include <signal.h>
43 #include <termios.h>
44 #include <stdlib.h>
45 #include <string.h>
46 #include <stdarg.h>
47 #include <pwd.h>
48 #include <grp.h>
49 #include <time.h>
50 #include <dirent.h>
51 #ifdef HAVE_CYGWIN
52 #include <getopt.h>
53 #endif
54
55 #ifdef HAVE_BSTRING_H
56 # include <bstring.h>
57 #endif 
58 #ifdef HAVE_NETGROUP_H
59 # include <netgroup.h>
60 #endif 
61 #if defined(HAVE_NETDB_H) && !defined(HAVE_NEXT)
62 /* Next includes this as part of another header */
63 # include <netdb.h>
64 #endif 
65 #ifdef HAVE_ENDIAN_H
66 # include <endian.h>
67 #endif
68 #ifdef HAVE_SYS_SELECT_H
69 # include <sys/select.h>
70 #endif
71 #ifdef HAVE_SYS_TIME_H
72 # include <sys/time.h>
73 #endif
74 #ifdef HAVE_SYS_BSDTTY_H
75 # include <sys/bsdtty.h>
76 #endif
77 #ifdef HAVE_TTYENT_H
78 # include <ttyent.h>
79 #endif
80 #ifdef USE_PAM
81 # include <security/pam_appl.h>
82 #endif
83 #ifdef HAVE_POLL_H
84 # include <poll.h>
85 #else
86 # ifdef HAVE_SYS_POLL_H
87 #  include <sys/poll.h>
88 # endif
89 #endif
90 #ifdef HAVE_SYS_SYSMACROS_H
91 # include <sys/sysmacros.h>
92 #endif
93
94 #include "version.h"
95
96 /* OpenBSD function replacements */
97 #include "openbsd-compat.h"
98
99 /* Entropy collection */
100 #include "entropy.h"
101
102 /* Define this to be the path of the xauth program. */
103 #ifndef XAUTH_PATH
104 #define XAUTH_PATH "/usr/X11R6/bin/xauth"
105 #endif /* XAUTH_PATH */
106
107 /* Define this to be the path of the rsh program. */
108 #ifndef _PATH_RSH
109 #define _PATH_RSH "/usr/bin/rsh"
110 #endif /* _PATH_RSH */
111
112 /*
113  * Define this to use pipes instead of socketpairs for communicating with the
114  * client program.  Socketpairs do not seem to work on all systems.
115  */
116 /* #define USE_PIPES 1 */
117
118 #ifdef HAVE_CYGWIN
119 #define open binary_open
120 #define pipe binary_pipe
121 extern int binary_open();
122 extern int binary_pipe();
123 #endif
124
125 #endif                          /* INCLUDES_H */
This page took 0.066654 seconds and 5 git commands to generate.