]>
Commit | Line | Data |
---|---|---|
f9314d9a | 1 | /* $OpenBSD: includes.h,v 1.17 2002/01/26 16:44:22 stevesk Exp $ */ |
23c2a7a5 | 2 | |
8efc0c15 | 3 | /* |
5260325f | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
5260325f | 5 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
6 | * All rights reserved | |
5260325f | 7 | * This file includes most of the needed system headers. |
6ae2364d | 8 | * |
bcbf86ec | 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". | |
5260325f | 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 | ||
84ceda19 | 24 | #include "openbsd-compat/bsd-nextstep.h" |
729bfe59 | 25 | |
8efc0c15 | 26 | #include <sys/types.h> |
27 | #include <sys/socket.h> | |
8efc0c15 | 28 | #include <sys/ioctl.h> |
8efc0c15 | 29 | #include <sys/wait.h> |
8efc0c15 | 30 | #include <sys/resource.h> |
31 | ||
8efc0c15 | 32 | #include <netinet/tcp.h> |
8efc0c15 | 33 | #include <arpa/inet.h> |
8efc0c15 | 34 | |
8efc0c15 | 35 | #include <stdio.h> |
36 | #include <ctype.h> | |
37 | #include <errno.h> | |
38 | #include <fcntl.h> | |
8efc0c15 | 39 | #include <signal.h> |
8efc0c15 | 40 | #include <stdlib.h> |
41 | #include <string.h> | |
42 | #include <stdarg.h> | |
43 | #include <pwd.h> | |
44 | #include <grp.h> | |
8efc0c15 | 45 | #include <time.h> |
8efc0c15 | 46 | #include <dirent.h> |
2f125ca1 | 47 | |
6f68f28a | 48 | #ifdef HAVE_LIMITS_H |
49 | # include <limits.h> | |
50 | #endif | |
2f125ca1 | 51 | #ifdef HAVE_GETOPT_H |
6f68f28a | 52 | # include <getopt.h> |
3c62e7eb | 53 | #endif |
cb547f98 | 54 | #ifndef HAVE_GETOPT_OPTRESET |
55 | #define getopt(ac, av, o) BSDgetopt(ac, av, o) | |
56 | #endif | |
d94aa2ae | 57 | #ifdef HAVE_BSTRING_H |
58 | # include <bstring.h> | |
2b87da3b | 59 | #endif |
40849fdb | 60 | #if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \ |
61 | defined(GLOB_HAS_GL_MATCHC) | |
84ceda19 | 62 | # include <glob.h> |
63 | #endif | |
c75a1a66 | 64 | #ifdef HAVE_NETGROUP_H |
65 | # include <netgroup.h> | |
2b87da3b | 66 | #endif |
0dd78cd8 | 67 | #if defined(HAVE_NETDB_H) |
d94aa2ae | 68 | # include <netdb.h> |
2b87da3b | 69 | #endif |
4cca272e | 70 | #ifdef HAVE_ENDIAN_H |
71 | # include <endian.h> | |
72 | #endif | |
793edc37 | 73 | #ifdef HAVE_SYS_SELECT_H |
74 | # include <sys/select.h> | |
75 | #endif | |
b09a984b | 76 | #ifdef HAVE_SYS_TIME_H |
77 | # include <sys/time.h> | |
78 | #endif | |
a7effaac | 79 | #ifdef HAVE_SYS_BSDTTY_H |
80 | # include <sys/bsdtty.h> | |
81 | #endif | |
dbaa2e87 | 82 | #ifdef HAVE_TTYENT_H |
83 | # include <ttyent.h> | |
84 | #endif | |
d94aa2ae | 85 | #ifdef USE_PAM |
793edc37 | 86 | # include <security/pam_appl.h> |
beb43d31 | 87 | #endif |
20af321f | 88 | #ifdef HAVE_SYS_SYSMACROS_H |
89 | # include <sys/sysmacros.h> | |
90 | #endif | |
89c7e31c | 91 | #ifdef HAVE_UTIME_H |
92 | # include <utime.h> | |
93 | #endif | |
4cca272e | 94 | #include "version.h" |
84ceda19 | 95 | #include "openbsd-compat/openbsd-compat.h" |
96 | #include "openbsd-compat/bsd-cygwin_util.h" | |
35484284 | 97 | #include "entropy.h" |
98 | ||
23aa1237 | 99 | #ifndef MAP_FAILED |
100 | # define MAP_FAILED ((void *)-1) | |
101 | #endif | |
102 | ||
2f125ca1 | 103 | #endif /* INCLUDES_H */ |