]> andersk Git - gssapi-openssh.git/blame - openssh/includes.h
Import of OpenSSH 4.3p1
[gssapi-openssh.git] / openssh / includes.h
CommitLineData
2c06c99b 1/* $OpenBSD: includes.h,v 1.22 2006/01/01 08:59:27 stevesk Exp $ */
3c0ef626 2
3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
7 * This file includes most of the needed system headers.
8 *
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".
14 */
15
16#ifndef INCLUDES_H
17#define INCLUDES_H
18
19#define RCSID(msg) \
665a873d 20static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
3c0ef626 21
22#include "config.h"
23
2c06c99b 24#define _GNU_SOURCE /* activate extra prototypes for glibc */
25
665a873d 26#include <stdarg.h>
3c0ef626 27#include <stdio.h>
28#include <ctype.h>
29#include <errno.h>
700318f3 30#include <fcntl.h> /* For O_NONBLOCK */
3c0ef626 31#include <signal.h>
32#include <stdlib.h>
33#include <string.h>
34#include <stdarg.h>
35#include <pwd.h>
36#include <grp.h>
37#include <time.h>
38#include <dirent.h>
c9f39d2c 39#include <stddef.h>
3c0ef626 40
41#ifdef HAVE_LIMITS_H
700318f3 42# include <limits.h> /* For PATH_MAX */
3c0ef626 43#endif
44#ifdef HAVE_GETOPT_H
45# include <getopt.h>
46#endif
3c0ef626 47#ifdef HAVE_BSTRING_H
48# include <bstring.h>
49#endif
50#if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \
51 defined(GLOB_HAS_GL_MATCHC)
52# include <glob.h>
53#endif
54#ifdef HAVE_NETGROUP_H
55# include <netgroup.h>
56#endif
3c0ef626 57#ifdef HAVE_ENDIAN_H
58# include <endian.h>
59#endif
700318f3 60#ifdef HAVE_TTYENT_H
61# include <ttyent.h>
62#endif
63#ifdef HAVE_UTIME_H
64# include <utime.h>
65#endif
66#ifdef HAVE_MAILLOCK_H
67# include <maillock.h> /* For _PATH_MAILDIR */
68#endif
69#ifdef HAVE_NEXT
70# include <libc.h>
71#endif
72#include <unistd.h> /* For STDIN_FILENO, etc */
73#include <termios.h> /* Struct winsize */
74
75/*
76 *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively
77 */
78#ifdef HAVE_STRINGS_H
79# include <strings.h>
80#endif
81#ifdef HAVE_LOGIN_H
82# include <login.h>
83#endif
84
85#ifdef HAVE_UTMP_H
86# include <utmp.h>
87#endif
88#ifdef HAVE_UTMPX_H
89# ifdef HAVE_TV_IN_UTMPX
90# include <sys/time.h>
91# endif
92# include <utmpx.h>
93#endif
94#ifdef HAVE_LASTLOG_H
95# include <lastlog.h>
3c0ef626 96#endif
700318f3 97#ifdef HAVE_PATHS_H
98# include <paths.h> /* For _PATH_XXX */
99#endif
100
101#include <sys/types.h>
102#include <sys/socket.h>
103#include <sys/ioctl.h>
104#include <sys/wait.h>
3c0ef626 105#ifdef HAVE_SYS_TIME_H
700318f3 106# include <sys/time.h> /* For timersub */
107#endif
108#include <sys/resource.h>
109#ifdef HAVE_SYS_SELECT_H
110# include <sys/select.h>
3c0ef626 111#endif
112#ifdef HAVE_SYS_BSDTTY_H
113# include <sys/bsdtty.h>
114#endif
700318f3 115#include <sys/param.h> /* For MAXPATHLEN and roundup() */
116#ifdef HAVE_SYS_UN_H
117# include <sys/un.h> /* For sockaddr_un */
3c0ef626 118#endif
41b2f314 119#ifdef HAVE_STDINT_H
120# include <stdint.h>
121#endif
700318f3 122#ifdef HAVE_SYS_BITYPES_H
123# include <sys/bitypes.h> /* For u_intXX_t */
124#endif
125#ifdef HAVE_SYS_CDEFS_H
126# include <sys/cdefs.h> /* For __P() */
3c0ef626 127#endif
700318f3 128#ifdef HAVE_SYS_STAT_H
129# include <sys/stat.h> /* For S_* constants and macros */
3c0ef626 130#endif
131#ifdef HAVE_SYS_SYSMACROS_H
700318f3 132# include <sys/sysmacros.h> /* For MIN, MAX, etc */
3c0ef626 133#endif
700318f3 134#ifdef HAVE_SYS_MMAN_H
135#include <sys/mman.h> /* for MAP_ANONYMOUS */
136#endif
0fff78ff 137#ifdef HAVE_SYS_STRTIO_H
138#include <sys/strtio.h> /* for TIOCCBRK on HP-UX */
139#endif
cdd66111 140#if defined(HAVE_SYS_PTMS_H) && defined(HAVE_DEV_PTMX)
141# if defined(HAVE_SYS_STREAM_H)
142# include <sys/stream.h> /* reqd for queue_t on Solaris 2.5.1 */
143# endif
144#include <sys/ptms.h> /* for grantpt() and friends */
145#endif
700318f3 146
147#include <netinet/in_systm.h> /* For typedefs */
148#include <netinet/in.h> /* For IPv6 macros */
149#include <netinet/ip.h> /* For IPTOS macros */
150#include <netinet/tcp.h>
151#include <arpa/inet.h>
0fff78ff 152#if defined(HAVE_NETDB_H)
153# include <netdb.h>
154#endif
700318f3 155#ifdef HAVE_RPC_TYPES_H
156# include <rpc/types.h> /* For INADDR_LOOPBACK */
3c0ef626 157#endif
700318f3 158#ifdef USE_PAM
cdd66111 159#if defined(HAVE_SECURITY_PAM_APPL_H)
700318f3 160# include <security/pam_appl.h>
cdd66111 161#elif defined (HAVE_PAM_PAM_APPL_H)
162# include <pam/pam_appl.h>
163#endif
700318f3 164#endif
165#ifdef HAVE_READPASSPHRASE_H
166# include <readpassphrase.h>
167#endif
168
41b2f314 169#ifdef HAVE_IA_H
170# include <ia.h>
171#endif
172
665a873d 173#ifdef HAVE_IAF_H
174# include <iaf.h>
175#endif
176
41b2f314 177#ifdef HAVE_TMPDIR_H
178# include <tmpdir.h>
179#endif
180
6a9b3198 181#ifdef HAVE_LIBUTIL_H
182# include <libutil.h> /* Openpty on FreeBSD at least */
183#endif
184
cdd66111 185#if defined(KRB5) && defined(USE_AFS)
186# include <krb5.h>
187# include <kafs.h>
188#endif
189
665a873d 190#if defined(HAVE_SYS_SYSLOG_H)
191# include <sys/syslog.h>
192#endif
193
c9f39d2c 194/*
195 * On HP-UX 11.11, shadow.h and prot.h provide conflicting declarations
196 * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here.
197 */
996d5e62 198#ifdef GETSPNAM_CONFLICTING_DEFS
c9f39d2c 199# ifdef _INCLUDE__STDC__
200# undef _INCLUDE__STDC__
201# endif
202#endif
203
700318f3 204#include <openssl/opensslv.h> /* For OPENSSL_VERSION_NUMBER */
205
206#include "defines.h"
207
3c0ef626 208#include "version.h"
209#include "openbsd-compat/openbsd-compat.h"
700318f3 210#include "openbsd-compat/bsd-nextstep.h"
211
3c0ef626 212#include "entropy.h"
213
214#endif /* INCLUDES_H */
This page took 0.948078 seconds and 5 git commands to generate.