Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 1 | /* |
Damien Miller | 95def09 | 1999-11-25 00:26:21 +1100 | [diff] [blame] | 2 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
Damien Miller | 95def09 | 1999-11-25 00:26:21 +1100 | [diff] [blame] | 3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
| 4 | * All rights reserved |
Damien Miller | 95def09 | 1999-11-25 00:26:21 +1100 | [diff] [blame] | 5 | * This file includes most of the needed system headers. |
Damien Miller | 4af5130 | 2000-04-16 11:18:38 +1000 | [diff] [blame] | 6 | * |
Damien Miller | e4340be | 2000-09-16 13:29:08 +1100 | [diff] [blame] | 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". |
Damien Miller | 95def09 | 1999-11-25 00:26:21 +1100 | [diff] [blame] | 12 | */ |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 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 | |
Damien Miller | 4874c79 | 1999-11-16 13:29:26 +1100 | [diff] [blame] | 20 | #include "config.h" |
| 21 | |
Damien Miller | 0f91b4e | 2000-06-18 15:43:25 +1000 | [diff] [blame] | 22 | #include "next-posix.h" |
Ben Lindstrom | b562864 | 2000-10-18 00:02:25 +0000 | [diff] [blame] | 23 | #include "news4-posix.h" |
Damien Miller | 0f91b4e | 2000-06-18 15:43:25 +1000 | [diff] [blame] | 24 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 25 | #include <sys/types.h> |
| 26 | #include <sys/socket.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 27 | #include <sys/ioctl.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 28 | #include <sys/wait.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 29 | #include <sys/resource.h> |
| 30 | |
Damien Miller | bac2d8a | 2000-09-05 16:13:06 +1100 | [diff] [blame] | 31 | #ifndef HAVE_CYGWIN |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 32 | #include <netinet/tcp.h> |
Damien Miller | bac2d8a | 2000-09-05 16:13:06 +1100 | [diff] [blame] | 33 | #endif |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 34 | #include <arpa/inet.h> |
| 35 | #include <netdb.h> |
| 36 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 37 | #include <stdio.h> |
| 38 | #include <ctype.h> |
| 39 | #include <errno.h> |
| 40 | #include <fcntl.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 41 | #include <signal.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 42 | #include <stdlib.h> |
| 43 | #include <string.h> |
| 44 | #include <stdarg.h> |
| 45 | #include <pwd.h> |
| 46 | #include <grp.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 47 | #include <time.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 48 | #include <dirent.h> |
Damien Miller | 72c9a7e | 2000-09-24 11:10:13 +1100 | [diff] [blame] | 49 | |
| 50 | #ifdef HAVE_GETOPT_H |
Damien Miller | bac2d8a | 2000-09-05 16:13:06 +1100 | [diff] [blame] | 51 | #include <getopt.h> |
| 52 | #endif |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 53 | #ifdef HAVE_BSTRING_H |
| 54 | # include <bstring.h> |
| 55 | #endif |
Damien Miller | 3bd49ec | 1999-11-15 15:40:55 +1100 | [diff] [blame] | 56 | #ifdef HAVE_NETGROUP_H |
| 57 | # include <netgroup.h> |
| 58 | #endif |
Damien Miller | bc33bd4 | 2000-07-11 14:59:08 +1000 | [diff] [blame] | 59 | #if defined(HAVE_NETDB_H) && !defined(HAVE_NEXT) |
| 60 | /* Next includes this as part of another header */ |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 61 | # include <netdb.h> |
| 62 | #endif |
Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 63 | #ifdef HAVE_ENDIAN_H |
| 64 | # include <endian.h> |
| 65 | #endif |
Damien Miller | 4874c79 | 1999-11-16 13:29:26 +1100 | [diff] [blame] | 66 | #ifdef HAVE_SYS_SELECT_H |
| 67 | # include <sys/select.h> |
| 68 | #endif |
Damien Miller | b3ca3aa | 1999-11-22 13:57:07 +1100 | [diff] [blame] | 69 | #ifdef HAVE_SYS_TIME_H |
| 70 | # include <sys/time.h> |
| 71 | #endif |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 72 | #ifdef HAVE_SYS_BSDTTY_H |
| 73 | # include <sys/bsdtty.h> |
| 74 | #endif |
Damien Miller | 348c9b7 | 2000-08-15 10:01:22 +1000 | [diff] [blame] | 75 | #ifdef HAVE_TTYENT_H |
| 76 | # include <ttyent.h> |
| 77 | #endif |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 78 | #ifdef USE_PAM |
Damien Miller | 4874c79 | 1999-11-16 13:29:26 +1100 | [diff] [blame] | 79 | # include <security/pam_appl.h> |
Damien Miller | 04f8014 | 1999-11-19 15:32:34 +1100 | [diff] [blame] | 80 | #endif |
Damien Miller | e72b7af | 1999-12-30 15:08:44 +1100 | [diff] [blame] | 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 |
Damien Miller | eaf9994 | 2000-01-19 13:45:07 +1100 | [diff] [blame] | 88 | #ifdef HAVE_SYS_SYSMACROS_H |
| 89 | # include <sys/sysmacros.h> |
| 90 | #endif |
Damien Miller | 874d77b | 2000-10-14 16:23:11 +1100 | [diff] [blame] | 91 | #ifdef HAVE_VIS_H |
| 92 | # include <vis.h> |
| 93 | #endif |
Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 94 | #include "version.h" |
Damien Miller | 16e519c | 2000-05-09 14:28:55 +1000 | [diff] [blame] | 95 | #include "openbsd-compat.h" |
Damien Miller | 72c9a7e | 2000-09-24 11:10:13 +1100 | [diff] [blame] | 96 | #include "cygwin_util.h" |
Damien Miller | 5f05637 | 2000-04-16 12:31:48 +1000 | [diff] [blame] | 97 | #include "entropy.h" |
| 98 | |
Damien Miller | 72c9a7e | 2000-09-24 11:10:13 +1100 | [diff] [blame] | 99 | #endif /* INCLUDES_H */ |