blob: 18693c7f0fcc414feac0c0437431340e13f3b528 [file] [log] [blame]
Ben Lindstrom36579d32001-01-29 07:39:26 +00001/* $OpenBSD: includes.h,v 1.14 2001/01/29 01:58:16 niklas Exp $ */
2
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 Miller0f91b4e2000-06-18 15:43:25 +100024#include "next-posix.h"
25
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 Millerbac2d8a2000-09-05 16:13:06 +110032#ifndef HAVE_CYGWIN
Damien Millerd4a8b7e1999-10-27 13:42:43 +100033#include <netinet/tcp.h>
Damien Millerbac2d8a2000-09-05 16:13:06 +110034#endif
Damien Millerd4a8b7e1999-10-27 13:42:43 +100035#include <arpa/inet.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100036
Damien Millerd4a8b7e1999-10-27 13:42:43 +100037#include <stdio.h>
38#include <ctype.h>
39#include <errno.h>
40#include <fcntl.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100041#include <signal.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100042#include <stdlib.h>
43#include <string.h>
44#include <stdarg.h>
45#include <pwd.h>
46#include <grp.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100047#include <time.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100048#include <dirent.h>
Damien Miller72c9a7e2000-09-24 11:10:13 +110049
50#ifdef HAVE_GETOPT_H
Damien Millerbac2d8a2000-09-05 16:13:06 +110051#include <getopt.h>
52#endif
Damien Millerbeb4ba51999-12-28 15:09:35 +110053#ifdef HAVE_BSTRING_H
54# include <bstring.h>
55#endif
Damien Miller3bd49ec1999-11-15 15:40:55 +110056#ifdef HAVE_NETGROUP_H
57# include <netgroup.h>
58#endif
Ben Lindstrom42717bf2000-12-28 15:46:20 +000059#if defined(HAVE_NETDB_H)
Damien Millerbeb4ba51999-12-28 15:09:35 +110060# include <netdb.h>
61#endif
Damien Millerab18c411999-11-11 10:40:23 +110062#ifdef HAVE_ENDIAN_H
63# include <endian.h>
64#endif
Damien Miller4874c791999-11-16 13:29:26 +110065#ifdef HAVE_SYS_SELECT_H
66# include <sys/select.h>
67#endif
Damien Millerb3ca3aa1999-11-22 13:57:07 +110068#ifdef HAVE_SYS_TIME_H
69# include <sys/time.h>
70#endif
Damien Miller76112de1999-12-21 11:18:08 +110071#ifdef HAVE_SYS_BSDTTY_H
72# include <sys/bsdtty.h>
73#endif
Damien Miller348c9b72000-08-15 10:01:22 +100074#ifdef HAVE_TTYENT_H
75# include <ttyent.h>
76#endif
Damien Millerbeb4ba51999-12-28 15:09:35 +110077#ifdef USE_PAM
Damien Miller4874c791999-11-16 13:29:26 +110078# include <security/pam_appl.h>
Damien Miller04f80141999-11-19 15:32:34 +110079#endif
Damien Millere72b7af1999-12-30 15:08:44 +110080#ifdef HAVE_POLL_H
81# include <poll.h>
82#else
83# ifdef HAVE_SYS_POLL_H
84# include <sys/poll.h>
85# endif
86#endif
Damien Millereaf99942000-01-19 13:45:07 +110087#ifdef HAVE_SYS_SYSMACROS_H
88# include <sys/sysmacros.h>
89#endif
Ben Lindstrom42202bc2001-01-15 02:34:37 +000090#ifdef HAVE_UTIME_H
91# include <utime.h>
92#endif
Damien Miller874d77b2000-10-14 16:23:11 +110093#ifdef HAVE_VIS_H
94# include <vis.h>
95#endif
Damien Millerab18c411999-11-11 10:40:23 +110096#include "version.h"
Damien Miller16e519c2000-05-09 14:28:55 +100097#include "openbsd-compat.h"
Damien Miller72c9a7e2000-09-24 11:10:13 +110098#include "cygwin_util.h"
Damien Miller5f056372000-04-16 12:31:48 +100099#include "entropy.h"
100
Damien Miller72c9a7e2000-09-24 11:10:13 +1100101#endif /* INCLUDES_H */