]> andersk Git - openssh.git/blame - includes.h
- (djm) OpenBSD CVS sync:
[openssh.git] / includes.h
CommitLineData
8efc0c15 1/*
5260325f 2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5260325f 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5260325f 5 * This file includes most of the needed system headers.
6ae2364d 6 *
bcbf86ec 7 * As far as I am concerned, the code I have written for this software
8 * can be used freely for any purpose. Any derived versions of this
9 * software must be clearly marked as such, and if the derived work is
10 * incompatible with the protocol description in the RFC file, it must be
11 * called by a name other than "ssh" or "Secure Shell".
5260325f 12 */
8efc0c15 13
14#ifndef INCLUDES_H
15#define INCLUDES_H
16
17#define RCSID(msg) \
18static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
19
793edc37 20#include "config.h"
21
729bfe59 22#include "next-posix.h"
23
8efc0c15 24#include <sys/types.h>
25#include <sys/socket.h>
8efc0c15 26#include <sys/ioctl.h>
8efc0c15 27#include <sys/wait.h>
8efc0c15 28#include <sys/resource.h>
29
3c62e7eb 30#ifndef HAVE_CYGWIN
8efc0c15 31#include <netinet/tcp.h>
3c62e7eb 32#endif
8efc0c15 33#include <arpa/inet.h>
34#include <netdb.h>
35
8efc0c15 36#include <stdio.h>
37#include <ctype.h>
38#include <errno.h>
39#include <fcntl.h>
8efc0c15 40#include <signal.h>
41#include <termios.h>
42#include <stdlib.h>
43#include <string.h>
44#include <stdarg.h>
45#include <pwd.h>
46#include <grp.h>
8efc0c15 47#include <time.h>
8efc0c15 48#include <dirent.h>
3c62e7eb 49#ifdef HAVE_CYGWIN
50#include <getopt.h>
51#endif
8efc0c15 52
d94aa2ae 53#ifdef HAVE_BSTRING_H
54# include <bstring.h>
55#endif
c75a1a66 56#ifdef HAVE_NETGROUP_H
57# include <netgroup.h>
58#endif
aae19451 59#if defined(HAVE_NETDB_H) && !defined(HAVE_NEXT)
60/* Next includes this as part of another header */
d94aa2ae 61# include <netdb.h>
62#endif
4cca272e 63#ifdef HAVE_ENDIAN_H
64# include <endian.h>
65#endif
793edc37 66#ifdef HAVE_SYS_SELECT_H
67# include <sys/select.h>
68#endif
b09a984b 69#ifdef HAVE_SYS_TIME_H
70# include <sys/time.h>
71#endif
a7effaac 72#ifdef HAVE_SYS_BSDTTY_H
73# include <sys/bsdtty.h>
74#endif
dbaa2e87 75#ifdef HAVE_TTYENT_H
76# include <ttyent.h>
77#endif
d94aa2ae 78#ifdef USE_PAM
793edc37 79# include <security/pam_appl.h>
beb43d31 80#endif
a5c9cd31 81#ifdef HAVE_POLL_H
82# include <poll.h>
83#else
84# ifdef HAVE_SYS_POLL_H
85# include <sys/poll.h>
86# endif
87#endif
20af321f 88#ifdef HAVE_SYS_SYSMACROS_H
89# include <sys/sysmacros.h>
90#endif
4cca272e 91
92#include "version.h"
48e671d5 93
3dc1102e 94/* OpenBSD function replacements */
95#include "openbsd-compat.h"
48e671d5 96
35484284 97/* Entropy collection */
98#include "entropy.h"
99
8efc0c15 100/* Define this to be the path of the xauth program. */
101#ifndef XAUTH_PATH
102#define XAUTH_PATH "/usr/X11R6/bin/xauth"
103#endif /* XAUTH_PATH */
104
105/* Define this to be the path of the rsh program. */
106#ifndef _PATH_RSH
107#define _PATH_RSH "/usr/bin/rsh"
108#endif /* _PATH_RSH */
109
aa3378df 110/*
111 * Define this to use pipes instead of socketpairs for communicating with the
112 * client program. Socketpairs do not seem to work on all systems.
113 */
bc8c2601 114/* #define USE_PIPES 1 */
8efc0c15 115
3c62e7eb 116#ifdef HAVE_CYGWIN
117#define open binary_open
118#define pipe binary_pipe
119extern int binary_open();
120extern int binary_pipe();
121#endif
122
5260325f 123#endif /* INCLUDES_H */
This page took 0.318302 seconds and 5 git commands to generate.