blob: 7203d08c953e3ade8bed60b9ce5b490b61962275 [file] [log] [blame]
Damien Millerd4a8b7e1999-10-27 13:42:43 +10001/*
Damien Miller95def091999-11-25 00:26:21 +11002 *
3 * includes.h
4 *
5 * Author: Tatu Ylonen <ylo@cs.hut.fi>
6 *
7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8 * All rights reserved
9 *
10 * Created: Thu Mar 23 16:29:37 1995 ylo
11 *
12 * This file includes most of the needed system headers.
13 *
14 */
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
33#include <netinet/in.h>
34#include <netinet/in_systm.h>
35#include <netinet/tcp.h>
36#include <netinet/ip.h>
37#include <arpa/inet.h>
38#include <netdb.h>
39
Damien Millerd4a8b7e1999-10-27 13:42:43 +100040#include <stdio.h>
41#include <ctype.h>
42#include <errno.h>
43#include <fcntl.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100044#include <signal.h>
45#include <termios.h>
46#include <stdlib.h>
47#include <string.h>
48#include <stdarg.h>
49#include <pwd.h>
50#include <grp.h>
51#include <unistd.h>
52#include <time.h>
Damien Millerd4a8b7e1999-10-27 13:42:43 +100053#include <dirent.h>
54
Damien Millerbeb4ba51999-12-28 15:09:35 +110055#ifdef HAVE_BSTRING_H
56# include <bstring.h>
57#endif
Damien Miller3bd49ec1999-11-15 15:40:55 +110058#ifdef HAVE_NETGROUP_H
59# include <netgroup.h>
60#endif
Damien Millerbeb4ba51999-12-28 15:09:35 +110061#ifdef HAVE_NETDB_H
62# include <netdb.h>
63#endif
Damien Millerab18c411999-11-11 10:40:23 +110064#ifdef HAVE_PATHS_H
65# include <paths.h>
66#endif
67#ifdef HAVE_ENDIAN_H
68# include <endian.h>
69#endif
Damien Miller4874c791999-11-16 13:29:26 +110070#ifdef HAVE_SYS_SELECT_H
71# include <sys/select.h>
72#endif
Damien Millerb3ca3aa1999-11-22 13:57:07 +110073#ifdef HAVE_SYS_TIME_H
74# include <sys/time.h>
75#endif
Damien Miller76112de1999-12-21 11:18:08 +110076#ifdef HAVE_SYS_BSDTTY_H
77# include <sys/bsdtty.h>
78#endif
Damien Millerbeb4ba51999-12-28 15:09:35 +110079#ifdef USE_PAM
Damien Miller4874c791999-11-16 13:29:26 +110080# include <security/pam_appl.h>
Damien Miller04f80141999-11-19 15:32:34 +110081#endif
Damien Millerab18c411999-11-11 10:40:23 +110082
83#include "version.h"
Damien Millerd4a8b7e1999-10-27 13:42:43 +100084#include "helper.h"
Damien Miller04f80141999-11-19 15:32:34 +110085#include "bsd-strlcpy.h"
Damien Millerb3ca3aa1999-11-22 13:57:07 +110086#include "bsd-strlcat.h"
Damien Miller04f80141999-11-19 15:32:34 +110087#include "bsd-mktemp.h"
Damien Miller42b81ff1999-11-26 12:21:24 +110088#include "bsd-snprintf.h"
Damien Millerc6b3bbe1999-12-13 08:27:33 +110089#include "bsd-daemon.h"
Damien Miller2e1b0821999-12-25 10:11:29 +110090#include "bsd-login.h"
Damien Millerd4a8b7e1999-10-27 13:42:43 +100091
92/* Define this to be the path of the xauth program. */
93#ifndef XAUTH_PATH
94#define XAUTH_PATH "/usr/X11R6/bin/xauth"
95#endif /* XAUTH_PATH */
96
97/* Define this to be the path of the rsh program. */
98#ifndef _PATH_RSH
99#define _PATH_RSH "/usr/bin/rsh"
100#endif /* _PATH_RSH */
101
Damien Miller5428f641999-11-25 11:54:57 +1100102/*
103 * Define this to use pipes instead of socketpairs for communicating with the
104 * client program. Socketpairs do not seem to work on all systems.
105 */
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000106#define USE_PIPES 1
107
Damien Miller95def091999-11-25 00:26:21 +1100108#endif /* INCLUDES_H */