Ben Lindstrom | 36579d3 | 2001-01-29 07:39:26 +0000 | [diff] [blame] | 1 | /* $OpenBSD: includes.h,v 1.14 2001/01/29 01:58:16 niklas Exp $ */ |
| 2 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 3 | /* |
Damien Miller | 95def09 | 1999-11-25 00:26:21 +1100 | [diff] [blame] | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
Damien Miller | 95def09 | 1999-11-25 00:26:21 +1100 | [diff] [blame] | 5 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
| 6 | * All rights reserved |
Damien Miller | 95def09 | 1999-11-25 00:26:21 +1100 | [diff] [blame] | 7 | * This file includes most of the needed system headers. |
Damien Miller | 4af5130 | 2000-04-16 11:18:38 +1000 | [diff] [blame] | 8 | * |
Damien Miller | e4340be | 2000-09-16 13:29:08 +1100 | [diff] [blame] | 9 | * As far as I am concerned, the code I have written for this software |
| 10 | * can be used freely for any purpose. Any derived versions of this |
| 11 | * software must be clearly marked as such, and if the derived work is |
| 12 | * incompatible with the protocol description in the RFC file, it must be |
| 13 | * called by a name other than "ssh" or "Secure Shell". |
Damien Miller | 95def09 | 1999-11-25 00:26:21 +1100 | [diff] [blame] | 14 | */ |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 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 | |
Damien Miller | 4874c79 | 1999-11-16 13:29:26 +1100 | [diff] [blame] | 22 | #include "config.h" |
| 23 | |
Ben Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 24 | #include "bsd-nextstep.h" |
Damien Miller | 0f91b4e | 2000-06-18 15:43:25 +1000 | [diff] [blame] | 25 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 26 | #include <sys/types.h> |
| 27 | #include <sys/socket.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 28 | #include <sys/ioctl.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 29 | #include <sys/wait.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 30 | #include <sys/resource.h> |
| 31 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 32 | #include <netinet/tcp.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 33 | #include <arpa/inet.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 34 | |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 35 | #include <stdio.h> |
| 36 | #include <ctype.h> |
| 37 | #include <errno.h> |
| 38 | #include <fcntl.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 39 | #include <signal.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 40 | #include <stdlib.h> |
| 41 | #include <string.h> |
| 42 | #include <stdarg.h> |
| 43 | #include <pwd.h> |
| 44 | #include <grp.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 45 | #include <time.h> |
Damien Miller | d4a8b7e | 1999-10-27 13:42:43 +1000 | [diff] [blame] | 46 | #include <dirent.h> |
Damien Miller | 72c9a7e | 2000-09-24 11:10:13 +1100 | [diff] [blame] | 47 | |
Ben Lindstrom | 603bdfd | 2001-02-12 07:29:45 +0000 | [diff] [blame] | 48 | #ifdef HAVE_LIMITS_H |
| 49 | # include <limits.h> |
| 50 | #endif |
Damien Miller | 72c9a7e | 2000-09-24 11:10:13 +1100 | [diff] [blame] | 51 | #ifdef HAVE_GETOPT_H |
Ben Lindstrom | 603bdfd | 2001-02-12 07:29:45 +0000 | [diff] [blame] | 52 | # include <getopt.h> |
Damien Miller | bac2d8a | 2000-09-05 16:13:06 +1100 | [diff] [blame] | 53 | #endif |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 54 | #ifdef HAVE_BSTRING_H |
| 55 | # include <bstring.h> |
Kevin Steves | ef4eea9 | 2001-02-05 12:42:17 +0000 | [diff] [blame] | 56 | #endif |
Damien Miller | 3bd49ec | 1999-11-15 15:40:55 +1100 | [diff] [blame] | 57 | #ifdef HAVE_NETGROUP_H |
| 58 | # include <netgroup.h> |
Kevin Steves | ef4eea9 | 2001-02-05 12:42:17 +0000 | [diff] [blame] | 59 | #endif |
Ben Lindstrom | 42717bf | 2000-12-28 15:46:20 +0000 | [diff] [blame] | 60 | #if defined(HAVE_NETDB_H) |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 61 | # include <netdb.h> |
Kevin Steves | ef4eea9 | 2001-02-05 12:42:17 +0000 | [diff] [blame] | 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 |
Ben Lindstrom | 42202bc | 2001-01-15 02:34:37 +0000 | [diff] [blame] | 91 | #ifdef HAVE_UTIME_H |
| 92 | # include <utime.h> |
| 93 | #endif |
Damien Miller | 874d77b | 2000-10-14 16:23:11 +1100 | [diff] [blame] | 94 | #ifdef HAVE_VIS_H |
| 95 | # include <vis.h> |
| 96 | #endif |
Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 97 | #include "version.h" |
Damien Miller | 16e519c | 2000-05-09 14:28:55 +1000 | [diff] [blame] | 98 | #include "openbsd-compat.h" |
Ben Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 99 | #include "bsd-cygwin_util.h" |
Damien Miller | 5f05637 | 2000-04-16 12:31:48 +1000 | [diff] [blame] | 100 | #include "entropy.h" |
| 101 | |
Damien Miller | 72c9a7e | 2000-09-24 11:10:13 +1100 | [diff] [blame] | 102 | #endif /* INCLUDES_H */ |