blob: a83e03167b3930e452219792de7e6789e303fce1 [file] [log] [blame]
Damien Millerd4a8b7e1999-10-27 13:42:43 +10001/*
Damien Miller4af51302000-04-16 11:18:38 +10002 *
Damien Miller95def091999-11-25 00:26:21 +11003 * includes.h
Damien Miller4af51302000-04-16 11:18:38 +10004 *
Damien Miller95def091999-11-25 00:26:21 +11005 * Author: Tatu Ylonen <ylo@cs.hut.fi>
Damien Miller4af51302000-04-16 11:18:38 +10006 *
Damien Miller95def091999-11-25 00:26:21 +11007 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8 * All rights reserved
Damien Miller4af51302000-04-16 11:18:38 +10009 *
Damien Miller95def091999-11-25 00:26:21 +110010 * Created: Thu Mar 23 16:29:37 1995 ylo
Damien Miller4af51302000-04-16 11:18:38 +100011 *
Damien Miller95def091999-11-25 00:26:21 +110012 * This file includes most of the needed system headers.
Damien Miller4af51302000-04-16 11:18:38 +100013 *
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 Millerd4a8b7e1999-10-27 13:42:43 +100024#include <sys/types.h>
25#include <sys/socket.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100026#include <sys/param.h>
27#include <sys/ioctl.h>
28#include <sys/stat.h>
29#include <sys/wait.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100030#include <sys/un.h>
31#include <sys/resource.h>
32
Damien Millerd4a8b7e1999-10-27 13:42:43 +100033#include <netinet/tcp.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100034#include <arpa/inet.h>
35#include <netdb.h>
36
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>
42#include <termios.h>
43#include <stdlib.h>
44#include <string.h>
45#include <stdarg.h>
46#include <pwd.h>
47#include <grp.h>
48#include <unistd.h>
49#include <time.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100050#include <dirent.h>
51
Damien Millerbeb4ba51999-12-28 15:09:35 +110052#ifdef HAVE_BSTRING_H
53# include <bstring.h>
54#endif
Damien Miller3bd49ec1999-11-15 15:40:55 +110055#ifdef HAVE_NETGROUP_H
56# include <netgroup.h>
57#endif
Damien Millerbeb4ba51999-12-28 15:09:35 +110058#ifdef HAVE_NETDB_H
59# include <netdb.h>
60#endif
Damien Millerab18c411999-11-11 10:40:23 +110061#ifdef HAVE_PATHS_H
62# include <paths.h>
63#endif
64#ifdef HAVE_ENDIAN_H
65# include <endian.h>
66#endif
Damien Miller4874c791999-11-16 13:29:26 +110067#ifdef HAVE_SYS_SELECT_H
68# include <sys/select.h>
69#endif
Damien Millerb3ca3aa1999-11-22 13:57:07 +110070#ifdef HAVE_SYS_TIME_H
71# include <sys/time.h>
72#endif
Damien Miller76112de1999-12-21 11:18:08 +110073#ifdef HAVE_SYS_BSDTTY_H
74# include <sys/bsdtty.h>
75#endif
Damien Millerbeb4ba51999-12-28 15:09:35 +110076#ifdef USE_PAM
Damien Miller4874c791999-11-16 13:29:26 +110077# include <security/pam_appl.h>
Damien Miller04f80141999-11-19 15:32:34 +110078#endif
Damien Millere72b7af1999-12-30 15:08:44 +110079#ifdef HAVE_POLL_H
80# include <poll.h>
81#else
82# ifdef HAVE_SYS_POLL_H
83# include <sys/poll.h>
84# endif
85#endif
Damien Millereaf99942000-01-19 13:45:07 +110086#ifdef HAVE_SYS_SYSMACROS_H
87# include <sys/sysmacros.h>
88#endif
Damien Millerab18c411999-11-11 10:40:23 +110089
90#include "version.h"
Damien Miller34132e52000-01-14 15:45:46 +110091
92/* BSD function replacements */
93#include "bsd-bindresvport.h"
94#include "bsd-rresvport.h"
Damien Miller58ca7d81999-12-29 19:56:30 +110095#include "bsd-misc.h"
Damien Miller04f80141999-11-19 15:32:34 +110096#include "bsd-strlcpy.h"
Damien Millerb3ca3aa1999-11-22 13:57:07 +110097#include "bsd-strlcat.h"
Damien Miller04f80141999-11-19 15:32:34 +110098#include "bsd-mktemp.h"
Damien Miller42b81ff1999-11-26 12:21:24 +110099#include "bsd-snprintf.h"
Damien Millerc6b3bbe1999-12-13 08:27:33 +1100100#include "bsd-daemon.h"
Damien Miller2e1b0821999-12-25 10:11:29 +1100101#include "bsd-login.h"
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000102
Damien Miller34132e52000-01-14 15:45:46 +1100103/* rfc2553 socket API replacements */
104#include "fake-getaddrinfo.h"
105#include "fake-getnameinfo.h"
106#include "fake-socket.h"
107
Damien Miller5f056372000-04-16 12:31:48 +1000108/* Entropy collection */
109#include "entropy.h"
110
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000111/* Define this to be the path of the xauth program. */
112#ifndef XAUTH_PATH
113#define XAUTH_PATH "/usr/X11R6/bin/xauth"
114#endif /* XAUTH_PATH */
115
116/* Define this to be the path of the rsh program. */
117#ifndef _PATH_RSH
118#define _PATH_RSH "/usr/bin/rsh"
119#endif /* _PATH_RSH */
120
Damien Miller5428f641999-11-25 11:54:57 +1100121/*
122 * Define this to use pipes instead of socketpairs for communicating with the
123 * client program. Socketpairs do not seem to work on all systems.
124 */
Damien Miller9e53f352000-02-01 23:05:30 +1100125/* #define USE_PIPES 1 */
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000126
Damien Miller95def091999-11-25 00:26:21 +1100127#endif /* INCLUDES_H */