2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5 * This file includes most of the needed system headers.
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".
18 static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
22 #include "next-posix.h"
24 #include <sys/types.h>
25 #include <sys/socket.h>
26 #include <sys/ioctl.h>
28 #include <sys/resource.h>
31 #include <netinet/tcp.h>
33 #include <arpa/inet.h>
56 #ifdef HAVE_NETGROUP_H
57 # include <netgroup.h>
59 #if defined(HAVE_NETDB_H) && !defined(HAVE_NEXT)
60 /* Next includes this as part of another header */
66 #ifdef HAVE_SYS_SELECT_H
67 # include <sys/select.h>
69 #ifdef HAVE_SYS_TIME_H
70 # include <sys/time.h>
72 #ifdef HAVE_SYS_BSDTTY_H
73 # include <sys/bsdtty.h>
79 # include <security/pam_appl.h>
84 # ifdef HAVE_SYS_POLL_H
85 # include <sys/poll.h>
88 #ifdef HAVE_SYS_SYSMACROS_H
89 # include <sys/sysmacros.h>
94 /* OpenBSD function replacements */
95 #include "openbsd-compat.h"
97 /* Entropy collection */
100 /* Define this to be the path of the xauth program. */
102 #define XAUTH_PATH "/usr/X11R6/bin/xauth"
103 #endif /* XAUTH_PATH */
105 /* Define this to be the path of the rsh program. */
107 #define _PATH_RSH "/usr/bin/rsh"
108 #endif /* _PATH_RSH */
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.
114 /* #define USE_PIPES 1 */
117 #define open binary_open
118 #define pipe binary_pipe
119 extern int binary_open();
120 extern int binary_pipe();
123 #endif /* INCLUDES_H */