blob: 4740418a75ae5ea795af02fd7f3dbcfb4d7fca6d [file] [log] [blame]
Damien Miller512bccb2002-02-05 12:11:02 +11001/* $OpenBSD: includes.h,v 1.17 2002/01/26 16:44:22 stevesk Exp $ */
Ben Lindstrom36579d32001-01-29 07:39:26 +00002
Damien Millerd4a8b7e1999-10-27 13:42:43 +10003/*
Damien Miller95def091999-11-25 00:26:21 +11004 * Author: Tatu Ylonen <ylo@cs.hut.fi>
Damien Miller95def091999-11-25 00:26:21 +11005 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
Damien Miller95def091999-11-25 00:26:21 +11007 * This file includes most of the needed system headers.
Damien Miller4af51302000-04-16 11:18:38 +10008 *
Damien Millere4340be2000-09-16 13:29:08 +11009 * 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 Miller95def091999-11-25 00:26:21 +110014 */
Damien Millerd4a8b7e1999-10-27 13:42:43 +100015
16#ifndef INCLUDES_H
17#define INCLUDES_H
18
19#define RCSID(msg) \
20static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
21
Damien Miller4874c791999-11-16 13:29:26 +110022#include "config.h"
23
Damien Miller3c027682001-03-14 11:39:45 +110024#include "openbsd-compat/bsd-nextstep.h"
Damien Miller0f91b4e2000-06-18 15:43:25 +100025
Damien Millerd4a8b7e1999-10-27 13:42:43 +100026#include <sys/types.h>
27#include <sys/socket.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100028#include <sys/ioctl.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100029#include <sys/wait.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100030#include <sys/resource.h>
31
Damien Millerd4a8b7e1999-10-27 13:42:43 +100032#include <netinet/tcp.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100033#include <arpa/inet.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100034
Damien Millerd4a8b7e1999-10-27 13:42:43 +100035#include <stdio.h>
36#include <ctype.h>
37#include <errno.h>
38#include <fcntl.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100039#include <signal.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100040#include <stdlib.h>
41#include <string.h>
42#include <stdarg.h>
43#include <pwd.h>
44#include <grp.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100045#include <time.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100046#include <dirent.h>
Damien Miller72c9a7e2000-09-24 11:10:13 +110047
Ben Lindstrom603bdfd2001-02-12 07:29:45 +000048#ifdef HAVE_LIMITS_H
49# include <limits.h>
50#endif
Damien Miller72c9a7e2000-09-24 11:10:13 +110051#ifdef HAVE_GETOPT_H
Ben Lindstrom603bdfd2001-02-12 07:29:45 +000052# include <getopt.h>
Damien Millerbac2d8a2000-09-05 16:13:06 +110053#endif
Tim Ricea4f7ae12001-09-17 14:34:33 -070054#ifndef HAVE_GETOPT_OPTRESET
55#define getopt(ac, av, o) BSDgetopt(ac, av, o)
56#endif
Damien Millerbeb4ba51999-12-28 15:09:35 +110057#ifdef HAVE_BSTRING_H
58# include <bstring.h>
Kevin Stevesef4eea92001-02-05 12:42:17 +000059#endif
Ben Lindstrom45b14db2001-03-17 01:15:38 +000060#if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC) && \
61 defined(GLOB_HAS_GL_MATCHC)
Damien Miller3c027682001-03-14 11:39:45 +110062# include <glob.h>
63#endif
Damien Miller3bd49ec1999-11-15 15:40:55 +110064#ifdef HAVE_NETGROUP_H
65# include <netgroup.h>
Kevin Stevesef4eea92001-02-05 12:42:17 +000066#endif
Ben Lindstrom42717bf2000-12-28 15:46:20 +000067#if defined(HAVE_NETDB_H)
Damien Millerbeb4ba51999-12-28 15:09:35 +110068# include <netdb.h>
Kevin Stevesef4eea92001-02-05 12:42:17 +000069#endif
Damien Millerab18c411999-11-11 10:40:23 +110070#ifdef HAVE_ENDIAN_H
71# include <endian.h>
72#endif
Damien Miller4874c791999-11-16 13:29:26 +110073#ifdef HAVE_SYS_SELECT_H
74# include <sys/select.h>
75#endif
Damien Millerb3ca3aa1999-11-22 13:57:07 +110076#ifdef HAVE_SYS_TIME_H
77# include <sys/time.h>
78#endif
Damien Miller76112de1999-12-21 11:18:08 +110079#ifdef HAVE_SYS_BSDTTY_H
80# include <sys/bsdtty.h>
81#endif
Damien Miller348c9b72000-08-15 10:01:22 +100082#ifdef HAVE_TTYENT_H
83# include <ttyent.h>
84#endif
Damien Millerbeb4ba51999-12-28 15:09:35 +110085#ifdef USE_PAM
Damien Miller4874c791999-11-16 13:29:26 +110086# include <security/pam_appl.h>
Damien Miller04f80141999-11-19 15:32:34 +110087#endif
Damien Millere72b7af1999-12-30 15:08:44 +110088#ifdef HAVE_POLL_H
89# include <poll.h>
90#else
91# ifdef HAVE_SYS_POLL_H
92# include <sys/poll.h>
93# endif
94#endif
Damien Millereaf99942000-01-19 13:45:07 +110095#ifdef HAVE_SYS_SYSMACROS_H
96# include <sys/sysmacros.h>
97#endif
Ben Lindstrom42202bc2001-01-15 02:34:37 +000098#ifdef HAVE_UTIME_H
99# include <utime.h>
100#endif
Damien Millerab18c411999-11-11 10:40:23 +1100101#include "version.h"
Damien Miller3c027682001-03-14 11:39:45 +1100102#include "openbsd-compat/openbsd-compat.h"
103#include "openbsd-compat/bsd-cygwin_util.h"
Damien Miller5f056372000-04-16 12:31:48 +1000104#include "entropy.h"
105
Damien Miller72c9a7e2000-09-24 11:10:13 +1100106#endif /* INCLUDES_H */